@jadamsbit/react-native-mapbox-navigation 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/.yarn/releases/yarn-3.6.1.cjs +0 -0
  3. package/android/.classpath +6 -0
  4. package/android/.project +34 -0
  5. package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
  6. package/android/.settings/org.eclipse.jdt.core.prefs +4 -0
  7. package/android/build.gradle +1 -1
  8. package/android/gradlew +0 -0
  9. package/android/src/main/java/com/jadamsbit/mapboxnavigation/MapboxNavigationModule.kt +47 -22
  10. package/android/src/main/java/com/jadamsbit/mapboxnavigation/MapboxNavigationView.kt +268 -406
  11. package/android/src/main/res/layout/navigation_view.xml +16 -6
  12. package/package.json +2 -2
  13. package/react-native-mapbox-navigation.podspec +1 -1
  14. package/.github/actions/setup/action.yml +0 -27
  15. package/.github/workflows/ci.yml +0 -154
  16. package/example/.buckconfig +0 -6
  17. package/example/.bundle/config +0 -2
  18. package/example/.eslintrc.js +0 -4
  19. package/example/.flowconfig +0 -65
  20. package/example/.prettierrc.js +0 -7
  21. package/example/.watchmanconfig +0 -1
  22. package/example/Gemfile +0 -9
  23. package/example/NavigationComponent.js +0 -55
  24. package/example/README.md +0 -79
  25. package/example/android/app/build.gradle +0 -119
  26. package/example/android/app/debug.keystore +0 -0
  27. package/example/android/app/proguard-rules.pro +0 -10
  28. package/example/android/app/src/debug/AndroidManifest.xml +0 -9
  29. package/example/android/app/src/main/AndroidManifest.xml +0 -26
  30. package/example/android/app/src/main/java/com/mapboxnavigationexample/MainActivity.kt +0 -22
  31. package/example/android/app/src/main/java/com/mapboxnavigationexample/MainApplication.kt +0 -45
  32. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  33. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  34. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  35. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  36. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  37. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  38. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  39. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  40. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  41. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  42. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  43. package/example/android/app/src/main/res/values/strings.xml +0 -3
  44. package/example/android/app/src/main/res/values/styles.xml +0 -9
  45. package/example/android/build.gradle +0 -39
  46. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  47. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  48. package/example/android/gradle.properties +0 -46
  49. package/example/android/gradlew +0 -249
  50. package/example/android/gradlew.bat +0 -92
  51. package/example/android/settings.gradle +0 -6
  52. package/example/app.json +0 -4
  53. package/example/babel.config.js +0 -17
  54. package/example/index.js +0 -5
  55. package/example/ios/.xcode.env +0 -1
  56. package/example/ios/.xcode.env.local +0 -2
  57. package/example/ios/BasicApp/AppDelegate.h +0 -8
  58. package/example/ios/BasicApp/AppDelegate.m +0 -62
  59. package/example/ios/BasicApp/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  60. package/example/ios/BasicApp/Images.xcassets/Contents.json +0 -6
  61. package/example/ios/BasicApp/Info.plist +0 -62
  62. package/example/ios/BasicApp/LaunchScreen.storyboard +0 -47
  63. package/example/ios/BasicApp/main.m +0 -9
  64. package/example/ios/BasicApp-Bridging-Header.h +0 -4
  65. package/example/ios/BasicApp.xcodeproj/project.pbxproj +0 -716
  66. package/example/ios/BasicApp.xcodeproj/xcshareddata/xcschemes/BasicApp.xcscheme +0 -88
  67. package/example/ios/BasicApp.xcworkspace/contents.xcworkspacedata +0 -10
  68. package/example/ios/BasicApp.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  69. package/example/ios/BasicAppTests/BasicAppTests.m +0 -65
  70. package/example/ios/BasicAppTests/Info.plist +0 -24
  71. package/example/ios/BridgeHeader.swift +0 -8
  72. package/example/ios/Podfile +0 -67
  73. package/example/ios/Podfile.lock +0 -1431
  74. package/example/jest.config.js +0 -3
  75. package/example/metro.config.js +0 -45
  76. package/example/package.json +0 -28
  77. package/example/react-native.config.js +0 -10
  78. package/example/src/App.js +0 -51
  79. package/lefthook.yml +0 -35
@@ -1,62 +0,0 @@
1
- #import "AppDelegate.h"
2
-
3
- #import <React/RCTBridge.h>
4
- #import <React/RCTBundleURLProvider.h>
5
- #import <React/RCTRootView.h>
6
-
7
- #ifdef FB_SONARKIT_ENABLED
8
- #import <FlipperKit/FlipperClient.h>
9
- #import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
10
- #import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
11
- #import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
12
- #import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
13
- #import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
14
-
15
- static void InitializeFlipper(UIApplication *application) {
16
- FlipperClient *client = [FlipperClient sharedClient];
17
- SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
18
- [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
19
- [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
20
- [client addPlugin:[FlipperKitReactPlugin new]];
21
- [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
22
- [client start];
23
- }
24
- #endif
25
-
26
- @implementation AppDelegate
27
-
28
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
29
- {
30
- #ifdef FB_SONARKIT_ENABLED
31
- InitializeFlipper(application);
32
- #endif
33
-
34
- RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
35
- RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
36
- moduleName:@"BasicApp"
37
- initialProperties:nil];
38
-
39
- if (@available(iOS 13.0, *)) {
40
- rootView.backgroundColor = [UIColor systemBackgroundColor];
41
- } else {
42
- rootView.backgroundColor = [UIColor whiteColor];
43
- }
44
-
45
- self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
46
- UIViewController *rootViewController = [UIViewController new];
47
- rootViewController.view = rootView;
48
- self.window.rootViewController = rootViewController;
49
- [self.window makeKeyAndVisible];
50
- return YES;
51
- }
52
-
53
- - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
54
- {
55
- #if DEBUG
56
- return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
57
- #else
58
- return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
59
- #endif
60
- }
61
-
62
- @end
@@ -1,38 +0,0 @@
1
- {
2
- "images" : [
3
- {
4
- "idiom" : "iphone",
5
- "size" : "29x29",
6
- "scale" : "2x"
7
- },
8
- {
9
- "idiom" : "iphone",
10
- "size" : "29x29",
11
- "scale" : "3x"
12
- },
13
- {
14
- "idiom" : "iphone",
15
- "size" : "40x40",
16
- "scale" : "2x"
17
- },
18
- {
19
- "idiom" : "iphone",
20
- "size" : "40x40",
21
- "scale" : "3x"
22
- },
23
- {
24
- "idiom" : "iphone",
25
- "size" : "60x60",
26
- "scale" : "2x"
27
- },
28
- {
29
- "idiom" : "iphone",
30
- "size" : "60x60",
31
- "scale" : "3x"
32
- }
33
- ],
34
- "info" : {
35
- "version" : 1,
36
- "author" : "xcode"
37
- }
38
- }
@@ -1,6 +0,0 @@
1
- {
2
- "info" : {
3
- "version" : 1,
4
- "author" : "xcode"
5
- }
6
- }
@@ -1,62 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleDisplayName</key>
8
- <string>BasicApp</string>
9
- <key>CFBundleExecutable</key>
10
- <string>$(EXECUTABLE_NAME)</string>
11
- <key>CFBundleIdentifier</key>
12
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
- <key>CFBundleInfoDictionaryVersion</key>
14
- <string>6.0</string>
15
- <key>CFBundleName</key>
16
- <string>$(PRODUCT_NAME)</string>
17
- <key>CFBundlePackageType</key>
18
- <string>APPL</string>
19
- <key>CFBundleShortVersionString</key>
20
- <string>$(MARKETING_VERSION)</string>
21
- <key>CFBundleSignature</key>
22
- <string>????</string>
23
- <key>CFBundleVersion</key>
24
- <string>$(CURRENT_PROJECT_VERSION)</string>
25
- <key>LSRequiresIPhoneOS</key>
26
- <true/>
27
- <key>NSAppTransportSecurity</key>
28
- <dict>
29
- <key>NSAllowsArbitraryLoads</key>
30
- <false/>
31
- <key>NSAllowsLocalNetworking</key>
32
- <true/>
33
- </dict>
34
- <key>NSLocationWhenInUseUsageDescription</key>
35
- <string>Show current location on the route maps.</string>
36
- <key>UILaunchStoryboardName</key>
37
- <string>LaunchScreen</string>
38
- <key>UIRequiredDeviceCapabilities</key>
39
- <array>
40
- <string>armv7</string>
41
- </array>
42
- <key>UISupportedInterfaceOrientations</key>
43
- <array>
44
- <string>UIInterfaceOrientationPortrait</string>
45
- </array>
46
- <key>UISupportedInterfaceOrientations~ipad</key>
47
- <array>
48
- <string>UIInterfaceOrientationLandscapeLeft</string>
49
- <string>UIInterfaceOrientationLandscapeRight</string>
50
- <string>UIInterfaceOrientationPortrait</string>
51
- </array>
52
- <key>UIViewControllerBasedStatusBarAppearance</key>
53
- <false/>
54
- <key>UIBackgroundModes</key>
55
- <array>
56
- <string>audio</string>
57
- <string>location</string>
58
- </array>
59
- <key>MGLMapboxAccessToken</key>
60
- <string>pk.eyJ1IjoiYWRhbXNqYW1pZSIsImEiOiJja211enlwMXUwMGNjMm5xbjB2bjZrazBkIn0.U4IzgCKh43lsGEoeOSMT4g</string>
61
- </dict>
62
- </plist>
@@ -1,47 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
- <device id="retina4_7" orientation="portrait" appearance="light"/>
4
- <dependencies>
5
- <deployment identifier="iOS"/>
6
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
7
- <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
- <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
- </dependencies>
10
- <scenes>
11
- <!--View Controller-->
12
- <scene sceneID="EHf-IW-A2E">
13
- <objects>
14
- <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
- <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16
- <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
- <subviews>
19
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="BasicApp" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
20
- <rect key="frame" x="0.0" y="202" width="375" height="43"/>
21
- <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
22
- <nil key="highlightedColor"/>
23
- </label>
24
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
25
- <rect key="frame" x="0.0" y="626" width="375" height="21"/>
26
- <fontDescription key="fontDescription" type="system" pointSize="17"/>
27
- <nil key="highlightedColor"/>
28
- </label>
29
- </subviews>
30
- <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
31
- <constraints>
32
- <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
33
- <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
34
- <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
35
- <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
36
- <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
37
- <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
38
- </constraints>
39
- <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
40
- </view>
41
- </viewController>
42
- <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
43
- </objects>
44
- <point key="canvasLocation" x="52.173913043478265" y="375"/>
45
- </scene>
46
- </scenes>
47
- </document>
@@ -1,9 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
-
3
- #import "AppDelegate.h"
4
-
5
- int main(int argc, char * argv[]) {
6
- @autoreleasepool {
7
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8
- }
9
- }
@@ -1,4 +0,0 @@
1
- //
2
- // Use this file to import your target's public headers that you would like to expose to Swift.
3
- //
4
-