Remove prefs for now
This commit is contained in:
@ -1,17 +0,0 @@
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
ARCHS = arm64 arm64e
|
||||
export TARGET = iphone:clang:13.0:latest
|
||||
BUNDLE_NAME = ZenithDarkPrefs
|
||||
|
||||
ZenithDarkPrefs_FILES = ZnthDrkRootListController.m
|
||||
ZenithDarkPrefs_INSTALL_PATH = /Library/PreferenceBundles
|
||||
ZenithDarkPrefs_FRAMEWORKS = UIKit
|
||||
ZenithDarkPrefs_PRIVATE_FRAMEWORKS = Preferences
|
||||
ZenithDarkPrefs_CFLAGS = -fobjc-arc
|
||||
|
||||
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/ZenithDarkPrefs.plist$(ECHO_END)
|
@ -1,24 +0,0 @@
|
||||
<?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>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>ZenithDarkPrefs</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.mac-user669.zenithdarkprefs</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>ZnthDrkRootListController</string>
|
||||
</dict>
|
||||
</plist>
|
@ -1,42 +0,0 @@
|
||||
<?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>items</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>Enable</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<true/>
|
||||
<key>defaults</key>
|
||||
<string>com.mac-user669.zenithdarkprefs</string>
|
||||
<key>key</key>
|
||||
<string>enabled</string>
|
||||
<key>label</key>
|
||||
<string>Enable</string>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSButtonCell</string>
|
||||
<key>label</key>
|
||||
<string>@mac_user669</string>
|
||||
<key>action</key>
|
||||
<string>openTwitter</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>title</key>
|
||||
<string>ZenithDark</string>
|
||||
</dict>
|
||||
</plist>
|
@ -1,5 +0,0 @@
|
||||
#import <Preferences/PSListController.h>
|
||||
|
||||
@interface ZnthDrkRootListController : PSListController
|
||||
|
||||
@end
|
@ -1,40 +0,0 @@
|
||||
#import "ZnthDrkRootListController.h"
|
||||
#import <spawn.h>
|
||||
@implementation ZnthDrkRootListController
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated {
|
||||
[super viewWillAppear:animated];
|
||||
UIBarButtonItem *applyButton = [[UIBarButtonItem alloc] initWithTitle:@"Apply" style:UIBarButtonItemStylePlain target:self action:@selector(respringDevice)];
|
||||
self.navigationItem.rightBarButtonItem = applyButton;
|
||||
}
|
||||
|
||||
- (NSArray *)specifiers {
|
||||
if (!_specifiers) {
|
||||
_specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
|
||||
}
|
||||
|
||||
return _specifiers;
|
||||
}
|
||||
|
||||
- (void) respringDevice {
|
||||
UIAlertController *confirmRespringAlert = [UIAlertController alertControllerWithTitle:@"Apply settings?" message:@"This will respring your device" preferredStyle:UIAlertControllerStyleAlert];
|
||||
UIAlertAction *confirm = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
pid_t pid;
|
||||
const char *argv[] = {"sbreload", NULL};
|
||||
posix_spawn(&pid, "/usr/bin/sbreload", NULL, NULL, (char* const*)argv, NULL);
|
||||
}];
|
||||
|
||||
UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil];
|
||||
|
||||
[confirmRespringAlert addAction:cancel];
|
||||
[confirmRespringAlert addAction:confirm];
|
||||
|
||||
[self presentViewController:confirmRespringAlert animated:YES completion:nil];
|
||||
}
|
||||
|
||||
-(void)openTwitter {
|
||||
NSURL *twitter = [NSURL URLWithString:@"https://twitter.com/mac_user669"];
|
||||
[[UIApplication sharedApplication] openURL:twitter options:@{} completionHandler:nil];
|
||||
}
|
||||
|
||||
@end
|
@ -1,21 +0,0 @@
|
||||
<?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>entry</key>
|
||||
<dict>
|
||||
<key>bundle</key>
|
||||
<string>ZenithDarkPrefs</string>
|
||||
<key>cell</key>
|
||||
<string>PSLinkCell</string>
|
||||
<key>detail</key>
|
||||
<string>ZnthDrkRootListController</string>
|
||||
<key>icon</key>
|
||||
<string>icon.png</string>
|
||||
<key>isController</key>
|
||||
<true/>
|
||||
<key>label</key>
|
||||
<string>ZenithDarkPrefs</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
Reference in New Issue
Block a user