Skip to content

Commit

Permalink
fix: reproduce and fix cocoapods ios bug (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian authored Mar 21, 2023
1 parent aa050ab commit 5f48b0f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 37 deletions.
19 changes: 2 additions & 17 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ target 'SampleApp' do
use_react_native!(:path => config["reactNativePath"])
pod 'RCT-Folly', :podspec => '../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec'
pod 'boost', :podspec => '../node_modules/react-native/third-party-podspecs/boost.podspec'
pod 'CustomerIO/MessagingPushAPN', '~> 2.1.0'
pod 'CustomerIO/MessagingPushAPN', '~> 2.1'

# Uncomment to opt-in to using Flipper
#
Expand All @@ -24,16 +24,9 @@ target 'SampleApp' do
end

target 'Notification Service' do
pod 'CustomerIO/MessagingPushAPN', '~> 2.1.0'
pod 'CustomerIO/MessagingPushAPN', '~> 2.1'
end

cio_target_names = [
'CustomerIOTracking',
'CustomerIOCommon',
'CustomerIOMessagingPushAPN',
'CustomerIOMessagingPush'
]

# workaround for xcode14 for a react native dependency: https://github.com/expo/eas-cli/issues/1432#issuecomment-1285199900
post_install do |installer|
installer.pods_project.targets.each do |target|
Expand All @@ -42,13 +35,5 @@ post_install do |installer|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
if cio_target_names.include? target.name
puts "Modifying target #{target.name}"

target.build_configurations.each do |config|
puts "Setting build config settings for #{target.name}"
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] ||= 'NO'
end
end
end
end
40 changes: 20 additions & 20 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ PODS:
- CustomerIOMessagingInApp (~> 2.1.0-beta.2)
- CustomerIOTracking (~> 2.1.0-beta.2)
- React-Core
- CustomerIO/MessagingPushAPN (2.1.0):
- CustomerIOMessagingPushAPN (= 2.1.0)
- CustomerIOCommon (2.1.0)
- CustomerIOMessagingInApp (2.1.0):
- CustomerIOTracking (= 2.1.0)
- CustomerIO/MessagingPushAPN (2.1.1):
- CustomerIOMessagingPushAPN (= 2.1.1)
- CustomerIOCommon (2.1.1)
- CustomerIOMessagingInApp (2.1.1):
- CustomerIOTracking (= 2.1.1)
- Gist (~> 3.0.4)
- CustomerIOMessagingPush (2.1.0):
- CustomerIOTracking (= 2.1.0)
- CustomerIOMessagingPushAPN (2.1.0):
- CustomerIOMessagingPush (= 2.1.0)
- CustomerIOTracking (2.1.0):
- CustomerIOCommon (= 2.1.0)
- CustomerIOMessagingPush (2.1.1):
- CustomerIOTracking (= 2.1.1)
- CustomerIOMessagingPushAPN (2.1.1):
- CustomerIOMessagingPush (= 2.1.1)
- CustomerIOTracking (2.1.1):
- CustomerIOCommon (= 2.1.1)
- DoubleConversion (1.1.6)
- EXApplication (3.2.0):
- UMCore
Expand Down Expand Up @@ -397,7 +397,7 @@ PODS:
DEPENDENCIES:
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
- customerio-reactnative (from `../node_modules/customerio-reactnative`)
- CustomerIO/MessagingPushAPN (~> 2.1.0)
- CustomerIO/MessagingPushAPN (~> 2.1)
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- EXApplication (from `../node_modules/expo-application/ios`)
- EXConstants (from `../node_modules/expo-constants/ios`)
Expand Down Expand Up @@ -576,13 +576,13 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
boost: a7c83b31436843459a1961bfd74b96033dc77234
CustomerIO: 6c7899e4e02e81977ca7ceb85396a1ac2db33439
CustomerIO: b07be5f0e1d5f2b1a5eb477c6b6f6e2f89b52a72
customerio-reactnative: d53c03cf1ef3d1828309671d052822262d86a475
CustomerIOCommon: b0d7bb7668c12df97154bf70fe68e5c82f21f8ab
CustomerIOMessagingInApp: 9bd4cc9a85fdb81b403c4ee099fecb347f57a688
CustomerIOMessagingPush: 24f627c7d78fcb4fbd2477f92b483663ff113f4e
CustomerIOMessagingPushAPN: 8e7dcad63ad2a0e56cce1f990b248ca63d2ccb04
CustomerIOTracking: 98b68ef6f96fd2e8fd099d58507bd60892300817
CustomerIOCommon: 5ef66e7255e6a26b2ebed1740d1076d589a104b5
CustomerIOMessagingInApp: 06392278fa4d100f4cd5ea75b952de0559f89509
CustomerIOMessagingPush: a67e162afcd625eb6e35107b3d4fe854ce3454c3
CustomerIOMessagingPushAPN: 64b5d7eb7a5e6cf3ef64d79681fb09419eeb29b8
CustomerIOTracking: 99ecf8599aaab7b18287f3b8d6db60216f34cc57
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
EXApplication: 9ff2a206009d6e55bca6c20b3f33d07986b51ef3
EXConstants: 4cb52b6d8f636c767104a44bf7db3873e9c01a6f
Expand Down Expand Up @@ -638,6 +638,6 @@ SPEC CHECKSUMS:
UMTaskManagerInterface: 2be431101b73604e64fbfffcf759336f9d8fccbb
Yoga: 7ab6e3ee4ce47d7b789d1cb520163833e515f452

PODFILE CHECKSUM: bc3accc39b7d602deadda9bd0c8060bc16ede086
PODFILE CHECKSUM: fb3df0e7e9345b30a6034b291f4fa29fc63ddaba

COCOAPODS: 1.11.3
COCOAPODS: 1.12.0

0 comments on commit 5f48b0f

Please sign in to comment.