Skip to content

Commit ae9922a

Browse files
authored
Merge pull request #6136 from vector-im/feature/adm/foss-avoid-gms-location-provider
Excluding the gms play-service-location from maplibre for fdroid builds
2 parents e1dde0c + bec7226 commit ae9922a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

changelog.d/6100.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Excludes transitive optional non FOSS google location dependency from fdroid builds

dependencies.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ ext.libs = [
110110
'mavericks' : "com.airbnb.android:mavericks:$mavericks",
111111
'mavericksTesting' : "com.airbnb.android:mavericks-testing:$mavericks"
112112
],
113+
maplibre : [
114+
'androidSdk' : "org.maplibre.gl:android-sdk:9.5.2",
115+
'pluginAnnotation' : "org.maplibre.gl:android-plugin-annotation-v9:1.0.0"
116+
],
113117
mockk : [
114118
'mockk' : "io.mockk:mockk:$mockk",
115119
'mockkAndroid' : "io.mockk:mockk-android:$mockk"

vector/build.gradle

+8-3
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,14 @@ dependencies {
507507
implementation 'commons-codec:commons-codec:1.15'
508508

509509
// MapTiler
510-
implementation 'org.maplibre.gl:android-sdk:9.5.2'
511-
implementation 'org.maplibre.gl:android-plugin-annotation-v9:1.0.0'
512-
510+
fdroidImplementation(libs.maplibre.androidSdk) {
511+
exclude group: 'com.google.android.gms', module: 'play-services-location'
512+
}
513+
fdroidImplementation(libs.maplibre.pluginAnnotation) {
514+
exclude group: 'com.google.android.gms', module: 'play-services-location'
515+
}
516+
gplayImplementation libs.maplibre.androidSdk
517+
gplayImplementation libs.maplibre.pluginAnnotation
513518

514519
// TESTS
515520
testImplementation libs.tests.junit

0 commit comments

Comments
 (0)