-
Notifications
You must be signed in to change notification settings - Fork 6
RU-T47 Trying to fix android permission issue. #228
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
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| /** | ||
| * Native (iOS/Android) implementation of map components using @rnmapbox/maps | ||
| * Metro bundler resolves this file on native platforms via the .native extension. | ||
| */ | ||
| import Mapbox from '@rnmapbox/maps'; | ||
|
|
||
| // Re-export all Mapbox components for native platforms | ||
| export const MapView = Mapbox.MapView; | ||
| export const Camera = Mapbox.Camera; | ||
| export const PointAnnotation = Mapbox.PointAnnotation; | ||
| export const UserLocation = Mapbox.UserLocation; | ||
| export const MarkerView = Mapbox.MarkerView; | ||
| export const ShapeSource = Mapbox.ShapeSource; | ||
| export const SymbolLayer = Mapbox.SymbolLayer; | ||
| export const CircleLayer = Mapbox.CircleLayer; | ||
| export const LineLayer = Mapbox.LineLayer; | ||
| export const FillLayer = Mapbox.FillLayer; | ||
| export const Images = Mapbox.Images; | ||
| export const Callout = Mapbox.Callout; | ||
|
|
||
| // Export style URL constants | ||
| export const StyleURL = Mapbox.StyleURL; | ||
|
|
||
| // Export UserTrackingMode | ||
| export const UserTrackingMode = Mapbox.UserTrackingMode; | ||
|
|
||
| // Export setAccessToken | ||
| export const setAccessToken = Mapbox.setAccessToken; | ||
|
|
||
| // Default export matching Mapbox structure with all properties | ||
| const MapboxExports = { | ||
| MapView: Mapbox.MapView, | ||
| Camera: Mapbox.Camera, | ||
| PointAnnotation: Mapbox.PointAnnotation, | ||
| UserLocation: Mapbox.UserLocation, | ||
| MarkerView: Mapbox.MarkerView, | ||
| ShapeSource: Mapbox.ShapeSource, | ||
| SymbolLayer: Mapbox.SymbolLayer, | ||
| CircleLayer: Mapbox.CircleLayer, | ||
| LineLayer: Mapbox.LineLayer, | ||
| FillLayer: Mapbox.FillLayer, | ||
| Images: Mapbox.Images, | ||
| Callout: Mapbox.Callout, | ||
| StyleURL: Mapbox.StyleURL, | ||
| UserTrackingMode: Mapbox.UserTrackingMode, | ||
| setAccessToken: Mapbox.setAccessToken, | ||
| }; | ||
|
|
||
| export default MapboxExports; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,8 @@ | ||
| /** | ||
| * Platform-aware map components | ||
| * Automatically selects native (@rnmapbox/maps) or web (mapbox-gl) implementation | ||
| * TypeScript type resolution shim for platform-specific Mapbox implementations. | ||
| * Metro resolves mapbox.native.ts on iOS/Android and mapbox.web.ts on web, | ||
| * but TypeScript needs a base file to satisfy module resolution. | ||
| * This file re-exports from the native implementation so types are available. | ||
| */ | ||
| import { Platform } from 'react-native'; | ||
|
|
||
| import * as MapboxNative from './map-view.native'; | ||
| import * as MapboxWeb from './map-view.web'; | ||
|
|
||
| // Import the platform-specific implementation | ||
| // Metro bundler will resolve to the correct file based on platform | ||
| const MapboxImpl = Platform.OS === 'web' ? MapboxWeb.default : MapboxNative.default; | ||
|
|
||
| // Re-export all components | ||
| export const MapView = MapboxImpl.MapView || MapboxImpl; | ||
| export const Camera = Platform.OS === 'web' ? MapboxWeb.Camera : MapboxNative.Camera; | ||
| export const PointAnnotation = Platform.OS === 'web' ? MapboxWeb.PointAnnotation : MapboxNative.PointAnnotation; | ||
| export const UserLocation = Platform.OS === 'web' ? MapboxWeb.UserLocation : MapboxNative.UserLocation; | ||
| export const MarkerView = Platform.OS === 'web' ? MapboxWeb.MarkerView : MapboxNative.MarkerView; | ||
| export const ShapeSource = Platform.OS === 'web' ? MapboxWeb.ShapeSource : MapboxNative.ShapeSource; | ||
| export const SymbolLayer = Platform.OS === 'web' ? MapboxWeb.SymbolLayer : MapboxNative.SymbolLayer; | ||
| export const CircleLayer = Platform.OS === 'web' ? MapboxWeb.CircleLayer : MapboxNative.CircleLayer; | ||
| export const LineLayer = Platform.OS === 'web' ? MapboxWeb.LineLayer : MapboxNative.LineLayer; | ||
| export const FillLayer = Platform.OS === 'web' ? MapboxWeb.FillLayer : MapboxNative.FillLayer; | ||
| export const Images = Platform.OS === 'web' ? MapboxWeb.Images : MapboxNative.Images; | ||
| export const Callout = Platform.OS === 'web' ? MapboxWeb.Callout : MapboxNative.Callout; | ||
|
|
||
| // Export style URL constants | ||
| export const StyleURL = Platform.OS === 'web' ? MapboxWeb.StyleURL : MapboxNative.StyleURL; | ||
|
|
||
| // Export UserTrackingMode | ||
| export const UserTrackingMode = Platform.OS === 'web' ? MapboxWeb.UserTrackingMode : MapboxNative.UserTrackingMode; | ||
|
|
||
| // Export setAccessToken | ||
| export const setAccessToken = Platform.OS === 'web' ? MapboxWeb.setAccessToken : MapboxNative.setAccessToken; | ||
|
|
||
| // Default export matching Mapbox structure with all properties | ||
| const Mapbox = { | ||
| ...MapboxImpl, | ||
| MapView: MapView, | ||
| Camera: Camera, | ||
| PointAnnotation: PointAnnotation, | ||
| UserLocation: UserLocation, | ||
| MarkerView: MarkerView, | ||
| ShapeSource: ShapeSource, | ||
| SymbolLayer: SymbolLayer, | ||
| CircleLayer: CircleLayer, | ||
| LineLayer: LineLayer, | ||
| FillLayer: FillLayer, | ||
| Images: Images, | ||
| Callout: Callout, | ||
| StyleURL: StyleURL, | ||
| UserTrackingMode: UserTrackingMode, | ||
| setAccessToken: setAccessToken, | ||
| }; | ||
|
|
||
| export default Mapbox; | ||
| export { Callout, Camera, CircleLayer, FillLayer, Images, LineLayer, MapView, MarkerView, PointAnnotation, setAccessToken, ShapeSource, StyleURL, SymbolLayer, UserLocation, UserTrackingMode } from './mapbox.native'; | ||
| export { default } from './mapbox.native'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| /** | ||
| * Web/Electron implementation of map components using mapbox-gl | ||
| * Metro bundler resolves this file on web platforms via the .web extension. | ||
| */ | ||
| import * as MapboxWeb from './map-view.web'; | ||
|
|
||
| // Re-export all components from the web implementation | ||
| export const MapView = MapboxWeb.MapView; | ||
| export const Camera = MapboxWeb.Camera; | ||
| export const PointAnnotation = MapboxWeb.PointAnnotation; | ||
| export const UserLocation = MapboxWeb.UserLocation; | ||
| export const MarkerView = MapboxWeb.MarkerView; | ||
| export const ShapeSource = MapboxWeb.ShapeSource; | ||
| export const SymbolLayer = MapboxWeb.SymbolLayer; | ||
| export const CircleLayer = MapboxWeb.CircleLayer; | ||
| export const LineLayer = MapboxWeb.LineLayer; | ||
| export const FillLayer = MapboxWeb.FillLayer; | ||
| export const Images = MapboxWeb.Images; | ||
| export const Callout = MapboxWeb.Callout; | ||
|
|
||
| // Export style URL constants | ||
| export const StyleURL = MapboxWeb.StyleURL; | ||
|
|
||
| // Export UserTrackingMode | ||
| export const UserTrackingMode = MapboxWeb.UserTrackingMode; | ||
|
|
||
| // Export setAccessToken | ||
| export const setAccessToken = MapboxWeb.setAccessToken; | ||
|
|
||
| // Default export matching Mapbox structure with all properties | ||
| const MapboxExports = { | ||
| ...MapboxWeb.default, | ||
| MapView, | ||
| Camera, | ||
| PointAnnotation, | ||
| UserLocation, | ||
| MarkerView, | ||
| ShapeSource, | ||
| SymbolLayer, | ||
| CircleLayer, | ||
| LineLayer, | ||
| FillLayer, | ||
| Images, | ||
| Callout, | ||
| StyleURL, | ||
| UserTrackingMode, | ||
| setAccessToken, | ||
| }; | ||
|
|
||
| export default MapboxExports; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.