https://github.com/skyfe79/androidkommon
Collection of Android utility extentions in Kotlin
https://github.com/skyfe79/androidkommon
Last synced: about 1 year ago
JSON representation
Collection of Android utility extentions in Kotlin
- Host: GitHub
- URL: https://github.com/skyfe79/androidkommon
- Owner: skyfe79
- License: mit
- Created: 2016-06-03T11:57:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-07T14:13:56.000Z (almost 10 years ago)
- Last Synced: 2025-02-14T21:29:52.527Z (over 1 year ago)
- Language: Java
- Size: 232 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AndroidKommon
Collection of Android utility extentions in Kotlin
## Setup Gradle
```groovy
repositories {
maven { url 'https://dl.bintray.com/skyfe79/maven/' }
}
dependencies {
}
```
## RxComponents
* RxAndroidActivity
* RxAndroidAppCompatActivity
* RxAndroidFragment
## DelegateExts
### notNullSingleValue
```kotlin
class AndroidApp : Application() {
companion object {
private var instance: AndroidApp by DelegateExts.notNullSingleValue()
fun sharedInstance() = instance
}
}
```
## AndroidVersion
```kotlin
if(AndroidVersion.current() >= AndroidVersion.lollipop()) {
println(1)
} else {
println(2)
}
```
## Dependency moduls
```
compile 'com.github.medyo:dynamicbox:1.2@aar'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'com.trello:rxlifecycle:0.6.1'
compile 'com.trello:rxlifecycle-components:0.6.1'
```