Initial commit: creating backups works
This commit is contained in:
commit
d343e2b8ad
24 changed files with 1519 additions and 0 deletions
582
FlashBack.xcodeproj/project.pbxproj
Normal file
582
FlashBack.xcodeproj/project.pbxproj
Normal file
|
@ -0,0 +1,582 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 50;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
BDCF0697224B544F00ED9A62 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = BDCF0696224B544F00ED9A62 /* AppDelegate.m */; };
|
||||
BDCF069A224B544F00ED9A62 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BDCF0699224B544F00ED9A62 /* ViewController.m */; };
|
||||
BDCF069D224B544F00ED9A62 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BDCF069B224B544F00ED9A62 /* Main.storyboard */; };
|
||||
BDCF069F224B545100ED9A62 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BDCF069E224B545100ED9A62 /* Assets.xcassets */; };
|
||||
BDCF06A2224B545100ED9A62 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BDCF06A0224B545100ED9A62 /* LaunchScreen.storyboard */; };
|
||||
BDCF06A5224B545100ED9A62 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BDCF06A4224B545100ED9A62 /* main.m */; };
|
||||
BDCF06AF224B545100ED9A62 /* FlashBackTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BDCF06AE224B545100ED9A62 /* FlashBackTests.m */; };
|
||||
BDCF06BA224B545100ED9A62 /* FlashBackUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = BDCF06B9224B545100ED9A62 /* FlashBackUITests.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
BDCF06AB224B545100ED9A62 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = BDCF068A224B544F00ED9A62 /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = BDCF0691224B544F00ED9A62;
|
||||
remoteInfo = FlashBack;
|
||||
};
|
||||
BDCF06B6224B545100ED9A62 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = BDCF068A224B544F00ED9A62 /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = BDCF0691224B544F00ED9A62;
|
||||
remoteInfo = FlashBack;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
BDCF0692224B544F00ED9A62 /* FlashBack.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FlashBack.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
BDCF0695224B544F00ED9A62 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
||||
BDCF0696224B544F00ED9A62 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
|
||||
BDCF0698224B544F00ED9A62 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
|
||||
BDCF0699224B544F00ED9A62 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
|
||||
BDCF069C224B544F00ED9A62 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
BDCF069E224B545100ED9A62 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
BDCF06A1224B545100ED9A62 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
BDCF06A3224B545100ED9A62 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
BDCF06A4224B545100ED9A62 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||
BDCF06AA224B545100ED9A62 /* FlashBackTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FlashBackTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
BDCF06AE224B545100ED9A62 /* FlashBackTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FlashBackTests.m; sourceTree = "<group>"; };
|
||||
BDCF06B0224B545100ED9A62 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
BDCF06B5224B545100ED9A62 /* FlashBackUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FlashBackUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
BDCF06B9224B545100ED9A62 /* FlashBackUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FlashBackUITests.m; sourceTree = "<group>"; };
|
||||
BDCF06BB224B545100ED9A62 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
BDCF068F224B544F00ED9A62 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
BDCF06A7224B545100ED9A62 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
BDCF06B2224B545100ED9A62 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
BDCF0689224B544E00ED9A62 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
BDCF0694224B544F00ED9A62 /* FlashBack */,
|
||||
BDCF06AD224B545100ED9A62 /* FlashBackTests */,
|
||||
BDCF06B8224B545100ED9A62 /* FlashBackUITests */,
|
||||
BDCF0693224B544F00ED9A62 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
BDCF0693224B544F00ED9A62 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
BDCF0692224B544F00ED9A62 /* FlashBack.app */,
|
||||
BDCF06AA224B545100ED9A62 /* FlashBackTests.xctest */,
|
||||
BDCF06B5224B545100ED9A62 /* FlashBackUITests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
BDCF0694224B544F00ED9A62 /* FlashBack */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
BDCF0695224B544F00ED9A62 /* AppDelegate.h */,
|
||||
BDCF0696224B544F00ED9A62 /* AppDelegate.m */,
|
||||
BDCF0698224B544F00ED9A62 /* ViewController.h */,
|
||||
BDCF0699224B544F00ED9A62 /* ViewController.m */,
|
||||
BDCF069B224B544F00ED9A62 /* Main.storyboard */,
|
||||
BDCF069E224B545100ED9A62 /* Assets.xcassets */,
|
||||
BDCF06A0224B545100ED9A62 /* LaunchScreen.storyboard */,
|
||||
BDCF06A3224B545100ED9A62 /* Info.plist */,
|
||||
BDCF06A4224B545100ED9A62 /* main.m */,
|
||||
);
|
||||
path = FlashBack;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
BDCF06AD224B545100ED9A62 /* FlashBackTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
BDCF06AE224B545100ED9A62 /* FlashBackTests.m */,
|
||||
BDCF06B0224B545100ED9A62 /* Info.plist */,
|
||||
);
|
||||
path = FlashBackTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
BDCF06B8224B545100ED9A62 /* FlashBackUITests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
BDCF06B9224B545100ED9A62 /* FlashBackUITests.m */,
|
||||
BDCF06BB224B545100ED9A62 /* Info.plist */,
|
||||
);
|
||||
path = FlashBackUITests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
BDCF0691224B544F00ED9A62 /* FlashBack */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = BDCF06BE224B545100ED9A62 /* Build configuration list for PBXNativeTarget "FlashBack" */;
|
||||
buildPhases = (
|
||||
BDCF068E224B544F00ED9A62 /* Sources */,
|
||||
BDCF068F224B544F00ED9A62 /* Frameworks */,
|
||||
BDCF0690224B544F00ED9A62 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = FlashBack;
|
||||
productName = FlashBack;
|
||||
productReference = BDCF0692224B544F00ED9A62 /* FlashBack.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
BDCF06A9224B545100ED9A62 /* FlashBackTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = BDCF06C1224B545100ED9A62 /* Build configuration list for PBXNativeTarget "FlashBackTests" */;
|
||||
buildPhases = (
|
||||
BDCF06A6224B545100ED9A62 /* Sources */,
|
||||
BDCF06A7224B545100ED9A62 /* Frameworks */,
|
||||
BDCF06A8224B545100ED9A62 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
BDCF06AC224B545100ED9A62 /* PBXTargetDependency */,
|
||||
);
|
||||
name = FlashBackTests;
|
||||
productName = FlashBackTests;
|
||||
productReference = BDCF06AA224B545100ED9A62 /* FlashBackTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
BDCF06B4224B545100ED9A62 /* FlashBackUITests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = BDCF06C4224B545100ED9A62 /* Build configuration list for PBXNativeTarget "FlashBackUITests" */;
|
||||
buildPhases = (
|
||||
BDCF06B1224B545100ED9A62 /* Sources */,
|
||||
BDCF06B2224B545100ED9A62 /* Frameworks */,
|
||||
BDCF06B3224B545100ED9A62 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
BDCF06B7224B545100ED9A62 /* PBXTargetDependency */,
|
||||
);
|
||||
name = FlashBackUITests;
|
||||
productName = FlashBackUITests;
|
||||
productReference = BDCF06B5224B545100ED9A62 /* FlashBackUITests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.ui-testing";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
BDCF068A224B544F00ED9A62 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 1020;
|
||||
ORGANIZATIONNAME = "Micah Gomez";
|
||||
TargetAttributes = {
|
||||
BDCF0691224B544F00ED9A62 = {
|
||||
CreatedOnToolsVersion = 10.2;
|
||||
};
|
||||
BDCF06A9224B545100ED9A62 = {
|
||||
CreatedOnToolsVersion = 10.2;
|
||||
TestTargetID = BDCF0691224B544F00ED9A62;
|
||||
};
|
||||
BDCF06B4224B545100ED9A62 = {
|
||||
CreatedOnToolsVersion = 10.2;
|
||||
TestTargetID = BDCF0691224B544F00ED9A62;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = BDCF068D224B544F00ED9A62 /* Build configuration list for PBXProject "FlashBack" */;
|
||||
compatibilityVersion = "Xcode 9.3";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = BDCF0689224B544E00ED9A62;
|
||||
productRefGroup = BDCF0693224B544F00ED9A62 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
BDCF0691224B544F00ED9A62 /* FlashBack */,
|
||||
BDCF06A9224B545100ED9A62 /* FlashBackTests */,
|
||||
BDCF06B4224B545100ED9A62 /* FlashBackUITests */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
BDCF0690224B544F00ED9A62 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
BDCF06A2224B545100ED9A62 /* LaunchScreen.storyboard in Resources */,
|
||||
BDCF069F224B545100ED9A62 /* Assets.xcassets in Resources */,
|
||||
BDCF069D224B544F00ED9A62 /* Main.storyboard in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
BDCF06A8224B545100ED9A62 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
BDCF06B3224B545100ED9A62 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
BDCF068E224B544F00ED9A62 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
BDCF069A224B544F00ED9A62 /* ViewController.m in Sources */,
|
||||
BDCF06A5224B545100ED9A62 /* main.m in Sources */,
|
||||
BDCF0697224B544F00ED9A62 /* AppDelegate.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
BDCF06A6224B545100ED9A62 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
BDCF06AF224B545100ED9A62 /* FlashBackTests.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
BDCF06B1224B545100ED9A62 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
BDCF06BA224B545100ED9A62 /* FlashBackUITests.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXTargetDependency section */
|
||||
BDCF06AC224B545100ED9A62 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = BDCF0691224B544F00ED9A62 /* FlashBack */;
|
||||
targetProxy = BDCF06AB224B545100ED9A62 /* PBXContainerItemProxy */;
|
||||
};
|
||||
BDCF06B7224B545100ED9A62 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = BDCF0691224B544F00ED9A62 /* FlashBack */;
|
||||
targetProxy = BDCF06B6224B545100ED9A62 /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
BDCF069B224B544F00ED9A62 /* Main.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
BDCF069C224B544F00ED9A62 /* Base */,
|
||||
);
|
||||
name = Main.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
BDCF06A0224B545100ED9A62 /* LaunchScreen.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
BDCF06A1224B545100ED9A62 /* Base */,
|
||||
);
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
BDCF06BC224B545100ED9A62 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
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_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;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
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 = 12.2;
|
||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||
MTL_FAST_MATH = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
BDCF06BD224B545100ED9A62 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
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_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;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
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 = 12.2;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
MTL_FAST_MATH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
BDCF06BF224B545100ED9A62 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = PRBH2T6668;
|
||||
INFOPLIST_FILE = FlashBack/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mpg13.FlashBack;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = 1;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
BDCF06C0224B545100ED9A62 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = PRBH2T6668;
|
||||
INFOPLIST_FILE = FlashBack/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mpg13.FlashBack;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = 1;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
BDCF06C2224B545100ED9A62 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
INFOPLIST_FILE = FlashBackTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
"@loader_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mpg13.FlashBackTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FlashBack.app/FlashBack";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
BDCF06C3224B545100ED9A62 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
INFOPLIST_FILE = FlashBackTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
"@loader_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mpg13.FlashBackTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FlashBack.app/FlashBack";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
BDCF06C5224B545100ED9A62 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
INFOPLIST_FILE = FlashBackUITests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
"@loader_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mpg13.FlashBackUITests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_TARGET_NAME = FlashBack;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
BDCF06C6224B545100ED9A62 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
INFOPLIST_FILE = FlashBackUITests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
"@loader_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mpg13.FlashBackUITests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_TARGET_NAME = FlashBack;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
BDCF068D224B544F00ED9A62 /* Build configuration list for PBXProject "FlashBack" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
BDCF06BC224B545100ED9A62 /* Debug */,
|
||||
BDCF06BD224B545100ED9A62 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
BDCF06BE224B545100ED9A62 /* Build configuration list for PBXNativeTarget "FlashBack" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
BDCF06BF224B545100ED9A62 /* Debug */,
|
||||
BDCF06C0224B545100ED9A62 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
BDCF06C1224B545100ED9A62 /* Build configuration list for PBXNativeTarget "FlashBackTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
BDCF06C2224B545100ED9A62 /* Debug */,
|
||||
BDCF06C3224B545100ED9A62 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
BDCF06C4224B545100ED9A62 /* Build configuration list for PBXNativeTarget "FlashBackUITests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
BDCF06C5224B545100ED9A62 /* Debug */,
|
||||
BDCF06C6224B545100ED9A62 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = BDCF068A224B544F00ED9A62 /* Project object */;
|
||||
}
|
7
FlashBack.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
7
FlashBack.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:FlashBack.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -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>
|
|
@ -0,0 +1,14 @@
|
|||
<?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>FlashBack.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
17
FlashBack/AppDelegate.h
Normal file
17
FlashBack/AppDelegate.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// AppDelegate.h
|
||||
// FlashBack
|
||||
//
|
||||
// Created by Micah Gomez on 3/27/19.
|
||||
// Copyright © 2019 Micah Gomez. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
||||
|
||||
@property (strong, nonatomic) UIWindow *window;
|
||||
|
||||
|
||||
@end
|
||||
|
51
FlashBack/AppDelegate.m
Normal file
51
FlashBack/AppDelegate.m
Normal file
|
@ -0,0 +1,51 @@
|
|||
//
|
||||
// AppDelegate.m
|
||||
// FlashBack
|
||||
//
|
||||
// Created by Micah Gomez on 3/27/19.
|
||||
// Copyright © 2019 Micah Gomez. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AppDelegate.h"
|
||||
|
||||
@interface AppDelegate ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
// Override point for customization after application launch.
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
- (void)applicationWillResignActive:(UIApplication *)application {
|
||||
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
|
||||
}
|
||||
|
||||
|
||||
- (void)applicationDidEnterBackground:(UIApplication *)application {
|
||||
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
||||
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
||||
}
|
||||
|
||||
|
||||
- (void)applicationWillEnterForeground:(UIApplication *)application {
|
||||
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
|
||||
}
|
||||
|
||||
|
||||
- (void)applicationDidBecomeActive:(UIApplication *)application {
|
||||
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
||||
}
|
||||
|
||||
|
||||
- (void)applicationWillTerminate:(UIApplication *)application {
|
||||
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
||||
}
|
||||
|
||||
|
||||
@end
|
98
FlashBack/Assets.xcassets/AppIcon.appiconset/Contents.json
Normal file
98
FlashBack/Assets.xcassets/AppIcon.appiconset/Contents.json
Normal file
|
@ -0,0 +1,98 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "20x20",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "20x20",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "60x60",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "60x60",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "20x20",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "20x20",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "29x29",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "29x29",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "40x40",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "40x40",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "76x76",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "76x76",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "83.5x83.5",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ios-marketing",
|
||||
"size" : "1024x1024",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
6
FlashBack/Assets.xcassets/Contents.json
Normal file
6
FlashBack/Assets.xcassets/Contents.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
21
FlashBack/Assets.xcassets/bgimage.imageset/Contents.json
vendored
Normal file
21
FlashBack/Assets.xcassets/bgimage.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "bgimage.jpg",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
BIN
FlashBack/Assets.xcassets/bgimage.imageset/bgimage.jpg
vendored
Normal file
BIN
FlashBack/Assets.xcassets/bgimage.imageset/bgimage.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
25
FlashBack/Base.lproj/LaunchScreen.storyboard
Normal file
25
FlashBack/Base.lproj/LaunchScreen.storyboard
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="EHf-IW-A2E">
|
||||
<objects>
|
||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="53" y="375"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
114
FlashBack/Base.lproj/Main.storyboard
Normal file
114
FlashBack/Base.lproj/Main.storyboard
Normal file
|
@ -0,0 +1,114 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
||||
<device id="retina5_9" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<dependencies>
|
||||
<deployment version="2304" identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="tne-QT-ifu">
|
||||
<objects>
|
||||
<viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" alpha="0.5" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="bgimage" translatesAutoresizingMaskIntoConstraints="NO" id="Xdq-a9-Vkk">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
</imageView>
|
||||
<pickerView contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="X4R-sr-2s9">
|
||||
<rect key="frame" x="16" y="309" width="343" height="194"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.25035761443661969" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="BYZ-38-t0r" id="P62-Ty-VDg"/>
|
||||
<outlet property="delegate" destination="BYZ-38-t0r" id="O8T-KD-yad"/>
|
||||
</connections>
|
||||
</pickerView>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XMB-Cv-YLA">
|
||||
<rect key="frame" x="16" y="670" width="167" height="50"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.25035761439999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="31"/>
|
||||
<state key="normal" title="Restore"/>
|
||||
<connections>
|
||||
<action selector="restoreBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="JqV-B8-5zg"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="WN9-tU-bOp">
|
||||
<rect key="frame" x="192" y="670" width="167" height="50"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.25035761439999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="31"/>
|
||||
<state key="normal" title="Update"/>
|
||||
<connections>
|
||||
<action selector="updateBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Jz6-Fn-uAo"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Z44-tn-4Km">
|
||||
<rect key="frame" x="16" y="728" width="343" height="50"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.25035761439999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="31"/>
|
||||
<state key="normal" title="Delete">
|
||||
<color key="titleColor" red="1" green="0.084393614217168067" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="deleteBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="IGQ-c1-zGW"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FKY-5f-bN9">
|
||||
<rect key="frame" x="16" y="612" width="343" height="50"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.25035761439999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="31"/>
|
||||
<state key="normal" title="Create Backup"/>
|
||||
<connections>
|
||||
<action selector="createBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="HAA-of-GPp"/>
|
||||
</connections>
|
||||
</button>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Selected Backup:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z1J-Te-u2O">
|
||||
<rect key="frame" x="109" y="183" width="157" height="30"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="20"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gXr-H3-y6A">
|
||||
<rect key="frame" x="16" y="221" width="343" height="30"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="15"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="FlashBack" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="84C-7a-WER">
|
||||
<rect key="frame" x="16" y="82" width="343" height="93"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" name="Courier" family="Courier" pointSize="50"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="selectedBackupImage" destination="Xdq-a9-Vkk" id="3M7-5T-hc0"/>
|
||||
<outlet property="selectedBackupPickerView" destination="X4R-sr-2s9" id="2IO-B4-AIX"/>
|
||||
<outlet property="selectedBackupText" destination="gXr-H3-y6A" id="auZ-41-ZJD"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="117.59999999999999" y="113.79310344827587"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<resources>
|
||||
<image name="bgimage" width="1125" height="2436"/>
|
||||
</resources>
|
||||
</document>
|
43
FlashBack/Info.plist
Normal file
43
FlashBack/Info.plist
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?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>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>Main</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
73
FlashBack/NSTask.h
Normal file
73
FlashBack/NSTask.h
Normal file
|
@ -0,0 +1,73 @@
|
|||
/* NSTask.h
|
||||
Copyright (c) 1996-2007, Apple Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
@class NSString, NSArray, NSDictionary;
|
||||
|
||||
@interface NSTask : NSObject
|
||||
|
||||
// Create an NSTask which can be run at a later time
|
||||
// An NSTask can only be run once. Subsequent attempts to
|
||||
// run an NSTask will raise.
|
||||
// Upon task death a notification will be sent
|
||||
// { Name = NSTaskDidTerminateNotification; object = task; }
|
||||
//
|
||||
|
||||
- (instancetype)init;
|
||||
|
||||
// set parameters
|
||||
// these methods can only be done before a launch
|
||||
- (void)setLaunchPath:(NSString *)path;
|
||||
- (void)setArguments:(NSArray *)arguments;
|
||||
- (void)setEnvironment:(NSDictionary *)dict;
|
||||
// if not set, use current
|
||||
- (void)setCurrentDirectoryPath:(NSString *)path;
|
||||
// if not set, use current
|
||||
|
||||
// set standard I/O channels; may be either an NSFileHandle or an NSPipe
|
||||
- (void)setStandardInput:(id)input;
|
||||
- (void)setStandardOutput:(id)output;
|
||||
- (void)setStandardError:(id)error;
|
||||
|
||||
// get parameters
|
||||
- (NSString *)launchPath;
|
||||
- (NSArray *)arguments;
|
||||
- (NSDictionary *)environment;
|
||||
- (NSString *)currentDirectoryPath;
|
||||
|
||||
// get standard I/O channels; could be either an NSFileHandle or an NSPipe
|
||||
- (id)standardInput;
|
||||
- (id)standardOutput;
|
||||
- (id)standardError;
|
||||
|
||||
// actions
|
||||
- (void)launch;
|
||||
|
||||
- (void)interrupt; // Not always possible. Sends SIGINT.
|
||||
- (void)terminate; // Not always possible. Sends SIGTERM.
|
||||
|
||||
- (BOOL)suspend;
|
||||
- (BOOL)resume;
|
||||
|
||||
// status
|
||||
- (int)processIdentifier;
|
||||
- (BOOL)isRunning;
|
||||
|
||||
- (int)terminationStatus;
|
||||
|
||||
@end
|
||||
|
||||
@interface NSTask (NSTaskConveniences)
|
||||
|
||||
+ (NSTask *)launchedTaskWithLaunchPath:(NSString *)path arguments:(NSArray *)arguments;
|
||||
// convenience; create and launch
|
||||
|
||||
- (void)waitUntilExit;
|
||||
// poll the runLoop in defaultMode until task completes
|
||||
|
||||
@end
|
||||
|
||||
FOUNDATION_EXPORT NSString * const NSTaskDidTerminateNotification;
|
||||
|
22
FlashBack/ViewController.h
Normal file
22
FlashBack/ViewController.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
//
|
||||
// ViewController.h
|
||||
// FlashBack
|
||||
//
|
||||
// Created by Micah Gomez on 3/27/19.
|
||||
// Copyright © 2019 Micah Gomez. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface ViewController : UIViewController <UIPickerViewDelegate, UIPickerViewDataSource>{
|
||||
|
||||
IBOutlet UILabel *selectedBackupText;
|
||||
IBOutlet UIImageView *selectedBackupImage;
|
||||
IBOutlet UIPickerView *selectedBackupPickerView;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
231
FlashBack/ViewController.m
Normal file
231
FlashBack/ViewController.m
Normal file
|
@ -0,0 +1,231 @@
|
|||
//
|
||||
// ViewController.m
|
||||
// FlashBack
|
||||
//
|
||||
// Created by Micah Gomez on 3/27/19.
|
||||
// Copyright © 2019 Micah Gomez. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ViewController.h"
|
||||
#include <spawn.h>
|
||||
#include <signal.h>
|
||||
#include "NSTask.h"
|
||||
|
||||
|
||||
@interface ViewController ()
|
||||
|
||||
@end
|
||||
|
||||
NSArray *_backupFolderArray;
|
||||
NSString *_backupDirectory;
|
||||
NSMutableString *selectedBackupImageURL;
|
||||
|
||||
|
||||
@implementation ViewController
|
||||
|
||||
|
||||
- (IBAction)createBackup:(id)sender {
|
||||
|
||||
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Enter the Backup Name" message:@"" preferredStyle:UIAlertControllerStyleAlert];
|
||||
[alertController addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
|
||||
textField.placeholder = @"Backup Name";
|
||||
textField.secureTextEntry = NO;
|
||||
}];
|
||||
UIAlertAction *confirmAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
NSLog(@"Backup name is :%@", [[alertController textFields][0] text]);
|
||||
NSString *newBackupName=[[alertController textFields][0] text];
|
||||
|
||||
if([[[alertController textFields][0] text] isEqual:@""]){
|
||||
NSLog(@"empty backup name!");
|
||||
}
|
||||
else{
|
||||
NSLog(@"Backup name is good!");
|
||||
|
||||
/*NSString *content = @"Put this in a file please.";
|
||||
NSData *fileContents = [content dataUsingEncoding:NSUTF8StringEncoding];
|
||||
[[NSFileManager defaultManager] createFileAtPath:@"/Applications/test.txt"
|
||||
contents:fileContents
|
||||
attributes:nil];*/
|
||||
|
||||
NSLog(@"Running NSTask");
|
||||
|
||||
NSTask *task = [[NSTask alloc] init];
|
||||
[task setLaunchPath:@"/usr/bin/bash"];
|
||||
[task setArguments:@[ @"_FBCreate", newBackupName]];
|
||||
[task launch];
|
||||
|
||||
NSLog(@"Running NSTask failed, running posix_spawn");
|
||||
|
||||
/*pid_t pid;
|
||||
int status;
|
||||
const char* args[] = {"killall", "backboardd", NULL, NULL};
|
||||
posix_spawn(&pid, "/bin/bash", NULL, NULL, (char* const*)args, NULL);
|
||||
waitpid(pid, &status, WEXITED);*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
}];
|
||||
[alertController addAction:confirmAction];
|
||||
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
|
||||
NSLog(@"Canelled");
|
||||
}];
|
||||
[alertController addAction:cancelAction];
|
||||
[self presentViewController:alertController animated:YES completion:nil];
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (IBAction)restoreBackup:(id)sender {
|
||||
|
||||
UIAlertController * alert= [UIAlertController
|
||||
alertControllerWithTitle:@"Restore Backup"
|
||||
message:@"Your device will revert to the selected backup!"
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* ok = [UIAlertAction
|
||||
actionWithTitle:@"OK"
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action)
|
||||
{
|
||||
|
||||
|
||||
|
||||
[alert dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
}];
|
||||
UIAlertAction* cancel = [UIAlertAction
|
||||
actionWithTitle:@"Cancel"
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action)
|
||||
{
|
||||
[alert dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
}];
|
||||
|
||||
[alert addAction:cancel];
|
||||
[alert addAction:ok];
|
||||
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
|
||||
}
|
||||
|
||||
- (IBAction)updateBackup:(id)sender {
|
||||
|
||||
UIAlertController * alert= [UIAlertController
|
||||
alertControllerWithTitle:@"Update Backup"
|
||||
message:@"The selected backup will be overwritten!"
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* ok = [UIAlertAction
|
||||
actionWithTitle:@"OK"
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action)
|
||||
{
|
||||
|
||||
|
||||
|
||||
[alert dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
}];
|
||||
UIAlertAction* cancel = [UIAlertAction
|
||||
actionWithTitle:@"Cancel"
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action)
|
||||
{
|
||||
[alert dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
}];
|
||||
|
||||
[alert addAction:cancel];
|
||||
[alert addAction:ok];
|
||||
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
|
||||
}
|
||||
|
||||
|
||||
- (IBAction)deleteBackup:(id)sender {
|
||||
|
||||
UIAlertController * alert= [UIAlertController
|
||||
alertControllerWithTitle:@"Delete BAckup"
|
||||
message:@"The selected backup will be deleted!"
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction* ok = [UIAlertAction
|
||||
actionWithTitle:@"OK"
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action)
|
||||
{
|
||||
|
||||
|
||||
[alert dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
}];
|
||||
UIAlertAction* cancel = [UIAlertAction
|
||||
actionWithTitle:@"Cancel"
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action)
|
||||
{
|
||||
[alert dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
}];
|
||||
|
||||
[alert addAction:cancel];
|
||||
[alert addAction:ok];
|
||||
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
selectedBackupText.text=@"Select a Backup";
|
||||
//selectedBackupImage.backgroundColor=[UIColor grayColor];
|
||||
|
||||
selectedBackupPickerView.delegate=self;
|
||||
selectedBackupPickerView.dataSource=self;
|
||||
|
||||
//_backupFolderArray = @[@"one",@"two",@"three"];
|
||||
_backupFolderArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:@"/Library/FlashBack/Backups/" error:nil];
|
||||
}
|
||||
|
||||
-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{
|
||||
|
||||
NSString *backupNameSelected = [_backupFolderArray objectAtIndex:row];
|
||||
selectedBackupText.text=backupNameSelected;
|
||||
|
||||
selectedBackupImageURL = [NSMutableString stringWithString: @"/Library/FlashBack/Backups/"];
|
||||
[selectedBackupImageURL appendString: backupNameSelected];
|
||||
[selectedBackupImageURL appendString: @"/bgimage.png"];
|
||||
NSLog(@"%@", selectedBackupImageURL);
|
||||
|
||||
selectedBackupImage.image=[UIImage imageNamed:selectedBackupImageURL];
|
||||
|
||||
NSLog(@"%@", backupNameSelected);
|
||||
|
||||
}
|
||||
|
||||
-(NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{
|
||||
|
||||
return _backupFolderArray.count;
|
||||
|
||||
}
|
||||
|
||||
-(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView{
|
||||
return 1;
|
||||
}
|
||||
|
||||
-(NSString*)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component{
|
||||
|
||||
return _backupFolderArray[row];
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
BIN
FlashBack/bgimage.jpg
Normal file
BIN
FlashBack/bgimage.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
58
FlashBack/main.m
Normal file
58
FlashBack/main.m
Normal file
|
@ -0,0 +1,58 @@
|
|||
//
|
||||
// main.m
|
||||
// FlashBack
|
||||
//
|
||||
// Created by Micah Gomez on 3/27/19.
|
||||
// Copyright © 2019 Micah Gomez. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "AppDelegate.h"
|
||||
#include <dlfcn.h>
|
||||
|
||||
#define FLAG_PLATFORMIZE (1 << 1)
|
||||
|
||||
void platformize_me() {
|
||||
void* handle = dlopen("/usr/lib/libjailbreak.dylib", RTLD_LAZY);
|
||||
if (!handle) return;
|
||||
|
||||
// Reset errors
|
||||
dlerror();
|
||||
typedef void (*fix_entitle_prt_t)(pid_t pid, uint32_t what);
|
||||
fix_entitle_prt_t ptr = (fix_entitle_prt_t)dlsym(handle, "jb_oneshot_entitle_now");
|
||||
|
||||
const char *dlsym_error = dlerror();
|
||||
if (dlsym_error) return;
|
||||
|
||||
ptr(getpid(), FLAG_PLATFORMIZE);
|
||||
}
|
||||
|
||||
void patch_setuid() {
|
||||
void* handle = dlopen("/usr/lib/libjailbreak.dylib", RTLD_LAZY);
|
||||
if (!handle)
|
||||
return;
|
||||
|
||||
// Reset errors
|
||||
dlerror();
|
||||
typedef void (*fix_setuid_prt_t)(pid_t pid);
|
||||
fix_setuid_prt_t ptr = (fix_setuid_prt_t)dlsym(handle, "jb_oneshot_fix_setuid_now");
|
||||
|
||||
const char *dlsym_error = dlerror();
|
||||
if (dlsym_error)
|
||||
return;
|
||||
|
||||
ptr(getpid());
|
||||
}
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
@autoreleasepool {
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/usr/lib/libjailbreak.dylib"]){
|
||||
platformize_me();
|
||||
patch_setuid();
|
||||
}
|
||||
|
||||
setuid(0);
|
||||
setgid(0);
|
||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
||||
}
|
||||
}
|
18
FlashBack/sign.entitlements
Normal file
18
FlashBack/sign.entitlements
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?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>platform-application</key>
|
||||
<true/>
|
||||
<key>com.apple.private.security.no-container</key>
|
||||
<true/>
|
||||
<key>com.apple.private.skip-library-validation</key>
|
||||
<true/>
|
||||
<key>get-task-allow</key>
|
||||
<true/>
|
||||
<key>dynamic-codesigning</key>
|
||||
<true/>
|
||||
<key>sandboxing</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
37
FlashBackTests/FlashBackTests.m
Normal file
37
FlashBackTests/FlashBackTests.m
Normal file
|
@ -0,0 +1,37 @@
|
|||
//
|
||||
// FlashBackTests.m
|
||||
// FlashBackTests
|
||||
//
|
||||
// Created by Micah Gomez on 3/27/19.
|
||||
// Copyright © 2019 Micah Gomez. All rights reserved.
|
||||
//
|
||||
|
||||
#import <XCTest/XCTest.h>
|
||||
|
||||
@interface FlashBackTests : XCTestCase
|
||||
|
||||
@end
|
||||
|
||||
@implementation FlashBackTests
|
||||
|
||||
- (void)setUp {
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
- (void)tearDown {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
- (void)testExample {
|
||||
// This is an example of a functional test case.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||
}
|
||||
|
||||
- (void)testPerformanceExample {
|
||||
// This is an example of a performance test case.
|
||||
[self measureBlock:^{
|
||||
// Put the code you want to measure the time of here.
|
||||
}];
|
||||
}
|
||||
|
||||
@end
|
22
FlashBackTests/Info.plist
Normal file
22
FlashBackTests/Info.plist
Normal 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>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
38
FlashBackUITests/FlashBackUITests.m
Normal file
38
FlashBackUITests/FlashBackUITests.m
Normal file
|
@ -0,0 +1,38 @@
|
|||
//
|
||||
// FlashBackUITests.m
|
||||
// FlashBackUITests
|
||||
//
|
||||
// Created by Micah Gomez on 3/27/19.
|
||||
// Copyright © 2019 Micah Gomez. All rights reserved.
|
||||
//
|
||||
|
||||
#import <XCTest/XCTest.h>
|
||||
|
||||
@interface FlashBackUITests : XCTestCase
|
||||
|
||||
@end
|
||||
|
||||
@implementation FlashBackUITests
|
||||
|
||||
- (void)setUp {
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
|
||||
// In UI tests it is usually best to stop immediately when a failure occurs.
|
||||
self.continueAfterFailure = NO;
|
||||
|
||||
// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
|
||||
[[[XCUIApplication alloc] init] launch];
|
||||
|
||||
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
|
||||
}
|
||||
|
||||
- (void)tearDown {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
- (void)testExample {
|
||||
// Use recording to get started writing UI tests.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||
}
|
||||
|
||||
@end
|
22
FlashBackUITests/Info.plist
Normal file
22
FlashBackUITests/Info.plist
Normal 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>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
12
ent.entitlements
Normal file
12
ent.entitlements
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>platform-application</key>
|
||||
<true/>
|
||||
<key>com.apple.private.security.no-container</key>
|
||||
<true/>
|
||||
<key>com.apple.private.security.container-required</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
Reference in a new issue