@smile_identity/react-native 10.3.3 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +4 -1
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/smileidentity/react/SmileIdModule.kt +169 -93
- package/android/src/main/java/com/smileidentity/react/views/SmileIDDocumentCaptureView.kt +13 -11
- package/android/src/main/java/com/smileidentity/react/views/SmileIDSmartSelfieCaptureView.kt +32 -45
- package/ios/RNSmileID.swift +469 -460
- package/ios/SmileId.xcodeproj/xcuserdata/japhetndhlovu.xcuserdatad/xcschemes/SmileId.xcscheme +23 -0
- package/ios/SmileId.xcodeproj/xcuserdata/japhetndhlovu.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/View/SmileIDDocumentCaptureView.swift +1 -2
- package/ios/ViewManagers/SmileIDSmartSelfieCaptureViewManager.swift +1 -2
- package/package.json +2 -2
- package/react-native-smile-id.podspec +10 -5
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Scheme
|
|
3
|
+
version = "1.3">
|
|
4
|
+
<BuildAction>
|
|
5
|
+
<BuildActionEntries>
|
|
6
|
+
<BuildActionEntry
|
|
7
|
+
buildForRunning = "YES">
|
|
8
|
+
<BuildableReference
|
|
9
|
+
BuildableIdentifier = "primary"
|
|
10
|
+
BlueprintIdentifier = "58B511DA1A9E6C8500147676"
|
|
11
|
+
BuildableName = "libSmileId.a"
|
|
12
|
+
BlueprintName = "SmileId"
|
|
13
|
+
ReferencedContainer = "container:SmileId.xcodeproj">
|
|
14
|
+
</BuildableReference>
|
|
15
|
+
</BuildActionEntry>
|
|
16
|
+
</BuildActionEntries>
|
|
17
|
+
</BuildAction>
|
|
18
|
+
<LaunchAction
|
|
19
|
+
useCustomWorkingDirectory = "NO"
|
|
20
|
+
buildConfiguration = "Debug"
|
|
21
|
+
allowLocationSimulation = "YES">
|
|
22
|
+
</LaunchAction>
|
|
23
|
+
</Scheme>
|
|
@@ -0,0 +1,14 @@
|
|
|
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>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>SmileId.xcscheme</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
|
@@ -12,7 +12,6 @@ struct DocumentCaptureResult {
|
|
|
12
12
|
|
|
13
13
|
struct SmileIDDocumentCaptureView: View {
|
|
14
14
|
@ObservedObject var product: SmileIDProductModel
|
|
15
|
-
@State private var localMetadata = LocalMetadata()
|
|
16
15
|
var smileIDUIViewDelegate: SmileIDUIViewDelegate
|
|
17
16
|
var body: some View {
|
|
18
17
|
NavigationView {
|
|
@@ -36,7 +35,7 @@ struct SmileIDDocumentCaptureView: View {
|
|
|
36
35
|
onError: onError,
|
|
37
36
|
onSkip: onSkip
|
|
38
37
|
)
|
|
39
|
-
}.navigationViewStyle(StackNavigationViewStyle())
|
|
38
|
+
}.navigationViewStyle(StackNavigationViewStyle())
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
func onConfirmed(data: Data) {
|
|
@@ -13,8 +13,7 @@ class SmileIDSmartSelfieCaptureViewManager: SmileIDBaseViewManager {
|
|
|
13
13
|
jobId: product.jobId ?? generateJobId(),
|
|
14
14
|
allowNewEnroll: false,
|
|
15
15
|
skipApiSubmission: true,
|
|
16
|
-
extraPartnerParams: [:],
|
|
17
|
-
localMetadata: LocalMetadata()), product: product, smileIDUIViewDelegate: self
|
|
16
|
+
extraPartnerParams: [:]), product: product, smileIDUIViewDelegate: self
|
|
18
17
|
)),
|
|
19
18
|
product: product)
|
|
20
19
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smile_identity/react-native",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Official wrapper for the Smile ID
|
|
3
|
+
"version": "11.0.0",
|
|
4
|
+
"description": "Official wrapper for the Smile ID >v10 android and iOS SDKs",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
7
7
|
"types": "lib/typescript/index.d.ts",
|
|
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
s.source = { :git => "https://docs.usesmileid.com/.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
|
-
s.dependency "SmileID", "
|
|
18
|
+
s.dependency "SmileID", "11.0.0"
|
|
19
19
|
# for development alongside example/ios/Podfile uncomment the version and specify
|
|
20
20
|
# tag or branch in example/ios/Podfile
|
|
21
21
|
# s.dependency "SmileID"
|
|
@@ -27,19 +27,24 @@ Pod::Spec.new do |s|
|
|
|
27
27
|
else
|
|
28
28
|
s.dependency "React-Core"
|
|
29
29
|
|
|
30
|
-
#
|
|
31
|
-
if ENV[
|
|
30
|
+
# Handle architecture-specific dependencies
|
|
31
|
+
if ENV["RCT_NEW_ARCH_ENABLED"] == "1"
|
|
32
32
|
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
33
|
-
s.pod_target_xcconfig
|
|
33
|
+
s.pod_target_xcconfig = {
|
|
34
34
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
35
35
|
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
36
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
36
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
|
37
|
+
"GCC_PREPROCESSOR_DEFINITIONS" => "SMILE_ID_VERSION=\\\"#{package["version"]}\\\""
|
|
37
38
|
}
|
|
38
39
|
s.dependency "React-Codegen"
|
|
39
40
|
s.dependency "RCT-Folly"
|
|
40
41
|
s.dependency "RCTRequired"
|
|
41
42
|
s.dependency "RCTTypeSafety"
|
|
42
43
|
s.dependency "ReactCommon/turbomodule/core"
|
|
44
|
+
else
|
|
45
|
+
s.pod_target_xcconfig = {
|
|
46
|
+
"GCC_PREPROCESSOR_DEFINITIONS" => "SMILE_ID_VERSION=\\\"#{package["version"]}\\\""
|
|
47
|
+
}
|
|
43
48
|
end
|
|
44
49
|
end
|
|
45
50
|
end
|