diff --git a/UniversalLinkSample/.DS_Store b/UniversalLinkSample/.DS_Store new file mode 100644 index 0000000..a44ac64 Binary files /dev/null and b/UniversalLinkSample/.DS_Store differ diff --git a/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.pbxproj b/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.pbxproj new file mode 100644 index 0000000..ac5345d --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.pbxproj @@ -0,0 +1,385 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + AF498EE42C5BBCBF00077F8D /* apple-app-site-association in Resources */ = {isa = PBXBuildFile; fileRef = AF498EE32C5BBCBF00077F8D /* apple-app-site-association */; }; + AFFBEFCA2C59252300D55D77 /* UniversalLinkSampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = AFFBEFC92C59252300D55D77 /* UniversalLinkSampleApp.swift */; }; + AFFBEFCC2C59252300D55D77 /* BookListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AFFBEFCB2C59252300D55D77 /* BookListView.swift */; }; + AFFBEFCE2C59252900D55D77 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AFFBEFCD2C59252900D55D77 /* Assets.xcassets */; }; + AFFBEFD12C59252900D55D77 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AFFBEFD02C59252900D55D77 /* Preview Assets.xcassets */; }; + AFFBEFD92C59254B00D55D77 /* Book.swift in Sources */ = {isa = PBXBuildFile; fileRef = AFFBEFD82C59254B00D55D77 /* Book.swift */; }; + AFFBEFDC2C5926F000D55D77 /* BookView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AFFBEFDB2C5926F000D55D77 /* BookView.swift */; }; + AFFBEFDE2C59272000D55D77 /* Book+Mock.swift in Sources */ = {isa = PBXBuildFile; fileRef = AFFBEFDD2C59272000D55D77 /* Book+Mock.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + AF498EE32C5BBCBF00077F8D /* apple-app-site-association */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "apple-app-site-association"; sourceTree = ""; }; + AFFBEFC62C59252300D55D77 /* UniversalLinkSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UniversalLinkSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + AFFBEFC92C59252300D55D77 /* UniversalLinkSampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UniversalLinkSampleApp.swift; sourceTree = ""; }; + AFFBEFCB2C59252300D55D77 /* BookListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookListView.swift; sourceTree = ""; }; + AFFBEFCD2C59252900D55D77 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + AFFBEFD02C59252900D55D77 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + AFFBEFD82C59254B00D55D77 /* Book.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Book.swift; sourceTree = ""; }; + AFFBEFDB2C5926F000D55D77 /* BookView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookView.swift; sourceTree = ""; }; + AFFBEFDD2C59272000D55D77 /* Book+Mock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Book+Mock.swift"; sourceTree = ""; }; + AFFBEFDF2C592F2700D55D77 /* UniversalLinkSample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = UniversalLinkSample.entitlements; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + AFFBEFC32C59252300D55D77 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + AFFBEFBD2C59252300D55D77 = { + isa = PBXGroup; + children = ( + AFFBEFC82C59252300D55D77 /* UniversalLinkSample */, + AFFBEFC72C59252300D55D77 /* Products */, + ); + sourceTree = ""; + }; + AFFBEFC72C59252300D55D77 /* Products */ = { + isa = PBXGroup; + children = ( + AFFBEFC62C59252300D55D77 /* UniversalLinkSample.app */, + ); + name = Products; + sourceTree = ""; + }; + AFFBEFC82C59252300D55D77 /* UniversalLinkSample */ = { + isa = PBXGroup; + children = ( + AF498EE32C5BBCBF00077F8D /* apple-app-site-association */, + AFFBEFDF2C592F2700D55D77 /* UniversalLinkSample.entitlements */, + AFFBEFC92C59252300D55D77 /* UniversalLinkSampleApp.swift */, + AFFBEFDA2C5926D600D55D77 /* Views */, + AFFBEFD72C59253F00D55D77 /* Model */, + AFFBEFCD2C59252900D55D77 /* Assets.xcassets */, + AFFBEFCF2C59252900D55D77 /* Preview Content */, + ); + path = UniversalLinkSample; + sourceTree = ""; + }; + AFFBEFCF2C59252900D55D77 /* Preview Content */ = { + isa = PBXGroup; + children = ( + AFFBEFD02C59252900D55D77 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + AFFBEFD72C59253F00D55D77 /* Model */ = { + isa = PBXGroup; + children = ( + AFFBEFD82C59254B00D55D77 /* Book.swift */, + AFFBEFDD2C59272000D55D77 /* Book+Mock.swift */, + ); + path = Model; + sourceTree = ""; + }; + AFFBEFDA2C5926D600D55D77 /* Views */ = { + isa = PBXGroup; + children = ( + AFFBEFCB2C59252300D55D77 /* BookListView.swift */, + AFFBEFDB2C5926F000D55D77 /* BookView.swift */, + ); + path = Views; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + AFFBEFC52C59252300D55D77 /* UniversalLinkSample */ = { + isa = PBXNativeTarget; + buildConfigurationList = AFFBEFD42C59252900D55D77 /* Build configuration list for PBXNativeTarget "UniversalLinkSample" */; + buildPhases = ( + AFFBEFC22C59252300D55D77 /* Sources */, + AFFBEFC32C59252300D55D77 /* Frameworks */, + AFFBEFC42C59252300D55D77 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = UniversalLinkSample; + productName = UniversalLinkSample; + productReference = AFFBEFC62C59252300D55D77 /* UniversalLinkSample.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + AFFBEFBE2C59252300D55D77 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1530; + LastUpgradeCheck = 1530; + TargetAttributes = { + AFFBEFC52C59252300D55D77 = { + CreatedOnToolsVersion = 15.3; + }; + }; + }; + buildConfigurationList = AFFBEFC12C59252300D55D77 /* Build configuration list for PBXProject "UniversalLinkSample" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = AFFBEFBD2C59252300D55D77; + productRefGroup = AFFBEFC72C59252300D55D77 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + AFFBEFC52C59252300D55D77 /* UniversalLinkSample */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + AFFBEFC42C59252300D55D77 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + AFFBEFD12C59252900D55D77 /* Preview Assets.xcassets in Resources */, + AF498EE42C5BBCBF00077F8D /* apple-app-site-association in Resources */, + AFFBEFCE2C59252900D55D77 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + AFFBEFC22C59252300D55D77 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + AFFBEFCC2C59252300D55D77 /* BookListView.swift in Sources */, + AFFBEFCA2C59252300D55D77 /* UniversalLinkSampleApp.swift in Sources */, + AFFBEFD92C59254B00D55D77 /* Book.swift in Sources */, + AFFBEFDC2C5926F000D55D77 /* BookView.swift in Sources */, + AFFBEFDE2C59272000D55D77 /* Book+Mock.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + AFFBEFD22C59252900D55D77 /* 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; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + AFFBEFD32C59252900D55D77 /* 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"; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + AFFBEFD52C59252900D55D77 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = UniversalLinkSample/UniversalLinkSample.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 10; + DEVELOPMENT_ASSET_PATHS = "\"UniversalLinkSample/Preview Content\""; + DEVELOPMENT_TEAM = QH6KR5PAQ7; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = fr.openium.UniversalLinkSample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + AFFBEFD62C59252900D55D77 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = UniversalLinkSample/UniversalLinkSample.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 10; + DEVELOPMENT_ASSET_PATHS = "\"UniversalLinkSample/Preview Content\""; + DEVELOPMENT_TEAM = QH6KR5PAQ7; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = fr.openium.UniversalLinkSample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + AFFBEFC12C59252300D55D77 /* Build configuration list for PBXProject "UniversalLinkSample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AFFBEFD22C59252900D55D77 /* Debug */, + AFFBEFD32C59252900D55D77 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + AFFBEFD42C59252900D55D77 /* Build configuration list for PBXNativeTarget "UniversalLinkSample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AFFBEFD52C59252900D55D77 /* Debug */, + AFFBEFD62C59252900D55D77 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = AFFBEFBE2C59252300D55D77 /* Project object */; +} diff --git a/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.xcworkspace/xcuserdata/lperret.xcuserdatad/UserInterfaceState.xcuserstate b/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.xcworkspace/xcuserdata/lperret.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..c020205 Binary files /dev/null and b/UniversalLinkSample/UniversalLinkSample.xcodeproj/project.xcworkspace/xcuserdata/lperret.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/UniversalLinkSample/UniversalLinkSample.xcodeproj/xcshareddata/xcschemes/UniversalLinkSample.xcscheme b/UniversalLinkSample/UniversalLinkSample.xcodeproj/xcshareddata/xcschemes/UniversalLinkSample.xcscheme new file mode 100644 index 0000000..7ab43d7 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample.xcodeproj/xcshareddata/xcschemes/UniversalLinkSample.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UniversalLinkSample/UniversalLinkSample.xcodeproj/xcuserdata/lperret.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/UniversalLinkSample/UniversalLinkSample.xcodeproj/xcuserdata/lperret.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..79b07c4 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample.xcodeproj/xcuserdata/lperret.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,40 @@ + + + + + + + + + + + + + diff --git a/UniversalLinkSample/UniversalLinkSample.xcodeproj/xcuserdata/lperret.xcuserdatad/xcschemes/xcschememanagement.plist b/UniversalLinkSample/UniversalLinkSample.xcodeproj/xcuserdata/lperret.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..5b94408 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample.xcodeproj/xcuserdata/lperret.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + UniversalLinkSample.xcscheme_^#shared#^_ + + orderHint + 0 + + + SuppressBuildableAutocreation + + AFFBEFC52C59252300D55D77 + + primary + + + + + diff --git a/UniversalLinkSample/UniversalLinkSample/Assets.xcassets/AccentColor.colorset/Contents.json b/UniversalLinkSample/UniversalLinkSample/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/UniversalLinkSample/UniversalLinkSample/Assets.xcassets/AppIcon.appiconset/Contents.json b/UniversalLinkSample/UniversalLinkSample/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/UniversalLinkSample/UniversalLinkSample/Assets.xcassets/Contents.json b/UniversalLinkSample/UniversalLinkSample/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/UniversalLinkSample/UniversalLinkSample/Model/Book+Mock.swift b/UniversalLinkSample/UniversalLinkSample/Model/Book+Mock.swift new file mode 100644 index 0000000..eeaf13c --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/Model/Book+Mock.swift @@ -0,0 +1,22 @@ +// +// Book+Mock.swift +// UniversalLinkSample +// +// Created by Loris Perret on 30/07/2024. +// + +import Foundation + +extension Book { + enum Mock { + static var preview = Book(id: 0, title: "Lord of the ring", author: "J.R.R. Tolkien") + + static var previewList = [ + Book(id: 0, title: "Lord of the Rings", author: "J.R.R. Tolkien"), + Book(id: 1, title: "1984", author: "George Orwell"), + Book(id: 2, title: "To Kill a Mockingbird", author: "Harper Lee"), + Book(id: 3, title: "Pride and Prejudice", author: "Jane Austen"), + Book(id: 4, title: "The Great Gatsby", author: "F. Scott Fitzgerald") + ] + } +} diff --git a/UniversalLinkSample/UniversalLinkSample/Model/Book.swift b/UniversalLinkSample/UniversalLinkSample/Model/Book.swift new file mode 100644 index 0000000..7f91138 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/Model/Book.swift @@ -0,0 +1,14 @@ +// +// Book.swift +// UniversalLinkSample +// +// Created by Loris Perret on 30/07/2024. +// + +import Foundation + +struct Book: Identifiable, Hashable { + let id: Int + let title: String + let author: String +} diff --git a/UniversalLinkSample/UniversalLinkSample/Preview Content/Preview Assets.xcassets/Contents.json b/UniversalLinkSample/UniversalLinkSample/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/UniversalLinkSample/UniversalLinkSample/UniversalLinkSample.entitlements b/UniversalLinkSample/UniversalLinkSample/UniversalLinkSample.entitlements new file mode 100644 index 0000000..5b1b888 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/UniversalLinkSample.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.developer.associated-domains + + applinks:dev.openium.fr + + + diff --git a/UniversalLinkSample/UniversalLinkSample/UniversalLinkSampleApp.swift b/UniversalLinkSample/UniversalLinkSample/UniversalLinkSampleApp.swift new file mode 100644 index 0000000..1421b54 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/UniversalLinkSampleApp.swift @@ -0,0 +1,17 @@ +// +// UniversalLinkSampleApp.swift +// UniversalLinkSample +// +// Created by Loris Perret on 30/07/2024. +// + +import SwiftUI + +@main +struct UniversalLinkSampleApp: App { + var body: some Scene { + WindowGroup { + BookListView(books: Book.Mock.previewList) + } + } +} diff --git a/UniversalLinkSample/UniversalLinkSample/Views/BookListView.swift b/UniversalLinkSample/UniversalLinkSample/Views/BookListView.swift new file mode 100644 index 0000000..11ff7d0 --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/Views/BookListView.swift @@ -0,0 +1,50 @@ +// +// BookListView.swift +// UniversalLinkSample +// +// Created by Loris Perret on 30/07/2024. +// + +import SwiftUI + +struct BookListView: View { + + // MARK: - Properties + + let books: [Book] + @State private var path = [Book]() + + // MARK: - Body + + var body: some View { + NavigationStack(path: $path) { + List { + ForEach(books) { book in + NavigationLink { + BookView(book: book) + } label: { + VStack(alignment: .leading) { + Text("\(book.title)") + Text("- \(book.author)") + } + } + } + } + .padding(.top, 20) + .scrollContentBackground(.hidden) + .navigationTitle("Book List") + .background(.black.opacity(0.05)) + .navigationDestination(for: Book.self) { BookView(book: $0) } + .onOpenURL(perform: { url in + if let id = Int(url.lastPathComponent), + let book = books.first(where: { $0.id == id }) { + path.append(book) + } + }) + } + } +} + +#Preview { + BookListView(books: Book.Mock.previewList) +} diff --git a/UniversalLinkSample/UniversalLinkSample/Views/BookView.swift b/UniversalLinkSample/UniversalLinkSample/Views/BookView.swift new file mode 100644 index 0000000..a2a595f --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/Views/BookView.swift @@ -0,0 +1,36 @@ +// +// BookView.swift +// UniversalLinkSample +// +// Created by Loris Perret on 30/07/2024. +// + +import SwiftUI + +struct BookView: View { + + // MARK: - Properties + + let book: Book + + // MARK: - Body + + var body: some View { + VStack { + Text(book.title) + .font(.largeTitle) + + Text(book.author) + .font(.title) + } + .padding(48) + .navigationTitle("Book") + .navigationBarTitleDisplayMode(.large) + .frame(maxWidth: .infinity, maxHeight: .infinity) + .background(.black.opacity(0.05)) + } +} + +#Preview { + BookView(book: Book.Mock.preview) +} diff --git a/UniversalLinkSample/UniversalLinkSample/apple-app-site-association b/UniversalLinkSample/UniversalLinkSample/apple-app-site-association new file mode 100644 index 0000000..26ebb4d --- /dev/null +++ b/UniversalLinkSample/UniversalLinkSample/apple-app-site-association @@ -0,0 +1,17 @@ +{ + "applinks": { + "apps": [], + "details": [ + { + "appIDs": [ + "QH6KR5PAQ7.fr.openium.UniversalLinkSample" + ], + "components": [ + { + "/": "/book/*" + } + ] + } + ] + } +} \ No newline at end of file