Created
August 3, 2019 15:59
-
-
Save ilhamsuaib/cd2aaee9dda520c72a917e6afd230468 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
import org.gradle.kotlin.dsl.* | |
plugins { | |
id("com.android.application") | |
kotlin("android") | |
kotlin("android.extensions") | |
} | |
android { | |
compileSdkVersion(Config.SDK_VERSION) | |
defaultConfig { | |
applicationId = Config.APPLICATION_ID | |
minSdkVersion(Config.MIN_SDK_VERSION) | |
targetSdkVersion(Config.SDK_VERSION) | |
versionCode = Config.VERSION_CODE | |
versionName = Config.VERSION_NAME | |
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner" | |
vectorDrawables.useSupportLibrary = true | |
multiDexEnabled = true | |
} | |
buildTypes { | |
getByName("release") { | |
isMinifyEnabled = true | |
isShrinkResources = true | |
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") | |
} | |
getByName("debug") { | |
versionNameSuffix = "-debug" | |
applicationIdSuffix = ".debug" | |
} | |
} | |
} | |
dependencies { | |
fun runImplementations(dependencies: Array<String>) { | |
dependencies.forEach { | |
implementation(it) | |
} | |
} | |
implementation(fileTree(mapOf("include" to listOf("*.jar"), "dir" to "libs"))) | |
implementation(Library.KOTLIN_SDK) | |
runImplementations(Library.getAndroidXLibs()) | |
testImplementation("junit:junit:4.12") | |
androidTestImplementation("androidx.test:runner:1.2.0") | |
androidTestImplementation("androidx.test.espresso:espresso-core:3.2.0") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment