diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7fa71ca..bbec2f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: run: swift test --enable-code-coverage - name: Swift Coverage Report run: xcrun llvm-cov export -format="lcov" .build/debug/CoreDataRepositoryPackageTests.xctest/Contents/MacOS/CoreDataRepositoryPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true # optional (default = false) diff --git a/Package.resolved b/Package.resolved index 5d7ec1d..53a3969 100644 --- a/Package.resolved +++ b/Package.resolved @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/pointfreeco/swift-custom-dump.git", "state": { "branch": null, - "revision": "84b30e1af72e0ffe6dfbfe39d53b8173caacf224", - "version": "0.10.2" + "revision": "0a5bff05fe01dcd513932ed338a4efad8268b803", + "version": "0.11.2" } }, { @@ -24,8 +24,8 @@ "repositoryURL": "https://github.com/pointfreeco/xctest-dynamic-overlay", "state": { "branch": null, - "revision": "4af50b38daf0037cfbab15514a241224c3f62f98", - "version": "0.8.5" + "revision": "50843cbb8551db836adec2290bb4bc6bac5c1865", + "version": "0.9.0" } } ] diff --git a/Sources/CoreDataRepository/CoreDataRepository+Aggregate.swift b/Sources/CoreDataRepository/CoreDataRepository+Aggregate.swift index 77af4f0..9120a9c 100644 --- a/Sources/CoreDataRepository/CoreDataRepository+Aggregate.swift +++ b/Sources/CoreDataRepository/CoreDataRepository+Aggregate.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Sources/CoreDataRepository/CoreDataRepository+Batch.swift b/Sources/CoreDataRepository/CoreDataRepository+Batch.swift index 59f819b..14b9651 100644 --- a/Sources/CoreDataRepository/CoreDataRepository+Batch.swift +++ b/Sources/CoreDataRepository/CoreDataRepository+Batch.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Sources/CoreDataRepository/CoreDataRepository+CRUD.swift b/Sources/CoreDataRepository/CoreDataRepository+CRUD.swift index 78c95e8..2ed1d33 100644 --- a/Sources/CoreDataRepository/CoreDataRepository+CRUD.swift +++ b/Sources/CoreDataRepository/CoreDataRepository+CRUD.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Sources/CoreDataRepository/CoreDataRepository+Fetch.swift b/Sources/CoreDataRepository/CoreDataRepository+Fetch.swift index 815fcf9..531a38e 100644 --- a/Sources/CoreDataRepository/CoreDataRepository+Fetch.swift +++ b/Sources/CoreDataRepository/CoreDataRepository+Fetch.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CombineExt diff --git a/Sources/CoreDataRepository/CoreDataRepository.swift b/Sources/CoreDataRepository/CoreDataRepository.swift index 87590c5..06a503b 100644 --- a/Sources/CoreDataRepository/CoreDataRepository.swift +++ b/Sources/CoreDataRepository/CoreDataRepository.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Sources/CoreDataRepository/CoreDataRepositoryError.swift b/Sources/CoreDataRepository/CoreDataRepositoryError.swift index 834d85e..a2d0cc8 100644 --- a/Sources/CoreDataRepository/CoreDataRepositoryError.swift +++ b/Sources/CoreDataRepository/CoreDataRepositoryError.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Foundation diff --git a/Sources/CoreDataRepository/FetchSubscription.swift b/Sources/CoreDataRepository/FetchSubscription.swift index 9d3bfeb..44ad72c 100644 --- a/Sources/CoreDataRepository/FetchSubscription.swift +++ b/Sources/CoreDataRepository/FetchSubscription.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Sources/CoreDataRepository/NSManagedObject+CRUDHelpers.swift b/Sources/CoreDataRepository/NSManagedObject+CRUDHelpers.swift index f268ebf..ace0f2c 100644 --- a/Sources/CoreDataRepository/NSManagedObject+CRUDHelpers.swift +++ b/Sources/CoreDataRepository/NSManagedObject+CRUDHelpers.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import CoreData import Foundation diff --git a/Sources/CoreDataRepository/NSManagedObjectContext+CRUDHelpers.swift b/Sources/CoreDataRepository/NSManagedObjectContext+CRUDHelpers.swift index e60a760..2be259e 100644 --- a/Sources/CoreDataRepository/NSManagedObjectContext+CRUDHelpers.swift +++ b/Sources/CoreDataRepository/NSManagedObjectContext+CRUDHelpers.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import CoreData import Foundation diff --git a/Sources/CoreDataRepository/NSManagedObjectContext+Child.swift b/Sources/CoreDataRepository/NSManagedObjectContext+Child.swift index 47c7c32..e964626 100644 --- a/Sources/CoreDataRepository/NSManagedObjectContext+Child.swift +++ b/Sources/CoreDataRepository/NSManagedObjectContext+Child.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import CoreData import Foundation diff --git a/Sources/CoreDataRepository/NSManagedObjectContext+Scratchpad.swift b/Sources/CoreDataRepository/NSManagedObjectContext+Scratchpad.swift index fc16522..26c54cd 100644 --- a/Sources/CoreDataRepository/NSManagedObjectContext+Scratchpad.swift +++ b/Sources/CoreDataRepository/NSManagedObjectContext+Scratchpad.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Sources/CoreDataRepository/ReadSubscription.swift b/Sources/CoreDataRepository/ReadSubscription.swift index 22edb1f..b260940 100644 --- a/Sources/CoreDataRepository/ReadSubscription.swift +++ b/Sources/CoreDataRepository/ReadSubscription.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Sources/CoreDataRepository/RepositoryManagedModel.swift b/Sources/CoreDataRepository/RepositoryManagedModel.swift index 9671612..6253353 100644 --- a/Sources/CoreDataRepository/RepositoryManagedModel.swift +++ b/Sources/CoreDataRepository/RepositoryManagedModel.swift @@ -4,13 +4,13 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import CoreData /// A protocol for a CoreData NSManagedObject sub class that has a corresponding value type public protocol RepositoryManagedModel: NSManagedObject { - associatedtype Unmanaged: UnmanagedModel where Unmanaged.RepoManaged == Self + associatedtype Unmanaged: UnmanagedModel /// Returns a value type instance of `self` var asUnmanaged: Unmanaged { get } /// Create `self` from a corresponding instance of `UnmanagedModel`. Should not save the context. diff --git a/Sources/CoreDataRepository/Result+CRUDHelpers.swift b/Sources/CoreDataRepository/Result+CRUDHelpers.swift index 1f66a07..c82b05a 100644 --- a/Sources/CoreDataRepository/Result+CRUDHelpers.swift +++ b/Sources/CoreDataRepository/Result+CRUDHelpers.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import CoreData import Foundation diff --git a/Sources/CoreDataRepository/SubscriptionProvider.swift b/Sources/CoreDataRepository/SubscriptionProvider.swift index e96df89..fd9d01f 100644 --- a/Sources/CoreDataRepository/SubscriptionProvider.swift +++ b/Sources/CoreDataRepository/SubscriptionProvider.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan public protocol SubscriptionProvider { var id: AnyHashable { get } diff --git a/Sources/CoreDataRepository/UnmanagedModel.swift b/Sources/CoreDataRepository/UnmanagedModel.swift index 52edfc4..4725fa0 100644 --- a/Sources/CoreDataRepository/UnmanagedModel.swift +++ b/Sources/CoreDataRepository/UnmanagedModel.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import CoreData import Foundation diff --git a/Sources/CoreDataRepository/_Result.swift b/Sources/CoreDataRepository/_Result.swift index 160895a..1023774 100644 --- a/Sources/CoreDataRepository/_Result.swift +++ b/Sources/CoreDataRepository/_Result.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Foundation diff --git a/Tests/CoreDataRepositoryTests/AggregateRepositoryTests.swift b/Tests/CoreDataRepositoryTests/AggregateRepositoryTests.swift index b41e445..2c5be9d 100644 --- a/Tests/CoreDataRepositoryTests/AggregateRepositoryTests.swift +++ b/Tests/CoreDataRepositoryTests/AggregateRepositoryTests.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Tests/CoreDataRepositoryTests/BatchRepositoryTests.swift b/Tests/CoreDataRepositoryTests/BatchRepositoryTests.swift index ad5124e..48abd62 100644 --- a/Tests/CoreDataRepositoryTests/BatchRepositoryTests.swift +++ b/Tests/CoreDataRepositoryTests/BatchRepositoryTests.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Tests/CoreDataRepositoryTests/CRUDRepositoryTests.swift b/Tests/CoreDataRepositoryTests/CRUDRepositoryTests.swift index 5769ad7..b6d788b 100644 --- a/Tests/CoreDataRepositoryTests/CRUDRepositoryTests.swift +++ b/Tests/CoreDataRepositoryTests/CRUDRepositoryTests.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Tests/CoreDataRepositoryTests/CoreDataStack.swift b/Tests/CoreDataRepositoryTests/CoreDataStack.swift index b8c228f..eda2d89 100644 --- a/Tests/CoreDataRepositoryTests/CoreDataStack.swift +++ b/Tests/CoreDataRepositoryTests/CoreDataStack.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import CoreData diff --git a/Tests/CoreDataRepositoryTests/CoreDataXCTestCase.swift b/Tests/CoreDataRepositoryTests/CoreDataXCTestCase.swift index 3997703..1161feb 100644 --- a/Tests/CoreDataRepositoryTests/CoreDataXCTestCase.swift +++ b/Tests/CoreDataRepositoryTests/CoreDataXCTestCase.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData @@ -93,7 +93,7 @@ class CoreDataXCTestCase: XCTestCase { let historyResult = try XCTUnwrap(repositoryContext().execute(historyRequest) as? NSPersistentHistoryResult) let history = try XCTUnwrap(historyResult.result as? [NSPersistentHistoryTransaction]) XCTAssertGreaterThan(history.count, 0) - history.forEach { historyTransaction in + for historyTransaction in history { XCTAssertEqual(historyTransaction.author, transactionAuthor) } } diff --git a/Tests/CoreDataRepositoryTests/FetchRepositoryTests.swift b/Tests/CoreDataRepositoryTests/FetchRepositoryTests.swift index 3931fba..6700150 100644 --- a/Tests/CoreDataRepositoryTests/FetchRepositoryTests.swift +++ b/Tests/CoreDataRepositoryTests/FetchRepositoryTests.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import Combine import CoreData diff --git a/Tests/CoreDataRepositoryTests/Movie.swift b/Tests/CoreDataRepositoryTests/Movie.swift index 2c53791..afa8c0c 100644 --- a/Tests/CoreDataRepositoryTests/Movie.swift +++ b/Tests/CoreDataRepositoryTests/Movie.swift @@ -4,7 +4,7 @@ // // MIT License // -// Copyright © 2023 Andrew Roan +// Copyright © 2024 Andrew Roan import CoreData import CoreDataRepository