73 lines
2.2 KiB
Groovy
73 lines
2.2 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 21
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
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 'cc.winboll.studio:libaes:15.15.7'
|
|
implementation 'cc.winboll.studio:libappbase:15.15.11'
|
|
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'])
|
|
}
|