-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from asdfzxcvbn/main
v1.1
- Loading branch information
Showing
7 changed files
with
87 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Package: com.eevee.spotify | ||
Name: EeveeSpotify | ||
Version: 1.0 | ||
Version: 1.1 | ||
Architecture: iphoneos-arm | ||
Description: A tweak to get Spotify Premium for free, just like Spotilife | ||
Maintainer: Eevee | ||
Author: Eevee | ||
Section: Tweaks | ||
Depends: ${ORION}, firmware (>= 14.0) | ||
Depends: firmware (>= 15.0) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <libroot.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
@interface EVEBundleHelper : NSObject | ||
@property (nonatomic, strong, readonly) NSBundle *bundle; | ||
+ (instancetype)sharedHelper; | ||
- (NSData *)premiumBlankData; | ||
- (void)showPopupWithTitle:(NSString *)title message:(NSString *)msg buttonText:(NSString *)bText; | ||
@end | ||
|
||
@interface UITabBarButtonLabel : UILabel | ||
@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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#import "EVEBundleHelper.h" | ||
|
||
%hook UITabBar | ||
- (NSArray *)items { | ||
return [%orig subarrayWithRange:NSMakeRange(0, 3)]; // there is only one UITabBar, so no problem | ||
} | ||
%end | ||
|
||
// this method is called quite a lot, but only when you switch tabs, so it's fine i guess | ||
%hook UITabBarButtonLabel | ||
- (NSString *)text { | ||
NSString *t = %orig; | ||
|
||
// comment while open sourcing: i originally thought i fucked up because "Premium" wouldn't match other languages. | ||
// however somehow this actually does work? for all languages?? weird, but whatever, no complaints lmao | ||
if ([t isEqualToString:@"Premium"]) [self.superview removeFromSuperview]; | ||
|
||
return t; | ||
} | ||
%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