Skip to content

Commit ef839e9

Browse files
natiginfogithub-actions[bot]
authored andcommitted
Maps SDK Android integration to build flow (#3160)
GitOrigin-RevId: d11a5a916cf734bbd7ad45236b1611bd5c5e355c
1 parent c824e91 commit ef839e9

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### License
22

3-
Mapbox Maps for Android version 11.0
3+
Mapbox Maps for Android version 11.13.0-SNAPSHOT-04-17--04-29.git-884495a
44
Mapbox Maps Android SDK
55

66
Copyright © 2021 - 2025 Mapbox, Inc. All rights reserved.
@@ -482,7 +482,7 @@ License: [The Apache Software License, Version 2.0](http://www.apache.org/licens
482482

483483
===========================================================================
484484

485-
### MapboxCoreMaps,11.12.0-beta.1,Mapbox ToS,Mapbox,https://www.mapbox.com/
485+
### MapboxCoreMaps,11.13.0-SNAPSHOT-04-17--04-29.git-884495a,Mapbox ToS,Mapbox,https://www.mapbox.com/
486486

487487
```
488488
Mapbox Core Maps version 11.0

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY: check
22
check:
33
./gradlew ktlint lint;
4-
python scripts/license-validate.py;
54
./gradlew clean dokkaHtml -Pmapbox.dokkaHtmlFlavor=release
65

76
.PHONY: test

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=11.12.0-SNAPSHOT
1+
VERSION_NAME=11.13.0-SNAPSHOT-04-17--04-29.git-884495a
22

33
# Project-wide Gradle settings.
44
# IDE (e.g. Android Studio) users:

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginJacoco = "0.8.12"
1818
pluginGradle = "7.4.2"
1919
pluginLicense = "0.9.0"
2020
pluginMapboxAccessToken = "0.4.0"
21-
pluginMapboxSdkRegistry = "1.2.5"
21+
pluginMapboxSdkRegistry = "1.3.3"
2222
pluginMapboxSdkVersions = "1.1.3"
2323
pluginMapboxNdk = "0.1.0"
2424
pluginPitest = "0.2.8"
@@ -35,8 +35,8 @@ japicmp = "0.4.1"
3535
# Dependencies
3636

3737
# GlNative and Common are used by the convention plugin
38-
mapboxGlNative = "11.12.0-beta.1"
39-
mapboxCommon = "24.12.0-beta.1"
38+
mapboxGlNative = "11.13.0-SNAPSHOT-04-17--04-29.git-884495a"
39+
mapboxCommon = "24.13.0-SNAPSHOT-04-17--04-29.git-884495a"
4040

4141
mapboxBase = "0.11.0"
4242
mapboxGestures = "0.8.0"

mapbox-convention-plugin/src/main/kotlin/com/mapbox/maps/gradle/plugins/internal/GradleExt.kt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,18 @@ internal fun <T> ListProperty<T>.setDisallowChanges(value: List<T>?) {
3636
*/
3737
internal fun Project.appendNdkIfNeeded(value: String): String {
3838
val ndkMajor: String? = project.findProperty("ndkMajor")?.toString()
39-
return if (ndkMajor != null) {
39+
return if (ndkMajor != null && ndkMajor != findDefaultNdkMajor()) {
4040
"$value-ndk$ndkMajor"
4141
} else {
4242
value
4343
}
44-
}
44+
}
45+
46+
/**
47+
* @return the `defaultNdkMajor` version defined `projects/common/platform/android/gradle/libs.versions.toml`.
48+
*/
49+
private fun Project.findDefaultNdkMajor(): String =
50+
getVersionCatalog().findVersion("defaultNdkMajor").get().toString()
51+
52+
private fun Project.getVersionCatalog() =
53+
extensions.getByType(VersionCatalogsExtension::class.java).named("commonLibs")

0 commit comments

Comments
 (0)