diff --git a/Makefile b/Makefile index 23e3cac..967434e 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,6 @@ export SDKVERSION = 8.4 ARCHS = armv7 arm64 TWEAK_NAME = MusicRotate -TWEAKNAME_FRAMEWORKS = UIKit MusicRotate_FILES = Tweak.xm include $(THEOS_MAKE_PATH)/tweak.mk diff --git a/MusicRotate.plist b/MusicRotate.plist index e5c60ee..a1a452d 100644 --- a/MusicRotate.plist +++ b/MusicRotate.plist @@ -1 +1 @@ -{ Filter = { Bundles = ( "com.apple.UIKit" ); }; } +{ Filter = { Bundles = ( "com.apple.Music" ); }; } diff --git a/Tweak.xm b/Tweak.xm index ee08a15..13a963a 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -3,40 +3,7 @@ #import %hook UIWindow --(bool)isInterfaceAutorotationDisabled { - return FALSE; -} -(bool)_shouldAutorotateToInterfaceOrientation:(long long)arg1 checkForDismissal:(bool)arg2 isRotationDisabled:(bool*)arg3 { return TRUE; } %end - -%hook UIInputWindowController --(bool)setInterfaceAutorotationDisabled { - return FALSE; -} -%end - -%hook UIMovieScrubber --(bool)setRotationDisabled { - return FALSE; -} -%end - -%hook UIViewController --(bool)_isInterfaceAutorotationDisabled { - return FALSE; -} -%end - -%hook UIApplication --(bool)_rotationDisabledDuringTouch { - return FALSE; -} --(bool)_setRotationDisabledDuringTouch { - return FALSE; -} --(bool)_isAutorotationDisabledForAppWindows { - return FALSE; -} -%end \ No newline at end of file diff --git a/control b/control index 04dc049..656a5e3 100644 --- a/control +++ b/control @@ -2,7 +2,7 @@ Package: com.iadam1n.musicrotate Name: MusicRotate Pre-Depends: firmware (>=8.4) Depends: mobilesubstrate -Version: 1.0 +Version: 1.0.1 Architecture: iphoneos-arm Description: Enable rotation in Music app on iOS 8.4+. Maintainer: iAdam1n