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
default_platform :ios | |
platform :ios do | |
desc "Submit a new Beta Build to Hockey App" | |
lane :beta do | |
if !is_ci? | |
changelog = prompt(text: "Please enter what's changed in one sentenence: ") | |
end | |
increment_build_number |
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
static BOOL tweakEnabled = NO; | |
static void PreferencesChangedCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) { | |
system("killall WhatsApp"); // kill app to apply changes ;) | |
NSDictionary *preferences = [[NSDictionary alloc] initWithContentsOfFile:@"TWEAK_PREFS_PATH"]; | |
tweakEnabled = [preferences[@"tweakEnabled"] boolValue]; | |
} | |
%ctor { | |
[[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidFinishLaunchingNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *block) { |