8000 Update for React Native 0.78+ Compatibility: Enforce Stricter Kotlin Checks & Migrate to setViewTreeLifecycleOwner API V2 by mfazekas · Pull Request #3855 · rnmapbox/maps · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update for React Native 0.78+ Compatibility: Enforce Stricter Kotlin Checks & Migrate to setViewTreeLifecycleOwner API V2 #3855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
May 26, 2025

Conversation

mfazekas
Copy link
Contributor
@mfazekas mfazekas commented May 22, 2025

Description

To test you can add this to package.json

"@rnmapbox/maps": "rnmapbox/maps#Magnus-V-main"

See: #3844
Closes: #3844

@mfazekas
Copy link
Contributor Author
mfazekas commented May 23, 2025

So this works fine on an Expo SDK 53 project, but won't work on Expo SDK 52. I'm looking into making it more compatible across versions.

To test you can add this to package.json

"@rnmapbox/maps": "rnmapbox/maps#Magnus-V-main"

@LDMFD
Copy link
LDMFD commented May 26, 2025

This was briefly working for me last night but since this morning it's failing again:

> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.mapbox.maps:android:10.18.4.
     Searched in the following locations:
       - file:/Users/darren/dev/p/ski/expo/node_modules/react-native/android/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
       - https://dl.google.com/dl/android/maven2/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
       - https://repo.maven.apache.org/maven2/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
       - https://www.jitpack.io/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
       - https://oss.sonatype.org/content/repositories/snapshots/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
     Required by:
         project :app > project :rnmapbox_maps
   > Could not find com.mapbox.mapboxsdk:mapbox-sdk-turf:6.11.0.
     Searched in the following locations:
       - file:/Users/darren/dev/p/ski/expo/node_modules/react-native/android/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
       - https://dl.google.com/dl/android/maven2/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
       - https://repo.maven.apache.org/maven2/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
       - https://www.jitpack.io/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
       - https://oss.sonatype.org/content/repositories/snapshots/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
     Required by:
         project :app > project :rnmapbox_maps

Any ideas?

This is an Expo native app. o3 suggested (so don't blame me if it's way off) that Expo 53 bumps the tool-chain to React-Native 0.79 and Kotlin 2.0, whereas @rnmapbox/maps version 10.1.38 was built for Kotlin 1.9 and older. This branch fixes rnmapbox for Kotlin 2.0?

@mfazekas mfazekas merged commit bf7a2f0 into main May 26, 2025
11 checks passed
@mfazekas mfazekas deleted the Magnus-V-main branch May 26, 2025 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0