|
1 | 1 | require "json" |
2 | 2 |
|
3 | 3 | package = JSON.parse(File.read(File.join(__dir__, "package.json"))) |
| 4 | +folly_version = '2021.06.28.00-v2' |
| 5 | +folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' |
4 | 6 |
|
5 | 7 | Pod::Spec.new do |s| |
6 | 8 | s.name = "react-native-simple-biometrics" |
7 | 9 | s.version = package["version"] |
8 | 10 | s.summary = package["description"] |
9 | | - s.description = <<-DESC |
10 | | - react-native-simple-biometrics |
11 | | - DESC |
12 | | - s.homepage = "https://gitlab.com/smallcase/mobile/react-native-simple-biometrics" |
13 | | - # brief license entry: |
14 | | - s.license = "MIT" |
15 | | - # optional - use expanded license entry instead: |
16 | | - # s.license = { :type => "MIT", :file => "LICENSE" } |
17 | | - s.authors = { "Ananthu Kanive" => "[email protected]" } |
18 | | - s.platforms = { :ios => "9.0" } |
19 | | - s.source = { :git => "https://gitlab.com/smallcase/mobile/react-native-simple-biometrics.git", :tag => "#{s.version}" } |
| 11 | + s.homepage = package["homepage"] |
| 12 | + s.license = package["license"] |
| 13 | + s.authors = package["author"] |
20 | 14 |
|
21 | | - s.source_files = "ios/**/*.{h,c,m,swift}" |
22 | | - s.requires_arc = true |
| 15 | + s.platforms = { :ios => "10.0" } |
| 16 | + s.source = { :git => "https://github.com/smallcase/react-native-simple-biometrics.git", :tag => "#{s.version}" } |
23 | 17 |
|
24 | | - s.dependency "React" |
25 | | - # ... |
26 | | - # s.dependency "..." |
27 | | -end |
| 18 | + s.source_files = "ios/**/*.{h,m,mm}" |
| 19 | + |
| 20 | + s.framework = 'LocalAuthentication' |
| 21 | + s.dependency "React-Core" |
28 | 22 |
|
| 23 | + # Don't install the dependencies when we run `pod install` in the old architecture. |
| 24 | + if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then |
| 25 | + s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" |
| 26 | + s.pod_target_xcconfig = { |
| 27 | + "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"", |
| 28 | + "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" |
| 29 | + } |
| 30 | + |
| 31 | + s.dependency "React-Codegen" |
| 32 | + s.dependency "RCT-Folly", folly_version |
| 33 | + s.dependency "RCTRequired" |
| 34 | + s.dependency "RCTTypeSafety" |
| 35 | + s.dependency "ReactCommon/turbomodule/core" |
| 36 | + end |
| 37 | +end |
0 commit comments