1+ import java.io.FileNotFoundException
2+ import java.nio.file.Files
3+ import java.nio.file.StandardCopyOption
4+
15plugins {
26 alias(libs.plugins.android.application)
37 alias(libs.plugins.kotlin.android)
@@ -85,28 +89,6 @@ android {
8589 }
8690
8791 namespace = " com.sap.cdc.bitsnbytes"
88-
89- tasks.register(" updateAppKeys" ) {
90- doLast {
91- val demoApiKey = project.findProperty(" bitsNbytes_demo_apiKey" ) ? : " none"
92- val variantApiKey = project.findProperty(" bitsNbytes_variant_apKey" ) ? : " none"
93- val stringsXmlPathDemo = " src/main/res/values/strings.xml"
94- val stringsXmlPathVariant = " src/variant/res/values/strings.xml"
95- exec {
96- commandLine(" sh" , " -c" , " gsed -i \" s|<string name=\\\" com.sap.cxcdc.apikey\\\" >.*</string>|<string name=\\\" com.sap.cxcdc.apikey\\\" >$demoApiKey </string>|\" $stringsXmlPathDemo " )
97- }
98-
99- exec {
100- commandLine(" sh" , " -c" , " gsed -i \" s|<string name=\\\" com.sap.cxcdc.apikey\\\" >.*</string>|<string name=\\\" com.sap.cxcdc.apikey\\\" >$variantApiKey </string>|\" $stringsXmlPathVariant " )
101- }
102- }
103- }
104-
105- tasks.whenTaskAdded {
106- if (name == " assembleDemoDebug" || name == " assembleVariantDebug" ) {
107- dependsOn(" updateAppKeys" )
108- }
109- }
11092}
11193
11294dependencies {
@@ -137,6 +119,6 @@ dependencies {
137119 implementation(libs.bundles.credentials)
138120 implementation(libs.googleid)
139121
140- implementation(libs.firebase.bom)
122+ implementation(platform( libs.firebase.bom) )
141123
142124}
0 commit comments