-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact-native-local-model.podspec
More file actions
67 lines (55 loc) · 2.61 KB
/
Copy pathreact-native-local-model.podspec
File metadata and controls
67 lines (55 loc) · 2.61 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-int-conversion'
additional_compiler_flags = ' -Wno-unused-function -Wno-shorten-64-to-32 -Wno-int-conversion'
Pod::Spec.new do |s|
s.name = "react-native-local-model"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]
s.platforms = { :ios => min_ios_version_supported }
s.source = { :git => "https://github.com/ponikar/react-native-local-model.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm,cpp}"
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
s.compiler_flags = folly_compiler_flags + additional_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\"",
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" + additional_compiler_flags,
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
}
s.dependency "React-Codegen"
s.dependency "RCT-Folly"
s.dependency "RCTRequired"
s.dependency "RCTTypeSafety"
s.dependency "ReactCommon/turbomodule/core"
end
end
# If you have any resources to include
# s.resource_bundles = {
# 'react-native-local-model' => ['ios/**/*.xib']
# }
# If you need to specify a module map
# s.module_map = "ios/react-native-local-model.modulemap"
# If you need to specify any additional build settings
s.pod_target_xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/boost $(SRCROOT)/../ios',
'OTHER_CPLUSPLUSFLAGS' => '-DGGML_USE_ACCELERATE',
'OTHER_LDFLAGS' => '-framework Accelerate',
'ENABLE_BITCODE' => 'NO'
}
# If you need to specify any user-facing frameworks
# s.frameworks = 'UIKit', 'MapKit'
# If you need to specify a minimum deployment target
s.ios.deployment_target = '12.0'
# If you need to disable bitcode
s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }
end