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

fix: plugin remove obsolete gradle.properties #621

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

KiwiKilian
Copy link
Collaborator

@KiwiKilian KiwiKilian commented Jan 18, 2025

Previously the Expo plugin would have not remove a property, when removing it from app.json or app.config.{js,ts}. It only overwrote duplicates. This should not be the case, as it would leave artifacts within the generated gradle.properties, making the plugins output for Android non-deterministic. For example the broken behavior previously:

  1. Set locationEngine: "google" in app.config.ts
  2. Run expo prebuild
    This will add org.maplibre.reactnative.locationEngine=google to gradle.properties
  3. Remove locationEngine: "google" in app.config.ts again
  4. Run expo prebuild
    org.maplibre.reactnative.locationEngine=google will still be in gradle.properties

Now all old properties from MLRN are removed and only the current plugin props are applied.

@KiwiKilian KiwiKilian requested a review from tyrauber January 18, 2025 23:22
Copy link
Collaborator

@tyrauber tyrauber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love build tests! Thanks!

@KiwiKilian KiwiKilian merged commit 31bf300 into maplibre:main Jan 21, 2025
13 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 21, 2025
## [10.0.1](v10.0.0...v10.0.1) (2025-01-21)

### Bug Fixes

* plugin remove obsolete `gradle.properties` ([#621](#621)) ([31bf300](31bf300))
Copy link

🎉 This PR is included in version 10.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@KiwiKilian KiwiKilian deleted the fix/remove-old-gradle-properties branch January 21, 2025 06:32
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.

2 participants