This repository was archived by the owner on Jul 18, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,6 +60,15 @@ android {
6060 }
6161 }
6262
63+ splits {
64+ abi {
65+ isEnable = (gradle.startParameter.taskRequests.toString().contains(" Release" ))
66+ reset()
67+ include(" arm64-v8a" )
68+ isUniversalApk = false
69+ }
70+ }
71+
6372 buildTypes {
6473 release {
6574 isMinifyEnabled = true
@@ -70,39 +79,17 @@ android {
7079 signingConfig = signingConfigs.getByName(" release" )
7180 manifestPlaceholders.put(" appIcon" , " @mipmap/ic_launcher" )
7281
73- splits {
74- abi {
75- isEnable = true
76- reset()
77- include(" arm64-v8a" )
78- isUniversalApk = false
79- }
80- }
81-
8282 applicationVariants.all variant@{
8383 this @variant.outputs.all output@{
8484 val output = this @output as BaseVariantOutputImpl
8585 val versionName = defaultConfig.versionName
86- var abi = " "
87- if (this @variant.outputs.size > 1 ) {
88- val outputData = this @output.outputFile.name
89- if (outputData.contains(" arm64-v8a" )) {
90- abi = " -arm64-v8a"
91- }
92- }
9386 output.outputFileName = " Han1meViewer-v${versionName} .apk"
9487 }
9588 }
9689 }
9790
9891 debug {
9992 isMinifyEnabled = false
100-
101- splits {
102- abi {
103- isEnable = false
104- }
105- }
10693 proguardFiles(
10794 getDefaultProguardFile(" proguard-android-optimize.txt" ), " proguard-rules.pro"
10895 )
You can’t perform that action at this time.
0 commit comments