Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <[email protected]>
  • Loading branch information
Lessica committed Jun 16, 2024
1 parent 080a9b5 commit 6fd9d1f
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.11.11</string>
<string>1.12.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>c4b10404</string>
<string>8584a224</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>NSHumanReadableCopyright</key>
Expand Down
12 changes: 6 additions & 6 deletions TrollSpeed.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@
"$(inherited)",
"$(PROJECT_DIR)/libraries",
);
MARKETING_VERSION = 1.11.11;
MARKETING_VERSION = 1.12.0;
PRODUCT_BUNDLE_IDENTIFIER = "ch.xxtou.hudapp-sandbox";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -656,7 +656,7 @@
"$(inherited)",
"$(PROJECT_DIR)/libraries",
);
MARKETING_VERSION = 1.11.11;
MARKETING_VERSION = 1.12.0;
PRODUCT_BUNDLE_IDENTIFIER = "ch.xxtou.hudapp-sandbox";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -726,7 +726,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 1.11.11;
MARKETING_VERSION = 1.12.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -786,7 +786,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 1.11.11;
MARKETING_VERSION = 1.12.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_MODULE_NAME = TrollSpeed;
Expand Down Expand Up @@ -827,7 +827,7 @@
"$(inherited)",
"$(PROJECT_DIR)/libraries",
);
MARKETING_VERSION = 1.11.11;
MARKETING_VERSION = 1.12.0;
PRODUCT_BUNDLE_IDENTIFIER = ch.xxtou.hudapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -871,7 +871,7 @@
"$(inherited)",
"$(PROJECT_DIR)/libraries",
);
MARKETING_VERSION = 1.11.11;
MARKETING_VERSION = 1.12.0;
PRODUCT_BUNDLE_IDENTIFIER = ch.xxtou.hudapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
2 changes: 1 addition & 1 deletion layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ch.xxtou.hudapp.jb
Name: TrollSpeed JB
Version: 1.11.11
Version: 1.12.0
Section: Tweaks
Depends: firmware (>= 14.0)
Architecture: iphoneos-arm
Expand Down
2 changes: 1 addition & 1 deletion layout/Library/LaunchDaemons/ch.xxtou.hudservices.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<false/>
<key>EnvironmentVariables</key>
<dict>
<key>_MSSafeMode</key>
<key>DISABLE_TWEAKS</key>
<string>1</string>
</dict>
<key>GroupName</key>
Expand Down
13 changes: 12 additions & 1 deletion sources/HUDApp.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#import <notify.h>
#import <mach-o/dyld.h>
#import <sys/utsname.h>
#import <objc/runtime.h>

#if !NO_TROLL
Expand All @@ -19,6 +20,13 @@

#define PID_PATH "/var/mobile/Library/Caches/ch.xxtou.hudapp.pid"

static __used
NSString *mDeviceModel(void) {
struct utsname systemInfo;
uname(&systemInfo);
return [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
}

static __used
void _HUDEventCallback(void *target, void *refcon, IOHIDServiceRef service, IOHIDEventRef event)
{
Expand All @@ -36,7 +44,10 @@ void _HUDEventCallback(void *target, void *refcon, IOHIDServiceRef service, IOHI
BOOL isExactly15 = NO;
static NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
if (version.majorVersion == 15 && version.minorVersion == 0 && version.patchVersion == 0) {
isExactly15 = YES;
NSString *deviceModel = mDeviceModel();
if (![deviceModel hasPrefix:@"iPhone13,"] && ![deviceModel hasPrefix:@"iPhone14,"]) { // iPhone 12 & 13 Series
isExactly15 = YES;
}
}

if (@available(iOS 15.0, *)) {
Expand Down
4 changes: 2 additions & 2 deletions supports/Sandbox-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.11.11</string>
<string>1.12.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>c4b10404</string>
<string>8584a224</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>NSHumanReadableCopyright</key>
Expand Down

0 comments on commit 6fd9d1f

Please sign in to comment.