-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathreact-native-exponea-sdk.podspec
More file actions
38 lines (32 loc) · 1.62 KB
/
react-native-exponea-sdk.podspec
File metadata and controls
38 lines (32 loc) · 1.62 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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "react-native-exponea-sdk"
s.version = package["version"]
s.summary = package["description"]
s.description = <<-DESC
react-native-exponea-sdk
DESC
s.homepage = "https://github.com/github_account/react-native-exponea-sdk"
# brief license entry:
s.license = "MIT License"
s.authors = { "Exponea" => "contact@exponea.com" }
s.platforms = { :ios => "15.1" }
s.source = { :git => "https://github.com/github_account/react-native-exponea-sdk.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
s.exclude_files = ["ios/Tests/*.{h,c,m,mm,swift}", "ios/build/**/*"]
s.private_header_files = "ios/**/*.h"
s.dependency "React-Core"
s.dependency "ExponeaSDK", "3.11.0"
s.dependency "AnyCodable-FlightSchool", "0.4.0"
install_modules_dependencies(s)
# install_modules_dependencies sets SWIFT_COMPILATION_MODE=wholemodule for static library builds.
# In wholemodule mode Xcode does not declare the Swift-generated ObjC header as an explicit build
# task output, so ObjC files can compile before it exists ('react_native_exponea_sdk-Swift.h'
# not found). Switch to incremental only when USE_FRAMEWORKS=static (the same env var React Native
# uses) so wholemodule optimization is preserved for dynamic/default builds.
# See: https://github.com/exponea/exponea-react-native-sdk/issues/138
if ENV['USE_FRAMEWORKS'] == 'static'
s.pod_target_xcconfig['SWIFT_COMPILATION_MODE'] = 'incremental'
end
end