Skip to content
This repository was archived by the owner on Jan 4, 2024. It is now read-only.

Commit 045867b

Browse files
committed
Rootless and cleaning
1 parent 086c6dd commit 045867b

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

Theos/Classes/Exts.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "Exts.h"
2-
#include "Classes/JDESettingsManager.h"
2+
#include "JDESettingsManager.h"
33
#include <Foundation/NSError.h>
44
#include <Foundation/Foundation.h>
55
#include <UIKit/UIColor.h>

Theos/Classes/JDEButtons.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ - (UIButton*)buttonWithImageNamed:(NSString*)image{
66
//init
77
UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];
88
btn.translatesAutoresizingMaskIntoConstraints = NO;
9-
[btn setImage:[UIImage systemImageNamed:image] forState:UIControlStateNormal]; //@"arrow.down.circle"
9+
[btn setImage:[UIImage systemImageNamed:image] forState:UIControlStateNormal];
1010
//colors
1111
[btn setTintColor:[UIColor whiteColor]];
1212
//sizes

Theos/Classes/JDESettingsManager.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <Foundation/NSString.h>
33
#include <Foundation/NSObjCRuntime.h>
44
#include <UIKit/UIColor.h>
5+
#import <rootless.h>
56

67
#define suiteName "dev.extbh.jodelemproved"
78

@@ -20,10 +21,9 @@ - (id) init{
2021
_bundle = [NSBundle bundleWithPath:bundlePath];
2122
}
2223
else{
23-
_bundle = [NSBundle bundleWithPath:@"Library/Application Support/Jodel EMPROVED.bundle"];
24+
static NSString * const path = ROOT_PATH_NS("/Library/Application Support/Jodel EMPROVED.bundle");
25+
_bundle = [NSBundle bundleWithPath:path];
2426
}
25-
//logFile stuff
26-
2727
}
2828
return self;
2929
}

Theos/Classes/ThemingViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "ThemingViewController.h"
2-
#include "Classes/JDESettingsManager.h"
2+
#include "JDESettingsManager.h"
33

44

55
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) // https://stackoverflow.com/a/5337804

Theos/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
TARGET := iphone:clang:latest:13.0
1+
export ARCHS = arm64
2+
TARGET := iphone:clang:14.5:13.0
23
INSTALL_TARGET_PROCESSES = Jodel
34

45

Theos/Tweak.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@try{
1515
JELog(@"Adding setting button");
1616
MainFeedViewController *usableSelf = self;
17-
UIBarButtonItem *statsButton = [[UIBarButtonItem alloc] initWithTitle: [[JDESettingsManager sharedInstance] localizedStringForKey:@"emproved"]
17+
UIBarButtonItem *statsButton = [[UIBarButtonItem alloc] initWithTitle:[[JDESettingsManager sharedInstance] localizedStringForKey:@"emproved"]
1818
style:UIBarButtonItemStyleDone target:self
1919
action:@selector(presentJDEViewController:)];
2020

0 commit comments

Comments
 (0)