-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathreact-native-emm.podspec
39 lines (30 loc) · 1.1 KB
/
react-native-emm.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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "react-native-emm"
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-emm.git", :tag => "#{s.version}" }
s.swift_version = '5.0'
s.source_files = "ios/**/*.{h,m,mm,swift}"
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)
end