-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathreact-native-network-client.podspec
42 lines (33 loc) · 1.27 KB
/
react-native-network-client.podspec
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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "react-native-network-client"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]
s.platforms = { :ios => "12.4" }
s.source = { :git => "https://github.com/mattermost/react-native-network-client.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm,swift}"
s.prepare_command = 'ruby ios/patches/apply_patches.rb'
fabric_enabled = ENV["RCT_NEW_ARCH_ENABLED"] == "1"
if fabric_enabled
s.pod_target_xcconfig = {
"DEFINES_MODULE" => "YES",
"BUILD_LIBRARY_FOR_DISTRIBUTION" => "YES",
"OTHER_CPLUSPLUSFLAGS" => "-DRCT_NEW_ARCH_ENABLED=1",
"OTHER_SWIFT_FLAGS" => "-no-verify-emitted-module-interface"
}
else
s.pod_target_xcconfig = {
"DEFINES_MODULE" => "YES",
"BUILD_LIBRARY_FOR_DISTRIBUTION" => "YES",
"OTHER_SWIFT_FLAGS" => "-no-verify-emitted-module-interface"
}
end
install_modules_dependencies(s)
s.dependency "Alamofire", "~> 5.10.2"
s.dependency "SwiftyJSON", "~> 5.0.2"
s.dependency "Starscream", "~> 4.0.8"
end