Skip to content

Commit

Permalink
Merge pull request #60 from omer358/dev
Browse files Browse the repository at this point in the history
resolves #59
  • Loading branch information
omer358 authored Aug 23, 2024
2 parents e705805 + e17a0b5 commit 0e12db5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build_and_deploy_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ jobs:
distribution: 'zulu'
cache: gradle

- name: Set environment variables
run: |
echo "export REMEMBER_ME_KEY_PASSWORD=${{ secrets.REMEMBER_ME_KEY_PASSWORD }}" >> $GITHUB_ENV
echo "export REMEMBER_ME_KEYSTORE_PASSWORD=${{ secrets.E_COMMERCE_KEY_STORE_PASSWORD }}" >> $GITHUB_ENV
- name: Decrypt Keystore File
env:
RELEASE_KEYSTORE_PHRASE: ${{ secrets.REMEMBER_RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_FILE: ${{ secrets.KEYSTORE_FILE }}
run: |
mkdir keys
echo "$REMEMBER_RELEASE_KEYSTORE" > keys/keystore.jks.asc
echo "$RELEASE_KEYSTORE_PHRASE" > keystore_passphrase.txt
gpg -d --passphrase-file=keystore_passphrase.txt --batch keys/keystore.jks.asc > keys/keystore.jks
- name: Cache Gradle packages
uses: actions/cache@v2
with:
Expand Down
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/
app/release/
app/release/baselineProfiles/

# Gradle files
.gradle/
Expand Down Expand Up @@ -67,8 +68,9 @@ captures/

# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore
*.jks
*.keystore
/keys/

# External native build folder generated in Android Studio 2.2 and later
.cxx/
Expand Down
13 changes: 13 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ plugins {
}

android {
signingConfigs {

create("release") {
storeFile = file("$projectDir/keys/keystore.jks")
storePassword = System.getenv("REMEMBER_ME_KEYSTORE_PASSWORD")
keyAlias = System.getenv("REMEMBER_ME_KEYSTORE_ALIAS")
keyPassword = System.getenv("REMEMBER_ME_KEY_PASSWORD")
}
}
namespace = "com.example.rememberme"
compileSdk = 34

Expand All @@ -35,10 +44,14 @@ android {
"proguard-rules.pro"
)
isDebuggable = false
multiDexEnabled = true
signingConfig = signingConfigs.getByName("release")
}
debug {
isMinifyEnabled = false
isDebuggable = true
multiDexEnabled = true
signingConfig = signingConfigs.getByName("debug")
}
}
compileOptions {
Expand Down

0 comments on commit 0e12db5

Please sign in to comment.