From 0917e47ea327f08a2407901b380865687c42698a Mon Sep 17 00:00:00 2001 From: Davide Date: Thu, 3 Oct 2024 12:13:03 +0200 Subject: [PATCH] Granularize app features (#671) Split .networkSettings and add .sharing for #668 --- Passepartout.xcodeproj/project.pbxproj | 2 + .../xcschemes/Passepartout.xcscheme | 9 +++- .../Sources/AppUI/IAP/AppFeature.swift | 19 ++++++--- .../AppUI/IAP/AppProduct+Features.swift | 8 ++-- .../AppUI/IAP/AppUserLevel+Features.swift | 4 +- .../Views/Profile/ProfileCoordinator.swift | 14 +++++-- .../AppUITests/ConnectionObserverTests.swift | 2 +- .../Tests/AppUITests/IAPManagerTests.swift | 41 ++++++++++--------- Passepartout/Passepartout.xctestplan | 31 ++++++++++++++ Passepartout/Shared/Shared+AppUI.swift | 2 +- 10 files changed, 94 insertions(+), 38 deletions(-) create mode 100644 Passepartout/Passepartout.xctestplan diff --git a/Passepartout.xcodeproj/project.pbxproj b/Passepartout.xcodeproj/project.pbxproj index 256005943..d0b87c142 100644 --- a/Passepartout.xcodeproj/project.pbxproj +++ b/Passepartout.xcodeproj/project.pbxproj @@ -71,6 +71,7 @@ /* Begin PBXFileReference section */ 0E06D18F2B87629100176E1D /* Passepartout.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Passepartout.app; sourceTree = BUILT_PRODUCTS_DIR; }; 0E7C3CCC2C9AF44600B72E69 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 0E7D0EAD2CAEA47700A2F28D /* Passepartout.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Passepartout.xctestplan; sourceTree = ""; }; 0E7E3D5B2B9345FD002BBDB4 /* App.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = ""; }; 0E7E3D5C2B9345FD002BBDB4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 0E7E3D5F2B9345FD002BBDB4 /* PassepartoutApp.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PassepartoutApp.swift; sourceTree = ""; }; @@ -152,6 +153,7 @@ isa = PBXGroup; children = ( 0E8D852F2C328CA1005493DE /* Config.xcconfig */, + 0E7D0EAD2CAEA47700A2F28D /* Passepartout.xctestplan */, 0E7E3D5A2B9345FD002BBDB4 /* App */, 0EDE56E82CABE40D0082D21C /* Intents */, 0E7E3D612B9345FD002BBDB4 /* Shared */, diff --git a/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout.xcscheme b/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout.xcscheme index c9a6abfa6..0a61ae412 100644 --- a/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout.xcscheme +++ b/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout.xcscheme @@ -26,8 +26,13 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES" - shouldAutocreateTestPlan = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES"> + + + +