optimize mobile workspace and release automation

This commit is contained in:
ngfchl
2026-07-18 23:56:53 +08:00
parent 9fc69d1832
commit be64bd59c4
18 changed files with 1782 additions and 513 deletions
+26 -3
View File
@@ -1,3 +1,12 @@
import java.io.FileInputStream
import java.util.Properties
val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
plugins {
id("com.android.application")
id("kotlin-android")
@@ -30,11 +39,25 @@ android {
versionName = flutter.versionName
}
signingConfigs {
if (keystorePropertiesFile.exists()) {
create("release") {
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
storeFile = file(keystoreProperties["storeFile"] as String)
storePassword = keystoreProperties["storePassword"] as String
}
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
signingConfig = if (keystorePropertiesFile.exists()) {
signingConfigs.getByName("release")
} else {
// Keep local release runs usable; CI always supplies a release key.
signingConfigs.getByName("debug")
}
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="光鸭云盘"
android:label="小黄鸭"
android:usesCleartextTraffic="true"
android:requestLegacyExternalStorage="true"
android:name="${applicationName}"