Skip to content
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

feat: add Expo plugin props #589

Open
wants to merge 39 commits into
base: beta
Choose a base branch
from

Conversation

KiwiKilian
Copy link
Collaborator

@KiwiKilian KiwiKilian commented Jan 3, 2025

This adds quite a few props to the plugin options. It allows to set:

  • Android:
    • locationEngine
    • MapLibre Native and other dependency versions
  • iOS
    • MapLIbre Native dependency version

Basically it allows to modify the MapLibre Native version easily from the plugin for more expert use cases.

How to test

  • Expo
    • Modify the currently empty plugin options app.config.ts and prebuild and rebuild again
  • React Native
    • Android: Change packages/react-native/android/gradle.properties, for the defaults see android/gradle.properties
    • iOS
      • Add a $MLRN_NATIVE_VERSION or $MLRN_SPM_SPEC before the target block of the packages/react-native/ios/Podfile
      • It's necessary to delete all Package.resolved files and to be able to build again

# Conflicts:
#	android/build.gradle
# Conflicts:
#	src/__tests__/plugin/ios/__fixtures__/Podfile.ts
#	src/__tests__/plugin/ios/applyCocoaPodsModifications.test.ts
# Conflicts:
#	android/build.gradle
#	android/gradle.properties
#	src/__tests__/plugin/ios/__fixtures__/Podfile.ts
#	src/__tests__/plugin/ios/__snapshots__/applyPodfilePostInstall.test.ts.snap
#	src/__tests__/plugin/ios/applyPodfilePostInstall.test.ts
#	src/plugin/ios.ts
#	src/plugin/withMapLibre.ts
@KiwiKilian KiwiKilian requested a review from tyrauber January 3, 2025 22:11
@KiwiKilian
Copy link
Collaborator Author

I've now also added documentation around the available customizations.

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.

1 participant