-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathTweak.xm
32 lines (20 loc) · 918 Bytes
/
Tweak.xm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// TestAlert for Theos by @iiS4iF
// https://github.com/iis4if/TestAlert
#import <UIKit/UIKit.h>
#import <SCLAlertView/SCLAlertView.h>
#import <CoreGraphics/CoreGraphics.h>
#import <Accounts/Accounts.h>
#import <Social/Social.h>
#import <AVFoundation/AVFoundation.h>
%hook WhatsAppAppDelegate
- (void)applicationDidBecomeActive:(id)arg1 {
%orig;
if (![[NSUserDefaults standardUserDefaults] objectForKey:@"FirstRun"]) {
SCLAlertView *SCalert = [[SCLAlertView alloc] initWithNewWindow];
SCalert.backgroundType = SCLAlertViewBackgroundBlur;
[SCalert showNotice:@"TestAlert" subTitle:@"Using SCLAlertView for $TEOS 💯" closeButtonTitle:@"👍🏼" duration:0.0f];
[[NSUserDefaults standardUserDefaults] setValue:@"1strun" forKey:@"FirstRun"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}
%end