ARCHS = arm64 arm64e | ARCHS = arm64 arm64e | ||||
TARGET = iphone:clang:11.2:11.2 | TARGET = iphone:clang:11.2:11.2 | ||||
INSTALL_TARGET_PROCESSES = SpringBoard | |||||
include $(THEOS)/makefiles/common.mk | include $(THEOS)/makefiles/common.mk | ||||
TWEAK_NAME = CustomNoOlderNotifications | TWEAK_NAME = CustomNoOlderNotifications | ||||
CustomNoOlderNotifications_FILES = Tweak.xm | CustomNoOlderNotifications_FILES = Tweak.xm | ||||
CustomNoOlderNotifications_CFLAGS = -fobjc-arc | |||||
include $(THEOS_MAKE_PATH)/tweak.mk | include $(THEOS_MAKE_PATH)/tweak.mk | ||||
after-install:: | |||||
install.exec "killall -9 SpringBoard" | |||||
SUBPROJECTS += cnonprefs | SUBPROJECTS += cnonprefs | ||||
include $(THEOS_MAKE_PATH)/aggregate.mk | include $(THEOS_MAKE_PATH)/aggregate.mk |
return _specifiers; | return _specifiers; | ||||
} | } | ||||
- (void)apply { | |||||
- (void)saveTapped { | |||||
[self.view endEditing:YES]; | [self.view endEditing:YES]; | ||||
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.cnon/respring"), NULL, NULL, YES); | CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.cnon/respring"), NULL, NULL, YES); | ||||
} | } |
include $(THEOS)/makefiles/common.mk | include $(THEOS)/makefiles/common.mk | ||||
BUNDLE_NAME = cnonprefs | BUNDLE_NAME = cnonprefs | ||||
cnonprefs_FILES = CNONRootListController.m | cnonprefs_FILES = CNONRootListController.m | ||||
cnonprefs_INSTALL_PATH = /Library/PreferenceBundles | cnonprefs_INSTALL_PATH = /Library/PreferenceBundles | ||||
cnonprefs_FRAMEWORKS = UIKit | cnonprefs_FRAMEWORKS = UIKit | ||||
cnonprefs_PRIVATE_FRAMEWORKS = Preferences | cnonprefs_PRIVATE_FRAMEWORKS = Preferences | ||||
cnonprefs_CFLAGS = -fobjc-arc | |||||
include $(THEOS_MAKE_PATH)/bundle.mk | include $(THEOS_MAKE_PATH)/bundle.mk | ||||
<key>cell</key> | <key>cell</key> | ||||
<string>PSButtonCell</string> | <string>PSButtonCell</string> | ||||
<key>action</key> | <key>action</key> | ||||
<string>apply</string> | |||||
<string>saveTapped</string> | |||||
<key>label</key> | <key>label</key> | ||||
<string>Respring</string> | <string>Respring</string> | ||||
</dict> | </dict> |