Skip to content

Commit 1018600

Browse files
authored
iOS IDScan Parser V2 (#99)
* feat: bump ios IDScan parser to v2.x * fix: remove lingering idscanparser package added thru package manager
1 parent fde4062 commit 1018600

File tree

37 files changed

+1950
-4551
lines changed

37 files changed

+1950
-4551
lines changed

example/Gemfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ source 'https://rubygems.org'
33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
44
ruby ">= 2.6.10"
55

6-
gem 'cocoapods', '~> 1.13'
7-
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
6+
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
7+
# bound in the template on Cocoapods with next React Native release.
8+
gem 'cocoapods', '>= 1.13', '< 1.15'
9+
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
10+
gem 'xcodeproj', '< 1.26.0'

example/Gemfile.lock

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ GEM
1010
i18n (>= 1.6, < 2)
1111
minitest (>= 5.1)
1212
tzinfo (~> 2.0)
13-
addressable (2.8.6)
14-
public_suffix (>= 2.0.2, < 6.0)
13+
addressable (2.8.7)
14+
public_suffix (>= 2.0.2, < 7.0)
1515
algoliasearch (1.27.5)
1616
httpclient (~> 2.8, >= 2.8.3)
1717
json (>= 1.5.1)
1818
atomos (0.1.3)
1919
base64 (0.2.0)
2020
claide (1.1.0)
21-
cocoapods (1.15.2)
21+
cocoapods (1.14.3)
2222
addressable (~> 2.8)
2323
claide (>= 1.0.2, < 2.0)
24-
cocoapods-core (= 1.15.2)
24+
cocoapods-core (= 1.14.3)
2525
cocoapods-deintegrate (>= 1.0.3, < 2.0)
2626
cocoapods-downloader (>= 2.1, < 3.0)
2727
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -36,7 +36,7 @@ GEM
3636
nap (~> 1.0)
3737
ruby-macho (>= 2.3.0, < 3.0)
3838
xcodeproj (>= 1.23.0, < 2.0)
39-
cocoapods-core (1.15.2)
39+
cocoapods-core (1.14.3)
4040
activesupport (>= 5.0, < 8)
4141
addressable (~> 2.8)
4242
algoliasearch (~> 1.0)
@@ -60,16 +60,18 @@ GEM
6060
escape (0.0.4)
6161
ethon (0.16.0)
6262
ffi (>= 1.15.0)
63-
ffi (1.16.3)
63+
ffi (1.17.2)
6464
fourflusher (2.3.1)
6565
fuzzy_match (2.0.4)
6666
gh_inspector (1.1.3)
67-
httpclient (2.8.3)
67+
httpclient (2.9.0)
68+
mutex_m
6869
i18n (1.14.1)
6970
concurrent-ruby (~> 1.0)
70-
json (2.7.2)
71+
json (2.11.3)
7172
minitest (5.19.0)
7273
molinillo (0.8.0)
74+
mutex_m (0.3.0)
7375
nanaimo (0.3.0)
7476
nap (1.1.0)
7577
netrc (0.11.0)
@@ -93,8 +95,9 @@ PLATFORMS
9395
ruby
9496

9597
DEPENDENCIES
96-
activesupport (>= 6.1.7.3, < 7.1.0)
97-
cocoapods (~> 1.13)
98+
activesupport (>= 6.1.7.5, < 7.1.0)
99+
cocoapods (>= 1.13, < 1.15)
100+
xcodeproj (< 1.26.0)
98101

99102
RUBY VERSION
100103
ruby 2.7.5p203

example/ios/IdscanSdkExample.xcodeproj/project.pbxproj

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
3CBD1EE328053C3200DEFBF9 /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3CBD1EE128053C3200DEFBF9 /* AppDelegate.mm */; };
1818
4C39C56BAD484C67AA576FFA /* libPods-IdscanSdkExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CA3E69C5B9553B26FBA2DF04 /* libPods-IdscanSdkExample.a */; };
1919
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
20+
8A94EAE9DA2D9321822C8A17 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 99E308A178296E134CA05CD5 /* PrivacyInfo.xcprivacy */; };
21+
A37BD2B4C5BA0F0D8B8041C7 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 85CDABC7266782D45AD2F397 /* PrivacyInfo.xcprivacy */; };
2022
/* End PBXBuildFile section */
2123

2224
/* Begin PBXContainerItemProxy section */
@@ -64,6 +66,8 @@
6466
3CBD1EE128053C3200DEFBF9 /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = IdscanSdkExample/AppDelegate.mm; sourceTree = "<group>"; };
6567
47F7ED3B7971BE374F7B8635 /* Pods-IdscanSdkExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IdscanSdkExample.debug.xcconfig"; path = "Target Support Files/Pods-IdscanSdkExample/Pods-IdscanSdkExample.debug.xcconfig"; sourceTree = "<group>"; };
6668
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = IdscanSdkExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
69+
85CDABC7266782D45AD2F397 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = IdscanSdkExample/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
70+
99E308A178296E134CA05CD5 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = IdscanSdkExample/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
6771
CA3E69C5B9553B26FBA2DF04 /* libPods-IdscanSdkExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-IdscanSdkExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
6872
E00ACF0FDA8BF921659E2F9A /* Pods-IdscanSdkExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IdscanSdkExample.release.xcconfig"; path = "Target Support Files/Pods-IdscanSdkExample/Pods-IdscanSdkExample.release.xcconfig"; sourceTree = "<group>"; };
6973
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
@@ -130,6 +134,7 @@
130134
13B07FB61A68108700A75B9A /* Info.plist */,
131135
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
132136
13B07FB71A68108700A75B9A /* main.m */,
137+
99E308A178296E134CA05CD5 /* PrivacyInfo.xcprivacy */,
133138
);
134139
name = IdscanSdkExample;
135140
sourceTree = "<group>";
@@ -169,6 +174,7 @@
169174
83CBBA001A601CBA00E9B192 /* Products */,
170175
2D16E6871FA4F8E400B85C8A /* Frameworks */,
171176
6B9684456A2045ADE5A6E47E /* Pods */,
177+
85CDABC7266782D45AD2F397 /* PrivacyInfo.xcprivacy */,
172178
);
173179
indentWidth = 2;
174180
sourceTree = "<group>";
@@ -328,6 +334,7 @@
328334
files = (
329335
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
330336
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
337+
8A94EAE9DA2D9321822C8A17 /* PrivacyInfo.xcprivacy in Resources */,
331338
);
332339
runOnlyForDeploymentPostprocessing = 0;
333340
};
@@ -336,6 +343,7 @@
336343
buildActionMask = 2147483647;
337344
files = (
338345
2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
346+
A37BD2B4C5BA0F0D8B8041C7 /* PrivacyInfo.xcprivacy in Resources */,
339347
);
340348
runOnlyForDeploymentPostprocessing = 0;
341349
};
@@ -414,8 +422,7 @@
414422
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
415423
"${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-idscan-sdk/IDScanPDFDetector.framework/IDScanPDFDetector",
416424
"${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-idscan-sdk/IDScanMRZDetector.framework/IDScanMRZDetector",
417-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-idscan-sdk/IDScanPDFParser.framework/IDScanPDFParser",
418-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-idscan-sdk/IDScanMRZParser.framework/IDScanMRZParser",
425+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-idscan-sdk/IDScanIDParserNative.framework/IDScanIDParserNative",
419426
);
420427
name = "[CP] Embed Pods Frameworks";
421428
outputPaths = (
@@ -425,8 +432,7 @@
425432
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
426433
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IDScanPDFDetector.framework",
427434
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IDScanMRZDetector.framework",
428-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IDScanPDFParser.framework",
429-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IDScanMRZParser.framework",
435+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IDScanIDParserNative.framework",
430436
);
431437
runOnlyForDeploymentPostprocessing = 0;
432438
shellPath = /bin/sh;
@@ -796,11 +802,7 @@
796802
ONLY_ACTIVE_ARCH = YES;
797803
OTHER_CFLAGS = "$(inherited)";
798804
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
799-
OTHER_LDFLAGS = (
800-
"$(inherited)",
801-
"-Wl",
802-
"-ld_classic",
803-
);
805+
OTHER_LDFLAGS = "$(inherited)";
804806
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
805807
SDKROOT = iphoneos;
806808
USE_HERMES = true;
@@ -858,11 +860,7 @@
858860
MTL_ENABLE_DEBUG_INFO = NO;
859861
OTHER_CFLAGS = "$(inherited)";
860862
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
861-
OTHER_LDFLAGS = (
862-
"$(inherited)",
863-
"-Wl",
864-
"-ld_classic",
865-
);
863+
OTHER_LDFLAGS = "$(inherited)";
866864
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
867865
SDKROOT = iphoneos;
868866
USE_HERMES = true;
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyAccessedAPITypes</key>
6+
<array>
7+
<dict>
8+
<key>NSPrivacyAccessedAPIType</key>
9+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
10+
<key>NSPrivacyAccessedAPITypeReasons</key>
11+
<array>
12+
<string>C617.1</string>
13+
</array>
14+
</dict>
15+
<dict>
16+
<key>NSPrivacyAccessedAPIType</key>
17+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
18+
<key>NSPrivacyAccessedAPITypeReasons</key>
19+
<array>
20+
<string>CA92.1</string>
21+
</array>
22+
</dict>
23+
<dict>
24+
<key>NSPrivacyAccessedAPIType</key>
25+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
26+
<key>NSPrivacyAccessedAPITypeReasons</key>
27+
<array>
28+
<string>35F9.1</string>
29+
</array>
30+
</dict>
31+
</array>
32+
<key>NSPrivacyCollectedDataTypes</key>
33+
<array/>
34+
<key>NSPrivacyTracking</key>
35+
<false/>
36+
</dict>
37+
</plist>

0 commit comments

Comments
 (0)