@regulaforensics/face-sdk 6.3.3-beta → 6.3.4-beta
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/examples/capacitor/package.json +1 -1
- package/examples/cordova/package.json +1 -1
- package/examples/ionic/package.json +1 -1
- package/examples/react-native/package.json +1 -1
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/ios-ci/.gitlab-ci.yml +0 -41
- package/ios-ci/.sample-env +0 -22
- package/ios-ci/README.md +0 -97
- package/ios-ci/RegulaDanger/Package.swift +0 -34
- package/ios-ci/RegulaDanger/Sources/RegulaDanger/RegulaDanger.swift +0 -44
- package/ios-ci/RegulaDanger/Tests/LinuxMain.swift +0 -7
- package/ios-ci/RegulaDanger/Tests/RegulaDangerTests/RegulaDangerTests.swift +0 -15
- package/ios-ci/RegulaDanger/Tests/RegulaDangerTests/XCTestManifests.swift +0 -9
- package/ios-ci/install.sh +0 -9
- package/ios-ci/ios_ci/__init__.py +0 -8
- package/ios-ci/ios_ci/cli.py +0 -408
- package/ios-ci/ios_ci/common/__init__.py +0 -0
- package/ios-ci/ios_ci/common/build_index.py +0 -70
- package/ios-ci/ios_ci/common/clean_cocoapod.sh +0 -13
- package/ios-ci/ios_ci/common/dependency.py +0 -466
- package/ios-ci/ios_ci/common/ftp.py +0 -314
- package/ios-ci/ios_ci/common/searchpod.sh +0 -6
- package/ios-ci/ios_ci/common/wait_for_cocopod.sh +0 -21
- package/ios-ci/ios_ci/inject.py +0 -145
- package/ios-ci/ios_ci/podspec/__init__.py +0 -0
- package/ios-ci/ios_ci/podspec/podspec.py +0 -88
- package/ios-ci/ios_ci/podspec/templates/BTDevice.podspec +0 -17
- package/ios-ci/ios_ci/podspec/templates/Core.podspec +0 -17
- package/ios-ci/ios_ci/podspec/templates/DocumentReader.podspec +0 -19
- package/ios-ci/ios_ci/podspec/templates/FaceCore.podspec +0 -17
- package/ios-ci/ios_ci/podspec/templates/FaceSDK.podspec +0 -18
- package/ios-ci/ios_ci/podspec/templates/IRS.podspec +0 -17
- package/ios-ci/ios_ci/podspec/templates/RegulaCommon.podspec +0 -17
- package/ios-ci/ios_ci/resolve_podfile_common.py +0 -76
- package/ios-ci/ios_ci/spm/AppleRootCA-G3.cer +0 -0
- package/ios-ci/ios_ci/spm/AppleWWDRCAG3.cer +0 -0
- package/ios-ci/ios_ci/spm/SwiftPackageGenerator+Common.sh +0 -48
- package/ios-ci/ios_ci/spm/SwiftPackageGenerator.sh +0 -33
- package/ios-ci/ios_ci/spm/XcodeSPMCollection.json +0 -29
- package/ios-ci/ios_ci/spm/__init__.py +0 -0
- package/ios-ci/ios_ci/spm/askpass.py +0 -19
- package/ios-ci/ios_ci/spm/spm.py +0 -227
- package/ios-ci/ios_ci/upload_build.py +0 -158
- package/ios-ci/ios_ci/version.py +0 -14
- package/ios-ci/poetry.lock +0 -342
- package/ios-ci/pyproject.toml +0 -26
- package/ios-ci/scripts.py +0 -9
- package/ios-ci/tests/__init__.py +0 -0
- package/ios-ci/tests/podspec/fixtures/BTDevice.podspec +0 -17
- package/ios-ci/tests/podspec/fixtures/BTDeviceBeta.podspec +0 -17
- package/ios-ci/tests/podspec/fixtures/DocumentReaderBeta_RegulaCommon_Beta.podspec +0 -19
- package/ios-ci/tests/podspec/fixtures/DocumentReaderBeta_RegulaCommon_Release.podspec +0 -19
- package/ios-ci/tests/podspec/fixtures/DocumentReaderFullRFID.podspec +0 -17
- package/ios-ci/tests/podspec/fixtures/DocumentReaderFullRFIDBeta.podspec +0 -17
- package/ios-ci/tests/podspec/fixtures/DocumentReader_RegulaCommon_Beta.podspec +0 -19
- package/ios-ci/tests/podspec/fixtures/DocumentReader_RegulaCommon_Release.podspec +0 -19
- package/ios-ci/tests/podspec/fixtures/FaceSDK.podspec +0 -18
- package/ios-ci/tests/podspec/fixtures/FaceSDKBeta.podspec +0 -18
- package/ios-ci/tests/podspec/fixtures/IRS.podspec +0 -17
- package/ios-ci/tests/podspec/fixtures/IRSBeta.podspec +0 -17
- package/ios-ci/tests/podspec/fixtures/RegulaCommon.podspec +0 -17
- package/ios-ci/tests/podspec/fixtures/RegulaCommonBeta.podspec +0 -17
- package/ios-ci/tests/podspec/test_podspec.py +0 -188
- package/ios-ci/tests/test_build_index.py +0 -117
- package/ios-ci/tests/test_dependency.py +0 -139
- package/ios-ci/tests/test_ios_ci.py +0 -5
- package/www/capacitor/internal/webpack.config.js +0 -11
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"lint": "eslint"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
18
|
+
"@regulaforensics/face-sdk": "6.3.4-beta",
|
|
19
19
|
"@regulaforensics/cordova-plugin-face-core-basic": "6.2.1",
|
|
20
20
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
21
21
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "Regula Forensics Inc.",
|
|
15
15
|
"license": "commercial",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
17
|
+
"@regulaforensics/face-sdk": "6.3.4-beta",
|
|
18
18
|
"@regulaforensics/cordova-plugin-face-core-basic": "6.2.1",
|
|
19
19
|
"cordova-android": "12.0.1",
|
|
20
20
|
"cordova-ios": "7.0.1",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
19
|
+
"@regulaforensics/face-sdk": "6.3.4-beta",
|
|
20
20
|
"@regulaforensics/cordova-plugin-face-core-basic": "6.2.1",
|
|
21
21
|
"cordova-plugin-camera": "7.0.0",
|
|
22
22
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.4-beta",
|
|
4
4
|
"description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="face-sdk" version="6.3.
|
|
2
|
+
<plugin id="face-sdk" version="6.3.4-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>FaceSDK</name>
|
|
4
4
|
<description>Cordova plugin for Regula Face SDK</description>
|
|
5
5
|
<license>commercial</license>
|
package/ios-ci/.gitlab-ci.yml
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# Official language image. Look for the different tagged releases at:
|
|
2
|
-
# https://hub.docker.com/r/library/python/tags/
|
|
3
|
-
image: python:latest
|
|
4
|
-
|
|
5
|
-
# Change pip's cache directory to be inside the project directory since we can
|
|
6
|
-
# only cache local items.
|
|
7
|
-
variables:
|
|
8
|
-
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
9
|
-
|
|
10
|
-
# Pip's cache doesn't store the python packages
|
|
11
|
-
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
|
|
12
|
-
#
|
|
13
|
-
# If you want to also cache the installed packages, you have to install
|
|
14
|
-
# them in a virtualenv and cache it as well.
|
|
15
|
-
cache:
|
|
16
|
-
paths:
|
|
17
|
-
- .cache/pip
|
|
18
|
-
- venv/
|
|
19
|
-
|
|
20
|
-
before_script:
|
|
21
|
-
- python -V # Print out python version for debugging
|
|
22
|
-
- pip install virtualenv
|
|
23
|
-
- virtualenv venv
|
|
24
|
-
- source venv/bin/activate
|
|
25
|
-
- pip install poetry
|
|
26
|
-
- poetry install
|
|
27
|
-
|
|
28
|
-
stages:
|
|
29
|
-
- build
|
|
30
|
-
- test
|
|
31
|
-
|
|
32
|
-
build-job:
|
|
33
|
-
stage: build
|
|
34
|
-
script:
|
|
35
|
-
- poetry build
|
|
36
|
-
|
|
37
|
-
unit-test-job:
|
|
38
|
-
stage: test
|
|
39
|
-
script:
|
|
40
|
-
- poetry run pytest
|
|
41
|
-
|
package/ios-ci/.sample-env
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# This is a sample .env file for use in local development.
|
|
2
|
-
# Duplicate this file as .env in the root of the project
|
|
3
|
-
# and update the environment variables to match your needs.
|
|
4
|
-
|
|
5
|
-
# Overrides FTP host for Temp uploads.
|
|
6
|
-
# This is usefull when you are under a VPN and the FTP host is different.
|
|
7
|
-
LOCAL_FTP_RENAME=
|
|
8
|
-
|
|
9
|
-
# Credentials for public github repositories access. Needed for updating SPM manifests.
|
|
10
|
-
GITHUB_USERNAME=
|
|
11
|
-
GITHUB_PASSWORD=
|
|
12
|
-
|
|
13
|
-
# Credentials for public pods FTP.
|
|
14
|
-
PUBLIC_UPLOAD_FTP_USERNAME=
|
|
15
|
-
PUBLIC_UPLOAD_FTP_PASSWORD=
|
|
16
|
-
|
|
17
|
-
# Credentials for private pods FTP.
|
|
18
|
-
PRIVATE_UPLOAD_FTP_USERNAME=
|
|
19
|
-
PRIVATE_UPLOAD_FTP_PASSWORD=
|
|
20
|
-
|
|
21
|
-
# Sets how many times inject-dependency will retry to redownload a dependency when unzip fails.
|
|
22
|
-
IOS_CI_DEPENDENCY_DOWNLOAD_ATTEMPTS=
|
package/ios-ci/README.md
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# iOS CI
|
|
2
|
-
Collection of tools related to Continuous Integration for iOS Platform
|
|
3
|
-
|
|
4
|
-
## Dependencies
|
|
5
|
-
We manage our dependencies with [Poetry](!https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions).
|
|
6
|
-
|
|
7
|
-
Make sure to install `poetry` and dependencies before using `ios-ci`.
|
|
8
|
-
```bash
|
|
9
|
-
poetry install
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Configuration
|
|
13
|
-
|
|
14
|
-
The app supports `.env` configuration.
|
|
15
|
-
Please see `.sample-env` for more information on the environment variables.
|
|
16
|
-
|
|
17
|
-
## Installation
|
|
18
|
-
|
|
19
|
-
You can install the package globally as an executable and run `ci [command]` instead of `poetry run ci [command]`.
|
|
20
|
-
This may be usefull when you dont want to have this project as a working directory for calling the commands.
|
|
21
|
-
|
|
22
|
-
The script will build the project and install it using pip3.
|
|
23
|
-
```bash
|
|
24
|
-
bash install.sh
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Commands
|
|
28
|
-
The CLI supports help description of the options.
|
|
29
|
-
Run the command with `-h` or `--help` to get more information.
|
|
30
|
-
```bash
|
|
31
|
-
poetry run ci --help
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Inject dependency
|
|
35
|
-
Downloads and unzips specified dependency.
|
|
36
|
-
|
|
37
|
-
Supports exact version and `+`.
|
|
38
|
-
Finds the most appropriate location for the framework to store if the directory is not specified explicitly.
|
|
39
|
-
If there is a Pods directory - the dependency will be injected there.
|
|
40
|
-
Otherwise the location is the root of the host project.
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
poetry run ci inject-dependency --help
|
|
44
|
-
poetry run ci inject-dependency -n FaceSDK -v + -t Release -d ./Dependency
|
|
45
|
-
poetry run ci inject-dependency -n RegulaCommon -v + -t Release
|
|
46
|
-
poetry run ci inject-dependency -n fullrfid -v + -t Temp -b develop
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### FTP Upload
|
|
51
|
-
Determines the ftp location (private or public FTP server) by the name and the version of a package.
|
|
52
|
-
Creates `.zip` archive and upload the build to the server.
|
|
53
|
-
|
|
54
|
-
Prompts the user with credentials for the FTP server.
|
|
55
|
-
To skip the interaction please specify environment variables:
|
|
56
|
-
```
|
|
57
|
-
PUBLIC_UPLOAD_FTP_USERNAME
|
|
58
|
-
PUBLIC_UPLOAD_FTP_PASSWORD
|
|
59
|
-
PRIVATE_UPLOAD_FTP_USERNAME
|
|
60
|
-
PRIVATE_UPLOAD_FTP_PASSWORD
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
poetry run ci ftp-upload --help
|
|
65
|
-
poetry run ci ftp-upload -n BTDevice -v 0.1.0 -t Temp -p ./temp/BTDevice.framework
|
|
66
|
-
poetry run ci ftp-upload -n FaceSDK -v 0.1.0 -t Beta -p ../Build/FaceSDK.xcframework
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Depdendency Version
|
|
70
|
-
Fetches the version of a dependency by the name and the type.
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
poetry run ci dependency-version --help
|
|
74
|
-
poetry run ci dependency-version -n fullrfid -t Beta
|
|
75
|
-
poetry run ci dependency-version -n FaceSDK -t Beta
|
|
76
|
-
poetry run ci dependency-version -n RegulaCommon -t Temp -b develop
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### Publish SwiftPackage Manifest
|
|
81
|
-
Updates the `SPM` repository manifest with provided version and `.zip` archived build.
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
poetry run ci update-spm --help
|
|
85
|
-
poetry run ci update-spm -v 3.0.799 -f ../Build/FaceSDK.xcframework.zip -r https://github.com/regulaforensics/FaceSDK-Swift-Package
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Create .podspec file
|
|
89
|
-
Creates a `.podspec` file for a package at a given location with a dependency.
|
|
90
|
-
Packages such as `FaceSDK`, `DocumentReader` and `IRS` require specifying a dependency.
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
|
|
94
|
-
poetry run ci create-podspec --help
|
|
95
|
-
poetry run ci create-podspec -n FaceSDK -v "1.0.3" -t Release --d RegulaCommon Temp 1.1.1
|
|
96
|
-
poetry run ci create-podspec -n FaceSDK -v "1.0.3" -t Release --d RegulaCommon 1.1.1 Release -d ../
|
|
97
|
-
```
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// swift-tools-version:5.3
|
|
2
|
-
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
3
|
-
|
|
4
|
-
import PackageDescription
|
|
5
|
-
|
|
6
|
-
let package = Package(
|
|
7
|
-
name: "RegulaDanger",
|
|
8
|
-
products: [
|
|
9
|
-
// Products define the executables and libraries a package produces, and make them visible to other packages.
|
|
10
|
-
.library(
|
|
11
|
-
name: "RegulaDanger",
|
|
12
|
-
targets: ["RegulaDanger"]
|
|
13
|
-
),
|
|
14
|
-
],
|
|
15
|
-
dependencies: [
|
|
16
|
-
// Dependencies declare other packages that this package depends on.
|
|
17
|
-
// .package(url: /* package url */, from: "1.0.0"),
|
|
18
|
-
.package(name: "danger-swift", url: "https://github.com/danger/swift", .upToNextMinor(from: "3.12.0"))
|
|
19
|
-
],
|
|
20
|
-
targets: [
|
|
21
|
-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
|
22
|
-
// Targets can depend on other targets in this package, and on products in packages this package depends on.
|
|
23
|
-
.target(
|
|
24
|
-
name: "RegulaDanger",
|
|
25
|
-
dependencies: [
|
|
26
|
-
.product(name: "Danger", package: "danger-swift")
|
|
27
|
-
]
|
|
28
|
-
),
|
|
29
|
-
.testTarget(
|
|
30
|
-
name: "RegulaDangerTests",
|
|
31
|
-
dependencies: ["RegulaDanger"]
|
|
32
|
-
),
|
|
33
|
-
]
|
|
34
|
-
)
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import Danger
|
|
2
|
-
import Foundation
|
|
3
|
-
|
|
4
|
-
public enum RegulaDanger {
|
|
5
|
-
public static func lint(using danger: DangerDSL = Danger(), rootSourceFolderName: String = "Sources") {
|
|
6
|
-
validateFiles(using: danger, rootSourceFolderName: rootSourceFolderName)
|
|
7
|
-
validateMegeRequest(using: danger)
|
|
8
|
-
|
|
9
|
-
if danger.hasReports {
|
|
10
|
-
danger.message("Reported by [Regula's iOS-CI](http://gitlab.regula.local/mobile-sdk/ios-ci).")
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
static func validateFiles(using danger: DangerDSL, rootSourceFolderName: String) {
|
|
15
|
-
let allFiles = Set(danger.git.createdFiles).union(danger.git.modifiedFiles)
|
|
16
|
-
|
|
17
|
-
let changelogChanged = allFiles.contains("CHANGELOG.md")
|
|
18
|
-
let sourceChanges = allFiles.first(where: { $0.hasPrefix(rootSourceFolderName) })
|
|
19
|
-
if !changelogChanged && sourceChanges != nil {
|
|
20
|
-
warn("No CHANGELOG entry added.")
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
static func validateMegeRequest(using danger: DangerDSL) {
|
|
25
|
-
guard let mr = danger.gitLab?.mergeRequest else {
|
|
26
|
-
print("There is no gitlab.")
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if !mr.description.contains("app.clickup.com") {
|
|
31
|
-
danger.warn("Missing a link to the task from the [clickup](https://app.clickup.com/4535044/home) in the Merge Request description.")
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
if mr.title.range(of: #"SP-\d+:"#, options: .regularExpression) == nil {
|
|
35
|
-
danger.warn("Missing a task prefix in the Merge Request title. Expected format `SP-X: \(mr.title)` where `X` is a task number from the [clickup](https://app.clickup.com/4535044/home).")
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
extension DangerDSL {
|
|
41
|
-
var hasReports: Bool {
|
|
42
|
-
return !self.fails.isEmpty || !self.warnings.isEmpty || !self.messages.isEmpty || !self.markdowns.isEmpty
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import XCTest
|
|
2
|
-
@testable import Danger
|
|
3
|
-
@testable import RegulaDanger
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
final class RegulaDangerTests: XCTestCase {
|
|
7
|
-
func testAllGood() {
|
|
8
|
-
let hello = "Hello, World!"
|
|
9
|
-
XCTAssertEqual(hello, "Hello, World!")
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
static var allTests = [
|
|
13
|
-
("testAllGood", testAllGood),
|
|
14
|
-
]
|
|
15
|
-
}
|
package/ios-ci/install.sh
DELETED