chore: initialize project with GRDB dependency and directory structure

feat/music-streaming
Laurent 1 month ago
commit 10e147b447
  1. 4
      .gitignore
  2. 630
      Music.xcodeproj/project.pbxproj
  3. 7
      Music.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  4. 15
      Music.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
  5. 11
      Music/Assets.xcassets/AccentColor.colorset/Contents.json
  6. 58
      Music/Assets.xcassets/AppIcon.appiconset/Contents.json
  7. 6
      Music/Assets.xcassets/Contents.json
  8. 24
      Music/ContentView.swift
  9. 0
      Music/Models/.gitkeep
  10. 17
      Music/MusicApp.swift
  11. 0
      Music/Services/.gitkeep
  12. 0
      Music/ViewModels/.gitkeep
  13. 0
      Music/Views/.gitkeep
  14. 17
      MusicTests/MusicTests.swift
  15. 41
      MusicUITests/MusicUITests.swift
  16. 33
      MusicUITests/MusicUITestsLaunchTests.swift

4
.gitignore vendored

@ -0,0 +1,4 @@
.superpowers/
docs/superpowers/
.DS_Store
xcuserdata/

@ -0,0 +1,630 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 77;
objects = {
/* Begin PBXBuildFile section */
C46B2CC02FC2449900F95A24 /* GRDB in Frameworks */ = {isa = PBXBuildFile; productRef = C46B2CBF2FC2449900F95A24 /* GRDB */; };
C46B2CC22FC2449900F95A24 /* GRDB in Frameworks */ = {isa = PBXBuildFile; productRef = C46B2CC12FC2449900F95A24 /* GRDB */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
C46B2C9B2FC2448800F95A24 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = C46B2C852FC2448700F95A24 /* Project object */;
proxyType = 1;
remoteGlobalIDString = C46B2C8C2FC2448700F95A24;
remoteInfo = Music;
};
C46B2CA52FC2448800F95A24 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = C46B2C852FC2448700F95A24 /* Project object */;
proxyType = 1;
remoteGlobalIDString = C46B2C8C2FC2448700F95A24;
remoteInfo = Music;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
C46B2C8D2FC2448700F95A24 /* Music.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Music.app; sourceTree = BUILT_PRODUCTS_DIR; };
C46B2C9A2FC2448800F95A24 /* MusicTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MusicTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
C46B2CA42FC2448800F95A24 /* MusicUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MusicUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
C46B2CC32FC2449900F95A24 /* Exceptions for "Music" folder in "Music" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
"Models/.gitkeep",
"Services/.gitkeep",
"ViewModels/.gitkeep",
"Views/.gitkeep",
);
target = C46B2C8C2FC2448700F95A24 /* Music */;
};
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
C46B2C8F2FC2448700F95A24 /* Music */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
C46B2CC32FC2449900F95A24 /* Exceptions for "Music" folder in "Music" target */,
);
path = Music;
sourceTree = "<group>";
};
C46B2C9D2FC2448800F95A24 /* MusicTests */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = MusicTests;
sourceTree = "<group>";
};
C46B2CA72FC2448800F95A24 /* MusicUITests */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = MusicUITests;
sourceTree = "<group>";
};
/* End PBXFileSystemSynchronizedRootGroup section */
/* Begin PBXFrameworksBuildPhase section */
C46B2C8A2FC2448700F95A24 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
C46B2CC02FC2449900F95A24 /* GRDB in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
C46B2C972FC2448800F95A24 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
C46B2CC22FC2449900F95A24 /* GRDB in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
C46B2CA12FC2448800F95A24 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
C46B2C842FC2448700F95A24 = {
isa = PBXGroup;
children = (
C46B2C8F2FC2448700F95A24 /* Music */,
C46B2C9D2FC2448800F95A24 /* MusicTests */,
C46B2CA72FC2448800F95A24 /* MusicUITests */,
C46B2C8E2FC2448700F95A24 /* Products */,
);
sourceTree = "<group>";
};
C46B2C8E2FC2448700F95A24 /* Products */ = {
isa = PBXGroup;
children = (
C46B2C8D2FC2448700F95A24 /* Music.app */,
C46B2C9A2FC2448800F95A24 /* MusicTests.xctest */,
C46B2CA42FC2448800F95A24 /* MusicUITests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
C46B2C8C2FC2448700F95A24 /* Music */ = {
isa = PBXNativeTarget;
buildConfigurationList = C46B2CAE2FC2448800F95A24 /* Build configuration list for PBXNativeTarget "Music" */;
buildPhases = (
C46B2C892FC2448700F95A24 /* Sources */,
C46B2C8A2FC2448700F95A24 /* Frameworks */,
C46B2C8B2FC2448700F95A24 /* Resources */,
);
buildRules = (
);
dependencies = (
);
fileSystemSynchronizedGroups = (
C46B2C8F2FC2448700F95A24 /* Music */,
);
name = Music;
packageProductDependencies = (
C46B2CBF2FC2449900F95A24 /* GRDB */,
);
productName = Music;
productReference = C46B2C8D2FC2448700F95A24 /* Music.app */;
productType = "com.apple.product-type.application";
};
C46B2C992FC2448800F95A24 /* MusicTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = C46B2CB12FC2448800F95A24 /* Build configuration list for PBXNativeTarget "MusicTests" */;
buildPhases = (
C46B2C962FC2448800F95A24 /* Sources */,
C46B2C972FC2448800F95A24 /* Frameworks */,
C46B2C982FC2448800F95A24 /* Resources */,
);
buildRules = (
);
dependencies = (
C46B2C9C2FC2448800F95A24 /* PBXTargetDependency */,
);
fileSystemSynchronizedGroups = (
C46B2C9D2FC2448800F95A24 /* MusicTests */,
);
name = MusicTests;
packageProductDependencies = (
C46B2CC12FC2449900F95A24 /* GRDB */,
);
productName = MusicTests;
productReference = C46B2C9A2FC2448800F95A24 /* MusicTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
C46B2CA32FC2448800F95A24 /* MusicUITests */ = {
isa = PBXNativeTarget;
buildConfigurationList = C46B2CB42FC2448800F95A24 /* Build configuration list for PBXNativeTarget "MusicUITests" */;
buildPhases = (
C46B2CA02FC2448800F95A24 /* Sources */,
C46B2CA12FC2448800F95A24 /* Frameworks */,
C46B2CA22FC2448800F95A24 /* Resources */,
);
buildRules = (
);
dependencies = (
C46B2CA62FC2448800F95A24 /* PBXTargetDependency */,
);
fileSystemSynchronizedGroups = (
C46B2CA72FC2448800F95A24 /* MusicUITests */,
);
name = MusicUITests;
packageProductDependencies = (
);
productName = MusicUITests;
productReference = C46B2CA42FC2448800F95A24 /* MusicUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
C46B2C852FC2448700F95A24 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 2630;
LastUpgradeCheck = 2630;
TargetAttributes = {
C46B2C8C2FC2448700F95A24 = {
CreatedOnToolsVersion = 26.3;
};
C46B2C992FC2448800F95A24 = {
CreatedOnToolsVersion = 26.3;
TestTargetID = C46B2C8C2FC2448700F95A24;
};
C46B2CA32FC2448800F95A24 = {
CreatedOnToolsVersion = 26.3;
TestTargetID = C46B2C8C2FC2448700F95A24;
};
};
};
buildConfigurationList = C46B2C882FC2448700F95A24 /* Build configuration list for PBXProject "Music" */;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = C46B2C842FC2448700F95A24;
minimizedProjectReferenceProxies = 1;
packageReferences = (
C46B2CBE2FC2449900F95A24 /* XCRemoteSwiftPackageReference "GRDB" */,
);
preferredProjectObjectVersion = 77;
productRefGroup = C46B2C8E2FC2448700F95A24 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
C46B2C8C2FC2448700F95A24 /* Music */,
C46B2C992FC2448800F95A24 /* MusicTests */,
C46B2CA32FC2448800F95A24 /* MusicUITests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
C46B2C8B2FC2448700F95A24 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
C46B2C982FC2448800F95A24 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
C46B2CA22FC2448800F95A24 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
C46B2C892FC2448700F95A24 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
C46B2C962FC2448800F95A24 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
C46B2CA02FC2448800F95A24 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
C46B2C9C2FC2448800F95A24 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = C46B2C8C2FC2448700F95A24 /* Music */;
targetProxy = C46B2C9B2FC2448800F95A24 /* PBXContainerItemProxy */;
};
C46B2CA62FC2448800F95A24 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = C46B2C8C2FC2448700F95A24 /* Music */;
targetProxy = C46B2CA52FC2448800F95A24 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
C46B2CAC2FC2448800F95A24 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 895UN7FKH2;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 15.6;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
C46B2CAD2FC2448800F95A24 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 895UN7FKH2;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 15.6;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
};
name = Release;
};
C46B2CAF2FC2448800F95A24 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 895UN7FKH2;
ENABLE_APP_SANDBOX = YES;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SELECTED_FILES = readonly;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.staxriver.Music;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
C46B2CB02FC2448800F95A24 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 895UN7FKH2;
ENABLE_APP_SANDBOX = YES;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SELECTED_FILES = readonly;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.staxriver.Music;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
};
name = Release;
};
C46B2CB22FC2448800F95A24 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 895UN7FKH2;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 15.6;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.staxriver.MusicTests;
PRODUCT_NAME = "$(TARGET_NAME)";
STRING_CATALOG_GENERATE_SYMBOLS = NO;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Music.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Music";
};
name = Debug;
};
C46B2CB32FC2448800F95A24 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 895UN7FKH2;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 15.6;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.staxriver.MusicTests;
PRODUCT_NAME = "$(TARGET_NAME)";
STRING_CATALOG_GENERATE_SYMBOLS = NO;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Music.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Music";
};
name = Release;
};
C46B2CB52FC2448800F95A24 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 895UN7FKH2;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.staxriver.MusicUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
STRING_CATALOG_GENERATE_SYMBOLS = NO;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TEST_TARGET_NAME = Music;
};
name = Debug;
};
C46B2CB62FC2448800F95A24 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 895UN7FKH2;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.staxriver.MusicUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
STRING_CATALOG_GENERATE_SYMBOLS = NO;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TEST_TARGET_NAME = Music;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
C46B2C882FC2448700F95A24 /* Build configuration list for PBXProject "Music" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C46B2CAC2FC2448800F95A24 /* Debug */,
C46B2CAD2FC2448800F95A24 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C46B2CAE2FC2448800F95A24 /* Build configuration list for PBXNativeTarget "Music" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C46B2CAF2FC2448800F95A24 /* Debug */,
C46B2CB02FC2448800F95A24 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C46B2CB12FC2448800F95A24 /* Build configuration list for PBXNativeTarget "MusicTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C46B2CB22FC2448800F95A24 /* Debug */,
C46B2CB32FC2448800F95A24 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C46B2CB42FC2448800F95A24 /* Build configuration list for PBXNativeTarget "MusicUITests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C46B2CB52FC2448800F95A24 /* Debug */,
C46B2CB62FC2448800F95A24 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCRemoteSwiftPackageReference section */
C46B2CBE2FC2449900F95A24 /* XCRemoteSwiftPackageReference "GRDB" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/groue/GRDB.swift";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 7.0.0;
};
};
/* End XCRemoteSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
C46B2CBF2FC2449900F95A24 /* GRDB */ = {
isa = XCSwiftPackageProductDependency;
package = C46B2CBE2FC2449900F95A24 /* XCRemoteSwiftPackageReference "GRDB" */;
productName = GRDB;
};
C46B2CC12FC2449900F95A24 /* GRDB */ = {
isa = XCSwiftPackageProductDependency;
package = C46B2CBE2FC2449900F95A24 /* XCRemoteSwiftPackageReference "GRDB" */;
productName = GRDB;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = C46B2C852FC2448700F95A24 /* Project object */;
}

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

@ -0,0 +1,15 @@
{
"originHash" : "d77223ea3cadaebd2154378ec5005b6ebefcef3b34a4dafa368b0c4f16c0561c",
"pins" : [
{
"identity" : "grdb.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/groue/GRDB.swift",
"state" : {
"revision" : "36e30a6f1ef10e4194f6af0cff90888526f0c115",
"version" : "7.10.0"
}
}
],
"version" : 3
}

@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,58 @@
{
"images" : [
{
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,24 @@
//
// ContentView.swift
// Music
//
// Created by Laurent Morvillier on 23/05/2026.
//
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
}
.padding()
}
}
#Preview {
ContentView()
}

@ -0,0 +1,17 @@
//
// MusicApp.swift
// Music
//
// Created by Laurent Morvillier on 23/05/2026.
//
import SwiftUI
@main
struct MusicApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}

@ -0,0 +1,17 @@
//
// MusicTests.swift
// MusicTests
//
// Created by Laurent Morvillier on 23/05/2026.
//
import Testing
@testable import Music
struct MusicTests {
@Test func example() async throws {
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
}
}

@ -0,0 +1,41 @@
//
// MusicUITests.swift
// MusicUITests
//
// Created by Laurent Morvillier on 23/05/2026.
//
import XCTest
final class MusicUITests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately when a failure occurs.
continueAfterFailure = false
// In UI tests its important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
@MainActor
func testExample() throws {
// UI tests must launch the application that they test.
let app = XCUIApplication()
app.launch()
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
@MainActor
func testLaunchPerformance() throws {
// This measures how long it takes to launch your application.
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
}

@ -0,0 +1,33 @@
//
// MusicUITestsLaunchTests.swift
// MusicUITests
//
// Created by Laurent Morvillier on 23/05/2026.
//
import XCTest
final class MusicUITestsLaunchTests: XCTestCase {
override class var runsForEachTargetApplicationUIConfiguration: Bool {
true
}
override func setUpWithError() throws {
continueAfterFailure = false
}
@MainActor
func testLaunch() throws {
let app = XCUIApplication()
app.launch()
// Insert steps here to perform after app launch but before taking a screenshot,
// such as logging into a test account or navigating somewhere in the app
let attachment = XCTAttachment(screenshot: app.screenshot())
attachment.name = "Launch Screen"
attachment.lifetime = .keepAlways
add(attachment)
}
}
Loading…
Cancel
Save