sdksberpay-reactnative
/
sdksberpay-reactnative.podspec
42 строки · 1.7 Кб
1require "json"
2
3package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
6Pod::Spec.new do |s|
7s.name = "sdksberpay-reactnative"
8s.version = package["version"]
9s.summary = package["description"]
10s.homepage = package["homepage"]
11s.license = package["license"]
12s.authors = package["author"]
13
14s.platforms = { :ios => min_ios_version_supported }
15s.source = { :git => "https://gitverse.ru/SergeyGladkiy/SberPaySDK-ReactNative-Library.git", :tag => "#{s.version}" }
16
17s.source_files = "ios/**/*.{h,m,mm}"
18s.dependency 'SPaySDK'
19
20# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
21# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
22if respond_to?(:install_modules_dependencies, true)
23install_modules_dependencies(s)
24else
25s.dependency "React-Core"
26
27# Don't install the dependencies when we run `pod install` in the old architecture.
28if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
29s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
30s.pod_target_xcconfig = {
31"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
32"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
33"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
34}
35s.dependency "React-Codegen"
36s.dependency "RCT-Folly"
37s.dependency "RCTRequired"
38s.dependency "RCTTypeSafety"
39s.dependency "ReactCommon/turbomodule/core"
40end
41end
42end
43