This repository has been archived on 2026-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Gallery_Bck20260425_042304_713/app/build.gradle
2026-04-24 14:47:35 +08:00

66 lines
2.0 KiB
Groovy

apply plugin: 'com.android.application'
def keystorePropertiesFile = rootProject.file("signing.properties")
def keystoreProperties = new Properties()
try {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
} catch (Exception e) {
keystoreProperties = null
}
android {
compileSdkVersion 30
buildToolsVersion "33.0.0"
defaultConfig {
applicationId "cc.winboll.gallery"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
signingConfigs {
release {
if (keystoreProperties != null) {
storeFile rootProject.file(keystoreProperties["STORE_FILE"])
storePassword keystoreProperties["STORE_PASSWORD"]
keyAlias keystoreProperties["KEY_ALIAS"]
keyPassword keystoreProperties["KEY_PASSWORD"]
} else {
storeFile rootProject.file("appkey.jks")
storePassword "appkey123"
keyAlias "winboll.cc"
keyPassword "appkey123"
}
}
}
buildTypes {
release {
minifyEnabled false
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
signingConfig signingConfigs.release
}
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.viewpager:viewpager:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
}