Push du projet

This commit is contained in:
Loris Perret 2024-12-11 11:59:54 +01:00
parent 21127c5391
commit 230a11bcfb
19 changed files with 742 additions and 0 deletions

BIN
UniversalLinkSample/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -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 = "<group>"; };
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 = "<group>"; };
AFFBEFCB2C59252300D55D77 /* BookListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookListView.swift; sourceTree = "<group>"; };
AFFBEFCD2C59252900D55D77 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
AFFBEFD02C59252900D55D77 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
AFFBEFD82C59254B00D55D77 /* Book.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Book.swift; sourceTree = "<group>"; };
AFFBEFDB2C5926F000D55D77 /* BookView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookView.swift; sourceTree = "<group>"; };
AFFBEFDD2C59272000D55D77 /* Book+Mock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Book+Mock.swift"; sourceTree = "<group>"; };
AFFBEFDF2C592F2700D55D77 /* UniversalLinkSample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = UniversalLinkSample.entitlements; sourceTree = "<group>"; };
/* 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 = "<group>";
};
AFFBEFC72C59252300D55D77 /* Products */ = {
isa = PBXGroup;
children = (
AFFBEFC62C59252300D55D77 /* UniversalLinkSample.app */,
);
name = Products;
sourceTree = "<group>";
};
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 = "<group>";
};
AFFBEFCF2C59252900D55D77 /* Preview Content */ = {
isa = PBXGroup;
children = (
AFFBEFD02C59252900D55D77 /* Preview Assets.xcassets */,
);
path = "Preview Content";
sourceTree = "<group>";
};
AFFBEFD72C59253F00D55D77 /* Model */ = {
isa = PBXGroup;
children = (
AFFBEFD82C59254B00D55D77 /* Book.swift */,
AFFBEFDD2C59272000D55D77 /* Book+Mock.swift */,
);
path = Model;
sourceTree = "<group>";
};
AFFBEFDA2C5926D600D55D77 /* Views */ = {
isa = PBXGroup;
children = (
AFFBEFCB2C59252300D55D77 /* BookListView.swift */,
AFFBEFDB2C5926F000D55D77 /* BookView.swift */,
);
path = Views;
sourceTree = "<group>";
};
/* 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 */;
}

View File

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

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1530"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AFFBEFC52C59252300D55D77"
BuildableName = "UniversalLinkSample.app"
BlueprintName = "UniversalLinkSample"
ReferencedContainer = "container:UniversalLinkSample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AFFBEFC52C59252300D55D77"
BuildableName = "UniversalLinkSample.app"
BlueprintName = "UniversalLinkSample"
ReferencedContainer = "container:UniversalLinkSample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AFFBEFC52C59252300D55D77"
BuildableName = "UniversalLinkSample.app"
BlueprintName = "UniversalLinkSample"
ReferencedContainer = "container:UniversalLinkSample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "9267CE3F-2E99-4F16-B230-1030E703C23E"
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "8680813B-AA45-48B2-9AED-3F83299EE344"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "UniversalLinkSample/AppDelegate.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "17"
endingLineNumber = "17"
landmarkName = "application(_:continue:restorationHandler:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "25CB3E34-F639-4CA9-B38D-E4261B9EE6D8"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "UniversalLinkSample/Views/BookListView.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "39"
endingLineNumber = "39"
landmarkName = "body"
landmarkType = "24">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>UniversalLinkSample.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>AFFBEFC52C59252300D55D77</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>

View File

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

View File

@ -0,0 +1,13 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

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

View File

@ -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")
]
}
}

View File

@ -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
}

View File

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

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:dev.openium.fr</string>
</array>
</dict>
</plist>

View File

@ -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)
}
}
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -0,0 +1,17 @@
{
"applinks": {
"apps": [],
"details": [
{
"appIDs": [
"QH6KR5PAQ7.fr.openium.UniversalLinkSample"
],
"components": [
{
"/": "/book/*"
}
]
}
]
}
}