Files
alfred-android/app/build.gradle
2024-05-14 18:29:41 +00:00

73 lines
1.8 KiB
Groovy

plugins {
alias libs.plugins.android.application
alias libs.plugins.kotlin.android
}
def VERSION_CODE = 1
def VERSION_NAME = "1.0.0"
android {
namespace 'com.navi.alfred.demo'
compileSdk 34
defaultConfig {
applicationId 'com.navi.alfred.demo'
minSdk 23
targetSdk 33
versionCode VERSION_CODE
versionName VERSION_NAME
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
debug {
storeFile file('../keystore/navi-debug-key.jks')
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
release {
storeFile file('../keystore/navi-non-prod-release-key.jks')
storePassword "android"
keyAlias "navi"
keyPassword "android"
}
}
buildFeatures {
buildConfig true
}
buildTypes {
release {
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
freeCompilerArgs += ["-Xstring-concat=inline"]
jvmTarget = '17'
}
packagingOptions {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}
dependencies {
implementation project(':navi-alfred')
implementation libs.android.material
implementation libs.androidx.appcompat
implementation libs.androidx.core.ktx
implementation libs.androidx.lifecycle.viewmodel.ktx
implementation libs.anrwatchdog
implementation libs.gson
}