Created
September 6, 2018 13:44
-
-
Save nksaroj/bf5ce1921ac2685e5c676137ca08e7db to your computer and use it in GitHub Desktop.
Kotlon DSL
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
plugins { | |
id("com.android.application") | |
kotlin("android") | |
kotlin("android.extensions") | |
} | |
val versionName = Versions.Android.appVersionName | |
android { | |
compileSdkVersion(Versions.Android.compileSdkVersion) | |
buildToolsVersion(Versions.Android.buildToolsVersion) | |
defaultConfig { | |
applicationId = Config.Application.applicationId | |
minSdkVersion(Versions.Android.minSdkVersion) | |
targetSdkVersion(Versions.Android.targetSdkVersion) | |
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner" | |
} | |
dependencies { | |
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) | |
//==================== Kotlin ==================== | |
implementation(Depends.kotlinStdLib) | |
//==================== Support Library ============ | |
implementation(Depends.Android.supportAppcompat) | |
implementation(Depends.Android.constraintLayout) | |
//==================== Tests ===================== | |
androidTestImplementation(Depends.TestLibraries.jUnitRunner) | |
androidTestImplementation(Depends.TestLibraries.espressoCore) | |
testImplementation(Depends.TestLibraries.jUnit) | |
} | |
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 { | |
repositories { | |
jcenter() | |
google() | |
} | |
dependencies { | |
classpath(Depends.BuildPlugins.androidPlugin) | |
classpath(Depends.BuildPlugins.kotlinPlugin) | |
} | |
} | |
allprojects { | |
repositories { | |
jcenter() | |
google() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment