Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

oursky/android-widgets

Repository files navigation

Oursky Widgets Library Release

Commonly used widgets for Android

android Build Status

This repository contain some useful and generic widgets. The widgets is implemented in kotlin but is also usable for Java.

Usage

Edit top level build.gradle and add maven { url 'https://jitpack.io' }, for example:

allprojects {
  repositories {
    google()
    jcenter()
    maven { url 'https://jitpack.io' }
  }
}

Next, edit {app}/build.gradle, add dependencies:

dependencies {
  ...
  implementation 'com.github.oursky:android-widgets:0.0.1'
}

Replace 0.0.1 with the latest version. For a list of version, check the releases page.

NOTE for using snapshot

You may also use the special version tag master-SNAPSHOT to access latest features. Note that gradle will cache the dependency so you may want to add this to app/build.gradle

configurations.all {
    // do not cache changing modules, ie. 'com.github.oursky:android-widgets:master-SNAPSHOT'
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

See this for detail.

Now you should be able to use the widgets directly. See here for a list of widgets.