From 5be6cd4e11d0e3c2f146c6963dab7f8d1e4bbfb5 Mon Sep 17 00:00:00 2001 From: Khoren Markosyan Date: Fri, 1 Jul 2022 15:26:24 +0400 Subject: [PATCH] version: 1.0.0+4 --- zxscanner/android/app/build.gradle | 19 ++++++++++++++++--- zxscanner/android/build.gradle | 4 ++-- zxscanner/pubspec.yaml | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/zxscanner/android/app/build.gradle b/zxscanner/android/app/build.gradle index bb5155b..dd18284 100644 --- a/zxscanner/android/app/build.gradle +++ b/zxscanner/android/app/build.gradle @@ -21,6 +21,12 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('key.properties') +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} + apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" @@ -53,11 +59,18 @@ android { 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 } } } diff --git a/zxscanner/android/build.gradle b/zxscanner/android/build.gradle index 61afb9d..48a5fe9 100644 --- a/zxscanner/android/build.gradle +++ b/zxscanner/android/build.gradle @@ -1,12 +1,12 @@ buildscript { - ext.kotlin_version = '1.6.21' + ext.kotlin_version = '1.7.0' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.3' + classpath 'com.android.tools.build:gradle:7.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/zxscanner/pubspec.yaml b/zxscanner/pubspec.yaml index 2e1dfb9..3b4c30d 100644 --- a/zxscanner/pubspec.yaml +++ b/zxscanner/pubspec.yaml @@ -2,7 +2,7 @@ name: zxscanner description: A barcode scanner application. publish_to: 'none' -version: 1.0.0+2 +version: 1.0.0+4 environment: sdk: ">=2.17.0 <3.0.0"