You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
- (void)prepareToCreate:(int)type { //we need to have 2 methods to create the .deb because there was a bug where the UIAlertController wouldn't show up
86
-
//the 2 methods are this one and (void)createDeb:(int)type in batchomatic.xm
87
-
batchomatic *bm = [batchomaticsharedInstance];
86
+
//the 2 methods are this one and (void)createDeb:(int)type in Batchomatic.xm
@@ -106,7 +106,7 @@ - (void)presentInstallVC { //shows the Install options screen if your .deb is cu
106
106
}
107
107
108
108
- (void)checkDeb { //everytime the main "Batchomatic" screen enters the foreground, it checks if your .deb is installed and whether its online or offfline. determining this info takes about 1 second, therefore causing 1 second of lag whenever you press the "Install .deb" or "Proceed" buttons. this implementation with NSNotificationCenter & UIApplicationWillEnterForegroundNotification fixes that
109
-
batchomatic *bm = [batchomaticsharedInstance];
109
+
Batchomatic *bm = [BatchomaticsharedInstance];
110
110
bm.bm_currentBMController = self; //this variable is whatever Batchomatic view controller is currently on-screen
111
111
if ([bm isDebInstalled]) { bm.debIsInstalled = true; }
112
112
else { bm.debIsInstalled = false; }
@@ -116,7 +116,7 @@ - (void)checkDeb { //everytime the main "Batchomatic" screen enters the foregrou
- (void)prepareToInstall { //determines what needs to be done based on what the user chose in the switches. //we need to have 2 methods to install the .deb because there was a bug where the UIAlertController wouldn't show up
107
-
//the 2 methods are this one and (void)installDeb in batchomatic.xm
108
-
batchomatic *bm = [batchomaticsharedInstance];
107
+
//the 2 methods are this one and (void)installDeb in Batchomatic.xm
108
+
Batchomatic *bm = [BatchomaticsharedInstance];
109
109
bm.maxSteps = 0;
110
110
if (bm.prefsSwitchStatus == true) { bm.maxSteps += 1; }
111
111
if (bm.savedDebsSwitchStatus == true) { bm.maxSteps += 1; }
@@ -123,7 +123,7 @@ - (void)prepareToInstall { //determines what needs to be done based on what the
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
-
# Batchomatic v4.0
1
+
# Batchomatic v4.1
2
2
TL;DR - a tweak to batch install all of your other tweaks, repos, saved .debs, tweak preferences, and hosts file. Online or offline. Can also remove all of your tweaks, respring, and run uicache. A real time saver!
3
3
4
-
Compatible with all devices on iOS 11.0+ only. Works with Cydia, Zebra, Sileo, and Installer on unc0ver, unc0ver dark, and Chimera
4
+
Compatible with all devices on iOS 11.0+ only. Works with Cydia, Zebra, Sileo, and Installer on unc0ver, checkra1n, Chimera, and unc0ver dark
[Additional information available in the reddit post](https://www.reddit.com/r/jailbreak/comments/cqarr6/release_batchomatic_v30_on_bigboss_batch_install/)
@@ -21,15 +21,15 @@ extern int refreshesCompleted;
21
21
%end
22
22
23
23
%hook Cydia
24
-
- (void)reloadData { //this method is called when adding repos is finished. Remember, this code continues the "Add repos" feature. After this method, code is continued in the (void)addingReposDidFinish method in batchomatic.xm
24
+
- (void)reloadData { //this method is called when adding repos is finished. Remember, this code continues the "Add repos" feature. After this method, code is continued in the (void)addingReposDidFinish method in Batchomatic.xm
[[%c(batchomatic) sharedInstance] addingReposDidFinish:true]; //we are passing true/false for whether or not we should transition the existing processing dialog or make a whole new one
32
+
[[%c(Batchomatic) sharedInstance] addingReposDidFinish:true]; //we are passing true/false for whether or not we should transition the existing processing dialog or make a whole new one
33
33
}
34
34
}
35
35
@@ -53,7 +53,7 @@ extern int refreshesCompleted;
53
53
}
54
54
%new
55
55
- (void)startBatchomatic {
56
-
batchomatic *bm = [batchomaticsharedInstance];
56
+
Batchomatic *bm = [BatchomaticsharedInstance];
57
57
bm.packageManager = 2;
58
58
bm.motherClass = self;
59
59
bm.zebra_ZBTabBarController = (ZBTabBarController *)self.tabBarController; //this saves the instance of ZBTabBarController for later use
@@ -73,7 +73,7 @@ extern int refreshesCompleted;
73
73
refreshesCompleted++;
74
74
}
75
75
elseif (refreshesCompleted == 2) {
76
-
[[%c(batchomatic) sharedInstance] addingReposDidFinish:false]; //Zebra displays a pop-up when adding repos, which dismisses my UIAlertController. so, we need to create a new UIAlertController after adding repos is finished by passing 'false' to this method
76
+
[[%c(Batchomatic) sharedInstance] addingReposDidFinish:false]; //Zebra displays a pop-up when adding repos, which dismisses my UIAlertController. so, we need to create a new UIAlertController after adding repos is finished by passing 'false' to this method
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0*NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ //dispatch_after is necessary because Sileo takes a few seconds to update what tweaks are in the queue
113
113
[bm addingReposDidFinish:true];
@@ -126,7 +126,7 @@ extern int refreshesCompleted;
126
126
}
127
127
%new
128
128
- (void)startBatchomatic {
129
-
batchomatic *bm = [batchomaticsharedInstance];
129
+
Batchomatic *bm = [BatchomaticsharedInstance];
130
130
bm.packageManager = 4;
131
131
bm.motherClass = self;
132
132
bm.installer_SearchViewController = self;
@@ -141,15 +141,15 @@ extern int refreshesCompleted;
141
141
- (void)viewWillDisappear:(bool)animated { //Installer calls this method when it finishes adding repos
externint refreshesCompleted; //this variable is used for telling my tweak what we should do next during add repos. It also ensures that my extra code in the hooks only executes if we are currently using Batchomatic
6
6
//Note: when I set that variable as an @property, I ran into some weird bug where it wasn't keeping track of its value. Setting it as a normal C global variable fixed that
7
7
int refreshesCompleted = 0;
8
8
9
-
@implementationbatchomatic
9
+
@implementationBatchomatic
10
10
+ (id)sharedInstance { //returns the instance of the Batchomatic class (so you can access the Batchomatic code from anywhere)
UIViewController *progressStatus = [[UIViewController alloc] init]; //these next few lines create a UIActivityIndicator inside of a UIAlertController (the spinning wheel)
0 commit comments