@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,88 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1530"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
- BuildableName = "BasicApp.app"
19
- BlueprintName = "BasicApp"
20
- ReferencedContainer = "container:BasicApp.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- <TestableReference
32
- skipped = "NO">
33
- <BuildableReference
34
- BuildableIdentifier = "primary"
35
- BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
- BuildableName = "BasicAppTests.xctest"
37
- BlueprintName = "BasicAppTests"
38
- ReferencedContainer = "container:BasicApp.xcodeproj">
39
- </BuildableReference>
40
- </TestableReference>
41
- </Testables>
42
- </TestAction>
43
- <LaunchAction
44
- buildConfiguration = "Debug"
45
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
- launchStyle = "0"
48
- useCustomWorkingDirectory = "NO"
49
- ignoresPersistentStateOnLaunch = "NO"
50
- debugDocumentVersioning = "YES"
51
- debugServiceExtension = "internal"
52
- allowLocationSimulation = "YES">
53
- <BuildableProductRunnable
54
- runnableDebuggingMode = "0">
55
- <BuildableReference
56
- BuildableIdentifier = "primary"
57
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58
- BuildableName = "BasicApp.app"
59
- BlueprintName = "BasicApp"
60
- ReferencedContainer = "container:BasicApp.xcodeproj">
61
- </BuildableReference>
62
- </BuildableProductRunnable>
63
- </LaunchAction>
64
- <ProfileAction
65
- buildConfiguration = "Release"
66
- shouldUseLaunchSchemeArgsEnv = "YES"
67
- savedToolIdentifier = ""
68
- useCustomWorkingDirectory = "NO"
69
- debugDocumentVersioning = "YES">
70
- <BuildableProductRunnable
71
- runnableDebuggingMode = "0">
72
- <BuildableReference
73
- BuildableIdentifier = "primary"
74
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75
- BuildableName = "BasicApp.app"
76
- BlueprintName = "BasicApp"
77
- ReferencedContainer = "container:BasicApp.xcodeproj">
78
- </BuildableReference>
79
- </BuildableProductRunnable>
80
- </ProfileAction>
81
- <AnalyzeAction
82
- buildConfiguration = "Debug">
83
- </AnalyzeAction>
84
- <ArchiveAction
85
- buildConfiguration = "Release"
86
- revealArchiveInOrganizer = "YES">
87
- </ArchiveAction>
88
- </Scheme>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "group:BasicApp.xcodeproj">
6
- </FileRef>
7
- <FileRef
8
- location = "group:Pods/Pods.xcodeproj">
9
- </FileRef>
10
- </Workspace>
@@ -1,8 +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>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>
@@ -1,65 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
- #import <XCTest/XCTest.h>
3
-
4
- #import <React/RCTLog.h>
5
- #import <React/RCTRootView.h>
6
-
7
- #define TIMEOUT_SECONDS 600
8
- #define TEXT_TO_LOOK_FOR @"Welcome to React"
9
-
10
- @interface BasicAppTests : XCTestCase
11
-
12
- @end
13
-
14
- @implementation BasicAppTests
15
-
16
- - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
17
- {
18
- if (test(view)) {
19
- return YES;
20
- }
21
- for (UIView *subview in [view subviews]) {
22
- if ([self findSubviewInView:subview matching:test]) {
23
- return YES;
24
- }
25
- }
26
- return NO;
27
- }
28
-
29
- - (void)testRendersWelcomeScreen
30
- {
31
- UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32
- NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33
- BOOL foundElement = NO;
34
-
35
- __block NSString *redboxError = nil;
36
- #ifdef DEBUG
37
- RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
38
- if (level >= RCTLogLevelError) {
39
- redboxError = message;
40
- }
41
- });
42
- #endif
43
-
44
- while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
45
- [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
46
- [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47
-
48
- foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
49
- if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
50
- return YES;
51
- }
52
- return NO;
53
- }];
54
- }
55
-
56
- #ifdef DEBUG
57
- RCTSetLogFunction(RCTDefaultLogFunction);
58
- #endif
59
-
60
- XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
61
- XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
62
- }
63
-
64
-
65
- @end
@@ -1,24 +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>CFBundleExecutable</key>
8
- <string>$(EXECUTABLE_NAME)</string>
9
- <key>CFBundleIdentifier</key>
10
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
- <key>CFBundleInfoDictionaryVersion</key>
12
- <string>6.0</string>
13
- <key>CFBundleName</key>
14
- <string>$(PRODUCT_NAME)</string>
15
- <key>CFBundlePackageType</key>
16
- <string>BNDL</string>
17
- <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
19
- <key>CFBundleSignature</key>
20
- <string>????</string>
21
- <key>CFBundleVersion</key>
22
- <string>1</string>
23
- </dict>
24
- </plist>
@@ -1,8 +0,0 @@
1
- //
2
- // BridgeHeader.swift
3
- // BasicApp
4
- //
5
- // Created by Jorge Quevedo on 1/19/22.
6
- //
7
-
8
- import Foundation
@@ -1,67 +0,0 @@
1
- pre_install do |installer|
2
- $RNMBNAV.pre_install(installer)
3
- # any other pre install hooks here
4
- end
5
-
6
- # Resolve react_native_pods.rb with node to allow for hoisting
7
- require Pod::Executable.execute_command('node', ['-p',
8
- 'require.resolve(
9
- "react-native/scripts/react_native_pods.rb",
10
- {paths: [process.argv[1]]},
11
- )', __dir__]).strip
12
-
13
- platform :ios, min_ios_version_supported
14
- prepare_react_native_project!
15
-
16
- # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
17
- # because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
18
- #
19
- # To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
20
- # ```js
21
- # module.exports = {
22
- # dependencies: {
23
- # ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
24
- # ```
25
- flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled(["Debug"])
26
- # flipper_config = FlipperConfiguration.disabled
27
-
28
- linkage = ENV['USE_FRAMEWORKS']
29
- if linkage != nil
30
- Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
31
- use_frameworks! :linkage => linkage.to_sym
32
- end
33
-
34
- target 'BasicApp' do
35
- config = use_native_modules!
36
-
37
- use_react_native!(
38
- :path => config[:reactNativePath],
39
- # Enables Flipper.
40
- #
41
- # Note that if you have use_frameworks! enabled, Flipper will not work and
42
- # you should disable the next line.
43
- :flipper_configuration => flipper_config,
44
- # An absolute path to your application root.
45
- :app_path => "#{Pod::Config.instance.installation_root}/.."
46
- )
47
-
48
- target 'BasicAppTests' do
49
- inherit! :complete
50
- # Pods for testing
51
- end
52
-
53
- post_install do |installer|
54
- # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
55
- $RNMBNAV.post_install(installer)
56
- react_native_post_install(
57
- installer,
58
- config[:reactNativePath],
59
- :mac_catalyst_enabled => false
60
- )
61
- installer.pods_project.targets.each do |target|
62
- target.build_configurations.each do |config|
63
- config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
64
- end
65
- end
66
- end
67
- end