From 63701789334ac7086ffd8d967e087d3604ec1e79 Mon Sep 17 00:00:00 2001 From: leonardo2204 Date: Mon, 25 May 2020 00:33:10 -0300 Subject: [PATCH] Revert gradle --- .github/workflows/main.yaml | 2 +- android/app/build.gradle | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a4917c1..0a7d89c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,7 +1,7 @@ on: push: tags: - - 'v*' + - '*' name: Test, Build and Release apk jobs: build: diff --git a/android/app/build.gradle b/android/app/build.gradle index d1bf978..dbe3311 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -25,16 +25,16 @@ 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)) -//} else { -// keystoreProperties.setProperty('storePassword', System.getenv('KEY_STORE_PASSWORD')); -// keystoreProperties.setProperty('keyPassword', System.getenv('KEY_PASSWORD')); -// keystoreProperties.setProperty('keyAlias', System.getenv('ALIAS')); -// keystoreProperties.setProperty('storeFile', System.getenv('KEY_PATH')); -//} +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('key.properties') +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} else { + keystoreProperties.setProperty('storePassword', System.getenv('KEY_STORE_PASSWORD')); + keystoreProperties.setProperty('keyPassword', System.getenv('KEY_PASSWORD')); + keystoreProperties.setProperty('keyAlias', System.getenv('ALIAS')); + keystoreProperties.setProperty('storeFile', System.getenv('KEY_PATH')); +} android { compileSdkVersion 28 @@ -57,17 +57,17 @@ android { } signingConfigs { -// release { -// keyAlias keystoreProperties['keyAlias'] -// keyPassword keystoreProperties['keyPassword'] -// storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null -// storePassword keystoreProperties['storePassword'] -// } + 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 } } }