Update discussion link, hint for compile/fast command/file access, fix x11, using release keystore, update code to v1.0.99

This commit is contained in:
Caten
2025-08-31 07:56:55 +08:00
parent ee22cbc1d9
commit 350f4e93ef
13 changed files with 109 additions and 51 deletions

View File

@@ -22,6 +22,12 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('keystore.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
namespace "com.example.tiny_computer"
compileSdkVersion flutter.compileSdkVersion
@@ -54,10 +60,18 @@ android {
buildConfigField "String", "COMMIT", "\"" + ("git rev-parse HEAD\n".execute().getText().trim() ?: (System.getenv('CURRENT_COMMIT') ?: "NO_COMMIT")) + "\""
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
@@ -77,6 +91,11 @@ android {
buildConfig true
}
lint {
disable "NullSafeMutableLiveData"
}
lintOptions {
//checkReleaseBuilds false
abortOnError false