Skip to content

Commit 935e3cc

Browse files
authored
Merge pull request #3 from PanktiSP13/developer
Firebase app distribution setup
2 parents 273cf65 + d00369b commit 935e3cc

7 files changed

Lines changed: 70 additions & 1 deletion

File tree

.github/workflows/buid-preprod.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
- name: Build PreProd APK
2424
run: ./gradlew assemblePreProd
2525

26+
- name: Upload to Firebase App Distribution
27+
uses: wzieba/Firebase-Distribution-Github-Action@v1
28+
with:
29+
appId: ${{ secrets.FIREBASE_APP_ID }}
30+
token: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
31+
groups: ""
32+
testers: ${{ secrets.TESTERS_EMAILS }}
33+
releaseNotes: "Latest preProd build"
34+
file: app/build/outputs/apk/preProd/app-preProd.apk
35+
2636
- name: Upload PreProd APK
2737
uses: actions/upload-artifact@v4
2838
with:

.github/workflows/build-debug.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
- name: Build Debug APK
2424
run: ./gradlew assembleDebug
2525

26+
- name: Upload to Firebase App Distribution
27+
uses: wzieba/Firebase-Distribution-Github-Action@v1
28+
with:
29+
appId: ${{ secrets.FIREBASE_APP_ID }}
30+
token: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
31+
groups: ""
32+
testers: ${{ secrets.TESTERS_EMAILS }}
33+
releaseNotes: "Latest debug build"
34+
file: app/build/outputs/apk/debug/app-debug.apk
35+
2636
- name: Upload Debug APK
2737
uses: actions/upload-artifact@v4
2838
with:

.github/workflows/build-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
- name: Build Release APK
2424
run: ./gradlew assembleRelease
2525

26+
- name: Upload to Firebase App Distribution
27+
uses: wzieba/Firebase-Distribution-Github-Action@v1
28+
with:
29+
appId: ${{ secrets.FIREBASE_APP_ID }}
30+
token: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
31+
groups: ""
32+
testers: ${{ secrets.TESTERS_EMAILS }}
33+
releaseNotes: "Latest release build"
34+
file: app/build/outputs/apk/release/app-release.apk
35+
2636
- name: Upload Release APK
2737
uses: actions/upload-artifact@v4
2838
with:

app/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ plugins {
22
alias(libs.plugins.android.application)
33
alias(libs.plugins.kotlin.android)
44
alias(libs.plugins.kotlin.compose)
5+
alias(libs.plugins.google.services)
6+
57
}
68

79
android {
@@ -75,4 +77,6 @@ dependencies {
7577
androidTestImplementation(libs.androidx.ui.test.junit4)
7678
debugImplementation(libs.androidx.ui.tooling)
7779
debugImplementation(libs.androidx.ui.test.manifest)
80+
implementation(platform(libs.firebase.bom))
81+
7882
}

app/google-services.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"project_info": {
3+
"project_number": "184869642314",
4+
"project_id": "cicd-demo-96af4",
5+
"storage_bucket": "cicd-demo-96af4.firebasestorage.app"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:184869642314:android:df86776fdfaab906f546b3",
11+
"android_client_info": {
12+
"package_name": "com.pinu.cicd"
13+
}
14+
},
15+
"oauth_client": [],
16+
"api_key": [
17+
{
18+
"current_key": "AIzaSyD64tb-d5hRmSeJk353lYBEMO5XJzDuPVM"
19+
}
20+
],
21+
"services": {
22+
"appinvite_service": {
23+
"other_platform_oauth_client": []
24+
}
25+
}
26+
}
27+
],
28+
"configuration_version": "1"
29+
}

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ plugins {
33
alias(libs.plugins.android.application) apply false
44
alias(libs.plugins.kotlin.android) apply false
55
alias(libs.plugins.kotlin.compose) apply false
6+
alias(libs.plugins.google.services) apply false
7+
8+
69
}

gradle/libs.versions.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[versions]
22
agp = "8.9.0"
3+
firebaseBom = "33.12.0"
34
kotlin = "2.0.0"
45
coreKtx = "1.15.0"
56
junit = "4.13.2"
@@ -8,9 +9,11 @@ espressoCore = "3.6.1"
89
lifecycleRuntimeKtx = "2.8.7"
910
activityCompose = "1.10.0"
1011
composeBom = "2024.04.01"
12+
google-services = "4.4.2"
1113

1214
[libraries]
1315
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
16+
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebaseBom" }
1417
junit = { group = "junit", name = "junit", version.ref = "junit" }
1518
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
1619
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
@@ -29,4 +32,4 @@ androidx-material3 = { group = "androidx.compose.material3", name = "material3"
2932
android-application = { id = "com.android.application", version.ref = "agp" }
3033
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
3134
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
32-
35+
google-services = {id = "com.google.gms.google-services" , version.ref = "google-services"}

0 commit comments

Comments
 (0)