Skip to content

Commit 812cfa8

Browse files
committed
feat(ios): migrate to SPM dependencies
1 parent 0ebfd30 commit 812cfa8

File tree

3 files changed

+71
-29
lines changed

3 files changed

+71
-29
lines changed

RNGoogleMapsPlus.podspec

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ Pod::Spec.new do |s|
1313
s.platforms = { :ios => 16.0 }
1414
s.source = { :git => "https://github.com/pinpong/react-native-google-maps-plus.git", :tag => "#{s.version}" }
1515

16-
s.source_files = "ios/**/*.{h,m,mm,swift}"
17-
1816
s.source_files = [
1917
"ios/**/*.{swift}",
20-
"ios/**/*.{m,mm}",
18+
"ios/**/*.{h,m,mm}",
2119
"cpp/**/*.{hpp,cpp}",
2220
]
2321

@@ -26,9 +24,23 @@ Pod::Spec.new do |s|
2624
s.dependency 'React-jsi'
2725
s.dependency 'React-callinvoker'
2826

29-
s.dependency 'GoogleMaps', '10.4.0'
30-
s.dependency 'Google-Maps-iOS-Utils', '6.1.3'
31-
s.dependency 'SVGKit', '3.0.0'
27+
spm_dependency(s,
28+
url: "https://github.com/googlemaps/ios-maps-sdk",
29+
requirement: { :kind => "exactVersion", :version => "10.4.0" },
30+
products: ["GoogleMaps"]
31+
)
32+
33+
spm_dependency(s,
34+
url: "https://github.com/googlemaps/google-maps-ios-utils",
35+
requirement: { :kind => "exactVersion", :version => "6.1.3" },
36+
products: ["GoogleMapsUtils"]
37+
)
38+
39+
spm_dependency(s,
40+
url: "https://github.com/SVGKit/SVGKit",
41+
requirement: { :kind => "exactVersion", :version => "3.0.0" },
42+
products: ["SVGKit"]
43+
)
3244

3345
load 'nitrogen/generated/ios/RNGoogleMapsPlus+autolinking.rb'
3446
add_nitrogen_files(s)

example/ios/GoogleMapsPlusExample.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/ios/Podfile.lock

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,11 @@ PODS:
3030
- ReactCommon/turbomodule/core
3131
- SocketRocket
3232
- Yoga
33-
- CocoaLumberjack (3.9.0):
34-
- CocoaLumberjack/Core (= 3.9.0)
35-
- CocoaLumberjack/Core (3.9.0)
3633
- DoubleConversion (1.1.6)
3734
- fast_float (8.0.0)
3835
- FBLazyVector (0.82.1)
3936
- fmt (11.0.2)
4037
- glog (0.3.5)
41-
- Google-Maps-iOS-Utils (6.1.3):
42-
- GoogleMaps (~> 10.0)
43-
- GoogleMaps (10.4.0):
44-
- GoogleMaps/Maps (= 10.4.0)
45-
- GoogleMaps/Maps (10.4.0)
4638
- hermes-engine (0.82.1):
4739
- hermes-engine/Pre-built (= 0.82.1)
4840
- hermes-engine/Pre-built (0.82.1)
@@ -2504,14 +2496,12 @@ PODS:
25042496
- ReactCommon/turbomodule/core
25052497
- SocketRocket
25062498
- Yoga
2507-
- RNGoogleMapsPlus (1.10.1):
2499+
- RNGoogleMapsPlus (1.10.2):
25082500
- boost
25092501
- DoubleConversion
25102502
- fast_float
25112503
- fmt
25122504
- glog
2513-
- Google-Maps-iOS-Utils (= 6.1.3)
2514-
- GoogleMaps (= 10.4.0)
25152505
- hermes-engine
25162506
- NitroModules
25172507
- RCT-Folly
@@ -2535,7 +2525,6 @@ PODS:
25352525
- ReactCommon/turbomodule/bridging
25362526
- ReactCommon/turbomodule/core
25372527
- SocketRocket
2538-
- SVGKit (= 3.0.0)
25392528
- Yoga
25402529
- RNReanimated (4.1.5):
25412530
- boost
@@ -2778,8 +2767,6 @@ PODS:
27782767
- SocketRocket
27792768
- Yoga
27802769
- SocketRocket (0.7.1)
2781-
- SVGKit (3.0.0):
2782-
- CocoaLumberjack (~> 3.0)
27832770
- Yoga (0.0.0)
27842771

27852772
DEPENDENCIES:
@@ -2869,11 +2856,7 @@ DEPENDENCIES:
28692856

28702857
SPEC REPOS:
28712858
trunk:
2872-
- CocoaLumberjack
2873-
- Google-Maps-iOS-Utils
2874-
- GoogleMaps
28752859
- SocketRocket
2876-
- SVGKit
28772860

28782861
EXTERNAL SOURCES:
28792862
boost:
@@ -3043,14 +3026,11 @@ EXTERNAL SOURCES:
30433026
SPEC CHECKSUMS:
30443027
boost: 7e761d76ca2ce687f7cc98e698152abd03a18f90
30453028
Clusterer: 6b8e946e6d4593644d04acd9c1fca686e8d4f5cb
3046-
CocoaLumberjack: 5644158777912b7de7469fa881f8a3f259c2512a
30473029
DoubleConversion: cb417026b2400c8f53ae97020b2be961b59470cb
30483030
fast_float: b32c788ed9c6a8c584d114d0047beda9664e7cc6
30493031
FBLazyVector: 0aa6183b9afe3c31fc65b5d1eeef1f3c19b63bfa
30503032
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
30513033
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
3052-
Google-Maps-iOS-Utils: bed22fa703c919259b3901449434d60d994fae20
3053-
GoogleMaps: a40d3b1f511f0fa2036e7b08c920c33279b1d5fd
30543034
hermes-engine: 273e30e7fb618279934b0b95ffab60ecedb7acf5
30553035
NitroModules: cf8804dafa637b6535c73fd113c3202b11307bfd
30563036
RCT-Folly: 846fda9475e61ec7bcbf8a3fe81edfcaeb090669
@@ -3120,12 +3100,11 @@ SPEC CHECKSUMS:
31203100
ReactCodegen: 0bce2d209e2e802589f4c5ff76d21618200e74cb
31213101
ReactCommon: 801eff8cb9c940c04d3a89ce399c343ee3eff654
31223102
RNGestureHandler: 67501c6d447027581aa1d8e5a7a3ea5a7f0a89ff
3123-
RNGoogleMapsPlus: 86ba03df25878d125da670854ba6d4da6a3be09d
3103+
RNGoogleMapsPlus: b03dfe02d5c76529862b307ad8ed0af9fa96421e
31243104
RNReanimated: 05c5a85c3ee54ac68d60c8a9b42dbc441e3326ca
31253105
RNScreens: 98771ad898d1c0528fc8139606bbacf5a2e9d237
31263106
RNWorklets: ab618bf7d1c7fd2cb793b9f0f39c3e29274b3ebf
31273107
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
3128-
SVGKit: 1ad7513f8c74d9652f94ed64ddecda1a23864dea
31293108
Yoga: 526f25666395d30c297d53154398ffd249eaf9e1
31303109

31313110
PODFILE CHECKSUM: 53fea21acf44c419ecb277b368cb4c1e34124dfb

0 commit comments

Comments
 (0)