Last active
December 17, 2015 02:39
-
-
Save joedj/5537700 to your computer and use it in GitHub Desktop.
WPLTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package: net.joedj.wpltest | |
Name: WPLTest | |
Depends: firmware (>= 5.0), com.arichardson.weepreferenceloader | |
Version: 0.1 | |
Architecture: iphoneos-arm | |
Description: WPLTest | |
Author: joedj | |
Maintainer: joedj | |
Section: Addons (NotificationCenter) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
CFBundleIdentifier = "net.joedj.wpltest"; | |
NSPrincipalClass = WPLTest; | |
sections = ("N/A"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET := iphone:clang::5.0 | |
ARCHS := armv7 | |
ADDITIONAL_CFLAGS += -g -fobjc-arc -fvisibility=hidden | |
ADDITIONAL_LDFLAGS += -Wl,-map,$@.map -g -fobjc-arc -x c /dev/null -x none | |
BUNDLE_NAME := WPLTest | |
WPLTest_FILES := WPLTest.m | |
WPLTest_INSTALL_PATH := /Library/WeePreferenceLoader/Preferences | |
include theos/makefiles/common.mk | |
include $(THEOS_MAKE_PATH)/bundle.mk | |
after-stage:: | |
$(ECHO_NOTHING)find $(THEOS_STAGING_DIR) \( -iname '*.plist' -or -iname '*.strings' \) -execdir plutil -convert binary1 {} \;$(ECHO_END) | |
$(ECHO_NOTHING)find $(THEOS_STAGING_DIR) -d \( -iname '*.dSYM' -or -iname '*.map' \) -execdir rm -rf {} \;$(ECHO_END) | |
$(ECHO_NOTHING)cp WPLTest.plist $(THEOS_STAGING_DIR)/Library/WeePreferenceLoader/Preferences$(ECHO_END) | |
$(ECHO_NOTHING)cp Info.plist $(THEOS_STAGING_DIR)/Library/WeePreferenceLoader/Preferences/WPLTest.bundle$(ECHO_END) | |
after-install:: | |
install.exec "killall Preferences" | |
after-clean:: | |
rm -f *.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface WPLTest: NSObject | |
@end | |
@implementation WPLTest | |
- (void)testButton { | |
NSLog(@"Hello, world!"); | |
} | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
sections = ("com.apple.mobilephone", "com.apple.MobileSMS"); | |
bundle = WPLTest; | |
title = WPLTest; | |
items = ( | |
{ | |
cell = PSButtonCell; | |
label = Test; | |
action = testButton; | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment