Skip to content

Commit

Permalink
load key properties for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQuan committed Nov 25, 2023
1 parent 279fd79 commit 88c8356
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions project/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
keystore
7 changes: 7 additions & 0 deletions project/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ apply plugin: 'kotlin-android'
apply plugin: 'com.google.gms.google-services'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

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

android {
compileSdk 33

Expand Down

0 comments on commit 88c8356

Please sign in to comment.