Skip to content

Commit 3124854

Browse files
committed
feat: update podspec to include LocalAuthentication framework
1 parent b7012d0 commit 3124854

File tree

2 files changed

+40
-19
lines changed

2 files changed

+40
-19
lines changed

ios/SimpleBiometrics.xcodeproj/project.pbxproj

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
5E555C0D2413F4C50049A1A2 /* SimpleBiometrics.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* SimpleBiometrics.m */; };
10+
065A184F288588DC0003B837 /* LocalAuthentication.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 065A184E288588DC0003B837 /* LocalAuthentication.framework */; };
11+
0676F1002885984C00FFDF0F /* SimpleBiometrics.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* SimpleBiometrics.m */; };
1112
/* End PBXBuildFile section */
1213

1314
/* Begin PBXCopyFilesBuildPhase section */
@@ -23,6 +24,7 @@
2324
/* End PBXCopyFilesBuildPhase section */
2425

2526
/* Begin PBXFileReference section */
27+
065A184E288588DC0003B837 /* LocalAuthentication.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = LocalAuthentication.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/LocalAuthentication.framework; sourceTree = DEVELOPER_DIR; };
2628
134814201AA4EA6300B7C361 /* libSimpleBiometrics.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSimpleBiometrics.a; sourceTree = BUILT_PRODUCTS_DIR; };
2729
B3E7B5881CC2AC0600A0062D /* SimpleBiometrics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimpleBiometrics.h; sourceTree = "<group>"; };
2830
B3E7B5891CC2AC0600A0062D /* SimpleBiometrics.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SimpleBiometrics.m; sourceTree = "<group>"; };
@@ -33,12 +35,21 @@
3335
isa = PBXFrameworksBuildPhase;
3436
buildActionMask = 2147483647;
3537
files = (
38+
065A184F288588DC0003B837 /* LocalAuthentication.framework in Frameworks */,
3639
);
3740
runOnlyForDeploymentPostprocessing = 0;
3841
};
3942
/* End PBXFrameworksBuildPhase section */
4043

4144
/* Begin PBXGroup section */
45+
065A184D288588DC0003B837 /* Frameworks */ = {
46+
isa = PBXGroup;
47+
children = (
48+
065A184E288588DC0003B837 /* LocalAuthentication.framework */,
49+
);
50+
name = Frameworks;
51+
sourceTree = "<group>";
52+
};
4253
134814211AA4EA7D00B7C361 /* Products */ = {
4354
isa = PBXGroup;
4455
children = (
@@ -53,6 +64,7 @@
5364
B3E7B5881CC2AC0600A0062D /* SimpleBiometrics.h */,
5465
B3E7B5891CC2AC0600A0062D /* SimpleBiometrics.m */,
5566
134814211AA4EA7D00B7C361 /* Products */,
67+
065A184D288588DC0003B837 /* Frameworks */,
5668
);
5769
sourceTree = "<group>";
5870
};
@@ -113,7 +125,7 @@
113125
isa = PBXSourcesBuildPhase;
114126
buildActionMask = 2147483647;
115127
files = (
116-
B3E7B58A1CC2AC0600A0062D /* SimpleBiometrics.m in Sources */,
128+
0676F1002885984C00FFDF0F /* SimpleBiometrics.m in Sources */,
117129
);
118130
runOnlyForDeploymentPostprocessing = 0;
119131
};
Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
require "json"
22

33
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'
46

57
Pod::Spec.new do |s|
68
s.name = "react-native-simple-biometrics"
79
s.version = package["version"]
810
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"]
2014

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}" }
2317

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"
2822

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

Comments
 (0)