Compare commits
12 Commits
new_xcode
...
flatbuffer
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c1626cf5a | |||
| 5f8bd8b202 | |||
| 721ffed265 | |||
| e0d18f945f | |||
| 3489b6e8c8 | |||
| aa5ba0f79e | |||
| 86b1752e91 | |||
| d11ea5421f | |||
| 26fd547160 | |||
| 9dabc84f22 | |||
| 0234f2c8ff | |||
| 6e03523c4f |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,3 +4,5 @@
|
|||||||
buildServer.json
|
buildServer.json
|
||||||
.swiftlint.yml
|
.swiftlint.yml
|
||||||
/ImageViewer.xcodeproj/xcuserdata
|
/ImageViewer.xcodeproj/xcuserdata
|
||||||
|
/ImageViewer.xcodeproj/project.xcworkspace/xcuserdata
|
||||||
|
/ImageViewer/flatc
|
||||||
|
|||||||
@@ -3,320 +3,153 @@
|
|||||||
archiveVersion = 1;
|
archiveVersion = 1;
|
||||||
classes = {
|
classes = {
|
||||||
};
|
};
|
||||||
objectVersion = 90;
|
objectVersion = 60;
|
||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXContainerItemProxy section */
|
/* Begin PBXBuildFile section */
|
||||||
22FB3BA32E18135B00A9B407 /* PBXContainerItemProxy */ = {
|
228A32B12F849062008A980A /* metadata_generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 228A32B02F849062008A980A /* metadata_generated.swift */; };
|
||||||
isa = PBXContainerItemProxy;
|
22B015A72F82A2DC0088F94F /* FlatBuffers in Frameworks */ = {isa = PBXBuildFile; productRef = 22B015A62F82A2DC0088F94F /* FlatBuffers */; };
|
||||||
containerPortal = 22FB3B842E18135A00A9B407 /* Project object */;
|
22B015A92F82A2DC0088F94F /* FlexBuffers in Frameworks */ = {isa = PBXBuildFile; productRef = 22B015A82F82A2DC0088F94F /* FlexBuffers */; };
|
||||||
proxyType = 1;
|
840F62692E7B65B700C8A64A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 840F62682E7B65B700C8A64A /* AppDelegate.swift */; };
|
||||||
remoteGlobalIDString = 22FB3B8B2E18135A00A9B407;
|
840F626D2E7B65B700C8A64A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 840F626C2E7B65B700C8A64A /* ViewController.swift */; };
|
||||||
remoteInfo = ImageViewer;
|
840F62722E7B65B900C8A64A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 840F62712E7B65B900C8A64A /* Assets.xcassets */; };
|
||||||
};
|
/* End PBXBuildFile section */
|
||||||
22FB3BAD2E18135B00A9B407 /* PBXContainerItemProxy */ = {
|
|
||||||
isa = PBXContainerItemProxy;
|
|
||||||
containerPortal = 22FB3B842E18135A00A9B407 /* Project object */;
|
|
||||||
proxyType = 1;
|
|
||||||
remoteGlobalIDString = 22FB3B8B2E18135A00A9B407;
|
|
||||||
remoteInfo = ImageViewer;
|
|
||||||
};
|
|
||||||
/* End PBXContainerItemProxy section */
|
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
22FB3B8C2E18135A00A9B407 /* ImageViewer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ImageViewer.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
228A32B02F849062008A980A /* metadata_generated.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = metadata_generated.swift; sourceTree = "<group>"; };
|
||||||
22FB3BA22E18135B00A9B407 /* ImageViewerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ImageViewerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
840F62652E7B65B700C8A64A /* ImageViewer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ImageViewer.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
22FB3BAC2E18135B00A9B407 /* ImageViewerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ImageViewerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
840F62682E7B65B700C8A64A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||||
|
840F626C2E7B65B700C8A64A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
|
||||||
|
840F62712E7B65B900C8A64A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
|
840F62762E7B65B900C8A64A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
|
||||||
22FB3BB42E18135B00A9B407 /* Exceptions for "ImageViewer" folder in "ImageViewer" target */ = {
|
|
||||||
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
|
|
||||||
membershipExceptions = (
|
|
||||||
Info.plist,
|
|
||||||
);
|
|
||||||
target = 22FB3B8B2E18135A00A9B407 /* ImageViewer */;
|
|
||||||
};
|
|
||||||
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
|
||||||
|
|
||||||
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
|
||||||
22FB3B8E2E18135A00A9B407 /* ImageViewer */ = {
|
|
||||||
isa = PBXFileSystemSynchronizedRootGroup;
|
|
||||||
exceptions = (
|
|
||||||
22FB3BB42E18135B00A9B407 /* Exceptions for "ImageViewer" folder in "ImageViewer" target */,
|
|
||||||
);
|
|
||||||
path = ImageViewer;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
22FB3BA52E18135B00A9B407 /* ImageViewerTests */ = {
|
|
||||||
isa = PBXFileSystemSynchronizedRootGroup;
|
|
||||||
path = ImageViewerTests;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
22FB3BAF2E18135B00A9B407 /* ImageViewerUITests */ = {
|
|
||||||
isa = PBXFileSystemSynchronizedRootGroup;
|
|
||||||
path = ImageViewerUITests;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
/* End PBXFileSystemSynchronizedRootGroup section */
|
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
22FB3B892E18135A00A9B407 /* Frameworks */ = {
|
840F62622E7B65B700C8A64A /* Frameworks */ = {
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
};
|
|
||||||
22FB3B9F2E18135B00A9B407 /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
};
|
|
||||||
22FB3BA92E18135B00A9B407 /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
22B015A72F82A2DC0088F94F /* FlatBuffers in Frameworks */,
|
||||||
|
22B015A92F82A2DC0088F94F /* FlexBuffers in Frameworks */,
|
||||||
);
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
/* End PBXFrameworksBuildPhase section */
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
22FB3B832E18135A00A9B407 = {
|
840F625C2E7B65B700C8A64A = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
22FB3B8E2E18135A00A9B407 /* ImageViewer */,
|
840F62672E7B65B700C8A64A /* ImageViewer */,
|
||||||
22FB3BA52E18135B00A9B407 /* ImageViewerTests */,
|
840F62662E7B65B700C8A64A /* Products */,
|
||||||
22FB3BAF2E18135B00A9B407 /* ImageViewerUITests */,
|
|
||||||
22FB3B8D2E18135A00A9B407 /* Products */,
|
|
||||||
);
|
);
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
22FB3B8D2E18135A00A9B407 /* Products */ = {
|
840F62662E7B65B700C8A64A /* Products */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
22FB3B8C2E18135A00A9B407 /* ImageViewer.app */,
|
840F62652E7B65B700C8A64A /* ImageViewer.app */,
|
||||||
22FB3BA22E18135B00A9B407 /* ImageViewerTests.xctest */,
|
|
||||||
22FB3BAC2E18135B00A9B407 /* ImageViewerUITests.xctest */,
|
|
||||||
);
|
);
|
||||||
name = Products;
|
name = Products;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
|
840F62672E7B65B700C8A64A /* ImageViewer */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
228A32B02F849062008A980A /* metadata_generated.swift */,
|
||||||
|
840F62682E7B65B700C8A64A /* AppDelegate.swift */,
|
||||||
|
840F626C2E7B65B700C8A64A /* ViewController.swift */,
|
||||||
|
840F62712E7B65B900C8A64A /* Assets.xcassets */,
|
||||||
|
840F62762E7B65B900C8A64A /* Info.plist */,
|
||||||
|
);
|
||||||
|
path = ImageViewer;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
/* Begin PBXNativeTarget section */
|
||||||
22FB3B8B2E18135A00A9B407 /* ImageViewer */ = {
|
840F62642E7B65B700C8A64A /* ImageViewer */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = 22FB3BB52E18135B00A9B407 /* Build configuration list for PBXNativeTarget "ImageViewer" */;
|
buildConfigurationList = 840F62792E7B65B900C8A64A /* Build configuration list for PBXNativeTarget "ImageViewer" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
22FB3B882E18135A00A9B407 /* Sources */,
|
840F62612E7B65B700C8A64A /* Sources */,
|
||||||
22FB3B892E18135A00A9B407 /* Frameworks */,
|
840F62622E7B65B700C8A64A /* Frameworks */,
|
||||||
22FB3B8A2E18135A00A9B407 /* Resources */,
|
840F62632E7B65B700C8A64A /* Resources */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
fileSystemSynchronizedGroups = (
|
dependencies = (
|
||||||
22FB3B8E2E18135A00A9B407 /* ImageViewer */,
|
|
||||||
);
|
);
|
||||||
name = ImageViewer;
|
name = ImageViewer;
|
||||||
productName = ImageViewer;
|
productName = ImageViewer;
|
||||||
productReference = 22FB3B8C2E18135A00A9B407 /* ImageViewer.app */;
|
productReference = 840F62652E7B65B700C8A64A /* ImageViewer.app */;
|
||||||
productType = "com.apple.product-type.application";
|
productType = "com.apple.product-type.application";
|
||||||
};
|
};
|
||||||
22FB3BA12E18135B00A9B407 /* ImageViewerTests */ = {
|
|
||||||
isa = PBXNativeTarget;
|
|
||||||
buildConfigurationList = 22FB3BBA2E18135B00A9B407 /* Build configuration list for PBXNativeTarget "ImageViewerTests" */;
|
|
||||||
buildPhases = (
|
|
||||||
22FB3B9E2E18135B00A9B407 /* Sources */,
|
|
||||||
22FB3B9F2E18135B00A9B407 /* Frameworks */,
|
|
||||||
22FB3BA02E18135B00A9B407 /* Resources */,
|
|
||||||
);
|
|
||||||
buildRules = (
|
|
||||||
);
|
|
||||||
dependencies = (
|
|
||||||
22FB3BA42E18135B00A9B407 /* PBXTargetDependency */,
|
|
||||||
);
|
|
||||||
fileSystemSynchronizedGroups = (
|
|
||||||
22FB3BA52E18135B00A9B407 /* ImageViewerTests */,
|
|
||||||
);
|
|
||||||
name = ImageViewerTests;
|
|
||||||
productName = ImageViewerTests;
|
|
||||||
productReference = 22FB3BA22E18135B00A9B407 /* ImageViewerTests.xctest */;
|
|
||||||
productType = "com.apple.product-type.bundle.unit-test";
|
|
||||||
};
|
|
||||||
22FB3BAB2E18135B00A9B407 /* ImageViewerUITests */ = {
|
|
||||||
isa = PBXNativeTarget;
|
|
||||||
buildConfigurationList = 22FB3BBD2E18135B00A9B407 /* Build configuration list for PBXNativeTarget "ImageViewerUITests" */;
|
|
||||||
buildPhases = (
|
|
||||||
22FB3BA82E18135B00A9B407 /* Sources */,
|
|
||||||
22FB3BA92E18135B00A9B407 /* Frameworks */,
|
|
||||||
22FB3BAA2E18135B00A9B407 /* Resources */,
|
|
||||||
);
|
|
||||||
buildRules = (
|
|
||||||
);
|
|
||||||
dependencies = (
|
|
||||||
22FB3BAE2E18135B00A9B407 /* PBXTargetDependency */,
|
|
||||||
);
|
|
||||||
fileSystemSynchronizedGroups = (
|
|
||||||
22FB3BAF2E18135B00A9B407 /* ImageViewerUITests */,
|
|
||||||
);
|
|
||||||
name = ImageViewerUITests;
|
|
||||||
productName = ImageViewerUITests;
|
|
||||||
productReference = 22FB3BAC2E18135B00A9B407 /* ImageViewerUITests.xctest */;
|
|
||||||
productType = "com.apple.product-type.bundle.ui-testing";
|
|
||||||
};
|
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
/* Begin PBXProject section */
|
/* Begin PBXProject section */
|
||||||
22FB3B842E18135A00A9B407 /* Project object */ = {
|
840F625D2E7B65B700C8A64A /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
BuildIndependentTargetsInParallel = 1;
|
BuildIndependentTargetsInParallel = 1;
|
||||||
LastSwiftUpdateCheck = 1640;
|
LastSwiftUpdateCheck = 1420;
|
||||||
LastUpgradeCheck = 1640;
|
LastUpgradeCheck = 1640;
|
||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
22FB3B8B2E18135A00A9B407 = {
|
840F62642E7B65B700C8A64A = {
|
||||||
CreatedOnToolsVersion = 16.4;
|
CreatedOnToolsVersion = 14.2;
|
||||||
};
|
|
||||||
22FB3BA12E18135B00A9B407 = {
|
|
||||||
CreatedOnToolsVersion = 16.4;
|
|
||||||
TestTargetID = 22FB3B8B2E18135A00A9B407;
|
|
||||||
};
|
|
||||||
22FB3BAB2E18135B00A9B407 = {
|
|
||||||
CreatedOnToolsVersion = 16.4;
|
|
||||||
TestTargetID = 22FB3B8B2E18135A00A9B407;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
buildConfigurationList = 22FB3B872E18135A00A9B407 /* Build configuration list for PBXProject "ImageViewer" */;
|
buildConfigurationList = 840F62602E7B65B700C8A64A /* Build configuration list for PBXProject "ImageViewer" */;
|
||||||
|
compatibilityVersion = "Xcode 14.0";
|
||||||
developmentRegion = en;
|
developmentRegion = en;
|
||||||
hasScannedForEncodings = 0;
|
hasScannedForEncodings = 0;
|
||||||
knownRegions = (
|
knownRegions = (
|
||||||
en,
|
en,
|
||||||
Base,
|
Base,
|
||||||
);
|
);
|
||||||
mainGroup = 22FB3B832E18135A00A9B407;
|
mainGroup = 840F625C2E7B65B700C8A64A;
|
||||||
minimizedProjectReferenceProxies = 1;
|
packageReferences = (
|
||||||
preferredProjectObjectVersion = 90;
|
22B015A52F82A2DC0088F94F /* XCLocalSwiftPackageReference "../flatbuffers" */,
|
||||||
productRefGroup = 22FB3B8D2E18135A00A9B407 /* Products */;
|
);
|
||||||
|
productRefGroup = 840F62662E7B65B700C8A64A /* Products */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
targets = (
|
targets = (
|
||||||
22FB3B8B2E18135A00A9B407 /* ImageViewer */,
|
840F62642E7B65B700C8A64A /* ImageViewer */,
|
||||||
22FB3BA12E18135B00A9B407 /* ImageViewerTests */,
|
|
||||||
22FB3BAB2E18135B00A9B407 /* ImageViewerUITests */,
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
|
|
||||||
/* Begin PBXResourcesBuildPhase section */
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
22FB3B8A2E18135A00A9B407 /* Resources */ = {
|
840F62632E7B65B700C8A64A /* Resources */ = {
|
||||||
isa = PBXResourcesBuildPhase;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
};
|
|
||||||
22FB3BA02E18135B00A9B407 /* Resources */ = {
|
|
||||||
isa = PBXResourcesBuildPhase;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
};
|
|
||||||
22FB3BAA2E18135B00A9B407 /* Resources */ = {
|
|
||||||
isa = PBXResourcesBuildPhase;
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
840F62722E7B65B900C8A64A /* Assets.xcassets in Resources */,
|
||||||
);
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
/* End PBXResourcesBuildPhase section */
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
22FB3B882E18135A00A9B407 /* Sources */ = {
|
840F62612E7B65B700C8A64A /* Sources */ = {
|
||||||
isa = PBXSourcesBuildPhase;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
};
|
|
||||||
22FB3B9E2E18135B00A9B407 /* Sources */ = {
|
|
||||||
isa = PBXSourcesBuildPhase;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
};
|
|
||||||
22FB3BA82E18135B00A9B407 /* Sources */ = {
|
|
||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
840F626D2E7B65B700C8A64A /* ViewController.swift in Sources */,
|
||||||
|
840F62692E7B65B700C8A64A /* AppDelegate.swift in Sources */,
|
||||||
|
228A32B12F849062008A980A /* metadata_generated.swift in Sources */,
|
||||||
);
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
/* End PBXSourcesBuildPhase section */
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXTargetDependency section */
|
|
||||||
22FB3BA42E18135B00A9B407 /* PBXTargetDependency */ = {
|
|
||||||
isa = PBXTargetDependency;
|
|
||||||
target = 22FB3B8B2E18135A00A9B407 /* ImageViewer */;
|
|
||||||
targetProxy = 22FB3BA32E18135B00A9B407 /* PBXContainerItemProxy */;
|
|
||||||
};
|
|
||||||
22FB3BAE2E18135B00A9B407 /* PBXTargetDependency */ = {
|
|
||||||
isa = PBXTargetDependency;
|
|
||||||
target = 22FB3B8B2E18135A00A9B407 /* ImageViewer */;
|
|
||||||
targetProxy = 22FB3BAD2E18135B00A9B407 /* PBXContainerItemProxy */;
|
|
||||||
};
|
|
||||||
/* End PBXTargetDependency section */
|
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
/* Begin XCBuildConfiguration section */
|
||||||
22FB3BB62E18135B00A9B407 /* Debug configuration for PBXNativeTarget "ImageViewer" */ = {
|
840F62772E7B65B900C8A64A /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
DEVELOPMENT_TEAM = U5B4RH73LN;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_FILE = ImageViewer/Info.plist;
|
|
||||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
||||||
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
|
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/Frameworks",
|
|
||||||
);
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = ImageViewer.ImageViewer;
|
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
22FB3BB72E18135B00A9B407 /* Release configuration for PBXNativeTarget "ImageViewer" */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
DEVELOPMENT_TEAM = U5B4RH73LN;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_FILE = ImageViewer/Info.plist;
|
|
||||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
||||||
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
|
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/Frameworks",
|
|
||||||
);
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = ImageViewer.ImageViewer;
|
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
22FB3BB82E18135B00A9B407 /* Debug configuration for PBXProject "ImageViewer" */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||||
@@ -347,10 +180,11 @@
|
|||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||||
|
DEVELOPMENT_TEAM = U5B4RH73LN;
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
ENABLE_TESTABILITY = YES;
|
ENABLE_TESTABILITY = YES;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
GCC_NO_COMMON_BLOCKS = YES;
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
@@ -364,22 +198,21 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
|
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
||||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
22FB3BB92E18135B00A9B407 /* Release configuration for PBXProject "ImageViewer" */ = {
|
840F62782E7B65B900C8A64A /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||||
@@ -410,10 +243,11 @@
|
|||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
|
DEVELOPMENT_TEAM = U5B4RH73LN;
|
||||||
ENABLE_NS_ASSERTIONS = NO;
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GCC_NO_COMMON_BLOCKS = YES;
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
@@ -421,120 +255,109 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
|
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
||||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
|
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
VALIDATE_PRODUCT = YES;
|
VALIDATE_PRODUCT = YES;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
22FB3BBB2E18135B00A9B407 /* Debug configuration for PBXNativeTarget "ImageViewerTests" */ = {
|
840F627A2E7B65B900C8A64A /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
|
INFOPLIST_FILE = ImageViewer/Info.plist;
|
||||||
|
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
|
||||||
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = 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;
|
MARKETING_VERSION = 1.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = ImageViewer.ImageViewerTests;
|
PRODUCT_BUNDLE_IDENTIFIER = ImageViewer.ImageViewer;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ImageViewer.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ImageViewer";
|
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
22FB3BBC2E18135B00A9B407 /* Release configuration for PBXNativeTarget "ImageViewerTests" */ = {
|
840F627B2E7B65B900C8A64A /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
|
INFOPLIST_FILE = ImageViewer/Info.plist;
|
||||||
|
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
|
||||||
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = 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;
|
MARKETING_VERSION = 1.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = ImageViewer.ImageViewerTests;
|
PRODUCT_BUNDLE_IDENTIFIER = ImageViewer.ImageViewer;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ImageViewer.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ImageViewer";
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
22FB3BBE2E18135B00A9B407 /* Debug configuration for PBXNativeTarget "ImageViewerUITests" */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = ImageViewer.ImageViewerUITests;
|
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
TEST_TARGET_NAME = ImageViewer;
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
22FB3BBF2E18135B00A9B407 /* Release configuration for PBXNativeTarget "ImageViewerUITests" */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = ImageViewer.ImageViewerUITests;
|
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
TEST_TARGET_NAME = ImageViewer;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
/* End XCBuildConfiguration section */
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
/* Begin XCConfigurationList section */
|
||||||
22FB3B872E18135A00A9B407 /* Build configuration list for PBXProject "ImageViewer" */ = {
|
840F62602E7B65B700C8A64A /* Build configuration list for PBXProject "ImageViewer" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
22FB3BB82E18135B00A9B407 /* Debug configuration for PBXProject "ImageViewer" */,
|
840F62772E7B65B900C8A64A /* Debug */,
|
||||||
22FB3BB92E18135B00A9B407 /* Release configuration for PBXProject "ImageViewer" */,
|
840F62782E7B65B900C8A64A /* Release */,
|
||||||
);
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
22FB3BB52E18135B00A9B407 /* Build configuration list for PBXNativeTarget "ImageViewer" */ = {
|
840F62792E7B65B900C8A64A /* Build configuration list for PBXNativeTarget "ImageViewer" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
22FB3BB62E18135B00A9B407 /* Debug configuration for PBXNativeTarget "ImageViewer" */,
|
840F627A2E7B65B900C8A64A /* Debug */,
|
||||||
22FB3BB72E18135B00A9B407 /* Release configuration for PBXNativeTarget "ImageViewer" */,
|
840F627B2E7B65B900C8A64A /* Release */,
|
||||||
);
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
22FB3BBA2E18135B00A9B407 /* Build configuration list for PBXNativeTarget "ImageViewerTests" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
22FB3BBB2E18135B00A9B407 /* Debug configuration for PBXNativeTarget "ImageViewerTests" */,
|
|
||||||
22FB3BBC2E18135B00A9B407 /* Release configuration for PBXNativeTarget "ImageViewerTests" */,
|
|
||||||
);
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
22FB3BBD2E18135B00A9B407 /* Build configuration list for PBXNativeTarget "ImageViewerUITests" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
22FB3BBE2E18135B00A9B407 /* Debug configuration for PBXNativeTarget "ImageViewerUITests" */,
|
|
||||||
22FB3BBF2E18135B00A9B407 /* Release configuration for PBXNativeTarget "ImageViewerUITests" */,
|
|
||||||
);
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
/* End XCConfigurationList section */
|
/* End XCConfigurationList section */
|
||||||
|
|
||||||
|
/* Begin XCLocalSwiftPackageReference section */
|
||||||
|
22B015A52F82A2DC0088F94F /* XCLocalSwiftPackageReference "../flatbuffers" */ = {
|
||||||
|
isa = XCLocalSwiftPackageReference;
|
||||||
|
relativePath = ../flatbuffers;
|
||||||
|
};
|
||||||
|
/* End XCLocalSwiftPackageReference section */
|
||||||
|
|
||||||
|
/* Begin XCSwiftPackageProductDependency section */
|
||||||
|
22B015A62F82A2DC0088F94F /* FlatBuffers */ = {
|
||||||
|
isa = XCSwiftPackageProductDependency;
|
||||||
|
productName = FlatBuffers;
|
||||||
|
};
|
||||||
|
22B015A82F82A2DC0088F94F /* FlexBuffers */ = {
|
||||||
|
isa = XCSwiftPackageProductDependency;
|
||||||
|
productName = FlexBuffers;
|
||||||
|
};
|
||||||
|
/* End XCSwiftPackageProductDependency section */
|
||||||
};
|
};
|
||||||
rootObject = 22FB3B842E18135A00A9B407 /* Project object */;
|
rootObject = 840F625D2E7B65B700C8A64A /* Project object */;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>SchemeUserState</key>
|
<key>IDEDidComputeMac32BitWarning</key>
|
||||||
<dict>
|
<true/>
|
||||||
<key>ImageViewer.xcscheme_^#shared#^_</key>
|
|
||||||
<dict>
|
|
||||||
<key>orderHint</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "1640"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "840F62642E7B65B700C8A64A"
|
||||||
|
BuildableName = "ImageViewer.app"
|
||||||
|
BlueprintName = "ImageViewer"
|
||||||
|
ReferencedContainer = "container:ImageViewer.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||||
|
<Testables>
|
||||||
|
</Testables>
|
||||||
|
</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 = "840F62642E7B65B700C8A64A"
|
||||||
|
BuildableName = "ImageViewer.app"
|
||||||
|
BlueprintName = "ImageViewer"
|
||||||
|
ReferencedContainer = "container:ImageViewer.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
<EnvironmentVariables>
|
||||||
|
<EnvironmentVariable
|
||||||
|
key = "OS_ACTIVITY_MODE"
|
||||||
|
value = "disable"
|
||||||
|
isEnabled = "YES">
|
||||||
|
</EnvironmentVariable>
|
||||||
|
</EnvironmentVariables>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "840F62642E7B65B700C8A64A"
|
||||||
|
BuildableName = "ImageViewer.app"
|
||||||
|
BlueprintName = "ImageViewer"
|
||||||
|
ReferencedContainer = "container:ImageViewer.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
@@ -2,12 +2,11 @@ import UIKit
|
|||||||
|
|
||||||
@UIApplicationMain
|
@UIApplicationMain
|
||||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||||
|
|
||||||
var window: UIWindow?
|
var window: UIWindow?
|
||||||
|
|
||||||
func application(
|
func application(
|
||||||
_ application: UIApplication,
|
_: UIApplication,
|
||||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
|
didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil
|
||||||
) -> Bool {
|
) -> Bool {
|
||||||
window = UIWindow(frame: UIScreen.main.bounds)
|
window = UIWindow(frame: UIScreen.main.bounds)
|
||||||
window?.rootViewController = ViewController()
|
window?.rootViewController = ViewController()
|
||||||
|
|||||||
@@ -5,28 +5,6 @@
|
|||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"platform" : "ios",
|
"platform" : "ios",
|
||||||
"size" : "1024x1024"
|
"size" : "1024x1024"
|
||||||
},
|
|
||||||
{
|
|
||||||
"appearances" : [
|
|
||||||
{
|
|
||||||
"appearance" : "luminosity",
|
|
||||||
"value" : "dark"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"idiom" : "universal",
|
|
||||||
"platform" : "ios",
|
|
||||||
"size" : "1024x1024"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"appearances" : [
|
|
||||||
{
|
|
||||||
"appearance" : "luminosity",
|
|
||||||
"value" : "tinted"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"idiom" : "universal",
|
|
||||||
"platform" : "ios",
|
|
||||||
"size" : "1024x1024"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"info" : {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
65
ImageViewer/metadata.fbs
Normal file
65
ImageViewer/metadata.fbs
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
enum Format:byte { Manga, Novel, OneShot }
|
||||||
|
enum Status:byte { Finished, Releasing, Hiatus, NotYetReleased, Cancelled }
|
||||||
|
enum PublicationDemographic:byte { Shounen, Shoujou, Seinen, Josei }
|
||||||
|
enum Source:byte { Original, Manga, LightNovel, VisualNovel, VideoGame, Other, Novel, Doujinshi, Anime, WebNovel, LiveAction, Game, Comic, MultimediaProject, PictureBook }
|
||||||
|
enum ContentRating:byte { Safe, Suggestive, Erotica, Pornographic }
|
||||||
|
|
||||||
|
enum TagType:byte { Format, Genre, Theme, Content }
|
||||||
|
|
||||||
|
table Tag {
|
||||||
|
type:TagType;
|
||||||
|
value:string;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct MetaValue {
|
||||||
|
main:uint;
|
||||||
|
bonus:uint;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct Date {
|
||||||
|
year:ushort;
|
||||||
|
month:ubyte;
|
||||||
|
day:ubyte;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct Size {
|
||||||
|
width:uint;
|
||||||
|
height:uint;
|
||||||
|
}
|
||||||
|
|
||||||
|
table ImageMetadata {
|
||||||
|
double_page:bool;
|
||||||
|
filename:string (required);
|
||||||
|
first_page:uint;
|
||||||
|
size:Size;
|
||||||
|
}
|
||||||
|
|
||||||
|
table ChapterMetadata {
|
||||||
|
chapter:MetaValue;
|
||||||
|
name:string;
|
||||||
|
images:[ImageMetadata];
|
||||||
|
}
|
||||||
|
|
||||||
|
table VolumeMetadata {
|
||||||
|
volume:MetaValue;
|
||||||
|
title:string;
|
||||||
|
chapters:[ChapterMetadata];
|
||||||
|
}
|
||||||
|
|
||||||
|
table Metadata {
|
||||||
|
title:string (required);
|
||||||
|
format:Format;
|
||||||
|
original_language:string;
|
||||||
|
country_of_origin:string;
|
||||||
|
publication_demographic:PublicationDemographic;
|
||||||
|
status:Status;
|
||||||
|
content_rating:ContentRating;
|
||||||
|
source:Source;
|
||||||
|
start_release_date:Date;
|
||||||
|
end_release_date:Date;
|
||||||
|
tags:[Tag];
|
||||||
|
description:string;
|
||||||
|
volumes:[VolumeMetadata];
|
||||||
|
}
|
||||||
|
|
||||||
|
root_type Metadata;
|
||||||
532
ImageViewer/metadata_generated.swift
Normal file
532
ImageViewer/metadata_generated.swift
Normal file
@@ -0,0 +1,532 @@
|
|||||||
|
// automatically generated by the FlatBuffers compiler, do not modify
|
||||||
|
// swiftlint:disable all
|
||||||
|
// swiftformat:disable all
|
||||||
|
|
||||||
|
#if canImport(Common)
|
||||||
|
import Common
|
||||||
|
#endif
|
||||||
|
|
||||||
|
import FlatBuffers
|
||||||
|
|
||||||
|
public enum Format: Int8, FlatbuffersVectorInitializable, Enum, Verifiable {
|
||||||
|
public typealias T = Int8
|
||||||
|
public static var byteSize: Int { return MemoryLayout<Int8>.size }
|
||||||
|
public var value: Int8 { return self.rawValue }
|
||||||
|
case manga = 0
|
||||||
|
case novel = 1
|
||||||
|
case oneshot = 2
|
||||||
|
|
||||||
|
public static var max: Format { return .oneshot }
|
||||||
|
public static var min: Format { return .manga }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public enum Status: Int8, FlatbuffersVectorInitializable, Enum, Verifiable {
|
||||||
|
public typealias T = Int8
|
||||||
|
public static var byteSize: Int { return MemoryLayout<Int8>.size }
|
||||||
|
public var value: Int8 { return self.rawValue }
|
||||||
|
case finished = 0
|
||||||
|
case releasing = 1
|
||||||
|
case hiatus = 2
|
||||||
|
case notyetreleased = 3
|
||||||
|
case cancelled = 4
|
||||||
|
|
||||||
|
public static var max: Status { return .cancelled }
|
||||||
|
public static var min: Status { return .finished }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public enum PublicationDemographic: Int8, FlatbuffersVectorInitializable, Enum, Verifiable {
|
||||||
|
public typealias T = Int8
|
||||||
|
public static var byteSize: Int { return MemoryLayout<Int8>.size }
|
||||||
|
public var value: Int8 { return self.rawValue }
|
||||||
|
case shounen = 0
|
||||||
|
case shoujou = 1
|
||||||
|
case seinen = 2
|
||||||
|
case josei = 3
|
||||||
|
|
||||||
|
public static var max: PublicationDemographic { return .josei }
|
||||||
|
public static var min: PublicationDemographic { return .shounen }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public enum Source: Int8, FlatbuffersVectorInitializable, Enum, Verifiable {
|
||||||
|
public typealias T = Int8
|
||||||
|
public static var byteSize: Int { return MemoryLayout<Int8>.size }
|
||||||
|
public var value: Int8 { return self.rawValue }
|
||||||
|
case original = 0
|
||||||
|
case manga = 1
|
||||||
|
case lightnovel = 2
|
||||||
|
case visualnovel = 3
|
||||||
|
case videogame = 4
|
||||||
|
case other = 5
|
||||||
|
case novel = 6
|
||||||
|
case doujinshi = 7
|
||||||
|
case anime = 8
|
||||||
|
case webnovel = 9
|
||||||
|
case liveaction = 10
|
||||||
|
case game = 11
|
||||||
|
case comic = 12
|
||||||
|
case multimediaproject = 13
|
||||||
|
case picturebook = 14
|
||||||
|
|
||||||
|
public static var max: Source { return .picturebook }
|
||||||
|
public static var min: Source { return .original }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public enum ContentRating: Int8, FlatbuffersVectorInitializable, Enum, Verifiable {
|
||||||
|
public typealias T = Int8
|
||||||
|
public static var byteSize: Int { return MemoryLayout<Int8>.size }
|
||||||
|
public var value: Int8 { return self.rawValue }
|
||||||
|
case safe = 0
|
||||||
|
case suggestive = 1
|
||||||
|
case erotica = 2
|
||||||
|
case pornographic = 3
|
||||||
|
|
||||||
|
public static var max: ContentRating { return .pornographic }
|
||||||
|
public static var min: ContentRating { return .safe }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public enum TagType: Int8, FlatbuffersVectorInitializable, Enum, Verifiable {
|
||||||
|
public typealias T = Int8
|
||||||
|
public static var byteSize: Int { return MemoryLayout<Int8>.size }
|
||||||
|
public var value: Int8 { return self.rawValue }
|
||||||
|
case format = 0
|
||||||
|
case genre = 1
|
||||||
|
case theme = 2
|
||||||
|
case content = 3
|
||||||
|
|
||||||
|
public static var max: TagType { return .content }
|
||||||
|
public static var min: TagType { return .format }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public struct MetaValue: NativeStruct, FlatbuffersVectorInitializable, Verifiable, FlatbuffersInitializable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
|
||||||
|
private var _main: UInt32
|
||||||
|
private var _bonus: UInt32
|
||||||
|
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) {
|
||||||
|
self = bb.read(def: Self.self, position: Int(o))
|
||||||
|
}
|
||||||
|
|
||||||
|
public init(main: UInt32, bonus: UInt32) {
|
||||||
|
_main = main
|
||||||
|
_bonus = bonus
|
||||||
|
}
|
||||||
|
|
||||||
|
public init() {
|
||||||
|
_main = 0
|
||||||
|
_bonus = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
public var main: UInt32 { _main }
|
||||||
|
public var bonus: UInt32 { _bonus }
|
||||||
|
|
||||||
|
public static func verify<T>(_ verifier: inout Verifier, at position: Int, of type: T.Type) throws where T: Verifiable {
|
||||||
|
try verifier.inBuffer(position: position, of: MetaValue.self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct MetaValue_Mutable: FlatBufferStruct, FlatbuffersVectorInitializable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||||
|
private var _accessor: Struct
|
||||||
|
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) { _accessor = Struct(bb: bb, position: o) }
|
||||||
|
|
||||||
|
public var main: UInt32 { return _accessor.readBuffer(of: UInt32.self, at: 0) }
|
||||||
|
public var bonus: UInt32 { return _accessor.readBuffer(of: UInt32.self, at: 4) }
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct Date: NativeStruct, FlatbuffersVectorInitializable, Verifiable, FlatbuffersInitializable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
|
||||||
|
private var _year: UInt16
|
||||||
|
private var _month: UInt8
|
||||||
|
private var _day: UInt8
|
||||||
|
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) {
|
||||||
|
self = bb.read(def: Self.self, position: Int(o))
|
||||||
|
}
|
||||||
|
|
||||||
|
public init(year: UInt16, month: UInt8, day: UInt8) {
|
||||||
|
_year = year
|
||||||
|
_month = month
|
||||||
|
_day = day
|
||||||
|
}
|
||||||
|
|
||||||
|
public init() {
|
||||||
|
_year = 0
|
||||||
|
_month = 0
|
||||||
|
_day = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
public var year: UInt16 { _year }
|
||||||
|
public var month: UInt8 { _month }
|
||||||
|
public var day: UInt8 { _day }
|
||||||
|
|
||||||
|
public static func verify<T>(_ verifier: inout Verifier, at position: Int, of type: T.Type) throws where T: Verifiable {
|
||||||
|
try verifier.inBuffer(position: position, of: Date.self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct Date_Mutable: FlatBufferStruct, FlatbuffersVectorInitializable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||||
|
private var _accessor: Struct
|
||||||
|
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) { _accessor = Struct(bb: bb, position: o) }
|
||||||
|
|
||||||
|
public var year: UInt16 { return _accessor.readBuffer(of: UInt16.self, at: 0) }
|
||||||
|
public var month: UInt8 { return _accessor.readBuffer(of: UInt8.self, at: 2) }
|
||||||
|
public var day: UInt8 { return _accessor.readBuffer(of: UInt8.self, at: 3) }
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct Size: NativeStruct, FlatbuffersVectorInitializable, Verifiable, FlatbuffersInitializable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
|
||||||
|
private var _width: UInt32
|
||||||
|
private var _height: UInt32
|
||||||
|
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) {
|
||||||
|
self = bb.read(def: Self.self, position: Int(o))
|
||||||
|
}
|
||||||
|
|
||||||
|
public init(width: UInt32, height: UInt32) {
|
||||||
|
_width = width
|
||||||
|
_height = height
|
||||||
|
}
|
||||||
|
|
||||||
|
public init() {
|
||||||
|
_width = 0
|
||||||
|
_height = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
public var width: UInt32 { _width }
|
||||||
|
public var height: UInt32 { _height }
|
||||||
|
|
||||||
|
public static func verify<T>(_ verifier: inout Verifier, at position: Int, of type: T.Type) throws where T: Verifiable {
|
||||||
|
try verifier.inBuffer(position: position, of: Size.self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct Size_Mutable: FlatBufferStruct, FlatbuffersVectorInitializable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||||
|
private var _accessor: Struct
|
||||||
|
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) { _accessor = Struct(bb: bb, position: o) }
|
||||||
|
|
||||||
|
public var width: UInt32 { return _accessor.readBuffer(of: UInt32.self, at: 0) }
|
||||||
|
public var height: UInt32 { return _accessor.readBuffer(of: UInt32.self, at: 4) }
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct Tag: FlatBufferTable, FlatbuffersVectorInitializable, Verifiable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||||
|
private var _accessor: Table
|
||||||
|
|
||||||
|
private init(_ t: Table) { _accessor = t }
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) { _accessor = Table(bb: bb, position: o) }
|
||||||
|
|
||||||
|
private struct VT {
|
||||||
|
static let type: VOffset = 4
|
||||||
|
static let value: VOffset = 6
|
||||||
|
}
|
||||||
|
|
||||||
|
public var type: TagType { let o = _accessor.offset(VT.type); return o == 0 ? .format : TagType(rawValue: _accessor.readBuffer(of: Int8.self, at: o)) ?? .format }
|
||||||
|
public var value: String? { let o = _accessor.offset(VT.value); return o == 0 ? nil : _accessor.string(at: o) }
|
||||||
|
public var valueSegmentArray: [UInt8]? { return _accessor.getVector(at: VT.value) }
|
||||||
|
public static func startTag(_ fbb: inout FlatBufferBuilder) -> UOffset { fbb.startTable(with: 2) }
|
||||||
|
public static func add(type: TagType, _ fbb: inout FlatBufferBuilder) { fbb.add(element: type.rawValue, def: 0, at: VT.type) }
|
||||||
|
public static func add(value: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: value, at: VT.value) }
|
||||||
|
public static func endTag(_ fbb: inout FlatBufferBuilder, start: UOffset) -> Offset { let end = Offset(offset: fbb.endTable(at: start)); return end }
|
||||||
|
public static func createTag(
|
||||||
|
_ fbb: inout FlatBufferBuilder,
|
||||||
|
type: TagType = .format,
|
||||||
|
valueOffset value: Offset = Offset()
|
||||||
|
) -> Offset {
|
||||||
|
let __start = Tag.startTag(&fbb)
|
||||||
|
Tag.add(type: type, &fbb)
|
||||||
|
Tag.add(value: value, &fbb)
|
||||||
|
return Tag.endTag(&fbb, start: __start)
|
||||||
|
}
|
||||||
|
|
||||||
|
public static func verify<T>(_ verifier: inout Verifier, at position: Int, of type: T.Type) throws where T: Verifiable {
|
||||||
|
var _v = try verifier.visitTable(at: position)
|
||||||
|
try _v.visit(field: VT.type, fieldName: "type", required: false, type: TagType.self)
|
||||||
|
try _v.visit(field: VT.value, fieldName: "value", required: false, type: ForwardOffset<String>.self)
|
||||||
|
_v.finish()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct ImageMetadata: FlatBufferTable, FlatbuffersVectorInitializable, Verifiable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||||
|
private var _accessor: Table
|
||||||
|
|
||||||
|
private init(_ t: Table) { _accessor = t }
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) { _accessor = Table(bb: bb, position: o) }
|
||||||
|
|
||||||
|
private struct VT {
|
||||||
|
static let doublePage: VOffset = 4
|
||||||
|
static let filename: VOffset = 6
|
||||||
|
static let firstPage: VOffset = 8
|
||||||
|
static let size: VOffset = 10
|
||||||
|
}
|
||||||
|
|
||||||
|
public var doublePage: Bool { let o = _accessor.offset(VT.doublePage); return o == 0 ? false : _accessor.readBuffer(of: Bool.self, at: o) }
|
||||||
|
public var filename: String! { let o = _accessor.offset(VT.filename); return _accessor.string(at: o) }
|
||||||
|
public var filenameSegmentArray: [UInt8]! { return _accessor.getVector(at: VT.filename) }
|
||||||
|
public var firstPage: UInt32 { let o = _accessor.offset(VT.firstPage); return o == 0 ? 0 : _accessor.readBuffer(of: UInt32.self, at: o) }
|
||||||
|
public var size: Size? { let o = _accessor.offset(VT.size); return o == 0 ? nil : _accessor.readBuffer(of: Size.self, at: o) }
|
||||||
|
public var mutableSize: Size_Mutable? { let o = _accessor.offset(VT.size); return o == 0 ? nil : Size_Mutable(_accessor.bb, o: o + _accessor.position) }
|
||||||
|
public static func startImageMetadata(_ fbb: inout FlatBufferBuilder) -> UOffset { fbb.startTable(with: 4) }
|
||||||
|
public static func add(doublePage: Bool, _ fbb: inout FlatBufferBuilder) { fbb.add(element: doublePage, def: false,
|
||||||
|
at: VT.doublePage) }
|
||||||
|
public static func add(filename: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: filename, at: VT.filename) }
|
||||||
|
public static func add(firstPage: UInt32, _ fbb: inout FlatBufferBuilder) { fbb.add(element: firstPage, def: 0, at: VT.firstPage) }
|
||||||
|
public static func add(size: Size?, _ fbb: inout FlatBufferBuilder) { guard let size = size else { return }; fbb.create(struct: size, position: VT.size) }
|
||||||
|
public static func endImageMetadata(_ fbb: inout FlatBufferBuilder, start: UOffset) -> Offset { let end = Offset(offset: fbb.endTable(at: start)); fbb.require(table: end, fields: [6]); return end }
|
||||||
|
public static func createImageMetadata(
|
||||||
|
_ fbb: inout FlatBufferBuilder,
|
||||||
|
doublePage: Bool = false,
|
||||||
|
filenameOffset filename: Offset,
|
||||||
|
firstPage: UInt32 = 0,
|
||||||
|
size: Size? = nil
|
||||||
|
) -> Offset {
|
||||||
|
let __start = ImageMetadata.startImageMetadata(&fbb)
|
||||||
|
ImageMetadata.add(doublePage: doublePage, &fbb)
|
||||||
|
ImageMetadata.add(filename: filename, &fbb)
|
||||||
|
ImageMetadata.add(firstPage: firstPage, &fbb)
|
||||||
|
ImageMetadata.add(size: size, &fbb)
|
||||||
|
return ImageMetadata.endImageMetadata(&fbb, start: __start)
|
||||||
|
}
|
||||||
|
|
||||||
|
public static func verify<T>(_ verifier: inout Verifier, at position: Int, of type: T.Type) throws where T: Verifiable {
|
||||||
|
var _v = try verifier.visitTable(at: position)
|
||||||
|
try _v.visit(field: VT.doublePage, fieldName: "doublePage", required: false, type: Bool.self)
|
||||||
|
try _v.visit(field: VT.filename, fieldName: "filename", required: true, type: ForwardOffset<String>.self)
|
||||||
|
try _v.visit(field: VT.firstPage, fieldName: "firstPage", required: false, type: UInt32.self)
|
||||||
|
try _v.visit(field: VT.size, fieldName: "size", required: false, type: Size.self)
|
||||||
|
_v.finish()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct ChapterMetadata: FlatBufferTable, FlatbuffersVectorInitializable, Verifiable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||||
|
private var _accessor: Table
|
||||||
|
|
||||||
|
private init(_ t: Table) { _accessor = t }
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) { _accessor = Table(bb: bb, position: o) }
|
||||||
|
|
||||||
|
private struct VT {
|
||||||
|
static let chapter: VOffset = 4
|
||||||
|
static let name: VOffset = 6
|
||||||
|
static let images: VOffset = 8
|
||||||
|
}
|
||||||
|
|
||||||
|
public var chapter: MetaValue? { let o = _accessor.offset(VT.chapter); return o == 0 ? nil : _accessor.readBuffer(of: MetaValue.self, at: o) }
|
||||||
|
public var mutableChapter: MetaValue_Mutable? { let o = _accessor.offset(VT.chapter); return o == 0 ? nil : MetaValue_Mutable(_accessor.bb, o: o + _accessor.position) }
|
||||||
|
public var name: String? { let o = _accessor.offset(VT.name); return o == 0 ? nil : _accessor.string(at: o) }
|
||||||
|
public var nameSegmentArray: [UInt8]? { return _accessor.getVector(at: VT.name) }
|
||||||
|
public var images: FlatbufferVector<ImageMetadata> { return _accessor.vector(at: VT.images, byteSize: 4) }
|
||||||
|
public static func startChapterMetadata(_ fbb: inout FlatBufferBuilder) -> UOffset { fbb.startTable(with: 3) }
|
||||||
|
public static func add(chapter: MetaValue?, _ fbb: inout FlatBufferBuilder) { guard let chapter = chapter else { return }; fbb.create(struct: chapter, position: VT.chapter) }
|
||||||
|
public static func add(name: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: name, at: VT.name) }
|
||||||
|
public static func addVectorOf(images: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: images, at: VT.images) }
|
||||||
|
public static func endChapterMetadata(_ fbb: inout FlatBufferBuilder, start: UOffset) -> Offset { let end = Offset(offset: fbb.endTable(at: start)); return end }
|
||||||
|
public static func createChapterMetadata(
|
||||||
|
_ fbb: inout FlatBufferBuilder,
|
||||||
|
chapter: MetaValue? = nil,
|
||||||
|
nameOffset name: Offset = Offset(),
|
||||||
|
imagesVectorOffset images: Offset = Offset()
|
||||||
|
) -> Offset {
|
||||||
|
let __start = ChapterMetadata.startChapterMetadata(&fbb)
|
||||||
|
ChapterMetadata.add(chapter: chapter, &fbb)
|
||||||
|
ChapterMetadata.add(name: name, &fbb)
|
||||||
|
ChapterMetadata.addVectorOf(images: images, &fbb)
|
||||||
|
return ChapterMetadata.endChapterMetadata(&fbb, start: __start)
|
||||||
|
}
|
||||||
|
|
||||||
|
public static func verify<T>(_ verifier: inout Verifier, at position: Int, of type: T.Type) throws where T: Verifiable {
|
||||||
|
var _v = try verifier.visitTable(at: position)
|
||||||
|
try _v.visit(field: VT.chapter, fieldName: "chapter", required: false, type: MetaValue.self)
|
||||||
|
try _v.visit(field: VT.name, fieldName: "name", required: false, type: ForwardOffset<String>.self)
|
||||||
|
try _v.visit(field: VT.images, fieldName: "images", required: false, type: ForwardOffset<Vector<ForwardOffset<ImageMetadata>, ImageMetadata>>.self)
|
||||||
|
_v.finish()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct VolumeMetadata: FlatBufferTable, FlatbuffersVectorInitializable, Verifiable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||||
|
private var _accessor: Table
|
||||||
|
|
||||||
|
private init(_ t: Table) { _accessor = t }
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) { _accessor = Table(bb: bb, position: o) }
|
||||||
|
|
||||||
|
private struct VT {
|
||||||
|
static let volume: VOffset = 4
|
||||||
|
static let title: VOffset = 6
|
||||||
|
static let chapters: VOffset = 8
|
||||||
|
}
|
||||||
|
|
||||||
|
public var volume: MetaValue? { let o = _accessor.offset(VT.volume); return o == 0 ? nil : _accessor.readBuffer(of: MetaValue.self, at: o) }
|
||||||
|
public var mutableVolume: MetaValue_Mutable? { let o = _accessor.offset(VT.volume); return o == 0 ? nil : MetaValue_Mutable(_accessor.bb, o: o + _accessor.position) }
|
||||||
|
public var title: String? { let o = _accessor.offset(VT.title); return o == 0 ? nil : _accessor.string(at: o) }
|
||||||
|
public var titleSegmentArray: [UInt8]? { return _accessor.getVector(at: VT.title) }
|
||||||
|
public var chapters: FlatbufferVector<ChapterMetadata> { return _accessor.vector(at: VT.chapters, byteSize: 4) }
|
||||||
|
public static func startVolumeMetadata(_ fbb: inout FlatBufferBuilder) -> UOffset { fbb.startTable(with: 3) }
|
||||||
|
public static func add(volume: MetaValue?, _ fbb: inout FlatBufferBuilder) { guard let volume = volume else { return }; fbb.create(struct: volume, position: VT.volume) }
|
||||||
|
public static func add(title: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: title, at: VT.title) }
|
||||||
|
public static func addVectorOf(chapters: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: chapters, at: VT.chapters) }
|
||||||
|
public static func endVolumeMetadata(_ fbb: inout FlatBufferBuilder, start: UOffset) -> Offset { let end = Offset(offset: fbb.endTable(at: start)); return end }
|
||||||
|
public static func createVolumeMetadata(
|
||||||
|
_ fbb: inout FlatBufferBuilder,
|
||||||
|
volume: MetaValue? = nil,
|
||||||
|
titleOffset title: Offset = Offset(),
|
||||||
|
chaptersVectorOffset chapters: Offset = Offset()
|
||||||
|
) -> Offset {
|
||||||
|
let __start = VolumeMetadata.startVolumeMetadata(&fbb)
|
||||||
|
VolumeMetadata.add(volume: volume, &fbb)
|
||||||
|
VolumeMetadata.add(title: title, &fbb)
|
||||||
|
VolumeMetadata.addVectorOf(chapters: chapters, &fbb)
|
||||||
|
return VolumeMetadata.endVolumeMetadata(&fbb, start: __start)
|
||||||
|
}
|
||||||
|
|
||||||
|
public static func verify<T>(_ verifier: inout Verifier, at position: Int, of type: T.Type) throws where T: Verifiable {
|
||||||
|
var _v = try verifier.visitTable(at: position)
|
||||||
|
try _v.visit(field: VT.volume, fieldName: "volume", required: false, type: MetaValue.self)
|
||||||
|
try _v.visit(field: VT.title, fieldName: "title", required: false, type: ForwardOffset<String>.self)
|
||||||
|
try _v.visit(field: VT.chapters, fieldName: "chapters", required: false, type: ForwardOffset<Vector<ForwardOffset<ChapterMetadata>, ChapterMetadata>>.self)
|
||||||
|
_v.finish()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct Metadata: FlatBufferTable, FlatbuffersVectorInitializable, Verifiable {
|
||||||
|
|
||||||
|
static func validateVersion() { FlatBuffersVersion_25_12_19() }
|
||||||
|
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||||
|
private var _accessor: Table
|
||||||
|
|
||||||
|
private init(_ t: Table) { _accessor = t }
|
||||||
|
public init(_ bb: ByteBuffer, o: Int32) { _accessor = Table(bb: bb, position: o) }
|
||||||
|
|
||||||
|
private struct VT {
|
||||||
|
static let title: VOffset = 4
|
||||||
|
static let format: VOffset = 6
|
||||||
|
static let originalLanguage: VOffset = 8
|
||||||
|
static let countryOfOrigin: VOffset = 10
|
||||||
|
static let publicationDemographic: VOffset = 12
|
||||||
|
static let status: VOffset = 14
|
||||||
|
static let contentRating: VOffset = 16
|
||||||
|
static let source: VOffset = 18
|
||||||
|
static let startReleaseDate: VOffset = 20
|
||||||
|
static let endReleaseDate: VOffset = 22
|
||||||
|
static let tags: VOffset = 24
|
||||||
|
static let description: VOffset = 26
|
||||||
|
static let volumes: VOffset = 28
|
||||||
|
}
|
||||||
|
|
||||||
|
public var title: String! { let o = _accessor.offset(VT.title); return _accessor.string(at: o) }
|
||||||
|
public var titleSegmentArray: [UInt8]! { return _accessor.getVector(at: VT.title) }
|
||||||
|
public var format: Format { let o = _accessor.offset(VT.format); return o == 0 ? .manga : Format(rawValue: _accessor.readBuffer(of: Int8.self, at: o)) ?? .manga }
|
||||||
|
public var originalLanguage: String? { let o = _accessor.offset(VT.originalLanguage); return o == 0 ? nil : _accessor.string(at: o) }
|
||||||
|
public var originalLanguageSegmentArray: [UInt8]? { return _accessor.getVector(at: VT.originalLanguage) }
|
||||||
|
public var countryOfOrigin: String? { let o = _accessor.offset(VT.countryOfOrigin); return o == 0 ? nil : _accessor.string(at: o) }
|
||||||
|
public var countryOfOriginSegmentArray: [UInt8]? { return _accessor.getVector(at: VT.countryOfOrigin) }
|
||||||
|
public var publicationDemographic: PublicationDemographic { let o = _accessor.offset(VT.publicationDemographic); return o == 0 ? .shounen : PublicationDemographic(rawValue: _accessor.readBuffer(of: Int8.self, at: o)) ?? .shounen }
|
||||||
|
public var status: Status { let o = _accessor.offset(VT.status); return o == 0 ? .finished : Status(rawValue: _accessor.readBuffer(of: Int8.self, at: o)) ?? .finished }
|
||||||
|
public var contentRating: ContentRating { let o = _accessor.offset(VT.contentRating); return o == 0 ? .safe : ContentRating(rawValue: _accessor.readBuffer(of: Int8.self, at: o)) ?? .safe }
|
||||||
|
public var source: Source { let o = _accessor.offset(VT.source); return o == 0 ? .original : Source(rawValue: _accessor.readBuffer(of: Int8.self, at: o)) ?? .original }
|
||||||
|
public var startReleaseDate: Date? { let o = _accessor.offset(VT.startReleaseDate); return o == 0 ? nil : _accessor.readBuffer(of: Date.self, at: o) }
|
||||||
|
public var mutableStartReleaseDate: Date_Mutable? { let o = _accessor.offset(VT.startReleaseDate); return o == 0 ? nil : Date_Mutable(_accessor.bb, o: o + _accessor.position) }
|
||||||
|
public var endReleaseDate: Date? { let o = _accessor.offset(VT.endReleaseDate); return o == 0 ? nil : _accessor.readBuffer(of: Date.self, at: o) }
|
||||||
|
public var mutableEndReleaseDate: Date_Mutable? { let o = _accessor.offset(VT.endReleaseDate); return o == 0 ? nil : Date_Mutable(_accessor.bb, o: o + _accessor.position) }
|
||||||
|
public var tags: FlatbufferVector<Tag> { return _accessor.vector(at: VT.tags, byteSize: 4) }
|
||||||
|
public var description: String? { let o = _accessor.offset(VT.description); return o == 0 ? nil : _accessor.string(at: o) }
|
||||||
|
public var descriptionSegmentArray: [UInt8]? { return _accessor.getVector(at: VT.description) }
|
||||||
|
public var volumes: FlatbufferVector<VolumeMetadata> { return _accessor.vector(at: VT.volumes, byteSize: 4) }
|
||||||
|
public static func startMetadata(_ fbb: inout FlatBufferBuilder) -> UOffset { fbb.startTable(with: 13) }
|
||||||
|
public static func add(title: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: title, at: VT.title) }
|
||||||
|
public static func add(format: Format, _ fbb: inout FlatBufferBuilder) { fbb.add(element: format.rawValue, def: 0, at: VT.format) }
|
||||||
|
public static func add(originalLanguage: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: originalLanguage, at: VT.originalLanguage) }
|
||||||
|
public static func add(countryOfOrigin: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: countryOfOrigin, at: VT.countryOfOrigin) }
|
||||||
|
public static func add(publicationDemographic: PublicationDemographic, _ fbb: inout FlatBufferBuilder) { fbb.add(element: publicationDemographic.rawValue, def: 0, at: VT.publicationDemographic) }
|
||||||
|
public static func add(status: Status, _ fbb: inout FlatBufferBuilder) { fbb.add(element: status.rawValue, def: 0, at: VT.status) }
|
||||||
|
public static func add(contentRating: ContentRating, _ fbb: inout FlatBufferBuilder) { fbb.add(element: contentRating.rawValue, def: 0, at: VT.contentRating) }
|
||||||
|
public static func add(source: Source, _ fbb: inout FlatBufferBuilder) { fbb.add(element: source.rawValue, def: 0, at: VT.source) }
|
||||||
|
public static func add(startReleaseDate: Date?, _ fbb: inout FlatBufferBuilder) { guard let startReleaseDate = startReleaseDate else { return }; fbb.create(struct: startReleaseDate, position: VT.startReleaseDate) }
|
||||||
|
public static func add(endReleaseDate: Date?, _ fbb: inout FlatBufferBuilder) { guard let endReleaseDate = endReleaseDate else { return }; fbb.create(struct: endReleaseDate, position: VT.endReleaseDate) }
|
||||||
|
public static func addVectorOf(tags: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: tags, at: VT.tags) }
|
||||||
|
public static func add(description: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: description, at: VT.description) }
|
||||||
|
public static func addVectorOf(volumes: Offset, _ fbb: inout FlatBufferBuilder) { fbb.add(offset: volumes, at: VT.volumes) }
|
||||||
|
public static func endMetadata(_ fbb: inout FlatBufferBuilder, start: UOffset) -> Offset { let end = Offset(offset: fbb.endTable(at: start)); fbb.require(table: end, fields: [4]); return end }
|
||||||
|
public static func createMetadata(
|
||||||
|
_ fbb: inout FlatBufferBuilder,
|
||||||
|
titleOffset title: Offset,
|
||||||
|
format: Format = .manga,
|
||||||
|
originalLanguageOffset originalLanguage: Offset = Offset(),
|
||||||
|
countryOfOriginOffset countryOfOrigin: Offset = Offset(),
|
||||||
|
publicationDemographic: PublicationDemographic = .shounen,
|
||||||
|
status: Status = .finished,
|
||||||
|
contentRating: ContentRating = .safe,
|
||||||
|
source: Source = .original,
|
||||||
|
startReleaseDate: Date? = nil,
|
||||||
|
endReleaseDate: Date? = nil,
|
||||||
|
tagsVectorOffset tags: Offset = Offset(),
|
||||||
|
descriptionOffset description: Offset = Offset(),
|
||||||
|
volumesVectorOffset volumes: Offset = Offset()
|
||||||
|
) -> Offset {
|
||||||
|
let __start = Metadata.startMetadata(&fbb)
|
||||||
|
Metadata.add(title: title, &fbb)
|
||||||
|
Metadata.add(format: format, &fbb)
|
||||||
|
Metadata.add(originalLanguage: originalLanguage, &fbb)
|
||||||
|
Metadata.add(countryOfOrigin: countryOfOrigin, &fbb)
|
||||||
|
Metadata.add(publicationDemographic: publicationDemographic, &fbb)
|
||||||
|
Metadata.add(status: status, &fbb)
|
||||||
|
Metadata.add(contentRating: contentRating, &fbb)
|
||||||
|
Metadata.add(source: source, &fbb)
|
||||||
|
Metadata.add(startReleaseDate: startReleaseDate, &fbb)
|
||||||
|
Metadata.add(endReleaseDate: endReleaseDate, &fbb)
|
||||||
|
Metadata.addVectorOf(tags: tags, &fbb)
|
||||||
|
Metadata.add(description: description, &fbb)
|
||||||
|
Metadata.addVectorOf(volumes: volumes, &fbb)
|
||||||
|
return Metadata.endMetadata(&fbb, start: __start)
|
||||||
|
}
|
||||||
|
|
||||||
|
public static func verify<T>(_ verifier: inout Verifier, at position: Int, of type: T.Type) throws where T: Verifiable {
|
||||||
|
var _v = try verifier.visitTable(at: position)
|
||||||
|
try _v.visit(field: VT.title, fieldName: "title", required: true, type: ForwardOffset<String>.self)
|
||||||
|
try _v.visit(field: VT.format, fieldName: "format", required: false, type: Format.self)
|
||||||
|
try _v.visit(field: VT.originalLanguage, fieldName: "originalLanguage", required: false, type: ForwardOffset<String>.self)
|
||||||
|
try _v.visit(field: VT.countryOfOrigin, fieldName: "countryOfOrigin", required: false, type: ForwardOffset<String>.self)
|
||||||
|
try _v.visit(field: VT.publicationDemographic, fieldName: "publicationDemographic", required: false, type: PublicationDemographic.self)
|
||||||
|
try _v.visit(field: VT.status, fieldName: "status", required: false, type: Status.self)
|
||||||
|
try _v.visit(field: VT.contentRating, fieldName: "contentRating", required: false, type: ContentRating.self)
|
||||||
|
try _v.visit(field: VT.source, fieldName: "source", required: false, type: Source.self)
|
||||||
|
try _v.visit(field: VT.startReleaseDate, fieldName: "startReleaseDate", required: false, type: Date.self)
|
||||||
|
try _v.visit(field: VT.endReleaseDate, fieldName: "endReleaseDate", required: false, type: Date.self)
|
||||||
|
try _v.visit(field: VT.tags, fieldName: "tags", required: false, type: ForwardOffset<Vector<ForwardOffset<Tag>, Tag>>.self)
|
||||||
|
try _v.visit(field: VT.description, fieldName: "description", required: false, type: ForwardOffset<String>.self)
|
||||||
|
try _v.visit(field: VT.volumes, fieldName: "volumes", required: false, type: ForwardOffset<Vector<ForwardOffset<VolumeMetadata>, VolumeMetadata>>.self)
|
||||||
|
_v.finish()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
import Testing
|
|
||||||
@testable import ImageViewer
|
|
||||||
|
|
||||||
struct ImageViewerTests {
|
|
||||||
|
|
||||||
@Test func example() async throws {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
import XCTest
|
|
||||||
|
|
||||||
final class ImageViewerUITests: XCTestCase {
|
|
||||||
|
|
||||||
override func setUpWithError() throws {
|
|
||||||
continueAfterFailure = false
|
|
||||||
}
|
|
||||||
|
|
||||||
override func tearDownWithError() throws {
|
|
||||||
}
|
|
||||||
|
|
||||||
@MainActor
|
|
||||||
func testExample() throws {
|
|
||||||
let app = XCUIApplication()
|
|
||||||
app.launch()
|
|
||||||
}
|
|
||||||
|
|
||||||
@MainActor
|
|
||||||
func testLaunchPerformance() throws {
|
|
||||||
measure(metrics: [XCTApplicationLaunchMetric()]) {
|
|
||||||
XCUIApplication().launch()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
import XCTest
|
|
||||||
|
|
||||||
final class ImageViewerUITestsLaunchTests: XCTestCase {
|
|
||||||
|
|
||||||
override class var runsForEachTargetApplicationUIConfiguration: Bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
override func setUpWithError() throws {
|
|
||||||
continueAfterFailure = false
|
|
||||||
}
|
|
||||||
|
|
||||||
@MainActor
|
|
||||||
func testLaunch() throws {
|
|
||||||
let app = XCUIApplication()
|
|
||||||
app.launch()
|
|
||||||
|
|
||||||
let attachment = XCTAttachment(screenshot: app.screenshot())
|
|
||||||
attachment.name = "Launch Screen"
|
|
||||||
attachment.lifetime = .keepAlways
|
|
||||||
add(attachment)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
2
run.sh
2
run.sh
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
APP_NAME='ImageViewer'
|
APP_NAME='ImageViewer'
|
||||||
SIM_DEVICE='iPad Air 11-inch (M3)'
|
SIM_DEVICE='iPad (10th generation)'
|
||||||
SCHEME='ImageViewer'
|
SCHEME='ImageViewer'
|
||||||
SIMULATOR='iOS Simulator'
|
SIMULATOR='iOS Simulator'
|
||||||
COMPANY='ImageViewer'
|
COMPANY='ImageViewer'
|
||||||
|
|||||||
Reference in New Issue
Block a user