65 lines
2.1 KiB
Groovy
65 lines
2.1 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
def keystoreProperties = new Properties()
|
|
if (keystorePropertiesFile.exists()) {
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
}
|
|
|
|
android {
|
|
namespace 'com.dshwatch.app'
|
|
compileSdk 34
|
|
defaultConfig {
|
|
applicationId "com.dshwatch.app"
|
|
minSdk 26
|
|
targetSdk 34
|
|
versionCode 1
|
|
versionName "0.1.0"
|
|
}
|
|
signingConfigs {
|
|
if (keystorePropertiesFile.exists()) {
|
|
debug {
|
|
storeFile file(keystoreProperties['debug.store.file'])
|
|
storePassword keystoreProperties['debug.store.password']
|
|
keyAlias keystoreProperties['debug.key.alias']
|
|
keyPassword keystoreProperties['debug.key.password']
|
|
}
|
|
release {
|
|
storeFile file(keystoreProperties['release.store.file'])
|
|
storePassword keystoreProperties['release.store.password']
|
|
keyAlias keystoreProperties['release.key.alias']
|
|
keyPassword keystoreProperties['release.key.password']
|
|
}
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
if (keystorePropertiesFile.exists()) {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
minifyEnabled false
|
|
if (keystorePropertiesFile.exists()) {
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'com.google.android.material:material:1.9.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
|
|
}
|