@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
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import json
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
|
|
5
|
-
from ios_ci.podspec import podspec
|
|
6
|
-
|
|
7
|
-
_this_filepath = Path(os.path.dirname(os.path.abspath(__file__)))
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def _files_equal(lhs_filepath, rhs_filepath):
|
|
11
|
-
with open(lhs_filepath) as lhs, open(rhs_filepath) as rhs:
|
|
12
|
-
for lhs_line, rhs_line in zip(lhs, rhs):
|
|
13
|
-
if lhs_line != rhs_line:
|
|
14
|
-
report = json.dumps({"lhs": lhs_line, "rhs": rhs_line}, indent=4)
|
|
15
|
-
raise AssertionError(f"lines do not match: {report}")
|
|
16
|
-
|
|
17
|
-
return True
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
def _fixture_podspec(name: str) -> str:
|
|
21
|
-
result = _this_filepath / "fixtures" / f"{name}.podspec"
|
|
22
|
-
return result
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def test_api_release_common_release():
|
|
26
|
-
result_filepath = podspec.make_podspec(
|
|
27
|
-
name="DocumentReader",
|
|
28
|
-
type="Release",
|
|
29
|
-
version="5.6.0",
|
|
30
|
-
dependency_name="RegulaCommon",
|
|
31
|
-
dependency_type="Release",
|
|
32
|
-
dependency_version="5.6.0",
|
|
33
|
-
output_location_directory=_this_filepath,
|
|
34
|
-
)
|
|
35
|
-
assert _files_equal(
|
|
36
|
-
result_filepath, _fixture_podspec("DocumentReader_RegulaCommon_Release")
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def test_api_release_common_beta():
|
|
41
|
-
result_filepath = podspec.make_podspec(
|
|
42
|
-
name="DocumentReader",
|
|
43
|
-
type="Release",
|
|
44
|
-
version="5.6.0",
|
|
45
|
-
dependency_name="RegulaCommon",
|
|
46
|
-
dependency_type="Beta",
|
|
47
|
-
dependency_version="5.6.0",
|
|
48
|
-
output_location_directory=_this_filepath,
|
|
49
|
-
)
|
|
50
|
-
assert _files_equal(
|
|
51
|
-
result_filepath, _fixture_podspec("DocumentReader_RegulaCommon_Beta")
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
def test_api_beta_common_release():
|
|
56
|
-
result_filepath = podspec.make_podspec(
|
|
57
|
-
name="DocumentReader",
|
|
58
|
-
type="Beta",
|
|
59
|
-
version="5.5.1",
|
|
60
|
-
dependency_name="RegulaCommon",
|
|
61
|
-
dependency_type="Release",
|
|
62
|
-
dependency_version="5.6.0",
|
|
63
|
-
output_location_directory=_this_filepath,
|
|
64
|
-
)
|
|
65
|
-
assert _files_equal(
|
|
66
|
-
result_filepath, _fixture_podspec("DocumentReaderBeta_RegulaCommon_Release")
|
|
67
|
-
)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
def test_api_beta_common_beta():
|
|
71
|
-
result_filepath = podspec.make_podspec(
|
|
72
|
-
name="DocumentReader",
|
|
73
|
-
type="Beta",
|
|
74
|
-
version="5.5.1",
|
|
75
|
-
dependency_name="RegulaCommon",
|
|
76
|
-
dependency_type="Beta",
|
|
77
|
-
dependency_version="5.6.0",
|
|
78
|
-
output_location_directory=_this_filepath,
|
|
79
|
-
)
|
|
80
|
-
assert _files_equal(
|
|
81
|
-
result_filepath, _fixture_podspec("DocumentReaderBeta_RegulaCommon_Beta")
|
|
82
|
-
)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
def test_facesdk_beta():
|
|
86
|
-
result_filepath = podspec.make_podspec(
|
|
87
|
-
name="FaceSDK",
|
|
88
|
-
type="Beta",
|
|
89
|
-
version="5.6.1",
|
|
90
|
-
dependency_name="RegulaCommon",
|
|
91
|
-
dependency_type="Beta",
|
|
92
|
-
dependency_version="5.6.1",
|
|
93
|
-
output_location_directory=_this_filepath,
|
|
94
|
-
)
|
|
95
|
-
assert _files_equal(result_filepath, _fixture_podspec("FaceSDKBeta"))
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
def test_facesdk_release():
|
|
99
|
-
result_filepath = podspec.make_podspec(
|
|
100
|
-
name="FaceSDK",
|
|
101
|
-
type="Release",
|
|
102
|
-
version="5.6.2",
|
|
103
|
-
dependency_name="RegulaCommon",
|
|
104
|
-
dependency_type="Release",
|
|
105
|
-
dependency_version="5.6.2",
|
|
106
|
-
output_location_directory=_this_filepath,
|
|
107
|
-
)
|
|
108
|
-
assert _files_equal(result_filepath, _fixture_podspec("FaceSDK"))
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
def test_btdevice_beta():
|
|
112
|
-
result_filepath = podspec.make_podspec(
|
|
113
|
-
name="BTDevice",
|
|
114
|
-
type="Beta",
|
|
115
|
-
version="5.6.1",
|
|
116
|
-
output_location_directory=_this_filepath,
|
|
117
|
-
)
|
|
118
|
-
assert _files_equal(result_filepath, _fixture_podspec("BTDeviceBeta"))
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
def test_btdevice_release():
|
|
122
|
-
result_filepath = podspec.make_podspec(
|
|
123
|
-
name="BTDevice",
|
|
124
|
-
type="Release",
|
|
125
|
-
version="5.6.2",
|
|
126
|
-
output_location_directory=_this_filepath,
|
|
127
|
-
)
|
|
128
|
-
assert _files_equal(result_filepath, _fixture_podspec("BTDevice"))
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
def test_core_beta():
|
|
132
|
-
result_filepath = podspec.make_podspec(
|
|
133
|
-
name="fullrfid",
|
|
134
|
-
type="Beta",
|
|
135
|
-
version="5.6.1",
|
|
136
|
-
output_location_directory=_this_filepath,
|
|
137
|
-
)
|
|
138
|
-
assert _files_equal(result_filepath, _fixture_podspec("DocumentReaderFullRFIDBeta"))
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
def test_core_release():
|
|
142
|
-
result_filepath = podspec.make_podspec(
|
|
143
|
-
name="fullrfid",
|
|
144
|
-
type="Release",
|
|
145
|
-
version="5.6.2",
|
|
146
|
-
output_location_directory=_this_filepath,
|
|
147
|
-
)
|
|
148
|
-
assert _files_equal(result_filepath, _fixture_podspec("DocumentReaderFullRFID"))
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
def test_irs_beta_with_core_beta():
|
|
152
|
-
result_filepath = podspec.make_podspec(
|
|
153
|
-
name="IRS",
|
|
154
|
-
type="Beta",
|
|
155
|
-
version="5.4.1",
|
|
156
|
-
output_location_directory=_this_filepath,
|
|
157
|
-
)
|
|
158
|
-
assert _files_equal(result_filepath, _fixture_podspec("IRSBeta"))
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
def test_irs_release_with_core_beta():
|
|
162
|
-
result_filepath = podspec.make_podspec(
|
|
163
|
-
name="IRS",
|
|
164
|
-
type="Release",
|
|
165
|
-
version="5.4.2",
|
|
166
|
-
output_location_directory=_this_filepath,
|
|
167
|
-
)
|
|
168
|
-
assert _files_equal(result_filepath, _fixture_podspec("IRS"))
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
def test_regula_common_release():
|
|
172
|
-
result_filepath = podspec.make_podspec(
|
|
173
|
-
name="RegulaCommon",
|
|
174
|
-
type="Release",
|
|
175
|
-
version="5.4.1",
|
|
176
|
-
output_location_directory=_this_filepath,
|
|
177
|
-
)
|
|
178
|
-
assert _files_equal(result_filepath, _fixture_podspec("RegulaCommon"))
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
def test_regula_common_beta():
|
|
182
|
-
result_filepath = podspec.make_podspec(
|
|
183
|
-
name="RegulaCommon",
|
|
184
|
-
type="Beta",
|
|
185
|
-
version="5.4.1",
|
|
186
|
-
output_location_directory=_this_filepath,
|
|
187
|
-
)
|
|
188
|
-
assert _files_equal(result_filepath, _fixture_podspec("RegulaCommonBeta"))
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
from ios_ci.common.build_index import BuildIndex
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
def test_empty_json():
|
|
5
|
-
index = BuildIndex.from_json({})
|
|
6
|
-
assert index is None
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def test_missing_branch_name():
|
|
10
|
-
json = {
|
|
11
|
-
"metadata": {
|
|
12
|
-
"version": 1,
|
|
13
|
-
"updated_at": "2021-09-22T21:16:03.920037",
|
|
14
|
-
},
|
|
15
|
-
"branches": {"builds": ["1.0.0", "1.0.1"]},
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
index = BuildIndex.from_json(json)
|
|
19
|
-
assert index is None
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
def test_missing_builds_array():
|
|
23
|
-
json = {
|
|
24
|
-
"metadata": {
|
|
25
|
-
"version": 1,
|
|
26
|
-
"updated_at": "2021-09-22T21:16:03.920037",
|
|
27
|
-
},
|
|
28
|
-
"branches": {
|
|
29
|
-
"develop": {"builds": []},
|
|
30
|
-
"master": {"builds": ["0.0.1"]},
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
index = BuildIndex.from_json(json)
|
|
35
|
-
assert index is None
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
def test_missing_builds_dict():
|
|
39
|
-
json = {
|
|
40
|
-
"metadata": {
|
|
41
|
-
"version": 1,
|
|
42
|
-
"updated_at": "2021-09-22T21:16:03.920037",
|
|
43
|
-
},
|
|
44
|
-
"branches": {
|
|
45
|
-
"master": {},
|
|
46
|
-
},
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
index = BuildIndex.from_json(json)
|
|
50
|
-
assert index is None
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
def test_missing_data():
|
|
54
|
-
json = {
|
|
55
|
-
"metadata": {
|
|
56
|
-
"version": 1,
|
|
57
|
-
"updated_at": "2021-09-22T21:16:03.920037",
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
index = BuildIndex.from_json(json)
|
|
62
|
-
assert index is None
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def test_success_mapping():
|
|
66
|
-
json = {
|
|
67
|
-
"metadata": {
|
|
68
|
-
"version": 1,
|
|
69
|
-
"updated_at": "2021-09-22T21:16:03.920037",
|
|
70
|
-
},
|
|
71
|
-
"branches": {
|
|
72
|
-
"develop": {"builds": ["1.0.0", "1.0.1"]},
|
|
73
|
-
"master": {"builds": ["0.0.1"]},
|
|
74
|
-
},
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
index = BuildIndex.from_json(json)
|
|
78
|
-
|
|
79
|
-
assert len(index.branches) == 2
|
|
80
|
-
assert index.branches[0] == "develop"
|
|
81
|
-
assert index.branches[1] == "master"
|
|
82
|
-
assert index.builds["develop"][0] == "1.0.0"
|
|
83
|
-
assert index.builds["develop"][1] == "1.0.1"
|
|
84
|
-
assert len(index.builds["master"]) == 1
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
def test_empty_index():
|
|
88
|
-
index = BuildIndex.empty()
|
|
89
|
-
assert index
|
|
90
|
-
assert len(index.branches) == 0
|
|
91
|
-
assert len(index.builds) == 0
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
def test_empty_index_add_version():
|
|
95
|
-
index = BuildIndex.empty()
|
|
96
|
-
index.add_version("0.0.1", "develop")
|
|
97
|
-
index.add_version("1.0.1", "develop")
|
|
98
|
-
|
|
99
|
-
assert len(index.branches) == 1
|
|
100
|
-
assert len(index.builds) == 1
|
|
101
|
-
assert index.branches[0] == "develop"
|
|
102
|
-
assert index.builds["develop"][0] == "0.0.1"
|
|
103
|
-
assert index.builds["develop"][1] == "1.0.1"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
def test_empty_index_add_version_two_branches():
|
|
107
|
-
index = BuildIndex.empty()
|
|
108
|
-
index.add_version("0.0.1", "develop")
|
|
109
|
-
index.add_version("1.0.1", "develop")
|
|
110
|
-
index.add_version("0.0.3", "master")
|
|
111
|
-
|
|
112
|
-
assert len(index.branches) == 2
|
|
113
|
-
assert len(index.builds) == 2
|
|
114
|
-
assert index.branches[0] == "develop"
|
|
115
|
-
assert index.builds["develop"][0] == "0.0.1"
|
|
116
|
-
assert index.builds["develop"][1] == "1.0.1"
|
|
117
|
-
assert index.builds["master"][0] == "0.0.3"
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
from ios_ci.common.dependency import Dependency
|
|
2
|
-
from ios_ci.common.dependency import CoreDependency
|
|
3
|
-
from ios_ci.common.dependency import DependencyBuildType
|
|
4
|
-
|
|
5
|
-
from ios_ci.common import ftp
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def test_core_dependency():
|
|
9
|
-
core = CoreDependency("fullrfid", DependencyBuildType.BETA)
|
|
10
|
-
assert core.core_short_name == "fullrfid"
|
|
11
|
-
assert core.pod_name == "DocumentReaderFullRFIDBeta"
|
|
12
|
-
assert core.pod_short_name == "FullRFIDBeta"
|
|
13
|
-
assert core.framework_name == "DocumentReaderCore.xcframework"
|
|
14
|
-
|
|
15
|
-
core = CoreDependency("fullrfid", DependencyBuildType.NIGHTLY)
|
|
16
|
-
assert core.core_short_name == "fullrfid"
|
|
17
|
-
assert core.pod_name == "DocumentReaderFullRFIDNightly"
|
|
18
|
-
assert core.pod_short_name == "FullRFIDNightly"
|
|
19
|
-
assert core.framework_name == "DocumentReaderCore.xcframework"
|
|
20
|
-
|
|
21
|
-
core = CoreDependency("fullrfid", DependencyBuildType.STAGE)
|
|
22
|
-
assert core.core_short_name == "fullrfid"
|
|
23
|
-
assert core.pod_name == "DocumentReaderFullRFIDStage"
|
|
24
|
-
assert core.pod_short_name == "FullRFIDStage"
|
|
25
|
-
assert core.framework_name == "DocumentReaderCore.xcframework"
|
|
26
|
-
|
|
27
|
-
core = CoreDependency("fullrfid", DependencyBuildType.RELEASE)
|
|
28
|
-
assert core.core_short_name == "fullrfid"
|
|
29
|
-
assert core.pod_name == "DocumentReaderFullRFID"
|
|
30
|
-
assert core.pod_short_name == "FullRFID"
|
|
31
|
-
assert core.framework_name == "DocumentReaderCore.xcframework"
|
|
32
|
-
|
|
33
|
-
core = CoreDependency("fullrfid", DependencyBuildType.TEMP)
|
|
34
|
-
assert core.core_short_name == "fullrfid"
|
|
35
|
-
assert core.pod_name == "DocumentReaderFullRFID"
|
|
36
|
-
assert core.pod_short_name == "FullRFID"
|
|
37
|
-
assert core.framework_name == "DocumentReaderCore.xcframework"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def test_regular_dependency():
|
|
41
|
-
dependency = Dependency("FaceSDK", DependencyBuildType.BETA)
|
|
42
|
-
assert dependency.name == "FaceSDK"
|
|
43
|
-
assert dependency.pod_name == "FaceSDKBeta"
|
|
44
|
-
assert dependency.framework_name == "FaceSDK.xcframework"
|
|
45
|
-
|
|
46
|
-
dependency = Dependency("FaceSDK", DependencyBuildType.NIGHTLY)
|
|
47
|
-
assert dependency.name == "FaceSDK"
|
|
48
|
-
assert dependency.pod_name == "FaceSDKNightly"
|
|
49
|
-
assert dependency.framework_name == "FaceSDK.xcframework"
|
|
50
|
-
|
|
51
|
-
dependency = Dependency("FaceSDK", DependencyBuildType.STAGE)
|
|
52
|
-
assert dependency.name == "FaceSDK"
|
|
53
|
-
assert dependency.pod_name == "FaceSDKStage"
|
|
54
|
-
assert dependency.framework_name == "FaceSDK.xcframework"
|
|
55
|
-
|
|
56
|
-
dependency = Dependency("FaceSDK", DependencyBuildType.RELEASE)
|
|
57
|
-
assert dependency.name == "FaceSDK"
|
|
58
|
-
assert dependency.pod_name == "FaceSDK"
|
|
59
|
-
assert dependency.framework_name == "FaceSDK.xcframework"
|
|
60
|
-
|
|
61
|
-
dependency = Dependency("FaceSDK", DependencyBuildType.TEMP)
|
|
62
|
-
assert dependency.name == "FaceSDK"
|
|
63
|
-
assert dependency.pod_name == "FaceSDK"
|
|
64
|
-
assert dependency.framework_name == "FaceSDK.xcframework"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
def test_btdevice_is_xcframework_yet():
|
|
68
|
-
dependency = Dependency("BTDevice", DependencyBuildType.BETA)
|
|
69
|
-
assert dependency.name == "BTDevice"
|
|
70
|
-
assert dependency.pod_name == "BTDeviceBeta"
|
|
71
|
-
assert dependency.framework_name == "BTDevice.xcframework"
|
|
72
|
-
|
|
73
|
-
dependency = Dependency("BTDevice", DependencyBuildType.NIGHTLY)
|
|
74
|
-
assert dependency.name == "BTDevice"
|
|
75
|
-
assert dependency.pod_name == "BTDeviceNightly"
|
|
76
|
-
assert dependency.framework_name == "BTDevice.xcframework"
|
|
77
|
-
|
|
78
|
-
dependency = Dependency("BTDevice", DependencyBuildType.STAGE)
|
|
79
|
-
assert dependency.name == "BTDevice"
|
|
80
|
-
assert dependency.pod_name == "BTDeviceStage"
|
|
81
|
-
assert dependency.framework_name == "BTDevice.xcframework"
|
|
82
|
-
|
|
83
|
-
dependency = Dependency("BTDevice", DependencyBuildType.RELEASE)
|
|
84
|
-
assert dependency.name == "BTDevice"
|
|
85
|
-
assert dependency.pod_name == "BTDevice"
|
|
86
|
-
assert dependency.framework_name == "BTDevice.xcframework"
|
|
87
|
-
|
|
88
|
-
dependency = Dependency("BTDevice", DependencyBuildType.TEMP)
|
|
89
|
-
assert dependency.name == "BTDevice"
|
|
90
|
-
assert dependency.pod_name == "BTDevice"
|
|
91
|
-
assert dependency.framework_name == "BTDevice.xcframework"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
def test_source_url_builder():
|
|
95
|
-
dependency_name = "FaceSDK"
|
|
96
|
-
|
|
97
|
-
dependency = Dependency(dependency_name, DependencyBuildType.BETA)
|
|
98
|
-
url = ftp.make_ftp_build_archive_url(dependency=dependency, version="0.1.19")
|
|
99
|
-
assert url == "https://pods.regulaforensics.com/FaceSDKBeta/0.1.19/FaceSDKBeta-0.1.19.zip"
|
|
100
|
-
|
|
101
|
-
dependency = Dependency(dependency_name, DependencyBuildType.NIGHTLY)
|
|
102
|
-
url = ftp.make_ftp_build_archive_url(dependency=dependency, version="0.1.19")
|
|
103
|
-
assert url == "https://pods.regulaforensics.com/Nightly/FaceSDKNightly/0.1.19/FaceSDKNightly-0.1.19.zip"
|
|
104
|
-
|
|
105
|
-
dependency = Dependency(dependency_name, DependencyBuildType.STAGE)
|
|
106
|
-
url = ftp.make_ftp_build_archive_url(dependency=dependency, version="0.1.19")
|
|
107
|
-
assert url == "https://pods.regulaforensics.com/Stage/FaceSDKStage/0.1.19/FaceSDKStage-0.1.19.zip"
|
|
108
|
-
|
|
109
|
-
dependency = Dependency(dependency_name, DependencyBuildType.RELEASE)
|
|
110
|
-
url = ftp.make_ftp_build_archive_url(dependency=dependency, version="0.1.17")
|
|
111
|
-
assert url == "https://pods.regulaforensics.com/FaceSDK/0.1.17/FaceSDK-0.1.17.zip"
|
|
112
|
-
|
|
113
|
-
dependency = Dependency(dependency_name, DependencyBuildType.TEMP)
|
|
114
|
-
url = ftp.make_ftp_build_archive_url(dependency=dependency, version="0.0.1")
|
|
115
|
-
assert url == "http://ftp.regula.local/iOS/FaceSDK/0.0.1/FaceSDK-0.0.1.zip"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
def test_core_source_url_builder():
|
|
119
|
-
core_name = "fullrfid"
|
|
120
|
-
|
|
121
|
-
core = CoreDependency(core_name, DependencyBuildType.BETA)
|
|
122
|
-
url = ftp.make_ftp_build_archive_url(core, "5.7.4952")
|
|
123
|
-
assert url == "https://pods.regulaforensics.com/FullRFIDBeta/5.7.4952/DocumentReaderCoreBeta_fullrfid_5.7.4952.zip"
|
|
124
|
-
|
|
125
|
-
core = CoreDependency(core_name, DependencyBuildType.NIGHTLY)
|
|
126
|
-
url = ftp.make_ftp_build_archive_url(core, "5.7.4952")
|
|
127
|
-
assert url == "https://pods.regulaforensics.com/Nightly/FullRFIDNightly/5.7.4952/DocumentReaderCoreNightly_fullrfid_5.7.4952.zip"
|
|
128
|
-
|
|
129
|
-
core = CoreDependency(core_name, DependencyBuildType.STAGE)
|
|
130
|
-
url = ftp.make_ftp_build_archive_url(core, "5.7.4952")
|
|
131
|
-
assert url == "https://pods.regulaforensics.com/Stage/FullRFIDStage/5.7.4952/DocumentReaderCoreStage_fullrfid_5.7.4952.zip"
|
|
132
|
-
|
|
133
|
-
core = CoreDependency(core_name, DependencyBuildType.RELEASE)
|
|
134
|
-
url = ftp.make_ftp_build_archive_url(core, "5.7.4876")
|
|
135
|
-
assert url == "https://pods.regulaforensics.com/FullRFID/5.7.4876/DocumentReaderCore_fullrfid_5.7.4876.zip"
|
|
136
|
-
|
|
137
|
-
core = CoreDependency(core_name, DependencyBuildType.TEMP)
|
|
138
|
-
url = ftp.make_ftp_build_archive_url(core, "5.7.4975")
|
|
139
|
-
assert url == "http://ftp.regula.local/iOS/fullrfid/5.7.4975/DocumentReaderCore_fullrfid_5.7.4975.zip"
|