Skip to content

Commit e65d41f

Browse files
authored
Merge pull request #164 from Q42/Template.Android-161-99-merge
Cleanup github actions
2 parents 7afa027 + f32bd6c commit e65d41f

File tree

5 files changed

+24
-39
lines changed

5 files changed

+24
-39
lines changed

.github/workflows/_prepare-all.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/_prepare-release.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/firebase-app-distribution.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
app: ${{ secrets.FIREBASE_PROD_APP_ID }}
4646
credentials: ${{ secrets.FIREBASE_CREDENTIALS }}
4747
# 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.
48-
releaseNotes: Release build for ${{ github.ref_name }} branch - Run ${{ github.run_number }} - ${{ github.sha }}
48+
release-notes: Release build for ${{ github.ref_name }} branch - Run ${{ github.run_number }} - ${{ github.sha }}
4949

5050
- name: Build Prod Release Bundle
5151
run: ./gradlew bundleProdRelease --stacktrace

README.MD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ To change this to your own firebase project, you need to set two secrets:
119119
- `FIREBASE_CREDENTIALS` from your firebase project. More info how to obtain it can be found
120120
in [creating a service account](https://github.com/nickwph/firebase-app-distribution-action?tab=readme-ov-file#download-credentials-from-firebase).
121121

122-
With the default configuration, all commits on develop will be pushed to Firebase App Distribution
123-
and users in the test group "beta-testers" will receive an email with a link to download the
124-
app.
122+
With the default configuration, all commits on develop will be pushed to Firebase App Distribution.
123+
To also make these available to a test group, you can enable the `groups` parameter in the
124+
[firebase yml](.github/workflows/firebase-app-distribution.yml) file.
125125

126126
#### Self-hosted runner
127127

app/build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,23 @@ dependencies {
9494
api platform(libs.firebaseBoM)
9595
implementation(libs.firebaseCrashlytics)
9696
}
97+
98+
tasks.register("checkSigningConfig") {
99+
doFirst {
100+
def cfg = android.signingConfigs.upload
101+
if(!cfg.storeFile?.exists()) {
102+
throw new GradleException("Keystore file for Signing config 'upload' is not found.")
103+
}
104+
else if (
105+
!cfg.storePassword ||
106+
!cfg.keyAlias ||
107+
!cfg.keyPassword) {
108+
throw new GradleException("Signing config 'upload' is missing values for release build.")
109+
}
110+
}
111+
}
112+
113+
// Attach checkSigningConfig to all release variant preBuild tasks
114+
tasks.matching { it.name =~ /assemble.*Release/ }.configureEach { task ->
115+
task.dependsOn("checkSigningConfig")
116+
}

0 commit comments

Comments
 (0)