Bump version
This commit is contained in:
3 files changed
+36
-10
No files matched your search
+34
-9
@@ -1,3 +1,5 @@
|
|||||||
|
import java.nio.file.Paths
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
@@ -25,8 +27,8 @@ android {
|
|||||||
applicationId "io.github.nekoinverter.ehviewer"
|
applicationId "io.github.nekoinverter.ehviewer"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 141
|
versionCode 143
|
||||||
versionName "1.7.21.2"
|
versionName "1.7.22"
|
||||||
resConfigs "zh", "zh-rCN", "zh-rHK", "zh-rTW",
|
resConfigs "zh", "zh-rCN", "zh-rHK", "zh-rTW",
|
||||||
"es", "ja", "ko", "fr", "de", "th"
|
"es", "ja", "ko", "fr", "de", "th"
|
||||||
testOptions.unitTests.includeAndroidResources = true
|
testOptions.unitTests.includeAndroidResources = true
|
||||||
@@ -40,7 +42,7 @@ android {
|
|||||||
lintOptions {
|
lintOptions {
|
||||||
disable 'MissingTranslation'
|
disable 'MissingTranslation'
|
||||||
abortOnError true
|
abortOnError true
|
||||||
checkReleaseBuilds true
|
checkReleaseBuilds false
|
||||||
}
|
}
|
||||||
|
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
@@ -57,7 +59,7 @@ android {
|
|||||||
release {
|
release {
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles 'proguard-rules.pro'
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
@@ -71,17 +73,40 @@ android {
|
|||||||
java.srcDirs += 'src/main/java-gen'
|
java.srcDirs += 'src/main/java-gen'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
splits.abi {
|
|
||||||
enable true
|
|
||||||
universalApk true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
task -> task.dependsOn ":daogenerator:executeDaoGenerator"
|
task -> task.dependsOn ":daogenerator:executeDaoGenerator"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def optimizeReleaseResources = task('optimizeReleaseResources').doLast {
|
||||||
|
def aapt2 = Paths.get(project.android.sdkDirectory.path, 'build-tools', project.android.buildToolsVersion, 'aapt2')
|
||||||
|
def zip = Paths.get(
|
||||||
|
project.buildDir.path,
|
||||||
|
"intermediates",
|
||||||
|
"shrunk_processed_res",
|
||||||
|
"release",
|
||||||
|
"resources-release-stripped.ap_"
|
||||||
|
)
|
||||||
|
def optimized = new File("${zip}.opt")
|
||||||
|
def cmd = exec {
|
||||||
|
commandLine aapt2, 'optimize', '--collapse-resource-names',
|
||||||
|
'--shorten-resource-paths',
|
||||||
|
'-o', optimized, zip
|
||||||
|
ignoreExitValue false
|
||||||
|
}
|
||||||
|
if (cmd.exitValue == 0) {
|
||||||
|
delete(zip)
|
||||||
|
optimized.renameTo("$zip")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.whenTaskAdded { task ->
|
||||||
|
if (task.name == 'shrinkReleaseRes') {
|
||||||
|
task.finalizedBy optimizeReleaseResources
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
implementation "androidx.activity:activity:1.2.1"
|
implementation "androidx.activity:activity:1.2.1"
|
||||||
|
|||||||
Vendored
+1
-1
@@ -25,7 +25,7 @@
|
|||||||
-keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
|
-keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
|
||||||
public static java.lang.String TABLENAME;
|
public static java.lang.String TABLENAME;
|
||||||
}
|
}
|
||||||
-keep class **$Properties { *; }
|
-keep class com.hippo.ehviewer.dao.* { *; }
|
||||||
-dontwarn net.sqlcipher.database.**
|
-dontwarn net.sqlcipher.database.**
|
||||||
-dontwarn rx.**
|
-dontwarn rx.**
|
||||||
-dontwarn org.conscrypt.ConscryptHostnameVerifier
|
-dontwarn org.conscrypt.ConscryptHostnameVerifier
|
||||||
@@ -19,3 +19,4 @@
|
|||||||
|
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
|
android.enableResourceOptimizations=false
|
||||||
Reference in new issue
Block a user