Compare commits

..

1 commit

Author SHA1 Message Date
Rosie Val
c452e52809
Merge pull request #1 from everestmcarthur/ios-parity-audit
Ios parity audit
2026-08-03 10:14:17 -04:00
3 changed files with 2 additions and 17 deletions

View file

@ -1,20 +1,9 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
// Utils.m is compiled as plain Objective-C (C linkage), but Tweak.xm/JSI.mm are Objective-C++.
// Without extern "C", the C++ TU expects a mangled `showErrorAlert(NSString*, NSString*)` symbol
// that Utils.m never emits, breaking the link (confirmed by an actual Theos build on CI).
#ifdef __cplusplus
extern "C" {
#endif
NSURL *getPyoncordDirectory(void);
UIColor *hexToUIColor(NSString *hex);
void showErrorAlert(NSString *title, NSString *message);
/** Detects the Hermes bytecode magic header ("Herm"), as opposed to plain-text JS. */
BOOL isHermesBytecode(NSData *data);
#ifdef __cplusplus
}
#endif
BOOL isHermesBytecode(NSData *data);

View file

@ -11,9 +11,6 @@ Revenge_FILES = $(wildcard Sources/*.x Sources/*.xm Sources/*.m Sources/*.mm Sou
Revenge_CFLAGS = -fobjc-arc -DPACKAGE_VERSION='@"$(THEOS_PACKAGE_BASE_VERSION)"' -I$(THEOS_PROJECT_DIR)/Headers
Revenge_CCFLAGS = -std=c++17 -Wno-c++11-narrowing -I$(THEOS_PROJECT_DIR)/Headers
Revenge_FRAMEWORKS = Foundation UIKit CoreGraphics CoreText CoreFoundation
# JSI types (e.g. jsi::JSError's typeinfo) only exist in the host process's own compiled-in
# Hermes/JSI runtime, not anywhere we can statically link against - resolve at load time instead.
Revenge_LDFLAGS = -undefined dynamic_lookup
RevengeResources_INSTALL_PATH = "/Library/Application\ Support/"
RevengeResources_RESOURCE_DIRS = Resources

View file

@ -47,8 +47,7 @@ static BOOL isSelfCall(void) {
- (NSDictionary *)infoDictionary {
if (!isSelfCall()) return %orig;
NSDictionary *origInfo = %orig;
NSMutableDictionary *info = [origInfo mutableCopy];
NSMutableDictionary *info = [%orig mutableCopy];
info[@"CFBundleIdentifier"] = DISCORD_BUNDLE_ID;
info[@"CFBundleDisplayName"] = DISCORD_NAME;
info[@"CFBundleName"] = DISCORD_NAME;