Updated for Version 1.2

-Added iOS 9 support
-Added preference pane to disable the tweak on the lockscreen and displaying album name as the title of the banner
-Added support to the folowing apps: SoundCloud, Saavn, VOX, Doppi and Tidal.
This commit is contained in:
2017-02-25 18:30:58 +02:00
committed by GitHub
parent bc9dab07e3
commit c24879880b
10 changed files with 158 additions and 14 deletions

14
notifymusicprefs/Makefile Normal file
View File

@ -0,0 +1,14 @@
ARCHS = armv7 arm64
include $(THEOS)/makefiles/common.mk
BUNDLE_NAME = notifymusicprefs
notifymusicprefs_FILES = nmpRootListController.m
notifymusicprefs_INSTALL_PATH = /Library/PreferenceBundles
notifymusicprefs_FRAMEWORKS = UIKit
notifymusicprefs_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/notifymusicprefs.plist$(ECHO_END)

View File

@ -0,0 +1,24 @@
<?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>notifymusicprefs</string>
<key>CFBundleIdentifier</key>
<string>com.gilshahar7.notifymusicprefs</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>nmpRootListController</string>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -0,0 +1,41 @@
<?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>NotifyMusic</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.gilshahar7.notifymusicprefs</string>
<key>key</key>
<string>enablewhilelocked</string>
<key>label</key>
<string>Enable while locked</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.gilshahar7.notifymusicprefs</string>
<key>key</key>
<string>showalbumname</string>
<key>label</key>
<string>Show album name in title</string>
</dict>
</array>
<key>title</key>
<string>NotifyMusic</string>
</dict>
</plist>

View File

@ -0,0 +1,21 @@
<?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>notifymusicprefs</string>
<key>cell</key>
<string>PSLinkCell</string>
<key>detail</key>
<string>nmpRootListController</string>
<key>icon</key>
<string>NotifyMusic.png</string>
<key>isController</key>
<true/>
<key>label</key>
<string>NotifyMusic</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,5 @@
#import <Preferences/PSListController.h>
@interface nmpRootListController : PSListController
@end

View File

@ -0,0 +1,13 @@
#include "nmpRootListController.h"
@implementation nmpRootListController
- (NSArray *)specifiers {
if (!_specifiers) {
_specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
}
return _specifiers;
}
@end