forked from braze-inc/braze-react-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbraze-react-native-sdk.podspec
More file actions
37 lines (29 loc) · 1.16 KB
/
braze-react-native-sdk.podspec
File metadata and controls
37 lines (29 loc) · 1.16 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
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = 'braze-react-native-sdk'
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.source = { :git => 'git+https://github.com/braze-inc/braze-react-native-sdk.git', :tag => s.version }
s.requires_arc = true
s.platform = :ios, '11.0'
s.preserve_paths = 'LICENSE.md', 'README.md', 'package.json', 'index.js', 'iOS/replace-at-import-statements.sh'
s.source_files = 'iOS/**/*.{h,m}'
s.dependency 'BrazeKit', '~> 6.2.0'
s.dependency 'BrazeLocation', '~> 6.2.0'
s.dependency 'BrazeUI', '~> 6.2.0'
s.dependency 'React-Core'
# Swift/Objective-C compatibility
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES'
}
s.script_phase = {
:name => "Replace Braze SDK @import statements",
:script => "bash ${PODS_TARGET_SRCROOT}/iOS/replace-at-import-statements.sh",
:execution_position => :before_compile
}
end