Skip to content

Commit

Permalink
Renamed to just 'CyDelete'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb93 committed Nov 13, 2014
1 parent 332af81 commit fe8f37d
Show file tree
Hide file tree
Showing 42 changed files with 36 additions and 37 deletions.
File renamed without changes.
10 changes: 5 additions & 5 deletions CyDelete8.xm → CyDelete.xm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CyDelete7.xm
// CyDelete7
// CyDelete8.xm
// CyDelete8
//
// Created by Ryan Burke on 02.01.2014.
// Copyright (c) 2014 Ryan Burke. All rights reserved.
Expand Down Expand Up @@ -48,18 +48,18 @@ static NSOperationQueue *uninstallQueue;

//Loads the application translation bundle and stores it locally.
static void initTranslation() {
cyDelBundle = [NSBundle bundleWithPath:@"/Library/Application Support/CyDelete8/CyDelete8.bundle"];
cyDelBundle = [NSBundle bundleWithPath:@"/Library/Application Support/CyDelete/CyDelete.bundle"];
}

static bool getCFBool(CFStringRef key, bool defaultValue) {
//Sync the latest version of the preferences.
bool synced = CFPreferencesAppSynchronize(CFSTR("com.ryanburke.cydelete8"));
bool synced = CFPreferencesAppSynchronize(CFSTR("com.ryanburke.cydelete"));
//If the sync failed, lets just default to protecting Cydia for safety.
if(!synced) return defaultValue;
//Create a boolean object to hold the success value from next function.
Boolean success;
//Get the value of the key from the preferences.
bool result = CFPreferencesGetAppBooleanValue(key, CFSTR("com.ryanburke.cydelete8"), &success);
bool result = CFPreferencesGetAppBooleanValue(key, CFSTR("com.ryanburke.cydelete"), &success);
//If the enabled key existed and we got the value okay.
if(success) {
//Return the value of the key.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// cydelete7settings.m
// cydelete7settings
// CyDeleteListController.mm
//
// Created by Ryan Burke on 03.01.2014.
// Copyright (c) 2014 Ryan Burke. All rights reserved.
Expand All @@ -9,19 +8,19 @@
#include <Preferences/PSSpecifier.h>
#include <Preferences/PSListController.h>

@interface Cydelete8ListController : PSListController
@interface CyDeleteListController : PSListController

- (id)specifiers;
- (void)ryanDonate:(id)arg;
- (void)viewSource:(id)arg;

@end

@implementation Cydelete8ListController
@implementation CyDeleteListController

- (id)specifiers {
if (_specifiers == nil) {
_specifiers = [[self loadSpecifiersFromPlistName:@"Cydelete8" target:self] retain];
_specifiers = [[self loadSpecifiersFromPlistName:@"CyDelete" target:self] retain];
[self localizedSpecifiersWithSpecifiers:_specifiers];
}
return _specifiers;
Expand Down Expand Up @@ -60,7 +59,7 @@ - (void)ryanDonate:(id)arg {
}

- (void)viewSource:(id)arg {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/ryanb93/CyDelete7"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/ryanb93/CyDelete"]];
}


Expand Down
12 changes: 6 additions & 6 deletions Cydelete8/Makefile → CyDelete/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ TARGET = iphone:8.1

include theos/makefiles/common.mk

BUNDLE_NAME = Cydelete8
Cydelete8_FILES = Cydelete8ListController.mm
Cydelete8_INSTALL_PATH = /Library/PreferenceBundles
Cydelete8_FRAMEWORKS = Foundation UIKit
Cydelete8_PRIVATE_FRAMEWORKS = Preferences
BUNDLE_NAME = CyDelete
CyDelete_FILES = CyDeleteListController.mm
CyDelete_INSTALL_PATH = /Library/PreferenceBundles
CyDelete_FRAMEWORKS = Foundation UIKit
CyDelete_PRIVATE_FRAMEWORKS = Preferences

include $(THEOS_MAKE_PATH)/bundle.mk

internal-stage::
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/Cydelete8.plist$(ECHO_END)
$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/CyDelete.plist$(ECHO_END)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>default</key>
<true/>
<key>defaults</key>
<string>com.ryanburke.cydelete8</string>
<string>com.ryanburke.cydelete</string>
<key>key</key>
<string>enabled</string>
<key>label</key>
Expand All @@ -38,7 +38,7 @@
<key>default</key>
<true/>
<key>defaults</key>
<string>com.ryanburke.cydelete8</string>
<string>com.ryanburke.cydelete</string>
<key>key</key>
<string>CDProtectCydia</string>
<key>label</key>
Expand All @@ -52,7 +52,7 @@
<key>default</key>
<true/>
<key>defaults</key>
<string>com.ryanburke.cydelete8</string>
<string>com.ryanburke.cydelete</string>
<key>key</key>
<string>CDProtectPangu</string>
<key>label</key>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>Cydelete8</string>
<string>CyDelete</string>
<key>CFBundleIdentifier</key>
<string>com.ryanburke.cydelete8</string>
<string>com.ryanburke.cydelete</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
Expand All @@ -21,8 +21,8 @@
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>7.0</string>
<key>NSPrincipalClass</key>
<string>Cydelete8ListController</string>
<string>CyDeleteListController</string>
</dict>
</plist>
File renamed without changes
6 changes: 3 additions & 3 deletions Cydelete8/entry.plist → CyDelete/entry.plist
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
entry = {
bundle = Cydelete8;
bundle = CyDelete;
cell = PSLinkCell;
detail = "Cydelete8ListController";
detail = "CyDeleteListController";
icon = "CyDelete.png";
isController = 1;
label = CyDelete8;
label = CyDelete;
};
}
File renamed without changes.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ TARGET = iphone:8.1

include theos/makefiles/common.mk

TWEAK_NAME = CyDelete8
CyDelete8_FILES = CyDelete8.xm
CyDelete8_FRAMEWORKS = Foundation, UIKit
TWEAK_NAME = CyDelete
CyDelete_FILES = CyDelete.xm
CyDelete_FRAMEWORKS = Foundation, UIKit

include $(THEOS_MAKE_PATH)/tweak.mk
SUBPROJECTS += setuid CyDelete8
SUBPROJECTS += setuid CyDelete
include $(THEOS_MAKE_PATH)/aggregate.mk

after-install::
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CyDelete8
CyDelete
=========

The original mobile substrate CyDelete tweak created by @DHowett updated for iOS 8.
The original mobile substrate CyDelete tweak created by @DHowett updated for iOS 7 and 8.
2 changes: 1 addition & 1 deletion layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Package: com.ryanburke.cydelete8
Package: com.ryanburke.cydelete
Name: CyDelete8
Depends: firmware (>=7.0), mobilesubstrate, preferenceloader, apt, bash
Version: 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>CyDelete8.dylib</string>
<string>CyDelete.dylib</string>
<key>CFBundleIdentifier</key>
<string>com.ryanburke.cydelete8</string>
<string>com.ryanburke.cydelete</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
Expand All @@ -21,6 +21,6 @@
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>7.0</string>
</dict>
</plist>

0 comments on commit fe8f37d

Please sign in to comment.