@@ -47,6 +47,8 @@ val selectableVariants = listOf(
47
47
" playProdBenchmark" ,
48
48
" playProdInstrumentation" ,
49
49
" playProdRelease" ,
50
+ " playFossProdRelease" ,
51
+ " playGmsProdRelease" ,
50
52
" playStagingDebug" ,
51
53
" playStagingCanary" ,
52
54
" playStagingSpinner" ,
@@ -88,7 +90,7 @@ android {
88
90
buildToolsVersion = signalBuildToolsVersion
89
91
compileSdkVersion = signalCompileSdkVersion
90
92
91
- flavorDimensions + = listOf (" distribution" , " environment" )
93
+ flavorDimensions + = listOf (" distribution" , " gms " , " environment" )
92
94
useLibrary(" org.apache.http.legacy" )
93
95
testBuildType = " instrumentation"
94
96
@@ -356,6 +358,17 @@ android {
356
358
buildConfigField(" String" , " BUILD_DISTRIBUTION_TYPE" , " \" nightly\" " )
357
359
}
358
360
361
+ create(" gms" ) {
362
+ dimension = " gms"
363
+ isDefault = true
364
+ buildConfigField(" boolean" , " USE_OSM" , " false" )
365
+ }
366
+
367
+ create(" foss" ) {
368
+ dimension = " gms"
369
+ buildConfigField(" boolean" , " USE_OSM" , " true" )
370
+ }
371
+
359
372
create(" prod" ) {
360
373
dimension = " environment"
361
374
@@ -509,13 +522,15 @@ dependencies {
509
522
implementation(libs.androidx.profileinstaller)
510
523
implementation(libs.androidx.asynclayoutinflater)
511
524
implementation(libs.androidx.asynclayoutinflater.appcompat)
512
- implementation (libs.firebase.messaging) {
525
+ " gmsImplementation " (libs.firebase.messaging) {
513
526
exclude(group = " com.google.firebase" , module = " firebase-core" )
514
527
exclude(group = " com.google.firebase" , module = " firebase-analytics" )
515
528
exclude(group = " com.google.firebase" , module = " firebase-measurement-connector" )
516
529
}
517
- implementation(libs.google.play.services.maps)
518
- implementation(libs.google.play.services.auth)
530
+ " gmsImplementation" (libs.google.play.services.maps)
531
+ " gmsImplementation" (libs.google.play.services.auth)
532
+ " fossImplementation" (project(" :libfakegms" ))
533
+ " fossImplementation" (libs.osmdroid)
519
534
implementation(libs.bundles.media3)
520
535
implementation(libs.conscrypt.android)
521
536
implementation(libs.signal.aesgcmprovider)
0 commit comments