This commit is contained in:
toly
2020-04-13 16:06:43 +08:00
parent 8c02114982
commit 0dfe274d18
149 changed files with 3611 additions and 3021 deletions

1
android/.gitignore vendored
View File

@@ -4,4 +4,5 @@ gradle-wrapper.jar
/gradlew
/gradlew.bat
/local.properties
/key.properties
GeneratedPluginRegistrant.java

View File

@@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
//add------------------start
def keystorePropertiesFile = rootProject.file("key.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
//add------------------end
android {
compileSdkVersion 28
@@ -46,11 +52,19 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
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.debug
signingConfig signingConfigs.release
}
}
}

4
android/key.properties Normal file
View File

@@ -0,0 +1,4 @@
storePassword=toly1994
keyPassword=toly1994
keyAlias=key
storeFile=/Volumes/coder/file/key/toly.jks