forked from lxm_flutter/FlutterUnit
.
This commit is contained in:
1
android/.gitignore
vendored
1
android/.gitignore
vendored
@@ -4,4 +4,5 @@ gradle-wrapper.jar
|
||||
/gradlew
|
||||
/gradlew.bat
|
||||
/local.properties
|
||||
/key.properties
|
||||
GeneratedPluginRegistrant.java
|
||||
|
||||
@@ -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
4
android/key.properties
Normal file
@@ -0,0 +1,4 @@
|
||||
storePassword=toly1994
|
||||
keyPassword=toly1994
|
||||
keyAlias=key
|
||||
storeFile=/Volumes/coder/file/key/toly.jks
|
||||
Reference in New Issue
Block a user