Created
February 23, 2018 09:46
-
-
Save memfis19/ae2eb78c6b7899343e8bf021550c8344 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext.kotlin_version = '1.2.21' | |
repositories { | |
google() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.0.1' | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
classpath "your.dependency:module:x.y.z" | |
} | |
} | |
import your.dependecy.Dependecy | |
dependency { | |
implementation Dependency.Rx.rxJava | |
implementation Dependency.Rx.rxKotlin | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package your.dependency | |
interface Dependecy { | |
interface Rx { | |
String rxJava = "io.reactivex.rxjava2:rxjava:${rxJavaVersion}"; | |
String rxKotlin = "io.reactivex.rxjava2:rxkotlin:${rxKotlinVersion}"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment