Browse Source

release android Tien Phong Farm

master
daivph 5 years ago
parent
commit
db4d0647d0
4 changed files with 23 additions and 6 deletions
  1. +17
    -4
      android/app/build.gradle
  2. +4
    -0
      android/key.properties
  3. +1
    -1
      ios/Flutter/.last_build_id
  4. +1
    -1
      pubspec.yaml

+ 17
- 4
android/app/build.gradle View File

@@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
compileSdkVersion 29

@@ -40,16 +46,23 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "vn.azteam.tpfarm"
minSdkVersion 21
targetSdkVersion 28
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
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
- 0
android/key.properties View File

@@ -0,0 +1,4 @@
storePassword=123456
keyPassword=123456
keyAlias=key
storeFile=/Users/macbook/key.jks

+ 1
- 1
ios/Flutter/.last_build_id View File

@@ -1 +1 @@
3f778cf36ac2941d4ad7b6984be8f5a0
256048b5f2de139c42fadf38202f819b

+ 1
- 1
pubspec.yaml View File

@@ -2,7 +2,7 @@ name: farm_tpf
description: A new Flutter project.

publish_to: 'none'
version: 0.16.0+1
version: 1.0.0+1

environment:
sdk: ">=2.7.0 <3.0.0"

Loading…
Cancel
Save