-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact-native-cloud-sync.podspec
More file actions
48 lines (38 loc) · 1.8 KB
/
Copy pathreact-native-cloud-sync.podspec
File metadata and controls
48 lines (38 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
Pod::Spec.new do |s|
s.name = package['name'].split('/').last
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.homepage = package['repository']['url']
s.license = package['license']
s.author = package['author']
s.source = { git: 'https://github.com/kesha-antonov/react-native-cloud-sync.git', tag: "v#{s.version}" }
# iOS only as a declared platform - Mac Catalyst builds from this same slice
# (SUPPORTS_MACCATALYST), it is not a separate platform entry. 15.1 matches
# the floor the consuming apps already use.
s.platform = :ios, '15.1'
s.source_files = 'ios/**/*.{h,m,mm,swift}'
# CloudKit for records/assets/zones; Foundation carries
# NSUbiquitousKeyValueStore. Both are available under Mac Catalyst.
s.frameworks = 'CloudKit', 'Foundation'
# React Native core dependency, codegen wiring and the new-arch flags.
install_modules_dependencies(s)
# Built up locally and assigned once: `pod_target_xcconfig` is a writer on
# Pod::Specification with no matching reader, so it cannot be read back and
# merged into.
xcconfig = {
# Required so the generated `react_native_cloud_sync-Swift.h` exists for
# the Objective-C++ bridge to import.
'DEFINES_MODULE' => 'YES',
'SWIFT_VERSION' => '5.0'
}
if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
s.compiler_flags = folly_compiler_flags + ' -DRCT_NEW_ARCH_ENABLED=1'
xcconfig['HEADER_SEARCH_PATHS'] = "\"$(PODS_ROOT)/boost\""
xcconfig['CLANG_CXX_LANGUAGE_STANDARD'] = 'c++17'
end
s.pod_target_xcconfig = xcconfig
end