@jadamsbit/react-native-mapbox-navigation 1.0.11 → 1.0.12

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 (112) hide show
  1. package/.gitattributes +2 -0
  2. package/.github/actions/setup/action.yml +27 -0
  3. package/.github/workflows/ci.yml +154 -0
  4. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
  5. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +28 -0
  6. package/.yarn/releases/yarn-3.6.1.cjs +874 -0
  7. package/CONTRIBUTING.md +117 -6
  8. package/LICENSE +1 -2
  9. package/README.md +4 -4
  10. package/android/build.gradle +9 -5
  11. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  12. package/android/gradle/wrapper/gradle-wrapper.properties +2 -2
  13. package/android/gradle.properties +5 -3
  14. package/android/gradlew +17 -12
  15. package/android/gradlew.bat +10 -10
  16. package/android/src/main/AndroidManifest.xml +0 -1
  17. package/android/src/main/AndroidManifestNew.xml +2 -0
  18. package/android/src/main/java/com/jadamsbit/mapboxnavigation/{MapboxNavigationManager.kt → MapboxNavigationModule.kt} +30 -27
  19. package/android/src/main/java/com/jadamsbit/mapboxnavigation/MapboxNavigationPackage.kt +3 -2
  20. package/android/src/main/java/com/jadamsbit/mapboxnavigation/MapboxNavigationView.kt +11 -24
  21. package/android/src/main/res/layout/navigation_view.xml +6 -7
  22. package/example/.buckconfig +0 -0
  23. package/example/{_bundle → .bundle}/config +0 -0
  24. package/example/.eslintrc.js +1 -1
  25. package/example/.flowconfig +0 -0
  26. package/example/.prettierrc.js +2 -2
  27. package/example/.watchmanconfig +1 -1
  28. package/example/Gemfile +5 -2
  29. package/example/NavigationComponent.js +0 -1
  30. package/example/README.md +79 -0
  31. package/example/android/app/build.gradle +60 -173
  32. package/example/android/app/debug.keystore +0 -0
  33. package/example/android/app/proguard-rules.pro +0 -0
  34. package/example/android/app/src/debug/AndroidManifest.xml +1 -5
  35. package/example/android/app/src/main/AndroidManifest.xml +5 -9
  36. package/example/android/app/src/main/java/com/mapboxnavigationexample/MainActivity.kt +22 -0
  37. package/example/android/app/src/main/java/com/mapboxnavigationexample/MainApplication.kt +45 -0
  38. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +1 -1
  39. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  40. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  41. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  42. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  43. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  44. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  45. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  46. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  47. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  48. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  49. package/example/android/app/src/main/res/values/strings.xml +1 -1
  50. package/example/android/app/src/main/res/values/styles.xml +0 -0
  51. package/example/android/build.gradle +19 -35
  52. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  53. package/example/android/gradle/wrapper/gradle-wrapper.properties +3 -1
  54. package/example/android/gradle.properties +18 -7
  55. package/example/android/gradlew +173 -109
  56. package/example/android/gradlew.bat +19 -16
  57. package/example/android/settings.gradle +3 -3
  58. package/example/app.json +3 -3
  59. package/example/babel.config.js +1 -8
  60. package/example/index.js +3 -7
  61. package/example/ios/.xcode.env +1 -0
  62. package/example/ios/.xcode.env.local +2 -0
  63. package/example/ios/BasicApp/AppDelegate.h +1 -1
  64. package/example/ios/BasicApp/AppDelegate.m +1 -1
  65. package/example/ios/BasicApp/Info.plist +18 -18
  66. package/example/ios/BasicApp.xcodeproj/project.pbxproj +35 -9
  67. package/example/ios/BasicApp.xcodeproj/xcshareddata/xcschemes/BasicApp.xcscheme +1 -1
  68. package/example/ios/Podfile +48 -25
  69. package/example/ios/Podfile.lock +1257 -299
  70. package/example/jest.config.js +3 -0
  71. package/example/metro.config.js +19 -19
  72. package/example/package.json +14 -17
  73. package/example/react-native.config.js +10 -0
  74. package/example/{App.js → src/App.js} +3 -3
  75. package/package.json +1 -1
  76. package/src/__tests__/index.test.tsx +1 -0
  77. package/src/typings.ts +0 -1
  78. package/.vscode/settings.json +0 -3
  79. package/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
  80. package/android/.gradle/7.3.3/checksums/md5-checksums.bin +0 -0
  81. package/android/.gradle/7.3.3/checksums/sha1-checksums.bin +0 -0
  82. package/android/.gradle/7.3.3/dependencies-accessors/dependencies-accessors.lock +0 -0
  83. package/android/.gradle/7.3.3/dependencies-accessors/gc.properties +0 -0
  84. package/android/.gradle/7.3.3/executionHistory/executionHistory.lock +0 -0
  85. package/android/.gradle/7.3.3/fileChanges/last-build.bin +0 -0
  86. package/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
  87. package/android/.gradle/7.3.3/gc.properties +0 -0
  88. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  89. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  90. package/android/.gradle/vcs-1/gc.properties +0 -0
  91. package/android/README.md +0 -14
  92. package/dist/index.d.ts +0 -3
  93. package/dist/index.js +0 -12
  94. package/dist/typings.d.ts +0 -38
  95. package/dist/typings.js +0 -1
  96. package/example/Gemfile.lock +0 -100
  97. package/example/__tests__/App-test.js +0 -14
  98. package/example/_ruby-version +0 -1
  99. package/example/android/.gradle/8.2/checksums/checksums.lock +0 -0
  100. package/example/android/.gradle/8.2/fileChanges/last-build.bin +0 -0
  101. package/example/android/.gradle/8.2/fileHashes/fileHashes.lock +0 -0
  102. package/example/android/.gradle/8.2/gc.properties +0 -0
  103. package/example/android/.gradle/vcs-1/gc.properties +0 -0
  104. package/example/android/app/_BUCK +0 -55
  105. package/example/android/app/build_defs.bzl +0 -19
  106. package/example/android/app/src/debug/java/com/basicapp/ReactNativeFlipper.java +0 -72
  107. package/example/android/app/src/main/java/com/basicapp/MainActivity.java +0 -15
  108. package/example/android/app/src/main/java/com/basicapp/MainApplication.java +0 -81
  109. package/img/bridging-header.png +0 -0
  110. package/img/build-setting-linking.png +0 -0
  111. package/img/build-setting-path.png +0 -0
  112. /package/android/src/main/res/{values → value}/styles.xml +0 -0
@@ -205,7 +205,8 @@
205
205
  83CBB9F71A601CBA00E9B192 /* Project object */ = {
206
206
  isa = PBXProject;
207
207
  attributes = {
208
- LastUpgradeCheck = 1210;
208
+ BuildIndependentTargetsInParallel = YES;
209
+ LastUpgradeCheck = 1530;
209
210
  TargetAttributes = {
210
211
  00E356ED1AD99517003FC87E = {
211
212
  CreatedOnToolsVersion = 6.2;
@@ -275,9 +276,11 @@
275
276
  files = (
276
277
  );
277
278
  inputFileListPaths = (
279
+ "${PODS_ROOT}/Target Support Files/Pods-BasicApp/Pods-BasicApp-frameworks-${CONFIGURATION}-input-files.xcfilelist",
278
280
  );
279
281
  name = "[CP] Embed Pods Frameworks";
280
282
  outputFileListPaths = (
283
+ "${PODS_ROOT}/Target Support Files/Pods-BasicApp/Pods-BasicApp-frameworks-${CONFIGURATION}-output-files.xcfilelist",
281
284
  );
282
285
  runOnlyForDeploymentPostprocessing = 0;
283
286
  shellPath = /bin/sh;
@@ -290,9 +293,11 @@
290
293
  files = (
291
294
  );
292
295
  inputFileListPaths = (
296
+ "${PODS_ROOT}/Target Support Files/Pods-BasicApp/Pods-BasicApp-resources-${CONFIGURATION}-input-files.xcfilelist",
293
297
  );
294
298
  name = "[CP] Copy Pods Resources";
295
299
  outputFileListPaths = (
300
+ "${PODS_ROOT}/Target Support Files/Pods-BasicApp/Pods-BasicApp-resources-${CONFIGURATION}-output-files.xcfilelist",
296
301
  );
297
302
  runOnlyForDeploymentPostprocessing = 0;
298
303
  shellPath = /bin/sh;
@@ -305,9 +310,11 @@
305
310
  files = (
306
311
  );
307
312
  inputFileListPaths = (
313
+ "${PODS_ROOT}/Target Support Files/Pods-BasicApp-BasicAppTests/Pods-BasicApp-BasicAppTests-resources-${CONFIGURATION}-input-files.xcfilelist",
308
314
  );
309
315
  name = "[CP] Copy Pods Resources";
310
316
  outputFileListPaths = (
317
+ "${PODS_ROOT}/Target Support Files/Pods-BasicApp-BasicAppTests/Pods-BasicApp-BasicAppTests-resources-${CONFIGURATION}-output-files.xcfilelist",
311
318
  );
312
319
  runOnlyForDeploymentPostprocessing = 0;
313
320
  shellPath = /bin/sh;
@@ -320,9 +327,11 @@
320
327
  files = (
321
328
  );
322
329
  inputFileListPaths = (
330
+ "${PODS_ROOT}/Target Support Files/Pods-BasicApp-BasicAppTests/Pods-BasicApp-BasicAppTests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
323
331
  );
324
332
  name = "[CP] Embed Pods Frameworks";
325
333
  outputFileListPaths = (
334
+ "${PODS_ROOT}/Target Support Files/Pods-BasicApp-BasicAppTests/Pods-BasicApp-BasicAppTests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
326
335
  );
327
336
  runOnlyForDeploymentPostprocessing = 0;
328
337
  shellPath = /bin/sh;
@@ -435,7 +444,7 @@
435
444
  "$(inherited)",
436
445
  );
437
446
  INFOPLIST_FILE = BasicAppTests/Info.plist;
438
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
447
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
439
448
  LD_RUNPATH_SEARCH_PATHS = (
440
449
  "$(inherited)",
441
450
  "@executable_path/Frameworks",
@@ -460,7 +469,7 @@
460
469
  BUNDLE_LOADER = "$(TEST_HOST)";
461
470
  COPY_PHASE_STRIP = NO;
462
471
  INFOPLIST_FILE = BasicAppTests/Info.plist;
463
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
472
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
464
473
  LD_RUNPATH_SEARCH_PATHS = (
465
474
  "$(inherited)",
466
475
  "@executable_path/Frameworks",
@@ -484,8 +493,10 @@
484
493
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
485
494
  CLANG_ENABLE_MODULES = YES;
486
495
  CURRENT_PROJECT_VERSION = 1;
496
+ DEVELOPMENT_TEAM = 75D68EY2Q2;
487
497
  ENABLE_BITCODE = NO;
488
498
  INFOPLIST_FILE = BasicApp/Info.plist;
499
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
489
500
  LD_RUNPATH_SEARCH_PATHS = (
490
501
  "$(inherited)",
491
502
  "@executable_path/Frameworks",
@@ -512,7 +523,9 @@
512
523
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
513
524
  CLANG_ENABLE_MODULES = YES;
514
525
  CURRENT_PROJECT_VERSION = 1;
526
+ DEVELOPMENT_TEAM = 75D68EY2Q2;
515
527
  INFOPLIST_FILE = BasicApp/Info.plist;
528
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
516
529
  LD_RUNPATH_SEARCH_PATHS = (
517
530
  "$(inherited)",
518
531
  "@executable_path/Frameworks",
@@ -536,7 +549,7 @@
536
549
  buildSettings = {
537
550
  ALWAYS_SEARCH_USER_PATHS = NO;
538
551
  CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
539
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
552
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
540
553
  CLANG_CXX_LIBRARY = "libc++";
541
554
  CLANG_ENABLE_MODULES = YES;
542
555
  CLANG_ENABLE_OBJC_ARC = YES;
@@ -564,7 +577,8 @@
564
577
  COPY_PHASE_STRIP = NO;
565
578
  ENABLE_STRICT_OBJC_MSGSEND = YES;
566
579
  ENABLE_TESTABILITY = YES;
567
- "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
580
+ ENABLE_USER_SCRIPT_SANDBOXING = YES;
581
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
568
582
  GCC_C_LANGUAGE_STANDARD = gnu99;
569
583
  GCC_DYNAMIC_NO_PIC = NO;
570
584
  GCC_NO_COMMON_BLOCKS = YES;
@@ -580,7 +594,7 @@
580
594
  GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
581
595
  GCC_WARN_UNUSED_FUNCTION = YES;
582
596
  GCC_WARN_UNUSED_VARIABLE = YES;
583
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
597
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
584
598
  LD_RUNPATH_SEARCH_PATHS = (
585
599
  /usr/lib/swift,
586
600
  "$(inherited)",
@@ -591,8 +605,13 @@
591
605
  );
592
606
  MTL_ENABLE_DEBUG_INFO = YES;
593
607
  ONLY_ACTIVE_ARCH = YES;
608
+ OTHER_CFLAGS = "$(inherited)";
609
+ OTHER_CPLUSPLUSFLAGS = "$(inherited)";
610
+ OTHER_LDFLAGS = "$(inherited) ";
594
611
  PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES;
612
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
595
613
  SDKROOT = iphoneos;
614
+ USE_HERMES = true;
596
615
  };
597
616
  name = Debug;
598
617
  };
@@ -601,7 +620,7 @@
601
620
  buildSettings = {
602
621
  ALWAYS_SEARCH_USER_PATHS = NO;
603
622
  CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
604
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
623
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
605
624
  CLANG_CXX_LIBRARY = "libc++";
606
625
  CLANG_ENABLE_MODULES = YES;
607
626
  CLANG_ENABLE_OBJC_ARC = YES;
@@ -629,7 +648,8 @@
629
648
  COPY_PHASE_STRIP = YES;
630
649
  ENABLE_NS_ASSERTIONS = NO;
631
650
  ENABLE_STRICT_OBJC_MSGSEND = YES;
632
- "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
651
+ ENABLE_USER_SCRIPT_SANDBOXING = YES;
652
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
633
653
  GCC_C_LANGUAGE_STANDARD = gnu99;
634
654
  GCC_NO_COMMON_BLOCKS = YES;
635
655
  GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -638,7 +658,7 @@
638
658
  GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
639
659
  GCC_WARN_UNUSED_FUNCTION = YES;
640
660
  GCC_WARN_UNUSED_VARIABLE = YES;
641
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
661
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
642
662
  LD_RUNPATH_SEARCH_PATHS = (
643
663
  /usr/lib/swift,
644
664
  "$(inherited)",
@@ -648,8 +668,14 @@
648
668
  "\"$(inherited)\"",
649
669
  );
650
670
  MTL_ENABLE_DEBUG_INFO = NO;
671
+ OTHER_CFLAGS = "$(inherited)";
672
+ OTHER_CPLUSPLUSFLAGS = "$(inherited)";
673
+ OTHER_LDFLAGS = "$(inherited) ";
651
674
  PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES;
675
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
652
676
  SDKROOT = iphoneos;
677
+ SWIFT_COMPILATION_MODE = wholemodule;
678
+ USE_HERMES = true;
653
679
  VALIDATE_PRODUCT = YES;
654
680
  };
655
681
  name = Release;
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <Scheme
3
- LastUpgradeVersion = "1210"
3
+ LastUpgradeVersion = "1530"
4
4
  version = "1.3">
5
5
  <BuildAction
6
6
  parallelizeBuildables = "YES"
@@ -1,44 +1,67 @@
1
- require_relative '../node_modules/react-native/scripts/react_native_pods'
2
- require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
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
3
27
 
4
- platform :ios, '11.0'
5
- install! 'cocoapods', :disable_input_output_paths => true
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
6
33
 
7
34
  target 'BasicApp' do
8
35
  config = use_native_modules!
9
- pod 'react-native-mapbox-navigation', :path => '../../', :inhibit_warnings => false
10
- $ReactNativeMapboxGLIOSVersion = '~> 8.5.0'
11
36
 
12
37
  use_react_native!(
13
38
  :path => config[:reactNativePath],
14
- # to enable hermes on iOS, change `false` to `true` and then install pods
15
- :hermes_enabled => false
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}/.."
16
46
  )
17
47
 
18
- pre_install do |installer|
19
- $RNMBNAV.pre_install(installer)
20
- end
21
-
22
48
  target 'BasicAppTests' do
23
49
  inherit! :complete
24
50
  # Pods for testing
25
51
  end
26
52
 
27
- # Enables Flipper.
28
- #
29
- # Note that if you have use_frameworks! enabled, Flipper will not work and
30
- # you should disable the next line.
31
- # use_flipper!()
32
-
33
53
  post_install do |installer|
34
- react_native_post_install(installer)
35
- __apply_Xcode_12_5_M1_post_install_workaround(installer)
36
- installer.pods_project.targets.each do |t|
37
- t.build_configurations.each do |bc|
38
- bc.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
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'
39
64
  end
40
65
  end
41
- # $RNMBNAV.post_install(installer)
42
- $RNMBNAV.pre_install(installer)
43
66
  end
44
67
  end