diff --git a/Makefile b/Makefile index e23ca7b..936e506 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ include $(THEOS)/makefiles/common.mk TWEAK_NAME = NotifyMusic NotifyMusic_FILES = Tweak.xm -NotifyMusic_FRAMEWORKS = UIKit MediaPlayer +NotifyMusic_FRAMEWORKS = UIKit NotifyMusic_LIBRARIES = bulletin include $(THEOS_MAKE_PATH)/tweak.mk diff --git a/Tweak.xm b/Tweak.xm index c661b50..8987446 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -1,28 +1,13 @@ #import -@interface SBApplication -@end - -@interface SpringBoard -+(SpringBoard *)sharedApplication; --(SBApplication *)_accessibilityFrontMostApplication; -@end - @interface SBLockScreenManager +(SBLockScreenManager *)sharedInstance; -(BOOL)isUILocked; @end -@interface MPUNowPlayingMetadata - @property (nonatomic,readonly) NSString * title; - @property (nonatomic,readonly) NSString * artist; - @property (nonatomic,readonly) NSString * album; -@end - @interface MPUNowPlayingController @property bool isPlaying; @property (nonatomic,readonly) NSString * nowPlayingAppDisplayID; - @property (nonatomic,readonly) MPUNowPlayingMetadata * currentNowPlayingMetadata; @property (nonatomic,readonly) UIImage * currentNowPlayingArtwork; @property (nonatomic,readonly) NSDictionary * currentNowPlayingInfo; @end @@ -30,11 +15,6 @@ @interface JBBulletinManager : NSObject +(id)sharedInstance; -(id)showBulletinWithTitle:(NSString *)title message:(NSString *)message bundleID:(NSString *)bundleID; - -(id)showBulletinWithTitle:(NSString *)title message:(NSString *)message bundleID:(NSString *)bundleID soundPath:(NSString *)soundPath; - -(id)showBulletinWithTitle:(NSString *)title message:(NSString *)message bundleID:(NSString *)bundleID soundID:(int)inSoundID; - -(id)showBulletinWithTitle:(NSString *)title message:(NSString *)message overrideBundleImage:(UIImage *)overridBundleImage; - -(id)showBulletinWithTitle:(NSString *)title message:(NSString *)message overrideBundleImage:(UIImage *)overridBundleImage soundPath:(NSString *)soundPath; - -(id)showBulletinWithTitle:(NSString *)title message:(NSString *)message overridBundleImage:(UIImage *)overridBundleImage soundID:(int)inSoundID; -(id)showBulletinWithTitle:(NSString *)title message:(NSString *)message bundleID:(NSString *)bundleID hasSound:(BOOL)hasSound soundID:(int)soundID vibrateMode:(int)vibrate soundPath:(NSString *)soundPath attachmentImage:(UIImage *)attachmentImage overrideBundleImage:(UIImage *)overrideBundleImage; @end