Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Nov 11, 2024
1 parent 2c217ae commit 0ba8011
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 89 deletions.
68 changes: 0 additions & 68 deletions .github/workflows/ci-pull-request.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci-push.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- OversizeOnboardingKit
- OversizePhotoKit
destination:
- platform=iOS Simulator,name=iPhone 16,OS=18.0
- platform=iOS Simulator,name=iPhone 16,OS=18.1
- platform=macOS,arch=arm64
with:
package: ${{ matrix.packages }}
Expand All @@ -40,7 +40,7 @@ jobs:
strategy:
matrix:
destination:
- platform=iOS Simulator,name=iPhone 16,OS=18.0
- platform=iOS Simulator,name=iPhone 16,OS=18.1
- platform=macOS,arch=arm64
with:
path: AppExample/Example
Expand Down
12 changes: 6 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import PackageDescription

let remoteDependencies: [PackageDescription.Package.Dependency] = [
.package(url: "https://github.com/oversizedev/OversizeUI.git", .upToNextMajor(from: "3.0.2")),
.package(url: "https://github.com/oversizedev/OversizeCore.git", .upToNextMajor(from: "2.0.0")),
.package(url: "https://github.com/oversizedev/OversizeCore.git", .upToNextMajor(from: "1.3.0")),
.package(url: "https://github.com/oversizedev/OversizeServices.git", .upToNextMajor(from: "1.4.0")),
.package(url: "https://github.com/oversizedev/OversizeLocalizable.git", .upToNextMajor(from: "1.4.0")),
.package(url: "https://github.com/oversizedev/OversizeComponents.git", .upToNextMajor(from: "1.2.0")),
.package(url: "https://github.com/oversizedev/OversizeComponents.git", .upToNextMajor(from: "2.0.0")),
.package(url: "https://github.com/oversizedev/OversizeResources.git", .upToNextMajor(from: "2.0.0")),
.package(url: "https://github.com/oversizedev/OversizeNetwork.git", .upToNextMajor(from: "0.4.0")),
.package(url: "https://github.com/oversizedev/OversizeModels.git", .upToNextMajor(from: "0.1.0")),
Expand All @@ -32,10 +32,10 @@ let developmentDependencies: [PackageDescription.Package.Dependency] = [
.package(url: "https://github.com/hmlongco/Factory.git", .upToNextMajor(from: "2.1.3")),
]

var dependencies: [PackageDescription.Package.Dependency] = []
var dependencies: [PackageDescription.Package.Dependency] = remoteDependencies

if ProcessInfo.processInfo.environment["BUILD_MODE"] == "PRODUCTION" {
dependencies = remoteDependencies
if ProcessInfo.processInfo.environment["BUILD_MODE"] == "DEV" {
dependencies = developmentDependencies
}

let package = Package(
Expand All @@ -56,7 +56,7 @@ let package = Package(
.library(name: "OversizeNotificationKit", targets: ["OversizeNotificationKit"]),
.library(name: "OversizePhotoKit", targets: ["OversizePhotoKit"]),
],
dependencies: developmentDependencies,
dependencies: dependencies,
targets: [
.target(
name: "OversizeKit",
Expand Down
8 changes: 4 additions & 4 deletions Sources/OversizeKit/SettingsKit/SettingsRouter/Screens.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ public extension SettingsScreen {
}
}

//public struct SettingsNavigateAction {
// public struct SettingsNavigateAction {
// public typealias Action = (SettingsNavigationType) -> Void
// public let action: Action
// public func callAsFunction(_ navigationType: SettingsNavigationType) {
// action(navigationType)
// }
//}
// }

//public enum SettingsNavigationType {
// public enum SettingsNavigationType {
// case move(SettingsScreen)
// case backToRoot
// case back(Int = 1)
Expand All @@ -94,7 +94,7 @@ public extension SettingsScreen {
// case dismissFullScreenCover
// case dismissDisabled(_ isDismissDisabled: Bool = true)
// case presentHUD(_ text: String, type: HUDMessageType)
//}
// }

//
// public struct SettingsNavigateEnvironmentKey: EnvironmentKey {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
// SettingsRouting.swift, created on 10.05.2024
//

import OversizeRouter
import SwiftUI
import OversizeRouter
import SwiftUI

public struct SettingsRoutingView: View {

public init() {

}
public struct SettingsRoutingView: View {
public init() {}

public var body: some View {
RoutingView<SettingsView, SettingsScreen> {
Expand All @@ -20,4 +17,4 @@
}
.systemServices()
}
}
}
1 change: 0 additions & 1 deletion Sources/OversizeKit/SettingsKit/Views/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import SwiftUI

// swiftlint:disable line_length
public struct SettingsView<AppSection: View, HeadSection: View>: View {

@Environment(Router<SettingsScreen>.self) var router
@Environment(\.iconStyle) var iconStyle: IconStyle
@Environment(\.theme) var theme: ThemeSettings
Expand Down

0 comments on commit 0ba8011

Please sign in to comment.