Skip to content

Commit 9c479bd

Browse files
committed
refactor: change naming convention from bh -> sc
1 parent dc0f75b commit 9c479bd

42 files changed

Lines changed: 280 additions & 280 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Makefile‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ ARCHS = arm64
44

55
include $(THEOS)/makefiles/common.mk
66

7-
TWEAK_NAME = BHInsta
7+
TWEAK_NAME = SCInsta
88

9-
BHInsta_FILES = $(shell find src -type f \( -iname \*.x -o -iname \*.xm -o -iname \*.m \)) $(wildcard modules/JGProgressHUD/*.m)
10-
BHInsta_FRAMEWORKS = UIKit Foundation CoreGraphics Photos CoreServices SystemConfiguration SafariServices Security QuartzCore
11-
BHInsta_PRIVATE_FRAMEWORKS = Preferences
12-
BHInsta_EXTRA_FRAMEWORKS = Cephei CepheiPrefs CepheiUI
13-
BHInsta_CFLAGS = -fobjc-arc -Wno-unsupported-availability-guard -Wno-unused-value -Wno-deprecated-declarations -Wno-nullability-completeness -Wno-unused-function -Wno-incompatible-pointer-types
9+
SCInsta_FILES = $(shell find src -type f \( -iname \*.x -o -iname \*.xm -o -iname \*.m \)) $(wildcard modules/JGProgressHUD/*.m)
10+
SCInsta_FRAMEWORKS = UIKit Foundation CoreGraphics Photos CoreServices SystemConfiguration SafariServices Security QuartzCore
11+
SCInsta_PRIVATE_FRAMEWORKS = Preferences
12+
SCInsta_EXTRA_FRAMEWORKS = Cephei CepheiPrefs CepheiUI
13+
SCInsta_CFLAGS = -fobjc-arc -Wno-unsupported-availability-guard -Wno-unused-value -Wno-deprecated-declarations -Wno-nullability-completeness -Wno-unused-function -Wno-incompatible-pointer-types
1414

1515
include $(THEOS_MAKE_PATH)/tweak.mk
1616

1717
ifndef DEV
18-
BHInsta_SUBPROJECTS += modules/libflex
18+
SCInsta_SUBPROJECTS += modules/libflex
1919
endif

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# BHInsta
1+
# SCInsta (previously BHInsta)
22
A feature-rich tweak for Instagram on iOS!\
33
`Version v0.4.0-dev` | `Tested on Instagram v327.1.0`
44

@@ -43,7 +43,7 @@ A feature-rich tweak for Instagram on iOS!\
4343
- Padlock (biometric requirement to access app)
4444

4545
### Built-in Tweak Settings
46-
> Long press on the Instagram settings button to bring up the BHInsta tweak settings
46+
> Long press on the Instagram settings button to bring up the SCInsta tweak settings
4747
4848
# Building
4949
## Prerequisites
@@ -57,7 +57,7 @@ A feature-rich tweak for Instagram on iOS!\
5757
1. Install iOS 14.5 frameworks for theos
5858
1. [Click to download iOS SDKs](https://github.com/xybp888/iOS-SDKs/archive/refs/heads/master.zip)
5959
2. Unzip, then copy the `iPhoneOS14.5.sdk` folder into `~/theos/sdks`
60-
2. Clone BHInsta repo from GitHub: `git clone --recurse-submodules https://github.com/SoCuul/BHInsta --branch v0.3.0`
60+
2. Clone SCInsta repo from GitHub: `git clone --recurse-submodules https://github.com/SoCuul/SCInsta --branch v0.3.0`
6161
3. [Download decrypted Instagram IPA](https://armconverter.com/decryptedappstore/us/instagram), and place it inside the `packages` folder with the name `com.burbn.instagram.ipa`
6262

6363
## Build IPA

‎build-dev.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo
77
./build.sh --dev
88

99
# Install to device
10-
cp -fr ./packages/BHInsta-sideloaded.ipa ~/Documents/Signing/BHInsta/ipas/UNSIGNED.ipa
10+
cp -fr ./packages/SCInsta-sideloaded.ipa ~/Documents/Signing/SCInsta/ipas/UNSIGNED.ipa
1111
cd ~/Documents/Signing
12-
./sign.sh BHInsta
13-
./deploy.sh BHInsta #true
12+
./sign.sh SCInsta
13+
./deploy.sh SCInsta #true

‎build.sh‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ elif [ -z "$(ls -A modules/libflex/FLEX)" ]; then
1212
exit 1
1313
fi
1414

15-
echo -e '\033[1m\033[32mBuilding BHInsta tweak for sideloading (as IPA)\033[0m'
15+
echo -e '\033[1m\033[32mBuilding SCInsta tweak for sideloading (as IPA)\033[0m'
1616

1717
# Clean build artifacts
1818
make clean
@@ -32,6 +32,6 @@ fi
3232

3333
# IPA File
3434
echo -e '\033[1m\033[32mBuilding the IPA.\033[0m'
35-
rm -f packages/BHInsta-sideloaded.ipa
36-
pyzule -i "packages/${ipaFile}" -o packages/BHInsta-sideloaded.ipa -f .theos/obj/debug/BHInsta.dylib $FLEXPATH -c 0 -m 15.0 -du
37-
echo -e "\033[1m\033[32mDone, we hope you enjoy BHInsta!\033[0m\n\nYou can find the ipa file at: $(pwd)/packages"
35+
rm -f packages/SCInsta-sideloaded.ipa
36+
pyzule -i "packages/${ipaFile}" -o packages/SCInsta-sideloaded.ipa -f .theos/obj/debug/SCInsta.dylib $FLEXPATH -c 0 -m 15.0 -du
37+
echo -e "\033[1m\033[32mDone, we hope you enjoy SCInsta!\033[0m\n\nYou can find the ipa file at: $(pwd)/packages"

‎control‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Package: com.socuul.bhinsta
2-
Name: BHInsta
1+
Package: com.socuul.scinsta
2+
Name: SCInsta
33
Version: 0.4.0
44
Architecture: iphoneos-arm
55
Description: A feature-rich tweak for Instagram on iOS!
66
Maintainer: SoCuul
7-
Author: Bandar Alruwaili
7+
Author: SoCuul
88
Section: Tweaks
99
Depends: mobilesubstrate, ws.hbang.common
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import <UIKit/UIKit.h>
22
#import <LocalAuthentication/LocalAuthentication.h>
33

4-
@interface BHSecurityViewController : UIViewController
4+
@interface SCISecurityViewController : UIViewController
55
@end

‎src/Controllers/SecurityViewController.m‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#import "SecurityViewController.h"
22

3-
@implementation BHSecurityViewController
3+
@implementation SCISecurityViewController
44

55
- (void)viewDidLoad {
66
[super viewDidLoad];
@@ -27,7 +27,7 @@ - (void)authenticate {
2727
LAContext *context = [[LAContext alloc] init];
2828
NSError *error = nil;
2929

30-
NSLog(@"[BHInsta] Padlock authentication: Prompting for unlock");
30+
NSLog(@"[SCInsta] Padlock authentication: Prompting for unlock");
3131

3232
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) {
3333
NSString *reason = @"Authenticate to unlock app";
@@ -37,14 +37,14 @@ - (void)authenticate {
3737
if (success) {
3838
[self dismissViewControllerAnimated:YES completion:nil];
3939

40-
NSLog(@"[BHInsta] Padlock authentication: Unlock success");
40+
NSLog(@"[SCInsta] Padlock authentication: Unlock success");
4141
} else {
42-
NSLog(@"[BHInsta] Padlock authentication: Unlock failed");
42+
NSLog(@"[SCInsta] Padlock authentication: Unlock failed");
4343
}
4444
});
4545
}];
4646
} else {
47-
NSLog(@"[BHInsta] Padlock authentication: Device authentication not available");
47+
NSLog(@"[SCInsta] Padlock authentication: Device authentication not available");
4848
}
4949
}
5050

‎src/Controllers/SettingsViewController.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ typedef NS_ENUM(NSInteger, DynamicSpecifierOperatorType) {
1818
LessThanOperatorType,
1919
};
2020

21-
@interface BHSettingsViewController : HBListController
21+
@interface SCISettingsViewController : HBListController
2222
- (instancetype)init;
2323
- (PSSpecifier *)newSectionWithTitle:(NSString *)header footer:(NSString *)footer;
2424
- (PSSpecifier *)newSwitchCellWithTitle:(NSString *)titleText detailTitle:(NSString *)detailText key:(NSString *)keyText defaultValue:(BOOL)defValue changeAction:(SEL)changeAction;
@@ -34,8 +34,8 @@ typedef NS_ENUM(NSInteger, DynamicSpecifierOperatorType) {
3434
- (void)setPreferenceValue:(id)value specifier:(PSSpecifier *)specifier;
3535
@end
3636

37-
@interface BHButtonTableViewCell : HBTintedTableCell
37+
@interface SCIButtonTableViewCell : HBTintedTableCell
3838
@end
3939

40-
@interface BHSwitchTableCell : PSSwitchTableCell
40+
@interface SCISwitchTableCell : PSSwitchTableCell
4141
@end

‎src/Controllers/SettingsViewController.m‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#import "SettingsViewController.h"
22

3-
@interface BHSettingsViewController ()
3+
@interface SCISettingsViewController ()
44
@property (nonatomic, assign) BOOL hasDynamicSpecifiers;
55
@property (nonatomic, retain) NSMutableDictionary *dynamicSpecifiers;
66
@end
77

8-
@implementation BHSettingsViewController
8+
@implementation SCISettingsViewController
99
- (instancetype)init {
1010
self = [super init];
1111
if (self) {
12-
self.title = @"BHInsta";
12+
self.title = @"SCInsta";
1313
[self.navigationController.navigationBar setPrefersLargeTitles:false];
1414
}
1515
return self;
@@ -35,7 +35,7 @@ - (PSSpecifier *)newSwitchCellWithTitle:(NSString *)titleText detailTitle:(NSStr
3535
[switchCell setProperty:keyText forKey:@"key"];
3636
[switchCell setProperty:keyText forKey:@"id"];
3737
[switchCell setProperty:@YES forKey:@"big"];
38-
[switchCell setProperty:BHSwitchTableCell.class forKey:@"cellClass"];
38+
[switchCell setProperty:SCISwitchTableCell.class forKey:@"cellClass"];
3939
[switchCell setProperty:NSBundle.mainBundle.bundleIdentifier forKey:@"defaults"];
4040
[switchCell setProperty:@(defValue) forKey:@"default"];
4141
[switchCell setProperty:NSStringFromSelector(changeAction) forKey:@"switchAction"];
@@ -51,7 +51,7 @@ - (PSSpecifier *)newButtonCellWithTitle:(NSString *)titleText detailTitle:(NSStr
5151

5252
[buttonCell setButtonAction:action];
5353
[buttonCell setProperty:@YES forKey:@"big"];
54-
[buttonCell setProperty:BHButtonTableViewCell.class forKey:@"cellClass"];
54+
[buttonCell setProperty:SCIButtonTableViewCell.class forKey:@"cellClass"];
5555
if (detailText != nil ){
5656
[buttonCell setProperty:detailText forKey:@"subtitle"];
5757
}
@@ -142,10 +142,10 @@ - (NSArray *)specifiers {
142142
[self newSwitchCellWithTitle:@"Enable FLEX gesture" detailTitle:@"Allows you to hold 5 fingers on the screen to open the FLEX explorer" key:@"flex_instagram" defaultValue:false changeAction:@selector(FLEXAction:)],
143143

144144
// Section 8: Credits
145-
[self newSectionWithTitle:@"Credits" footer:[NSString stringWithFormat:@"BHInsta %@", BHIVersionString]],
145+
[self newSectionWithTitle:@"Credits" footer:[NSString stringWithFormat:@"SCInsta %@", SCIVersionString]],
146146
[self newHBTwitterCellWithTitle:@"Maintainer" twitterUsername:@"SoVeryCuul" customAvatarURL:@"https://unavatar.io/twitter/SoVeryCuul"],
147147
[self newHBTwitterCellWithTitle:@"Original Author" twitterUsername:@"BandarHL" customAvatarURL:@"https://unavatar.io/twitter/BandarHL"],
148-
[self newHBLinkCellWithTitle:@"View Repo" detailTitle:@"View the tweak's source code on GitHub" url:@"https://github.com/SoCuul/BHInsta"]
148+
[self newHBLinkCellWithTitle:@"View Repo" detailTitle:@"View the tweak's source code on GitHub" url:@"https://github.com/SoCuul/SCInsta"]
149149
]];
150150

151151
[self collectDynamicSpecifiersFromArray:_specifiers];
@@ -267,7 +267,7 @@ - (void)setPreferenceValue:(id)value specifier:(PSSpecifier *)specifier {
267267
NSUserDefaults *Prefs = [NSUserDefaults standardUserDefaults];
268268
[Prefs setValue:value forKey:[specifier identifier]];
269269

270-
NSLog(@"[BHInsta] Set user default. Key: %@ | Value: %@", [specifier identifier], value);
270+
NSLog(@"[SCInsta] Set user default. Key: %@ | Value: %@", [specifier identifier], value);
271271

272272
if (self.hasDynamicSpecifiers) {
273273
NSString *specifierID = [specifier propertyForKey:PSIDKey];
@@ -288,16 +288,16 @@ - (void)FLEXAction:(UISwitch *)sender {
288288
if (sender.isOn) {
289289
[[objc_getClass("FLEXManager") sharedManager] showExplorer];
290290

291-
NSLog(@"[BHInsta] FLEX explorer: Enabled");
291+
NSLog(@"[SCInsta] FLEX explorer: Enabled");
292292
} else {
293293
[[objc_getClass("FLEXManager") sharedManager] hideExplorer];
294294

295-
NSLog(@"[BHInsta] FLEX explorer: Disabled");
295+
NSLog(@"[SCInsta] FLEX explorer: Disabled");
296296
}
297297
}
298298
@end
299299

300-
@implementation BHButtonTableViewCell
300+
@implementation SCIButtonTableViewCell
301301
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier specifier:(PSSpecifier *)specifier {
302302
self = [super initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier specifier:specifier];
303303
if (self) {
@@ -312,7 +312,7 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr
312312

313313
@end
314314

315-
@implementation BHSwitchTableCell
315+
@implementation SCISwitchTableCell
316316
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier specifier:(PSSpecifier *)specifier {
317317
if ((self = [super initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier specifier:specifier])) {
318318
NSString *subTitle = [specifier.properties[@"subtitle"] copy];

‎src/Download.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
NS_ASSUME_NONNULL_BEGIN
55

6-
@protocol BHIDownloadDelegate <NSObject>
6+
@protocol SCIDownloadDelegate <NSObject>
77
@optional
88
- (void)downloadProgress:(float)progress;
99
- (void)downloadDidFinish:(NSURL *)filePath Filename:(NSString *)fileName;
1010
- (void)downloadDidFailureWithError:(NSError *)error;
1111
@end
1212

13-
@interface BHIDownload : NSObject
13+
@interface SCIDownload : NSObject
1414
{
1515
id delegate;
1616
}
@@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
2020
@property (nonatomic, strong) NSString *fileName;
2121
@end
2222

23-
@interface BHIDownload () <NSURLSessionDelegate, NSURLSessionDataDelegate, NSURLSessionDownloadDelegate, NSURLSessionStreamDelegate>
23+
@interface SCIDownload () <NSURLSessionDelegate, NSURLSessionDataDelegate, NSURLSessionDownloadDelegate, NSURLSessionStreamDelegate>
2424
@property (nonatomic, strong) NSURLSession *Session;
2525
@end
2626

0 commit comments

Comments
 (0)