Skip to content

Commit 3a909c5

Browse files
authored
fix(android): rewrite offline managar to be in sync with ios (#2754)
feat(android): upgrad mapbox maps android to 10.12.1
1 parent 97459e2 commit 3a909c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1171
-775
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const styles = StyleSheet.create({
225225

226226
### Misc
227227

228-
- [MapboxGL](/docs/MapboxGL.md)
228+
- [Mapbox](/docs/MapboxGL.md)
229229
- [CustomHttpHeaders](/docs/CustomHttpHeaders.md)
230230
- [Logger](/docs/Logger.md)
231231

android/rctmgl/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
def defaultMapboxMapsImpl = "maplibre"
2-
def defaultMapboxMapsVersion = "10.12.0"
2+
def defaultMapboxMapsVersion = "10.12.1"
33

44
def safeExtGet(prop, fallback) {
55
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback

android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLModule.kt

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ class RCTMGLModule(private val mReactContext: ReactApplicationContext) : ReactCo
8787

8888
// offline region download states
8989
val offlinePackDownloadStates: MutableMap<String, String> = HashMap()
90-
offlinePackDownloadStates["Inactive"] = RCTMGLOfflineModule.INACTIVE_REGION_DOWNLOAD_STATE
91-
offlinePackDownloadStates["Active"] = RCTMGLOfflineModule.ACTIVE_REGION_DOWNLOAD_STATE
92-
offlinePackDownloadStates["Complete"] = RCTMGLOfflineModule.COMPLETE_REGION_DOWNLOAD_STATE
90+
offlinePackDownloadStates["Inactive"] = TileRegionPackState.INACTIVE.rawValue
91+
offlinePackDownloadStates["Active"] = TileRegionPackState.ACTIVE.rawValue
92+
offlinePackDownloadStates["Complete"] = TileRegionPackState.COMPLETE.rawValue
93+
offlinePackDownloadStates["Unknown"] = TileRegionPackState.UNKNOWN.rawValue
9394

9495
// offline module callback names
9596
val offlineModuleCallbackNames: MutableMap<String, String> = HashMap()

0 commit comments

Comments
 (0)