Skip to content

feat: make Mapbox SDK authentication optional#4012

Merged
mfazekas merged 5 commits intomainfrom
feat/remove-mapbox-auth-requirement
Oct 5, 2025
Merged

feat: make Mapbox SDK authentication optional#4012
mfazekas merged 5 commits intomainfrom
feat/remove-mapbox-auth-requirement

Conversation

@mfazekas
Copy link
Contributor

@mfazekas mfazekas commented Oct 5, 2025

Summary

• Remove mandatory authentication requirement for Mapbox SDK downloads
• Align with Mapbox's removal of download token requirements
• Make authentication optional for backward compatibility

Changes

  • Android: Make MAPBOX_DOWNLOADS_TOKEN optional in build.gradle and CI workflows
  • iOS: Remove .netrc setup from CI workflows
  • Expo Plugin: Update withMapbox.ts to make authentication optional
  • Documentation: Update installation docs to reflect optional authentication

Technical Details

  • Modified example/android/build.gradle to conditionally set authentication only if token is provided
  • Updated CI workflows to make MAPBOX_DOWNLOAD_TOKEN optional (required: false)
  • Removed .netrc setup step from iOS CI workflow
  • Updated both source and built Expo plugin files
  • Modified Android installation documentation

Test plan

  • Android build works without authentication tokens
  • CI workflows updated to handle optional tokens
  • Backward compatibility maintained for existing setups
  • Documentation updated to reflect changes

References:

🤖 Generated with Claude Code

mfazekas and others added 5 commits October 5, 2025 15:14
• Remove mandatory authentication requirement for Mapbox SDK downloads
• Update build.gradle files to make MAPBOX_DOWNLOADS_TOKEN optional
• Remove .netrc setup from iOS CI workflow
• Make gradle.properties setup optional in Android CI workflow
• Update Expo plugin to make authentication optional
• Update documentation to reflect optional authentication

This change aligns with Mapbox's removal of download token requirements
as mentioned in: mapbox/mapbox-maps-flutter#775

The authentication is kept optional for backward compatibility.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
• Remove all MAPBOX_DOWNLOAD_TOKEN related steps from Android and iOS CI workflows
• Remove download token secrets from workflow definitions
• Remove explanatory comments since they're no longer needed
• Clean up CI to be simpler since authentication is no longer required

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
…steps

• Remove complex authentication setup from Android installation guide
• Remove authentication setup from iOS installation guide
• Add simple note explaining Mapbox removed auth requirement
• Simplify maven repo configuration to just URL
• Make documentation more user-friendly and easier to follow

This reflects the new reality that Mapbox SDK downloads no longer require
authentication tokens, making the setup process much simpler for developers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove ENV_MAPBOX_ACCESS_TOKEN and use MAPBOX_ACCESS_TOKEN directly
- This matches the secret expected by ci-requiring-tokens workflow
- Remove unnecessary ENV_MAPBOX_DOWNLOAD_TOKEN secret

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@mfazekas mfazekas force-pushed the feat/remove-mapbox-auth-requirement branch from accfac2 to ce4e9ea Compare October 5, 2025 14:39
@mfazekas mfazekas merged commit 738e7ab into main Oct 5, 2025
11 checks passed
@mfazekas mfazekas deleted the feat/remove-mapbox-auth-requirement branch October 5, 2025 15:15
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