-
Notifications
You must be signed in to change notification settings - Fork 56
/
react-native-star-io10.podspec
executable file
·49 lines (39 loc) · 1.88 KB
/
react-native-star-io10.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
43
44
45
46
47
48
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "react-native-star-io10"
s.version = package["version"]
s.summary = package["description"]
s.description = <<-DESC
react-native-star-io10
DESC
s.homepage = "https://github.com/github_account/react-native-star-io10"
s.license = "MIT"
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
s.authors = { "Your Name" => "[email protected]" }
s.platforms = { :ios => "9.0" }
s.source = { :git => "https://github.com/github_account/react-native-star-io10.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,swift}"
s.requires_arc = true
s.dependency "React"
s.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphoneos*]' => 'x86_64',
'EXCLUDED_SOURCE_FILE_NAMES[sdk=iphoneos*]' => '$(SRCROOT)/../../node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/*.*',
'FRAMEWORK_SEARCH_PATHS[sdk=iphoneos*]' => '$(SRCROOT)/libs/** $(SRCROOT)/../../node_modules/react-native-star-io10/ios/libs $(SRCROOT)/../../node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64',
}
if ENV['USE_FRAMEWORKS']
header_search_path = [
'$(SRCROOT)/../../node_modules/react/** $(SRCROOT)/../../node_modules/react-native/**'
]
exclude_source_file_name = [
'libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/StarIO10.framework/Headers/*.h libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/StarIO10.framework/PrivateHeaders/*.h'
]
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => header_search_path.join(" "),
"EXCLUDED_SOURCE_FILE_NAMES" => exclude_source_file_name.join(" ")
}
end
# ...
# s.dependency "..."
s.vendored_frameworks = 'ios/libs/StarIO10.xcframework'
end