Skip to content

Commit

Permalink
Cleanup, update build settings, fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
staturnzz committed Mar 8, 2023
1 parent 9489827 commit 6279293
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 24 deletions.
18 changes: 8 additions & 10 deletions socket.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = (
armv7,
armv7s,
);
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
Expand Down Expand Up @@ -335,6 +339,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = (
armv7,
armv7s,
);
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
Expand Down Expand Up @@ -412,11 +420,6 @@
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/omnis10",
"$(PROJECT_DIR)/socket",
);
MARKETING_VERSION = 1.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.staturnz.socket;
Expand Down Expand Up @@ -456,11 +459,6 @@
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/omnis10",
"$(PROJECT_DIR)/socket",
);
MARKETING_VERSION = 1.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.staturnz.socket;
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions socket/supporting files/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@
<rect key="frame" x="0.0" y="628" width="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="DiX-I6-f2X" id="3Wf-wz-fPz">
<rect key="frame" x="0.0" y="0.0" width="301.5" height="43.5"/>
<rect key="frame" x="0.0" y="0.0" width="303.5" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="Timhstar" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="txS-9U-G1j">
Expand All @@ -692,7 +692,7 @@
<rect key="frame" x="0.0" y="671.5" width="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="B4U-hJ-L79" id="9os-Kg-JeP">
<rect key="frame" x="0.0" y="0.0" width="301.5" height="43.5"/>
<rect key="frame" x="0.0" y="0.0" width="303.5" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="Zebra Team" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="x6r-qg-th0">
Expand Down
2 changes: 1 addition & 1 deletion socket/supporting files/Credits.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

@interface Credits : UITableViewController
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define uistyle UIAlertActionStyleDefault handler:^(UIAlertAction *action)
@end

1 change: 0 additions & 1 deletion socket/supporting files/Credits.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#import <Foundation/Foundation.h>
#import "Credits.h"
#define uistyle UIAlertActionStyleDefault handler:^(UIAlertAction *action)

// news icons by Icons8 https://icons8.com/icons/ios-glyphs
@interface Credits ()
Expand Down
1 change: 1 addition & 0 deletions socket/supporting files/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@

@interface Settings : UITableViewController
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define uistyle UIAlertActionStyleDefault handler:^(UIAlertAction *action)
@end

10 changes: 2 additions & 8 deletions socket/supporting files/Settings.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
#include <spawn.h>


#pragma mark - [*]-- Outlets/Defines/Etc --[*]
#pragma mark - [*]-- Outlets --[*]

#define uistyle UIAlertActionStyleDefault handler:^(UIAlertAction *action)
@interface Settings ()
@property (weak, nonatomic) IBOutlet UINavigationItem *nav_out;
@property (weak, nonatomic) IBOutlet UISwitch *dark_mode_out;
Expand Down Expand Up @@ -120,16 +119,11 @@ -(void)setIconWithName:(NSString *)name {
NSString *currentIcon = [UIApplication sharedApplication].alternateIconName ?: @"AppIcon";
if ([currentIcon isEqualToString:name]) {return;}
if ([name isEqualToString:@"AppIcon"]) name = nil;

[[UIApplication sharedApplication] setAlternateIconName:name completionHandler:^(NSError * _Nullable error) {
if (error) {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Unable to set application icon" message:error.localizedDescription preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:NSLocalizedString(@"OK", @"") style:UIAlertActionStyleDefault handler:nil];
[alert addAction:ok];
[self.navigationController presentViewController:alert animated:YES completion:nil];
}
}];
[self.tableView reloadData];
[alert addAction:ok];[self.navigationController presentViewController:alert animated:YES completion:nil];}}];[self.tableView reloadData];
}
} else {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Cannot set icon" message:@"Icon changing only works on iOS 10.3+" preferredStyle:UIAlertControllerStyleAlert];
Expand Down
3 changes: 1 addition & 2 deletions socket/supporting files/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ - (void)viewDidLoad {
}

[nc addObserver:self selector:@selector(logText:) name:@"status" object:nil];
self.log.text = @"[*] socket jailbreak ios 10 (32bit)\n";

self.log.text = @"[*] socket jailbreak ios 10.x (32bit)\n";
UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
blurEffectView.frame = self.view.bounds;
Expand Down

0 comments on commit 6279293

Please sign in to comment.