Skip to content

Commit

Permalink
Update code base
Browse files Browse the repository at this point in the history
  • Loading branch information
bourvill committed Jan 24, 2024
1 parent 7922973 commit fc30903
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 26 deletions.
6 changes: 2 additions & 4 deletions App/Features/About/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ struct AboutView: View {
}
}

struct AboutView_Previews: PreviewProvider {
static var previews: some View {
AboutView()
}
#Preview {
AboutView()
}
6 changes: 2 additions & 4 deletions App/Features/BugReport/BugReportView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ struct BugReportView: View {
}
}

struct BugReportView_Previews: PreviewProvider {
static var previews: some View {
BugReportView()
}
#Preview {
BugReportView()
}
6 changes: 2 additions & 4 deletions App/Features/Entry/AddEntryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ private class AddEntryModel: ObservableObject {
}
}

struct AddEntryView_Previews: PreviewProvider {
static var previews: some View {
AddEntryView()
}
#Preview {
AddEntryView()
}
2 changes: 1 addition & 1 deletion App/Features/Sync/CoreDataSync.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Factory
import Foundation
import SharedLib

class CoreDataSync {
final class CoreDataSync {
private var objectsDidChangeCancellable: AnyCancellable?

@Injected(\.appSync) private var appSync
Expand Down
5 changes: 2 additions & 3 deletions App/Lib/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import SharedLib
import SwiftUI
import WallabagKit

final class AppState: NSObject, ObservableObject {
final class AppState: ObservableObject {
@Injected(\.wallabagSession) private var session

@Published var registred: Bool = false {
Expand All @@ -16,8 +16,7 @@ final class AppState: NSObject, ObservableObject {

@AppStorage("readingSpeed") var readingSpeed: Double = 200

override init() {
super.init()
init() {
registred = WallabagUserDefaults.registred
}

Expand Down
12 changes: 6 additions & 6 deletions App/WallabagApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ struct WallabagApp: App {
#endif

@InjectedObject(\.wallabagPlusStore) private var wallabagPlusStore
@Injected(\.appState) private var appState
@Injected(\.router) private var router
@InjectedObject(\.appState) private var appState
@InjectedObject(\.router) private var router
#if os(iOS)
@Injected(\.playerPublisher) private var playerPublisher
@InjectedObject(\.playerPublisher) private var playerPublisher
#endif
@Injected(\.errorHandler) private var errorHandler
@Injected(\.appSync) private var appSync
@InjectedObject(\.errorHandler) private var errorHandler
@InjectedObject(\.appSync) private var appSync
@InjectedObject(\.appSetting) private var appSetting
@Injected(\.coreDataSync) private var coreDataSync
@Injected(\.appSetting) private var appSetting
@Injected(\.coreData) private var coreData

var body: some Scene {
Expand Down
2 changes: 1 addition & 1 deletion wallabag.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@
attributes = {
BuildIndependentTargetsInParallel = YES;
LastSwiftUpdateCheck = 1240;
LastUpgradeCheck = 1510;
LastUpgradeCheck = 1520;
TargetAttributes = {
094AA03A2629EB1F006E5605 = {
CreatedOnToolsVersion = 12.4;
Expand Down
2 changes: 1 addition & 1 deletion wallabag.xcodeproj/xcshareddata/xcschemes/bagit.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
LastUpgradeVersion = "1520"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
Expand Down
4 changes: 2 additions & 2 deletions wallabag.xcodeproj/xcshareddata/xcschemes/wallabag.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -83,7 +83,7 @@
</BuildableReference>
</BuildableProductRunnable>
<StoreKitConfigurationFileReference
identifier = "../App/WallabagStoreKit.storekit">
identifier = "../../App/WallabagStoreKit.storekit">
</StoreKitConfigurationFileReference>
</LaunchAction>
<ProfileAction
Expand Down

0 comments on commit fc30903

Please sign in to comment.