Skip to content

Commit 4b5b53e

Browse files
committed
APP: Added google-services + debug build action update.
1 parent 01d4e48 commit 4b5b53e

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

.github/workflows/bits&bytes_demo_debug.yml renamed to .github/workflows/bits&bytes_develop_debug.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Bits & Bytes demo/variant debug Build
1+
name: Build Bits & Bytes demo/variant debug Build (Develop)
22

33
on:
44
push:
@@ -46,6 +46,14 @@ jobs:
4646
run: |
4747
sed -i 's|<string name="com.sap.cxcdc.apikey">.*</string>|<string name="com.sap.cxcdc.apikey">${{ secrets.BITS_N_BYTES_DEMO_API_KEY }}</string>|' app/src/main/res/values/strings.xml
4848
49+
- name: Create file for google-services.json
50+
run: cat app/google-services.json | base64
51+
52+
- name: Populate google-services.json
53+
env:
54+
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
55+
run: echo $DATA > app/google-services.json
56+
4957
- name: Build Debug APK
5058
run: ./gradlew assembleDebug
5159

@@ -56,13 +64,13 @@ jobs:
5664
run: mv app/build/outputs/apk/variant/debug/app-variant-debug.apk app/build/outputs/apk/variant/debug/bits-n-bytes-app-variant-debug.apk
5765

5866
- name: Upload APK
59-
uses: actions/upload-artifact@v3
67+
uses: actions/upload-artifact@v4
6068
with:
61-
name: debug-apk
69+
name: demo-debug-apk
6270
path: app/build/outputs/apk/demo/debug/bits-n-bytes-app-demo-debug.apk
6371

6472
- name: Upload Variant APK
65-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
6674
with:
6775
name: variant-debug-apk
6876
path: app/build/outputs/apk/variant/debug/bits-n-bytes-app-variant-debug.apk

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,6 @@ The `detachBridgeFrom()` method is called to detach the `WebBridgeJS` instance f
270270
webBridgeJS.detachBridgeFrom(webView)
271271

272272

273-
274-
275-
276-
277273
# Support, Feedback, Contributing
278274

279275
This project is open to feature requests/suggestions, bug reports, etc. via \[GitHub issues\]([https://github.com/SAP/sap-customer-data-cloud-sdk-for-android/issues](https://github.com/SAP/sap-customer-data-cloud-sdk-for-android/issues) ). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, and additional contribution information, see our \[Contribution Guidelines\]([CONTRIBUTING.md](http://CONTRIBUTING.md) ).

app/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
alias(libs.plugins.kotlin.android)
44
alias(libs.plugins.kotlin.compose)
55
alias(libs.plugins.kotlin.serialization)
6+
alias(libs.plugins.google.services)
67
}
78

89
android {
@@ -136,4 +137,6 @@ dependencies {
136137
implementation(libs.bundles.credentials)
137138
implementation(libs.googleid)
138139

140+
implementation(libs.firebase.bom)
141+
139142
}

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ plugins {
66
alias(libs.plugins.kotlin.compose) apply false
77
alias(libs.plugins.kotlin.serialization) apply false
88
alias(libs.plugins.kotlin.parcelize) apply false
9+
alias(libs.plugins.google.services) apply false
910
}
1011

1112

gradle/libs.versions.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[versions]
22
browser = "1.8.0"
3+
firebaseBom = "33.7.0"
34
kotlin = "2.0.0"
45
android = "8.6.1"
56
ktx = "1.15.0"
@@ -25,6 +26,7 @@ material3 = "1.3.1"
2526
facebookLogin = "latest.release"
2627
googleid = "1.1.1"
2728
wechatSdkAndroidWithoutMta = "6.8.0"
29+
googleServices = "4.4.2"
2830

2931
espressoCore = "3.6.1"
3032
junit = "4.13.2"
@@ -36,6 +38,7 @@ androidx-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "ktx"
3638
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
3739
androidx-core-splashscreen = { group = "androidx.core", name = "core-splashscreen", version.ref = "coreSplashscreen" }
3840

41+
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebaseBom" }
3942
material = { module = "com.google.android.material:material", version.ref = "material" }
4043
androidx-material-icons-extended = { module = "androidx.compose.material:material-icons-extended", version.ref = "materialIconsExtended" }
4144

@@ -87,6 +90,7 @@ kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
8790
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
8891
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
8992
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
93+
google-services = { id = "com.google.gms.google-services", version.ref = "googleServices" }
9094

9195

9296
[bundles]

0 commit comments

Comments
 (0)