removed drm code
This commit is contained in:
parent
0e0f893310
commit
7d6da1934c
4 changed files with 21 additions and 82 deletions
|
@ -7,7 +7,7 @@
|
||||||
<key>FlashBack.xcscheme_^#shared#^_</key>
|
<key>FlashBack.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>0</integer>
|
<integer>1</integer>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
BIN
FlashBack.xcworkspace/xcuserdata/micahgomez.xcuserdatad/UserInterfaceState.xcuserstate
generated
Normal file
BIN
FlashBack.xcworkspace/xcuserdata/micahgomez.xcuserdatad/UserInterfaceState.xcuserstate
generated
Normal file
Binary file not shown.
|
@ -16,7 +16,6 @@
|
||||||
#import "globalVars.h"
|
#import "globalVars.h"
|
||||||
|
|
||||||
|
|
||||||
BOOL trial;
|
|
||||||
NSArray *_backupFolderArray;
|
NSArray *_backupFolderArray;
|
||||||
NSString *_backupDirectory;
|
NSString *_backupDirectory;
|
||||||
NSMutableString *selectedBackupImageURL;
|
NSMutableString *selectedBackupImageURL;
|
||||||
|
@ -249,8 +248,6 @@ NSString *backupNameSelected;
|
||||||
|
|
||||||
- (IBAction)packageBackup:(id)sender {
|
- (IBAction)packageBackup:(id)sender {
|
||||||
|
|
||||||
if (trial == NO){
|
|
||||||
|
|
||||||
if (backupNameSelected == nil){
|
if (backupNameSelected == nil){
|
||||||
|
|
||||||
UIAlertController * selectBackupAlert= [UIAlertController
|
UIAlertController * selectBackupAlert= [UIAlertController
|
||||||
|
@ -321,29 +318,6 @@ NSString *backupNameSelected;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else{
|
|
||||||
|
|
||||||
UIAlertController * noBackupDEBAlert = [UIAlertController
|
|
||||||
alertControllerWithTitle:@"Creating DEBs is only available in the full version"
|
|
||||||
message:@"The free trial of FlashBack doesn't allow backing up setups to DEBs. Purchase the full version on PackIX for $1.50 for this!"
|
|
||||||
preferredStyle:UIAlertControllerStyleAlert];
|
|
||||||
|
|
||||||
UIAlertAction* ok = [UIAlertAction
|
|
||||||
actionWithTitle:@"ok"
|
|
||||||
style:UIAlertActionStyleDefault
|
|
||||||
handler:^(UIAlertAction * action)
|
|
||||||
{
|
|
||||||
[noBackupDEBAlert dismissViewControllerAnimated:YES completion:nil];
|
|
||||||
|
|
||||||
}];
|
|
||||||
|
|
||||||
[noBackupDEBAlert addAction:ok];
|
|
||||||
|
|
||||||
[self presentViewController:noBackupDEBAlert animated:YES completion:nil];
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)deleteBackup:(id)sender {
|
- (IBAction)deleteBackup:(id)sender {
|
||||||
|
|
||||||
if (backupNameSelected == nil){
|
if (backupNameSelected == nil){
|
||||||
|
@ -471,60 +445,6 @@ NSString *backupNameSelected;
|
||||||
//_backupFolderArray = @[@"one",@"two",@"three"];
|
//_backupFolderArray = @[@"one",@"two",@"three"];
|
||||||
_backupFolderArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:@"/Library/FlashBack/Backups/" error:nil];
|
_backupFolderArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:@"/Library/FlashBack/Backups/" error:nil];
|
||||||
|
|
||||||
// MARK: DRM From @Kushdabush, commenting out for testing
|
|
||||||
//pulled from https://github.com/DomienF/kushy-drm/blob/master/Tweak.xm
|
|
||||||
|
|
||||||
UIAlertController * failedDRMAlert= [UIAlertController
|
|
||||||
alertControllerWithTitle:@"FlashBack appears to be pirated :("
|
|
||||||
message:@"For your own safety, download FlashBack from the official source! If you're seeing this, then it means that whoever is distributing this copy is either sharing a ripped version that is potentially dangerous, or they have forgotten to remove this warning for yours, and their own protection."
|
|
||||||
preferredStyle:UIAlertControllerStyleAlert];
|
|
||||||
|
|
||||||
UIAlertAction* failedDRMOk = [UIAlertAction
|
|
||||||
actionWithTitle:@"OK"
|
|
||||||
style:UIAlertActionStyleDefault
|
|
||||||
handler:^(UIAlertAction * action)
|
|
||||||
{
|
|
||||||
[failedDRMAlert dismissViewControllerAnimated:YES completion:nil];
|
|
||||||
//exit(0);
|
|
||||||
}];
|
|
||||||
|
|
||||||
UIAlertController * trialNoticeAlert= [UIAlertController
|
|
||||||
alertControllerWithTitle:@"Trial Notice"
|
|
||||||
message:@"Thanks for checking out FlashBack! This trial allows you to give FlashBack a test run allowing for one backup. You can use that backup as a checkpoint to revert to after making changes."
|
|
||||||
preferredStyle:UIAlertControllerStyleAlert];
|
|
||||||
|
|
||||||
UIAlertAction* trialOk = [UIAlertAction
|
|
||||||
actionWithTitle:@"ok"
|
|
||||||
style:UIAlertActionStyleDefault
|
|
||||||
handler:^(UIAlertAction * action)
|
|
||||||
{
|
|
||||||
[trialNoticeAlert dismissViewControllerAnimated:YES completion:nil];
|
|
||||||
}];
|
|
||||||
|
|
||||||
[failedDRMAlert addAction:failedDRMOk];
|
|
||||||
[trialNoticeAlert addAction:trialOk];
|
|
||||||
|
|
||||||
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/var/lib/dpkg/info/com.mpg13.flashback.list"]){
|
|
||||||
NSLog(@"FlashBack DRM Passed");
|
|
||||||
trial = NO;
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/var/lib/dpkg/info/com.mpg13.flashbackfree.list"]){
|
|
||||||
NSLog(@"FlashBack Trial Mode");
|
|
||||||
trial = YES;
|
|
||||||
dispatch_async(dispatch_get_main_queue(), ^ {
|
|
||||||
[self presentViewController:trialNoticeAlert animated:YES completion:nil];
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
NSLog(@"DRM failed");
|
|
||||||
dispatch_async(dispatch_get_main_queue(), ^ {
|
|
||||||
[self presentViewController:failedDRMAlert animated:YES completion:nil];
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
trial = NO;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{
|
-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{
|
||||||
|
|
19
Pods/Pods.xcodeproj/xcuserdata/micahgomez.xcuserdatad/xcschemes/xcschememanagement.plist
generated
Normal file
19
Pods/Pods.xcodeproj/xcuserdata/micahgomez.xcuserdatad/xcschemes/xcschememanagement.plist
generated
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<?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>Pods-FlashBack.xcscheme_^#shared#^_</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>0</integer>
|
||||||
|
</dict>
|
||||||
|
<key>SDWebImage.xcscheme_^#shared#^_</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>2</integer>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
Reference in a new issue