diff --git a/FlashBack/FlashBack.xcodeproj/project.xcworkspace/xcuserdata/micahgomez.xcuserdatad/UserInterfaceState.xcuserstate b/FlashBack/FlashBack.xcodeproj/project.xcworkspace/xcuserdata/micahgomez.xcuserdatad/UserInterfaceState.xcuserstate index 426cedd..3ad10a9 100644 Binary files a/FlashBack/FlashBack.xcodeproj/project.xcworkspace/xcuserdata/micahgomez.xcuserdatad/UserInterfaceState.xcuserstate and b/FlashBack/FlashBack.xcodeproj/project.xcworkspace/xcuserdata/micahgomez.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/FlashBack/FlashBack/ViewController.m b/FlashBack/FlashBack/ViewController.m index 28306bc..2344ca9 100644 --- a/FlashBack/FlashBack/ViewController.m +++ b/FlashBack/FlashBack/ViewController.m @@ -56,6 +56,8 @@ UIImage *darkLock; @implementation ViewController +//MARK: Handle bools for optional appliances + - (IBAction)tweaksSwitch:(id)sender { tweaksEnabled = [sender isOn]; @@ -80,6 +82,8 @@ UIImage *darkLock; } +//MARK: Create backup function + - (IBAction)createBackup:(id)sender { UIAlertController *createBackupAlert = [UIAlertController alertControllerWithTitle:@"Enter the Backup Name" message:@"Please do not use special symbols. Use only letters and numbers, no spaces." preferredStyle:UIAlertControllerStyleAlert]; @@ -98,8 +102,6 @@ UIImage *darkLock; else{ NSLog(@"Creating Backup"); - //MARK: Create Backup Code - //MARK: Backup preferences if(tweaksEnabled == YES){ _prefsFolderItemsRaw = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:@"/var/mobile/Library/Preferences/" error:nil]; @@ -267,6 +269,7 @@ UIImage *darkLock; } //MARK: Wallpaper selection code + -(void)selectWallpaperImageFunc{ UIAlertController *wallpaperSelectionAlert = [UIAlertController alertControllerWithTitle:@"Select Setup Wallpapers" message:@"Choose the wallpapers to apply for both Light and Dark mode on the Home and Lock Screen." preferredStyle:UIAlertControllerStyleActionSheet]; UIAlertAction* lightHomeAction = [UIAlertAction actionWithTitle:@"Light Mode Home Screen" @@ -399,8 +402,7 @@ UIImage *darkLock; [self presentViewController:wallpaperSelectionAlert animated:YES completion:nil]; } --(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info -{ +-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{ switch (selectedWallpaperStyle) { @@ -425,21 +427,24 @@ UIImage *darkLock; [self selectWallpaperImageFunc]; } --(void)imagePickerControllerDidCancel:(UIImagePickerController *)picker -{ +-(void)imagePickerControllerDidCancel:(UIImagePickerController *)picker{ NSLog(@"picker cancelled"); [picker dismissViewControllerAnimated:YES completion:nil]; [self selectWallpaperImageFunc]; } -//MARK: End wallpaper selection code +//MARK: Restore backup function - (IBAction)restoreBackup:(id)sender { lightHome = [UIImage imageWithContentsOfFile:@"/Library/FlashBack/Backups/3/SBFolder/LockBackgroundThumbnail.jpg"]; //darkHome = [UIImage imageWithContentsOfCPBitmapFile:@"/Library/FlashBack/Backups/3/SBFolder/LockBackgrounddark.cpbitmap" flags:kNilOptions];; + //lock screen setLightAndDarkWallpaperImages(lightHome, lightHome, 1); + //home screen + setLightAndDarkWallpaperImages(lightHome, lightHome, 2); + /*if (backupNameSelected == nil){ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20@2x.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20@2x.png deleted file mode 100644 index 7543e23..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20@2x.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20@2x~ipad.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20@2x~ipad.png deleted file mode 100644 index 7543e23..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20@2x~ipad.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20@3x.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20@3x.png deleted file mode 100644 index 04b69ce..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20@3x.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20~ipad.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20~ipad.png deleted file mode 100644 index 9ab83fe..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon20x20~ipad.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29@2x.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29@2x.png deleted file mode 100644 index 3f9fed6..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29@2x.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29@2x~ipad.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29@2x~ipad.png deleted file mode 100644 index 3f9fed6..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29@2x~ipad.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29@3x.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29@3x.png deleted file mode 100644 index 10c8380..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29@3x.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29~ipad.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29~ipad.png deleted file mode 100644 index f87b3c7..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon29x29~ipad.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40@2x.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40@2x.png deleted file mode 100644 index 619af75..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40@2x.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40@2x~ipad.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40@2x~ipad.png deleted file mode 100644 index 619af75..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40@2x~ipad.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40@3x.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40@3x.png deleted file mode 100644 index 384b9a4..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40@3x.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40~ipad.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40~ipad.png deleted file mode 100644 index 7543e23..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon40x40~ipad.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon60x60@3x.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon60x60@3x.png deleted file mode 100644 index 78aed14..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon60x60@3x.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon76x76~ipad.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon76x76~ipad.png deleted file mode 100644 index 009556d..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon76x76~ipad.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon83.5x83.5@2x~ipad.png b/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon83.5x83.5@2x~ipad.png deleted file mode 100644 index ed46a8a..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/AppIcon83.5x83.5@2x~ipad.png and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib/objects-13.0+.nib b/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib similarity index 54% rename from FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib/objects-13.0+.nib rename to FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib index 9fc279e..915195e 100644 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib/objects-13.0+.nib and b/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib/runtime.nib b/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib/runtime.nib deleted file mode 100644 index 38e6482..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib/runtime.nib and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib b/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib new file mode 100644 index 0000000..6405c27 Binary files /dev/null and b/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib/objects-13.0+.nib b/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib/objects-13.0+.nib deleted file mode 100644 index 69f57a2..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib/objects-13.0+.nib and /dev/null differ diff --git a/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib/runtime.nib b/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib/runtime.nib deleted file mode 100644 index 7b2f16e..0000000 Binary files a/FlashBackCompile/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib/runtime.nib and /dev/null differ