Skip to content

Commit

Permalink
fixed building
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcelocation committed Nov 26, 2023
1 parent fa85ff8 commit e126fd0
Show file tree
Hide file tree
Showing 13 changed files with 1,055 additions and 47 deletions.
72 changes: 39 additions & 33 deletions TrollTools.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
2120EBE6298453060030285A /* grant_full_disk_access.m in Sources */ = {isa = PBXBuildFile; fileRef = 2120EBE5298453050030285A /* grant_full_disk_access.m */; };
2120EBE9298453380030285A /* vm_unaligned_copy_switch_race.c in Sources */ = {isa = PBXBuildFile; fileRef = 2120EBE7298453380030285A /* vm_unaligned_copy_switch_race.c */; };
2120EBEC2984534A0030285A /* helpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 2120EBEA2984534A0030285A /* helpers.m */; };
217DFA862B139D530058B146 /* ApplicationsWrapper in Frameworks */ = {isa = PBXBuildFile; productRef = 217DFA852B139D530058B146 /* ApplicationsWrapper */; };
217DFA882B139D530058B146 /* AssetCatalogWrapper in Frameworks */ = {isa = PBXBuildFile; productRef = 217DFA872B139D530058B146 /* AssetCatalogWrapper */; };
21DC9D2C2B139C050028ED6E /* CoreUI in Resources */ = {isa = PBXBuildFile; fileRef = 21DC9D2B2B139C050028ED6E /* CoreUI */; };
21EC7AF8298532C400B537AF /* Respring.swift in Sources */ = {isa = PBXBuildFile; fileRef = 21EC7AF7298532C400B537AF /* Respring.swift */; };
6F63906B294B957900BA22D4 /* LSFootnoteChangerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F63906A294B957900BA22D4 /* LSFootnoteChangerView.swift */; };
6FDA067D2935AA52003CE14A /* ZIPFoundation in Frameworks */ = {isa = PBXBuildFile; productRef = 6FDA067C2935AA52003CE14A /* ZIPFoundation */; };
Expand Down Expand Up @@ -39,9 +42,6 @@
CE7975AC291C3494007A38E7 /* SwiftyXMLParser in Frameworks */ = {isa = PBXBuildFile; productRef = CE7975AB291C3494007A38E7 /* SwiftyXMLParser */; };
CE7975AF291C4270007A38E7 /* com.apple.springboard.plist in Resources */ = {isa = PBXBuildFile; fileRef = CE7975AE291C4270007A38E7 /* com.apple.springboard.plist */; };
CE7975B1291C4533007A38E7 /* LockscreenRespringView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE7975B0291C4533007A38E7 /* LockscreenRespringView.swift */; };
CE7D5CCA2905E10400EA26D2 /* AssetCatalogWrapper in Frameworks */ = {isa = PBXBuildFile; productRef = CE7D5CC92905E10400EA26D2 /* AssetCatalogWrapper */; };
CE7D5CFD2906C2BD00EA26D2 /* FSOperations in Frameworks */ = {isa = PBXBuildFile; productRef = CE7D5CFC2906C2BD00EA26D2 /* FSOperations */; };
CE7D5D1D290706C600EA26D2 /* NSTask in Frameworks */ = {isa = PBXBuildFile; productRef = CE7D5D1C290706C600EA26D2 /* NSTask */; };
CE8DC8D52904C22500A1CBB0 /* RootHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE8DC8D42904C22500A1CBB0 /* RootHelper.swift */; };
CEECE830290C496D007E9496 /* IconOverridesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEECE82F290C496D007E9496 /* IconOverridesView.swift */; };
CEECE832290C5405007E9496 /* AltIconSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEECE831290C5405007E9496 /* AltIconSelectionView.swift */; };
Expand All @@ -64,6 +64,8 @@
2120EBEA2984534A0030285A /* helpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = helpers.m; sourceTree = "<group>"; };
2120EBEB2984534A0030285A /* helpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = helpers.h; sourceTree = "<group>"; };
2120EBED298454EB0030285A /* grant_full_disk_access.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = grant_full_disk_access.h; sourceTree = "<group>"; };
21DC9D2B2B139C050028ED6E /* CoreUI */ = {isa = PBXFileReference; lastKnownFileType = folder; path = CoreUI; sourceTree = "<group>"; };
21DC9D2E2B139CFC0028ED6E /* PrivateKits */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = PrivateKits; path = ../developer/tweaks/PrivateKits; sourceTree = "<group>"; };
21EC7AF7298532C400B537AF /* Respring.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Respring.swift; sourceTree = "<group>"; };
6F63906A294B957900BA22D4 /* LSFootnoteChangerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LSFootnoteChangerView.swift; sourceTree = "<group>"; };
CE141B362903E73F00AB48A7 /* CardChangerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CardChangerView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -120,12 +122,11 @@
CEFE36642904B27B00938D98 /* CoreServices.framework in Frameworks */,
CEF56C502921305300DDEBFD /* Map in Frameworks */,
CEFE36632904AF8C00938D98 /* Dynamic in Frameworks */,
CE7D5D1D290706C600EA26D2 /* NSTask in Frameworks */,
CE7975AC291C3494007A38E7 /* SwiftyXMLParser in Frameworks */,
CE7D5CFD2906C2BD00EA26D2 /* FSOperations in Frameworks */,
CE141B4829045D5F00AB48A7 /* MobileCoreServices.framework in Frameworks */,
CE7D5CCA2905E10400EA26D2 /* AssetCatalogWrapper in Frameworks */,
217DFA862B139D530058B146 /* ApplicationsWrapper in Frameworks */,
6FDA067D2935AA52003CE14A /* ZIPFoundation in Frameworks */,
217DFA882B139D530058B146 /* AssetCatalogWrapper in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -145,6 +146,14 @@
path = Exploit;
sourceTree = "<group>";
};
21DC9D2D2B139C070028ED6E /* AssetCatalogWrapper */ = {
isa = PBXGroup;
children = (
21DC9D2B2B139C050028ED6E /* CoreUI */,
);
path = AssetCatalogWrapper;
sourceTree = "<group>";
};
CE141B382903F1F500AB48A7 /* Themes */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -184,6 +193,7 @@
CE2BF7AE2902DFF300AD10BE = {
isa = PBXGroup;
children = (
21DC9D2E2B139CFC0028ED6E /* PrivateKits */,
CE7D5D2229070FA600EA26D2 /* entitlements.plist */,
CE2BF7B92902DFF300AD10BE /* TrollTools */,
CE2BF7B82902DFF300AD10BE /* Products */,
Expand Down Expand Up @@ -239,6 +249,7 @@
CE2BF81F2902E07F00AD10BE /* Private APIs */ = {
isa = PBXGroup;
children = (
21DC9D2D2B139C070028ED6E /* AssetCatalogWrapper */,
CE141B562904607C00AB48A7 /* Themes */,
CE2BF8202902E07F00AD10BE /* WallpaperGetter.swift */,
CE2BF8222902E07F00AD10BE /* PasscodeKeyFaceManager.swift */,
Expand Down Expand Up @@ -328,12 +339,11 @@
name = TrollTools;
packageProductDependencies = (
CEFE36622904AF8C00938D98 /* Dynamic */,
CE7D5CC92905E10400EA26D2 /* AssetCatalogWrapper */,
CE7D5CFC2906C2BD00EA26D2 /* FSOperations */,
CE7D5D1C290706C600EA26D2 /* NSTask */,
CE7975AB291C3494007A38E7 /* SwiftyXMLParser */,
CEF56C4F2921305300DDEBFD /* Map */,
6FDA067C2935AA52003CE14A /* ZIPFoundation */,
217DFA852B139D530058B146 /* ApplicationsWrapper */,
217DFA872B139D530058B146 /* AssetCatalogWrapper */,
);
productName = TrollTools;
productReference = CE2BF7B72902DFF300AD10BE /* TrollTools.app */;
Expand Down Expand Up @@ -366,11 +376,11 @@
mainGroup = CE2BF7AE2902DFF300AD10BE;
packageReferences = (
CEFE36612904AF8C00938D98 /* XCRemoteSwiftPackageReference "Dynamic" */,
CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */,
CE7975AA291C3494007A38E7 /* XCRemoteSwiftPackageReference "SwiftyXMLParser" */,
CEF56C4E2921305300DDEBFD /* XCRemoteSwiftPackageReference "Map" */,
CE7D695629410A2A0048DF6D /* XCRemoteSwiftPackageReference "swift-argument-parser" */,
6FDA067B2935AA52003CE14A /* XCRemoteSwiftPackageReference "ZIPFoundation" */,
217DFA842B139D530058B146 /* XCRemoteSwiftPackageReference "PrivateKits" */,
);
productRefGroup = CE2BF7B82902DFF300AD10BE /* Products */;
projectDirPath = "";
Expand All @@ -387,6 +397,7 @@
buildActionMask = 2147483647;
files = (
CE2BF8452902E21D00AD10BE /* Assets.xcassets in Resources */,
21DC9D2C2B139C050028ED6E /* CoreUI in Resources */,
CE2BF82A2902E07F00AD10BE /* WebClipTemplate.plist in Resources */,
CE7975AF291C4270007A38E7 /* com.apple.springboard.plist in Resources */,
);
Expand Down Expand Up @@ -684,6 +695,14 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
217DFA842B139D530058B146 /* XCRemoteSwiftPackageReference "PrivateKits" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/NSAntoine/PrivateKits";
requirement = {
branch = main;
kind = branch;
};
};
6FDA067B2935AA52003CE14A /* XCRemoteSwiftPackageReference "ZIPFoundation" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/weichsel/ZIPFoundation";
Expand All @@ -700,14 +719,6 @@
minimumVersion = 5.0.0;
};
};
CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/SerenaKit/SantanderWrappers";
requirement = {
branch = main;
kind = branch;
};
};
CE7D695629410A2A0048DF6D /* XCRemoteSwiftPackageReference "swift-argument-parser" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/apple/swift-argument-parser.git";
Expand Down Expand Up @@ -735,6 +746,16 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
217DFA852B139D530058B146 /* ApplicationsWrapper */ = {
isa = XCSwiftPackageProductDependency;
package = 217DFA842B139D530058B146 /* XCRemoteSwiftPackageReference "PrivateKits" */;
productName = ApplicationsWrapper;
};
217DFA872B139D530058B146 /* AssetCatalogWrapper */ = {
isa = XCSwiftPackageProductDependency;
package = 217DFA842B139D530058B146 /* XCRemoteSwiftPackageReference "PrivateKits" */;
productName = AssetCatalogWrapper;
};
6FDA067C2935AA52003CE14A /* ZIPFoundation */ = {
isa = XCSwiftPackageProductDependency;
package = 6FDA067B2935AA52003CE14A /* XCRemoteSwiftPackageReference "ZIPFoundation" */;
Expand All @@ -745,21 +766,6 @@
package = CE7975AA291C3494007A38E7 /* XCRemoteSwiftPackageReference "SwiftyXMLParser" */;
productName = SwiftyXMLParser;
};
CE7D5CC92905E10400EA26D2 /* AssetCatalogWrapper */ = {
isa = XCSwiftPackageProductDependency;
package = CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */;
productName = AssetCatalogWrapper;
};
CE7D5CFC2906C2BD00EA26D2 /* FSOperations */ = {
isa = XCSwiftPackageProductDependency;
package = CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */;
productName = FSOperations;
};
CE7D5D1C290706C600EA26D2 /* NSTask */ = {
isa = XCSwiftPackageProductDependency;
package = CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */;
productName = NSTask;
};
CEF56C4F2921305300DDEBFD /* Map */ = {
isa = XCSwiftPackageProductDependency;
package = CEF56C4E2921305300DDEBFD /* XCRemoteSwiftPackageReference "Map" */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pauljohanneskraft/Map",
"state" : {
"revision" : "a99a9083aac4c5eba1cd83291eb2e222df287f31",
"version" : "0.1.0"
}
},
{
"identity" : "santanderwrappers",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SerenaKit/SantanderWrappers",
"state" : {
"branch" : "main",
"revision" : "78c19b2eeba612b0fb7b13df7ab304062ee22622"
"revision" : "3eed43ceaf7892a4021a34f87da2e6561e50318c",
"version" : "0.2.0"
}
},
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser.git",
"state" : {
"revision" : "fddd1c00396eed152c45a46bea9f47b98e59301d",
"version" : "1.2.0"
"revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531",
"version" : "1.2.3"
}
},
{
Expand All @@ -51,7 +42,7 @@
"location" : "https://github.com/weichsel/ZIPFoundation",
"state" : {
"branch" : "development",
"revision" : "43ec568034b3731101dbf7670765d671c30f54f3"
"revision" : "e6464a023ffa9d9aaaad80be2159d2755107b651"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// CSIBitmapWrapper.h
// Santander
//
// Created by Serena on 28/09/2022
//


#ifndef CSIBitmapWrapper_h
#define CSIBitmapWrapper_h
@import CoreGraphics.CGContext;

@interface CSIBitmapWrapper : NSObject
- (CGContextRef *)bitmapContext;
- (id)initWithPixelWidth:(unsigned int)arg1 pixelHeight:(unsigned int)arg2;
@end

#endif /* CSIBitmapWrapper_h */
35 changes: 35 additions & 0 deletions TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CSIGenerator.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// CSIGenerator.h
// Santander
//
// Created by Serena on 28/09/2022
//


#ifndef CSIGenerator_h
#define CSIGenerator_h
@import Foundation;
#include "CSIBitmapWrapper.h"

@interface CSIGenerator : NSObject
@property (nonnull, copy, nonatomic) NSString *name;
@property (nonatomic) int blendMode;
@property (nonatomic) short colorSpaceID;
@property (nonatomic) int exifOrientation;
@property (nonatomic) double opacity;
@property (nonatomic) unsigned int scaleFactor;
@property (nonatomic) long long templateRenderingMode;
@property (nullable, copy, nonatomic) NSString *utiType;
@property (nullable, copy, nonatomic) NSArray *colorComponents;
@property (nonatomic) bool isRenditionFPO;
@property (nonatomic, getter=isExcludedFromContrastFilter) bool excludedFromContrastFilter;
@property (nonatomic) bool isVectorBased;
- (void)addBitmap:(CSIBitmapWrapper * _Nonnull)arg1;
- (void)addSliceRect:(struct CGRect)arg1;
- (NSData * _Null_unspecified)CSIRepresentationWithCompression:(bool)arg1;
- (id _Nullable)initWithCanvasSize:(struct CGSize)arg1 sliceCount:(unsigned int)arg2 layout:(short)arg3;
- (id)initWithColorNamed:(id)arg0 colorSpaceID:(NSUInteger)arg1 components:(id)arg2 ;
@end


#endif /* CSIGenerator_h */
27 changes: 27 additions & 0 deletions TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUICatalog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// CUICatalog.h
// Santander
//
// Created by Serena on 16/09/2022
//


#ifndef CUICatalog_h
#define CUICatalog_h
@import Foundation;

#include "CUINamedLookup.h"
#include "CUIStructuredThemeStore.h"

#define SWIFT_THROWING __attribute__((__swift_error__(nonnull_error)))

NS_ASSUME_NONNULL_BEGIN
@interface CUICatalog : NSObject
+ (CUICatalog *)defaultUICatalogForBundle:(NSBundle *)bundle;
- (id)initWithURL:(NSURL *)url error:(NSError **)error SWIFT_THROWING;
- (void)enumerateNamedLookupsUsingBlock:(void (^)(CUINamedLookup *namedAsset))block;
- (CUIStructuredThemeStore *)_themeStore;
@end

NS_ASSUME_NONNULL_END
#endif /* CUICatalog_h */
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
//
// CUICommonAssetStorage.h
// Santander
//
// Created by Serena on 25/09/2022
//


#ifndef CUICommonAssetStorage_h
#define CUICommonAssetStorage_h
@import Foundation;
#include "structs.h"

NS_ASSUME_NONNULL_BEGIN
@interface CUICommonAssetStorage : NSObject
- (NSArray *)allAssetKeys;
- (NSArray *)allRenditionNames;
- (NSData *)assetForKey:(NSData *)arg1;
- (void)enumerateKeysAndObjectsUsingBlock:(void (^)(struct renditionkeytoken *keyList, NSData *csiData))block;
- (long long)maximumRenditionKeyTokenCount;
- (instancetype _Nullable)initWithPath:(NSString *)arg1 forWriting:(bool)arg2;

- (const char *)mainVersionString;
- (const char *)versionString;

- (long long)storageTimestamp;
- (long long)_storagefileTimestamp;
- (unsigned int)schemaVersion;
- (unsigned int)coreuiVersion;
- (unsigned int)storageVersion;
- (NSUUID *)uuid;

- (NSString *)thinningArguments;
- (NSString *)deploymentPlatform;
- (NSString *)deploymentPlatformVersion;
- (NSString *)authoringTool;
@end

@interface CUIMutableCommonAssetStorage : CUICommonAssetStorage
- (void)setColor:(struct rgbquad)arg1 forName:(char *)arg2 excludeFromFilter:(bool)arg3;
- (bool)setAsset:(NSData *)arg1 forKey:(NSData *)arg2;
- (void)removeAssetForKey:(id)arg0;
- (bool)writeToDiskAndCompact:(bool)arg1 NS_SWIFT_NAME(writeToDisk(compact:));
@end

NS_ASSUME_NONNULL_END

#endif /* CUICommonAssetStorage_h */
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// CUINamedLookup.h
// Santander
//
// Created by Serena on 16/09/2022
//


#ifndef CUINamedLookup_h
#define CUINamedLookup_h
#include "CUIThemeRendition.h"

NS_ASSUME_NONNULL_BEGIN
@interface CUINamedLookup : NSObject
@property (copy, nonatomic) NSString *name;
@property (readonly, nonatomic) NSString *renditionName;
@property (readonly, nonatomic) NSString *appearance;
@property (readonly, nonatomic, getter=_rendition) CUIThemeRendition *rendition;
@property (copy, nonatomic) CUIRenditionKey *key;
@property (nonatomic) NSUInteger storageRef;
@end

NS_ASSUME_NONNULL_END
#endif /* CUINamedLookup_h */
Loading

0 comments on commit e126fd0

Please sign in to comment.