fix(user-app): restore release apk build

This commit is contained in:
2026-08-04 11:15:34 +08:00
parent 95b6f2b69c
commit cbc2b8f635
5 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@ builds
bin bin
out out
output/ output/
**/outputs/
target target
release release
debug debug

View File

@@ -30,6 +30,10 @@ android {
// TODO: Add your own signing config for the release build. // TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works. // Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug") signingConfig = signingConfigs.getByName("debug")
// tobias 5.3.4 ships legacy global consumer rules that currently
// crash AGP 9's R8 pass against androidx.core 1.17.0.
isMinifyEnabled = false
isShrinkResources = false
} }
} }
} }

View File

@@ -3,7 +3,8 @@
<application <application
android:label="瓶安芯" android:label="瓶安芯"
android:name="${applicationName}" android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"> android:icon="@mipmap/ic_launcher"
android:networkSecurityConfig="@xml/network_security_config">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:exported="true" android:exported="true"

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="false" />
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="false">rest.heqiapp.com</domain>
</domain-config>
</network-security-config>

View File

@@ -4,3 +4,10 @@ android.useAndroidX=true
android.newDsl=false android.newDsl=false
# This builtInKotlin flag was added by the Flutter template # This builtInKotlin flag was added by the Flutter template
android.builtInKotlin=false android.builtInKotlin=false
# Flutter plugins are resolved from the Pub cache on C:, while this project is
# stored on D:. Kotlin's incremental cache cannot relativize sources across
# Windows drive roots, so keep Android plugin compilation non-incremental.
kotlin.incremental=false
# tobias 5.3.4 still publishes legacy global consumer ProGuard options. AGP 9
# offers this compatibility switch while the plugin migrates those rules.
android.r8.globalOptionsInConsumerRules.disallowed=false