-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSingular-React-Native.podspec
More file actions
29 lines (26 loc) · 1.16 KB
/
Singular-React-Native.podspec
File metadata and controls
29 lines (26 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
require 'json'
package = JSON.parse(File.read("package.json"))
Pod::Spec.new do |spec|
spec.name = "Singular-React-Native"
spec.version = package["version"]
spec.summary = "Singular React Native bridge for iOS"
spec.license = "MIT"
spec.homepage = "https://www.singular.net/"
spec.author = "Singular Labs"
spec.source = { :git => "https://github.com/singular-labs/react-native-sdk.git", :tag => spec.version.to_s }
# Source files based on architecture
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
spec.source_files = "ios/SingularBridge.h", "ios/SingularBridgeNewArch.mm", "ios/SingularHelper.h", "ios/SingularHelper.m"
else
spec.source_files = "ios/SingularBridge.h", "ios/SingularBridgeOldArch.m", "ios/SingularHelper.h", "ios/SingularHelper.m"
end
spec.platform = :ios, "12.0"
spec.dependency 'Singular-SDK', '12.10.1'
spec.static_framework = true
# RN 0.71+ dependency setup.this handles both architectures, fallback for older versions
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(spec)
else
spec.dependency "React"
end
end