52 lines
2.0 KiB
Groovy
52 lines
2.0 KiB
Groovy
// note: had to abandon the 'plugins' syntax because the navigation graph editor appears to have a bug where it adds kotlin-android and kotlin-android extensions "automatically" when it doesn't detect them. This would constantly break the build. TODO: file a bug on this at b.android.com
|
|
// the main side effect is that plugins have to include their classpath in the parent script, rather than just specifying the 'version' in the plugins dsl
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
apply plugin: 'deploygate'
|
|
apply plugin: 'com.github.ben-manes.versions'
|
|
|
|
android {
|
|
compileSdkVersion buildConfig.compileSdkVersion
|
|
defaultConfig {
|
|
applicationId "cash.z.android.wallet"
|
|
minSdkVersion buildConfig.minSdkVersion
|
|
targetSdkVersion buildConfig.targetSdkVersion
|
|
versionCode 3
|
|
versionName "0.0.3"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables.useSupportLibrary = true
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
// Android
|
|
implementation deps.androidx.appcompat
|
|
implementation deps.androidx.constraintLayout
|
|
implementation deps.androidx.coreKtx
|
|
implementation deps.androidx.navigation.fragment
|
|
implementation deps.androidx.navigation.fragmentKtx
|
|
implementation deps.androidx.navigation.ui
|
|
implementation deps.androidx.navigation.uiKtx
|
|
implementation deps.kotlin.stdlib
|
|
implementation deps.material
|
|
|
|
// Dagger
|
|
implementation deps.dagger.android.support
|
|
kapt deps.dagger.android.processor
|
|
kapt deps.dagger.compiler
|
|
|
|
testImplementation deps.junit
|
|
androidTestImplementation deps.androidx.test.runner
|
|
androidTestImplementation deps.androidx.test.espresso
|
|
}
|