You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info.
runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info.
@@ -22,12 +27,13 @@ jobs:
22
27
run: |
23
28
echo $ENCODED_STRING > keystore-b64.txt
24
29
base64 -d <keystore-b64.txt >upload-keystore.jks
30
+
# The secrets.gradle file that is stored as text, does not need to be decoded
31
+
# and can be directly written to a file
32
+
# This file is used by the gradle build to sign the APK
# groups: "beta-testers" // add this line if you want to specify a group of testers which will be invited to test this build. Make sure to create the group in Firebase Console first.
47
-
releaseNotes: Release build for ${{ github.ref_name }} branch - Run ${{ github.run_number }} - ${{ github.sha }}
53
+
release-notes: Release build for ${{ github.ref_name }} branch - Run ${{ github.run_number }} - ${{ github.sha }}
runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info.
@@ -20,12 +25,13 @@ jobs:
20
25
run: |
21
26
echo $ENCODED_STRING > keystore-b64.txt
22
27
base64 -d <keystore-b64.txt >upload-keystore.jks
28
+
# The secrets.gradle file that is stored as text, does not need to be decoded
29
+
# and can be directly written to a file
30
+
# This file is used by the gradle build to sign the APK
Copy file name to clipboardExpand all lines: README.MD
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,12 +101,12 @@ can [generate a new keystore](https://developer.android.com/studio/publish/app-s
101
101
The above command will encode the file contents to base64 and copy it to your clipboard. Save it to
102
102
your repo's github secrets in the variable KEYSTORE_BASE_64.
103
103
104
-
Also [add these repository secrets](./settings/secrets/actions/new) in github, and store them in
105
-
your projects 1Password vault as well:
104
+
Copy the file `./dummy_secrets.gradle` to `secrets.gradle` and fill in your own keystore details.
106
105
107
-
- RELEASE_KEYSTORE_PASSWORD ('firstpass' for this template)
108
-
- RELEASE_KEYSTORE_ALIAS ('template' for this template)
109
-
- RELEASE_KEY_PASSWORD ('secondpass' for this template)
106
+
Add the content of secrets.gradle to your Github repository secrets as well, as
107
+
`SECRETS_GRADLE`. You can simply copy the content of the file to the github secret, no encoding needed.
108
+
109
+
Also add the `upload-keystore.jks` file and `secrets.gradle` to 1password. This is important because the secrets cannot be read by any user in github, only by the CI system.
110
110
111
111
#### Firebase app distribution
112
112
@@ -120,9 +120,9 @@ To change this to your own firebase project, you need to set two secrets:
120
120
-`FIREBASE_CREDENTIALS` from your firebase project. More info how to obtain it can be found
121
121
in [creating a service account](https://github.com/nickwph/firebase-app-distribution-action?tab=readme-ov-file#download-credentials-from-firebase).
122
122
123
-
With the default configuration, all commits on develop will be pushed to Firebase App Distribution
124
-
and users in the test group "beta-testers" will receive an email with a link to download the
125
-
app.
123
+
With the default configuration, all commits on develop will be pushed to Firebase App Distribution.
124
+
To also make these available to a test group, you can enable the `groups` parameter in the
Copy file name to clipboardExpand all lines: app/build.gradle
+38-3Lines changed: 38 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,13 @@ plugins {
5
5
alias libs.plugins.compose.compiler
6
6
}
7
7
8
+
if (file("$rootDir/secrets.gradle").exists()) {
9
+
apply from: "$rootDir/secrets.gradle"
10
+
} else {
11
+
// Dummy secrets file for local development
12
+
println"[WARNING] Using dummy secrets file. You will only be able to create debug builds. Please create a secrets.gradle file in the project root with your signing secrets if you want to create release builds."
0 commit comments