forked from Mojave/NotifyMusic
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:
14
notifymusicprefs/Makefile
Normal file
14
notifymusicprefs/Makefile
Normal 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)
|
24
notifymusicprefs/Resources/Info.plist
Normal file
24
notifymusicprefs/Resources/Info.plist
Normal 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>
|
BIN
notifymusicprefs/Resources/NotifyMusic@2x.png
Normal file
BIN
notifymusicprefs/Resources/NotifyMusic@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
41
notifymusicprefs/Resources/Root.plist
Normal file
41
notifymusicprefs/Resources/Root.plist
Normal 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>
|
21
notifymusicprefs/entry.plist
Normal file
21
notifymusicprefs/entry.plist
Normal 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>
|
5
notifymusicprefs/nmpRootListController.h
Normal file
5
notifymusicprefs/nmpRootListController.h
Normal file
@ -0,0 +1,5 @@
|
||||
#import <Preferences/PSListController.h>
|
||||
|
||||
@interface nmpRootListController : PSListController
|
||||
|
||||
@end
|
13
notifymusicprefs/nmpRootListController.m
Normal file
13
notifymusicprefs/nmpRootListController.m
Normal file
@ -0,0 +1,13 @@
|
||||
#include "nmpRootListController.h"
|
||||
|
||||
@implementation nmpRootListController
|
||||
|
||||
- (NSArray *)specifiers {
|
||||
if (!_specifiers) {
|
||||
_specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
|
||||
}
|
||||
|
||||
return _specifiers;
|
||||
}
|
||||
|
||||
@end
|
Reference in New Issue
Block a user