Skip to content

Commit

Permalink
task: Update project to Xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
priyonto committed Jan 7, 2025
1 parent 76cf429 commit a9f4db0
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ on:
jobs:
build:
if: (github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true)
runs-on: macos-13
runs-on: macos-14

steps:
- uses: maxim-lobanov/setup-xcode@v1
- uses: maxim-lobanov/setup-xcode@v1.6.0
with:
xcode-version: '15'
xcode-version: '16.1.0'

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Build app
run: |
xcodebuild -project Ruuvi.xcodeproj -scheme station -configuration Alpha -archivePath ./Build/Station_Dev.xcarchive archive -allowProvisioningUpdates -quiet
xcodebuild -project Ruuvi.xcodeproj -scheme station -configuration Alpha -archivePath ./Build/Station_Dev.xcarchive archive -allowProvisioningUpdates -quiet -destination 'generic/platform=iOS'
- name: Export IPA
env:
EXPORT_PLIST: ${{ secrets.ADHOC_EXPORT_OPTIONS }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ on:

jobs:
build:
runs-on: macos-13
runs-on: macos-14

steps:
- uses: maxim-lobanov/setup-xcode@v1
- uses: maxim-lobanov/setup-xcode@v1.6.0
with:
xcode-version: '15'
xcode-version: '16.1.0'

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Build app
run: |
xcodebuild -project Ruuvi.xcodeproj -scheme station -configuration Release -archivePath ./Build/Station.xcarchive archive -allowProvisioningUpdates -quiet
xcodebuild -project Ruuvi.xcodeproj -scheme station -configuration Release -archivePath ./Build/Station.xcarchive archive -allowProvisioningUpdates -quiet -destination 'generic/platform=iOS'
- name: Export IPA
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ extension CardsPresenter {
startObservingVisibleTag()
}

// swiftlint:disable:next cyclomatic_complexity function_body_length
// swiftlint:disable:next cyclomatic_complexity
private func startObservingRuuviTags() {
ruuviTagToken?.invalidate()
ruuviTagToken = ruuviReactor.observe { [weak self] change in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ extension TagChartsViewPresenter {

extension TagChartsViewPresenter {

// swiftlint:disable:next function_body_length
// swiftlint:disable:next function_body_length cyclomatic_complexity
func insertMeasurements(_ newValues: [RuuviMeasurement]) {
guard view != nil else { return }
ruuviTagData = interactor.ruuviTagData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import RuuviCloud
import RuuviLocalization

extension RuuviCloudApiError: LocalizedError {
extension RuuviCloudApiError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case .connection:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import RuuviCloud
import RuuviLocalization

extension RuuviCloudError: LocalizedError {
extension RuuviCloudError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case let .api(error):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import RuuviCore
import RuuviLocalization

extension RuuviCoreError: LocalizedError {
extension RuuviCoreError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case .locationPermissionDenied:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import RuuviDFU
import RuuviLocalization

extension RuuviDfuError: LocalizedError {
extension RuuviDfuError: @retroactive LocalizedError {
public var errorDescription: String? {
description
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import RuuviPool
import RuuviReactor
import RuuviStorage

extension RuuviDaemonError: LocalizedError {
extension RuuviDaemonError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case let .btkit(error):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import RuuviLocal
import RuuviLocalization

extension RuuviLocalError: LocalizedError {
extension RuuviLocalError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case let .disk(error):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import RuuviLocalization
import RuuviPersistence

extension RuuviPersistenceError: LocalizedError {
extension RuuviPersistenceError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case let .grdb(error):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import RuuviPool

extension RuuviPoolError: LocalizedError {
extension RuuviPoolError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case let .ruuviPersistence(error):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import RuuviReactor

extension RuuviReactorError: LocalizedError {
extension RuuviReactorError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case let .ruuviPersistence(error):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import RuuviRepository

extension RuuviRepositoryError: LocalizedError {
extension RuuviRepositoryError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case let .ruuviStorage(error):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import RuuviLocalization
import RuuviService

extension RuuviServiceError: LocalizedError {
extension RuuviServiceError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case let .btkit(error):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import RuuviStorage

extension RuuviStorageError: LocalizedError {
extension RuuviStorageError: @retroactive LocalizedError {
public var errorDescription: String? {
switch self {
case let .ruuviPersistence(error):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

class AsyncOperation: Operation {
class AsyncOperation: Operation, @unchecked Sendable {
enum State: String {
case ready, executing, finished

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import RuuviLocal
import RuuviPool

class RuuviTagDataPruningOperation: AsyncOperation {
class RuuviTagDataPruningOperation: AsyncOperation, @unchecked Sendable {
private var id: String
private var settings: RuuviLocalSettings
private var ruuviPool: RuuviPool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

open class AsyncOperation: Operation {
open class AsyncOperation: Operation, @unchecked Sendable {
public enum State: String {
case ready, executing, finished

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import RuuviLocal
import RuuviOntology
import RuuviRepository

final class RuuviServiceCloudSyncRecordsOperation: AsyncOperation {
final class RuuviServiceCloudSyncRecordsOperation: AsyncOperation, @unchecked Sendable {
var sensor: RuuviTagSensor
var error: RuuviServiceError?
var records: [AnyRuuviTagSensorRecord] = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
import RuuviOntology
import RuuviPool

final class RuuviTagReadLogsOperation: AsyncOperation {
final class RuuviTagReadLogsOperation: AsyncOperation, @unchecked Sendable {
var uuid: String
var mac: String?
var sensorSettings: SensorSettings?
Expand Down

0 comments on commit a9f4db0

Please sign in to comment.