Skip to content
Open
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
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@main
- name: Install dependencies
run: brew install swift-sh mockolo
run: brew install mockolo
- name: Setup config and TSL files
run: |
export RESOURCES_DIRECTORY="Modules/ConfigLib/Sources/ConfigLib/Resources"
Expand All @@ -73,12 +73,12 @@ jobs:

if [ -f "$TSL_FILES_DIRECTORY/eu-lotl.xml" ]; then
echo "Getting TSL (local LOTL)"
python3 scripts/TSLXMLDownloader.py --tslFile="$TSL_FILES_DIRECTORY/eu-lotl.xml" --tslTestFile="$TSL_FILES_DIRECTORY/$(basename 'https://ec.europa.eu/tools/lotl/eu-lotl.xml')" --countries="EE" --isDevBuild="False"
python3 scripts/tsl_xml_downloader.py --tslFile="$TSL_FILES_DIRECTORY/eu-lotl.xml" --tslTestFile="$TSL_FILES_DIRECTORY/$(basename 'https://ec.europa.eu/tools/lotl/eu-lotl.xml')" --countries="EE" --isDevBuild="False"

echo "Finished downloading TSL"
else
echo "Getting TSL (remote LOTL)"
python3 scripts/TSLXMLDownloader.py --tslTestFile="$TSL_FILES_DIRECTORY/$(basename 'https://ec.europa.eu/tools/lotl/eu-lotl.xml')" --countries="EE" --isDevBuild="False"
python3 scripts/tsl_xml_downloader.py --tslTestFile="$TSL_FILES_DIRECTORY/$(basename 'https://ec.europa.eu/tools/lotl/eu-lotl.xml')" --countries="EE" --isDevBuild="False"
echo "Finished downloading TSL"
fi

Expand All @@ -100,10 +100,8 @@ jobs:
echo APP_VERSION=$(xcodebuild -project ${{ github.workspace }}/RIADigiDoc.xcodeproj -showBuildSettings | grep MARKETING_VERSION | tr -d 'MARKETING_VERSION =') >> $GITHUB_ENV
- name: Fetch default configuration
run: |
echo "Cleaning swift-sh cache"
swift-sh --clean-cache
echo "Fetching default configuration"
swift-sh SetupConfiguration/Sources/main.swift
python3 scripts/setup_configuration.py
- name: Run tests
run: |
cd ${{ github.workspace }}
Expand All @@ -112,6 +110,7 @@ jobs:

xcodebuild test \
-project RIADigiDoc.xcodeproj \
-skipPackagePluginValidation \
-scheme AllTests \
-destination 'platform=iOS Simulator,name=iPhone 17' \
-resultBundlePath TestResults.xcresult \
Expand Down Expand Up @@ -142,6 +141,7 @@ jobs:

xcodebuild clean build \
-project RIADigiDoc.xcodeproj \
-skipPackagePluginValidation \
-scheme RIADigiDoc \
-destination 'platform=iOS Simulator,name=iPhone 17' \
-derivedDataPath "${{ github.workspace }}/build" \
Expand Down
1 change: 0 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ excluded:
- RIADigiDocTests/Mocks/*/*.swift
- Modules/**/Mocks/*/*.swift
- Extensions/**/Mocks/*/*.swift
- SetupConfiguration/**/*.swift
- build
- SourcePackages
- .build
Expand Down
13 changes: 4 additions & 9 deletions Extensions/FileImportShareExtension/UI/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class ShareViewController: UIViewController, Sendable, Loggable {
viewModel.status = .processing

let shareView = ShareView(
statusChanged: {
Task { [weak self] in
guard let self else { return }
statusChanged: { [weak self] in
guard let self else { return }

Task {
let sharedItems = await self.extractSharedFileItems()
await self.viewModel.importFiles(sharedItems)
}
Expand Down Expand Up @@ -70,12 +70,7 @@ class ShareViewController: UIViewController, Sendable, Loggable {
)
} else if item != nil {
if let itemData = item as? Data {
Task { [weak self] in
guard let self = self else {
continuation.resume(throwing: FileImportError.dataConversionFailed)
return
}

Task {
do {
let url = try await self.viewModel.convertNSDataToURL(data: itemData)
continuation.resume(returning: url)
Expand Down
2 changes: 1 addition & 1 deletion Modules/CommonsLib/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
.library(name: "CommonsLibMocks", targets: ["CommonsLibMocks"])
],
dependencies: [
.package(url: "https://github.com/hmlongco/Factory", exact: .init(2, 5, 3))
.package(url: "https://github.com/hmlongco/Factory", exact: .init(3, 2, 1))
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
51 changes: 21 additions & 30 deletions Modules/ConfigLib/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions Modules/ConfigLib/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ let package = Package(
.library(name: "ConfigLibMocks", targets: ["ConfigLibMocks"])
],
dependencies: [
.package(url: "https://github.com/hmlongco/Factory", exact: .init(2, 5, 3)),
.package(url: "https://github.com/Alamofire/Alamofire.git", exact: .init(5, 11, 2)),
.package(url: "https://github.com/TakeScoop/SwiftyRSA", exact: .init(1, 8, 0)),
.package(url: "https://github.com/hmlongco/Factory", exact: .init(3, 2, 1)),
.package(url: "https://github.com/Alamofire/Alamofire.git", exact: .init(5, 12, 0)),
.package(path: "../CommonsLib"),
.package(path: "../UtilsLib"),
.package(path: "../Test/CommonsTestShared")
Expand All @@ -30,7 +29,6 @@ let package = Package(
dependencies: [
"Alamofire",
"CommonsLib",
"SwiftyRSA",
"UtilsLib",
.product(name: "FactoryKit", package: "Factory")
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ public actor ConfigurationLoader: ConfigurationLoaderProtocol, Loggable {
continuation.yield(config)
}

continuation.onTermination = { @Sendable _ in
Task { [weak self] in
continuation.onTermination = { @Sendable [weak self] _ in
Task {
await self?.removeContinuation(token)
}
}
Expand Down
147 changes: 69 additions & 78 deletions Modules/CryptoLib/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Modules/CryptoLib/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/filom/ASN1Decoder", exact: .init(1, 10, 0)),
.package(url: "https://github.com/leif-ibsen/BigInt.git", exact: .init(1, 23, 0)),
.package(url: "https://github.com/hmlongco/Factory", exact: .init(2, 5, 3)),
.package(url: "https://github.com/leif-ibsen/BigInt.git", exact: .init(1, 24, 0)),
.package(url: "https://github.com/hmlongco/Factory", exact: .init(3, 2, 1)),
.package(path: "../ConfigLib"),
.package(path: "../CommonsLib"),
.package(path: "../IdCardLib"),
Expand Down
2 changes: 1 addition & 1 deletion Modules/IdCardLib/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/leif-ibsen/BigInt.git", exact: .init(1, 23, 0))
.package(url: "https://github.com/leif-ibsen/BigInt.git", exact: .init(1, 24, 0))
],
targets: [
.binaryTarget(
Expand Down
Loading
Loading