Fix release build

This commit is contained in:
LoveSy 2023-03-31 11:07:17 +08:00 committed by John Wu
parent 0b987dd0b0
commit 3921e9cb1b
4 changed files with 4 additions and 6 deletions

View File

@ -13,7 +13,6 @@
<application
android:name=".core.App"
android:extractNativeLibs="true"
android:icon="@drawable/ic_launcher"
android:multiArch="true"
tools:ignore="UnusedAttribute,GoogleAppIndexingWarning"

View File

@ -17,8 +17,8 @@ gradlePlugin {
dependencies {
implementation(kotlin("gradle-plugin", "1.8.10"))
implementation("com.android.tools.build:gradle:8.1.0-alpha10")
implementation("com.android.tools.build:gradle:8.1.0-alpha11")
implementation("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.3")
implementation("org.lsposed.lsparanoid:gradle-plugin:0.5.0")
implementation("org.lsposed.lsparanoid:gradle-plugin:0.5.2")
implementation("org.eclipse.jgit:org.eclipse.jgit:6.4.0.202211300538-r")
}

View File

@ -388,8 +388,8 @@ fun Project.setupStub() {
"release/out/resources-release.ap_")
val optRes = File(buildDir, "intermediates/optimized_processed_res/" +
"release/resources-release-optimize.ap_")
tasks.whenTaskAdded {
if (name == "optimizeReleaseResources") {
afterEvaluate {
tasks.named("optimizeReleaseResources") {
doLast { apk.copyTo(optRes, true) }
}
}

View File

@ -22,7 +22,6 @@ org.gradle.caching=true
# Android
android.useAndroidX=true
android.databinding.incremental=true
android.injected.testOnly=false
android.nonTransitiveRClass=true