Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPM compatibility #96

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let package = Package(
name: "SmileID",
dependencies: ["Zip"],
path: "Sources/SmileID",
resources: [.copy("Resources")]
resources: [.process("Resources")]
),
.testTarget(
name: "SmileIDTests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/// or may not be complete yet. This can be checked with `jobStatusResponse.jobComplete`. If not
/// yet complete, the job status will need to be fetched again later. If the job is complete, the
/// final job success can be checked with `jobStatusResponse.jobSuccess`.

import Foundation
public protocol BiometricKycResultDelegate {
/// This function is called as a result of a successful selfie capture and job submission
/// - Parameters:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import Combine
import SwiftUI
import UIKit

class IdInfoInputViewModel: ObservableObject {
// MARK: - Input Properties
private let selectedCountry: String
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Combine
import Foundation

internal enum BiometricKycStep {
case loading(messageKey: String)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// The result of a Document Verification

import Foundation
public protocol DocumentVerificationResultDelegate: AnyObject {
/// Delegate method called after a successful Document Verification capture and submission.
/// It indicates that the capture and network requests were successful. The job may or may not
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// The result of an Enhanced Document Verification

import Foundation
public protocol EnhancedDocumentVerificationResultDelegate: AnyObject {
/// Delegate method called after a successful Enhanced Document Verification capture and
/// submission. It indicates that the capture and network requests were successful. The job
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class SmileIDResourcesHelper {
for candidate in candidates {
let bundlePath = candidate?.appendingPathComponent(bundleName + ".bundle")
if let bundle = bundlePath.flatMap(Bundle.init(url:)) {
bundle.load()
return bundle
}
}
Expand Down
1 change: 1 addition & 0 deletions Sources/SmileID/Classes/Networking/Models/BVN.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
private let nigeriaCountryCode = "NG"
private let bvnIdType = "BVN_MFA"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Source: https://github.com/WeTransfer/WeScan

import Vision
import UIKit

struct Quadrilateral: Transformable {
var topLeft: CGPoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// The result of a selfie capture session and job submission

import Foundation
public protocol SmartSelfieResultDelegate {
/// This function is called as a result of a successful selfie capture
/// - Parameters:
Expand Down
1 change: 1 addition & 0 deletions Sources/SmileID/Classes/Views/JobSubmittable.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Combine
import Foundation

protocol JobSubmittable {
func getJobStatus<T: JobResult>(
Expand Down
Loading