react-native-maps 1.20.1 → 1.21.0-alpha.10

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 (50) hide show
  1. package/README.md +13 -6
  2. package/android/build.gradle +19 -4
  3. package/android/src/main/java/com/rnmaps/fabric/NativeAirMapsModule.java +51 -0
  4. package/android/src/main/java/com/rnmaps/maps/MapAirModulePackage.java +46 -0
  5. package/ios/AirGoogleMaps/AIRGoogleMap.h +8 -2
  6. package/ios/AirGoogleMaps/AIRGoogleMap.m +151 -7
  7. package/ios/AirGoogleMaps/AIRGoogleMapCircle.h +0 -1
  8. package/ios/AirGoogleMaps/AIRGoogleMapCoordinate.h +13 -0
  9. package/ios/AirGoogleMaps/AIRGoogleMapCoordinate.m +10 -0
  10. package/ios/AirGoogleMaps/AIRGoogleMapManager.h +7 -0
  11. package/ios/AirGoogleMaps/AIRGoogleMapManager.m +28 -119
  12. package/ios/AirGoogleMaps/AIRGoogleMapMarkerManager.m +0 -1
  13. package/ios/AirGoogleMaps/AIRGoogleMapOverlay.h +0 -1
  14. package/ios/AirGoogleMaps/AIRGoogleMapPolygon.h +3 -3
  15. package/ios/AirGoogleMaps/AIRGoogleMapPolygon.m +2 -2
  16. package/ios/AirGoogleMaps/AIRGoogleMapPolygonManager.m +3 -3
  17. package/ios/AirGoogleMaps/AIRGoogleMapPolyline.h +3 -2
  18. package/ios/AirGoogleMaps/AIRGoogleMapPolyline.m +2 -3
  19. package/ios/AirGoogleMaps/AIRGoogleMapPolylineManager.m +2 -2
  20. package/ios/AirGoogleMaps/RCTConvert+GMSMapViewType.h +3 -0
  21. package/ios/AirGoogleMaps/RCTConvert+GMSMapViewType.m +16 -0
  22. package/ios/AirGoogleMaps/RNMapsGoogleMapView.h +26 -0
  23. package/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +581 -0
  24. package/ios/AirGoogleMaps/RNMapsGoogleMapViewManager.mm +25 -0
  25. package/ios/AirMaps/AIRMap.h +8 -5
  26. package/ios/AirMaps/AIRMap.m +180 -27
  27. package/ios/AirMaps/AIRMapManager.m +24 -39
  28. package/ios/AirMaps/AIRMapMarker.m +11 -3
  29. package/ios/AirMaps/RCTConvert+AirMap.h +6 -1
  30. package/ios/AirMaps/RCTConvert+AirMap.m +18 -0
  31. package/ios/AirMaps/RNMapsAirModule.h +16 -0
  32. package/ios/AirMaps/RNMapsAirModule.mm +149 -0
  33. package/ios/AirMaps/RNMapsMapView.h +24 -0
  34. package/ios/AirMaps/RNMapsMapView.mm +535 -0
  35. package/ios/AirMaps/RNMapsMapViewManager.mm +24 -0
  36. package/ios/AirMaps.xcodeproj/project.pbxproj +10 -0
  37. package/lib/MapOverlay.d.ts +1 -1
  38. package/lib/MapView.d.ts +8 -4
  39. package/lib/MapView.js +148 -73
  40. package/lib/createFabricMap.d.ts +23 -0
  41. package/lib/createFabricMap.js +175 -0
  42. package/lib/specs/NativeAirMapsModule.d.ts +31 -0
  43. package/lib/specs/NativeAirMapsModule.js +4 -0
  44. package/lib/specs/NativeComponentGoogleMapView.d.ts +713 -0
  45. package/lib/specs/NativeComponentGoogleMapView.js +21 -0
  46. package/lib/specs/NativeComponentMapView.d.ts +855 -0
  47. package/lib/specs/NativeComponentMapView.js +21 -0
  48. package/package.json +14 -7
  49. package/react-native-maps.podspec +3 -1
  50. package/react-native-google-maps.podspec +0 -25
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Commands = void 0;
7
+ const codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
8
+ const codegenNativeCommands_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
9
+ exports.Commands = (0, codegenNativeCommands_1.default)({
10
+ supportedCommands: [
11
+ 'animateToRegion',
12
+ 'setCamera',
13
+ 'animateCamera',
14
+ 'fitToElements',
15
+ 'fitToSuppliedMarkers',
16
+ 'fitToCoordinates',
17
+ ],
18
+ });
19
+ exports.default = (0, codegenNativeComponent_1.default)('RNMapsMapView', {
20
+ excludedPlatforms: ['android'],
21
+ });
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "lib/index.js",
6
6
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
7
7
  "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
8
- "version": "1.20.1",
8
+ "version": "1.21.0-alpha.10",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
@@ -23,7 +23,6 @@
23
23
  "lib",
24
24
  "android",
25
25
  "ios",
26
- "react-native-google-maps.podspec",
27
26
  "react-native-maps.podspec",
28
27
  "!android/build",
29
28
  "!ios/build",
@@ -65,12 +64,12 @@
65
64
  "@babel/core": "^7.25.2",
66
65
  "@babel/preset-env": "^7.25.3",
67
66
  "@babel/runtime": "^7.25.0",
68
- "react-native": "^0.76.1",
67
+ "react-native": "^0.76.5",
69
68
  "react": "^18.3.1",
70
- "@react-native/babel-preset": "0.76.1",
71
- "@react-native/eslint-config": "0.76.1",
72
- "@react-native/metro-config": "0.76.1",
73
- "@react-native/typescript-config": "0.76.1",
69
+ "@react-native/babel-preset": "0.76.5",
70
+ "@react-native/eslint-config": "0.76.5",
71
+ "@react-native/metro-config": "0.76.5",
72
+ "@react-native/typescript-config": "0.76.5",
74
73
  "@types/react": "^18.2.6",
75
74
  "@types/react-test-renderer": "^18.0.0",
76
75
  "babel-jest": "^29.6.3",
@@ -91,6 +90,14 @@
91
90
  "e2e"
92
91
  ]
93
92
  },
93
+ "codegenConfig": {
94
+ "name": "RNMapsSpecs",
95
+ "type": "all",
96
+ "jsSrcsDir": "./src/specs",
97
+ "android": {
98
+ "javaPackageName": "com.rnmaps.fabric"
99
+ }
100
+ },
94
101
  "engines": {
95
102
  "node": ">=18"
96
103
  }
@@ -12,9 +12,11 @@ Pod::Spec.new do |s|
12
12
  s.platform = :ios, "11.0"
13
13
 
14
14
  s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
15
- s.source_files = "ios/AirMaps/**/*.{h,m}"
15
+ s.source_files = "ios/AirMaps/**/*.{h,m,mm,swift}"
16
16
  s.resource_bundles = {
17
17
  'ReactNativeMapsPrivacy' => ['ios/PrivacyInfo.xcprivacy']
18
18
  }
19
19
  s.dependency 'React-Core'
20
+
21
+ install_modules_dependencies(s)
20
22
  end
@@ -1,25 +0,0 @@
1
- require 'json'
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = "react-native-google-maps"
7
- s.version = package['version']
8
- s.summary = package["description"]
9
- s.authors = package["author"]
10
- s.homepage = package["homepage"]
11
- s.license = package["license"]
12
- s.platform = :ios, "14"
13
-
14
- s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
15
- s.source_files = "ios/AirGoogleMaps/**/*.{h,m}"
16
- s.resource_bundles = {
17
- 'GoogleMapsPrivacy' => ['ios/AirGoogleMaps/Resources/GoogleMapsPrivacy.bundle']
18
- }
19
- s.compiler_flags = '-DHAVE_GOOGLE_MAPS=1', '-DHAVE_GOOGLE_MAPS_UTILS=1'
20
- s.pod_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"${PODS_CONFIGURATION_BUILD_DIR}/react-native-maps"' }
21
-
22
- s.dependency 'React-Core'
23
- s.dependency 'GoogleMaps', '8.4.0'
24
- s.dependency 'Google-Maps-iOS-Utils', '5.0.0'
25
- end