Skip to content

Instantly share code, notes, and snippets.

@illuzor illuzor/build.gradle.kts Secret
Created Oct 4, 2018

Embed
What would you like to do?
plugins {
id("com.android.application")
id("kotlin-android")
id("kotlin-android-extensions")
id("kotlin-kapt")
}
val kotlinVer = "1.2.71"
val retrofitVer = "2.4.0"
val glideVer = "4.8.0"
val buildToolVer = "28.0.3"
val compilerVer = 28
val targetVer = 28
android {
compileSdkVersion(compilerVer)
defaultConfig {
resConfigs("en")
minSdkVersion(21)
targetSdkVersion(targetVer)
buildToolsVersion(buildToolVer)
applicationId = "com.site.projectname"
versionCode = 10
versionName = "1.9"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
create("release") {
storeFile = file("../_key/key.jks")
storePassword = extra["STORE_PASSWORD"] as String
keyAlias = extra["KEY_ALIAS"] as String
keyPassword = extra["KEY_PASSWORD"] as String
}
buildTypes {
getByName("release") {
isShrinkResources = true
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
signingConfig = signingConfigs.getByName("release")
}
}
}
dataBinding {
setEnabled(true)
}
}
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
testImplementation("junit:junit:4.12")
androidTestImplementation("androidx.test:runner:1.1.0-alpha4")
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.0-alpha4")
implementation("androidx.constraintlayout:constraintlayout:2.0.0-alpha2")
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVer")
implementation("androidx.appcompat:appcompat:1.0.0")
implementation("androidx.recyclerview:recyclerview:1.0.0")
implementation("com.google.android.material:material:1.0.0")
implementation("com.github.chrisbanes:PhotoView:2.1.4")
implementation("androidx.lifecycle:lifecycle-extensions:2.0.0")
implementation("com.mikepenz:aboutlibraries:6.1.1")
implementation("com.illuzor.klib:klib:0.1")
implementation("com.squareup.retrofit2:retrofit:$retrofitVer")
implementation("com.squareup.retrofit2:converter-gson:$retrofitVer")
implementation("com.github.bumptech.glide:glide:$glideVer")
kapt("com.github.bumptech.glide:compiler:$glideVer")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.