mirror of
https://github.com/fumiama/simple-dict-android.git
synced 2026-06-22 20:20:27 +08:00
add nisi
This commit is contained in:
@@ -2,7 +2,6 @@ plugins {
|
||||
id 'com.android.application'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-android-extensions'
|
||||
id 'AndResGuard'
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -13,30 +12,18 @@ android {
|
||||
applicationId "top.fumiama.simpledict"
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 30
|
||||
versionCode 8
|
||||
versionName '1.6'
|
||||
versionCode 9
|
||||
versionName '1.7'
|
||||
resConfigs "zh", "zh-rCN"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
winrelease {
|
||||
storeFile file('C:/Users/spayi/OneDrive/swc/developer/android_key/open_key')
|
||||
storePassword 'fumiama'
|
||||
keyAlias 'default'
|
||||
keyPassword 'fumiama'
|
||||
v1SigningEnabled true
|
||||
v2SigningEnabled true
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
winrelease {
|
||||
release {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
signingConfig signingConfigs.winrelease
|
||||
}
|
||||
/*debug{
|
||||
minifyEnabled true
|
||||
@@ -67,39 +54,4 @@ dependencies {
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
||||
implementation 'com.lapism:search:2.4.1@aar'
|
||||
}
|
||||
|
||||
andResGuard {
|
||||
// mappingFile = file("./resource_mapping.txt")
|
||||
mappingFile = null
|
||||
use7zip = true
|
||||
useSign = true
|
||||
// It will keep the origin path of your resources when it's true
|
||||
keepRoot = false
|
||||
// If set, name column in arsc those need to proguard will be kept to this value
|
||||
fixedResName = "arg"
|
||||
// It will merge the duplicated resources, but don't rely on this feature too much.
|
||||
// it's always better to remove duplicated resource from repo
|
||||
mergeDuplicatedRes = true
|
||||
whiteList = [
|
||||
// your icon
|
||||
"R.drawable.icon",
|
||||
// for fabric
|
||||
"R.string.com.crashlytics.*",
|
||||
// for google-services
|
||||
"R.string.google_app_id",
|
||||
"R.string.gcm_defaultSenderId",
|
||||
"R.string.default_web_client_id",
|
||||
"R.string.ga_trackingId",
|
||||
"R.string.firebase_database_url",
|
||||
"R.string.google_api_key",
|
||||
"R.string.google_crash_reporting_api_key"
|
||||
]
|
||||
compressFilePattern = [
|
||||
"resources.arsc"
|
||||
]
|
||||
sevenzip {
|
||||
artifact = 'com.tencent.mm:SevenZip:1.2.20'
|
||||
//path = "/usr/local/bin/7za"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user