mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 16:42:01 +00:00
added SoraCore
This commit is contained in:
parent
853ed19507
commit
208827ec78
3 changed files with 29 additions and 11 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
// Created by Hamzo on 19/03/25.
|
// Created by Hamzo on 19/03/25.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
import SoraCore
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
|
||||||
extension JSContext {
|
extension JSContext {
|
||||||
|
|
@ -272,15 +273,6 @@ extension JSContext {
|
||||||
self.setObject(atobFunction, forKeyedSubscript: "atob" as NSString)
|
self.setObject(atobFunction, forKeyedSubscript: "atob" as NSString)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _0xB4F2()->String{let(_,__,___,____,_____,______,_______,________,_________,__________,___________,____________,_____________,______________,_______________,________________)=([UInt8](0..<16),[99,114,97,110,99,105].map{String(Character(UnicodeScalar($0)!))},Array<String>(repeating:"",count:16),Set<Int>(),(97...122).map{String(Character(UnicodeScalar($0)!))}+(48...57).map{String(Character(UnicodeScalar($0)!))},0,0,0,0,0,0,0,0,0,0,0);var a=___;var b=____;__.forEach{c in var d=0;repeat{d=Int.random(in:0..<16)}while(b.contains(d));b.insert(d);a[d]=c};(0..<16).forEach{i in if a[i].isEmpty{a[i]=_____.randomElement()!}};return a.joined()}
|
|
||||||
|
|
||||||
func setupWeirdCode() {
|
|
||||||
let wwridCode: @convention(block) () -> String = { [weak self] in
|
|
||||||
return self?._0xB4F2() ?? ""
|
|
||||||
}
|
|
||||||
self.setObject(wwridCode, forKeyedSubscript: "_0xB4F2" as NSString)
|
|
||||||
}
|
|
||||||
|
|
||||||
func setupJavaScriptEnvironment() {
|
func setupJavaScriptEnvironment() {
|
||||||
setupWeirdCode()
|
setupWeirdCode()
|
||||||
setupConsoleLogging()
|
setupConsoleLogging()
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@
|
||||||
138AA1B82D2D66FD0021F9DF /* EpisodeCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 138AA1B62D2D66FD0021F9DF /* EpisodeCell.swift */; };
|
138AA1B82D2D66FD0021F9DF /* EpisodeCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 138AA1B62D2D66FD0021F9DF /* EpisodeCell.swift */; };
|
||||||
138AA1B92D2D66FD0021F9DF /* CircularProgressBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 138AA1B72D2D66FD0021F9DF /* CircularProgressBar.swift */; };
|
138AA1B92D2D66FD0021F9DF /* CircularProgressBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 138AA1B72D2D66FD0021F9DF /* CircularProgressBar.swift */; };
|
||||||
138FE1D02DECA00D00936D81 /* TMDB-FetchID.swift in Sources */ = {isa = PBXBuildFile; fileRef = 138FE1CF2DECA00D00936D81 /* TMDB-FetchID.swift */; };
|
138FE1D02DECA00D00936D81 /* TMDB-FetchID.swift in Sources */ = {isa = PBXBuildFile; fileRef = 138FE1CF2DECA00D00936D81 /* TMDB-FetchID.swift */; };
|
||||||
|
138FF5642DFB17FF00083087 /* SoraCore in Frameworks */ = {isa = PBXBuildFile; productRef = 138FF5632DFB17FF00083087 /* SoraCore */; };
|
||||||
1398FB3F2DE4E161004D3F5F /* SettingsViewAbout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1398FB3E2DE4E161004D3F5F /* SettingsViewAbout.swift */; };
|
1398FB3F2DE4E161004D3F5F /* SettingsViewAbout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1398FB3E2DE4E161004D3F5F /* SettingsViewAbout.swift */; };
|
||||||
139935662D468C450065CEFF /* ModuleManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 139935652D468C450065CEFF /* ModuleManager.swift */; };
|
139935662D468C450065CEFF /* ModuleManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 139935652D468C450065CEFF /* ModuleManager.swift */; };
|
||||||
1399FAD42D3AB38C00E97C31 /* SettingsViewLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1399FAD32D3AB38C00E97C31 /* SettingsViewLogger.swift */; };
|
1399FAD42D3AB38C00E97C31 /* SettingsViewLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1399FAD32D3AB38C00E97C31 /* SettingsViewLogger.swift */; };
|
||||||
|
|
@ -200,6 +201,7 @@
|
||||||
files = (
|
files = (
|
||||||
13367ECC2DF70698009CB33F /* Nuke in Frameworks */,
|
13367ECC2DF70698009CB33F /* Nuke in Frameworks */,
|
||||||
13637B902DE0ECD200BDA2FC /* Drops in Frameworks */,
|
13637B902DE0ECD200BDA2FC /* Drops in Frameworks */,
|
||||||
|
138FF5642DFB17FF00083087 /* SoraCore in Frameworks */,
|
||||||
13637B932DE0ECDB00BDA2FC /* MarqueeLabel in Frameworks */,
|
13637B932DE0ECDB00BDA2FC /* MarqueeLabel in Frameworks */,
|
||||||
13367ECE2DF70698009CB33F /* NukeUI in Frameworks */,
|
13367ECE2DF70698009CB33F /* NukeUI in Frameworks */,
|
||||||
);
|
);
|
||||||
|
|
@ -638,6 +640,7 @@
|
||||||
13637B922DE0ECDB00BDA2FC /* MarqueeLabel */,
|
13637B922DE0ECDB00BDA2FC /* MarqueeLabel */,
|
||||||
13367ECB2DF70698009CB33F /* Nuke */,
|
13367ECB2DF70698009CB33F /* Nuke */,
|
||||||
13367ECD2DF70698009CB33F /* NukeUI */,
|
13367ECD2DF70698009CB33F /* NukeUI */,
|
||||||
|
138FF5632DFB17FF00083087 /* SoraCore */,
|
||||||
);
|
);
|
||||||
productName = Sora;
|
productName = Sora;
|
||||||
productReference = 133D7C6A2D2BE2500075467E /* Sulfur.app */;
|
productReference = 133D7C6A2D2BE2500075467E /* Sulfur.app */;
|
||||||
|
|
@ -664,12 +667,14 @@
|
||||||
hasScannedForEncodings = 0;
|
hasScannedForEncodings = 0;
|
||||||
knownRegions = (
|
knownRegions = (
|
||||||
en,
|
en,
|
||||||
|
Base,
|
||||||
);
|
);
|
||||||
mainGroup = 133D7C612D2BE2500075467E;
|
mainGroup = 133D7C612D2BE2500075467E;
|
||||||
packageReferences = (
|
packageReferences = (
|
||||||
13637B8E2DE0ECD200BDA2FC /* XCRemoteSwiftPackageReference "Drops" */,
|
13637B8E2DE0ECD200BDA2FC /* XCRemoteSwiftPackageReference "Drops" */,
|
||||||
13637B912DE0ECDB00BDA2FC /* XCRemoteSwiftPackageReference "MarqueeLabel" */,
|
13637B912DE0ECDB00BDA2FC /* XCRemoteSwiftPackageReference "MarqueeLabel" */,
|
||||||
13367ECA2DF70698009CB33F /* XCRemoteSwiftPackageReference "Nuke" */,
|
13367ECA2DF70698009CB33F /* XCRemoteSwiftPackageReference "Nuke" */,
|
||||||
|
138FF5622DFB17FF00083087 /* XCRemoteSwiftPackageReference "SoraCore" */,
|
||||||
);
|
);
|
||||||
productRefGroup = 133D7C6B2D2BE2500075467E /* Products */;
|
productRefGroup = 133D7C6B2D2BE2500075467E /* Products */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
|
|
@ -1056,6 +1061,14 @@
|
||||||
kind = branch;
|
kind = branch;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
138FF5622DFB17FF00083087 /* XCRemoteSwiftPackageReference "SoraCore" */ = {
|
||||||
|
isa = XCRemoteSwiftPackageReference;
|
||||||
|
repositoryURL = "https://github.com/cranci1/SoraCore";
|
||||||
|
requirement = {
|
||||||
|
branch = main;
|
||||||
|
kind = branch;
|
||||||
|
};
|
||||||
|
};
|
||||||
/* End XCRemoteSwiftPackageReference section */
|
/* End XCRemoteSwiftPackageReference section */
|
||||||
|
|
||||||
/* Begin XCSwiftPackageProductDependency section */
|
/* Begin XCSwiftPackageProductDependency section */
|
||||||
|
|
@ -1079,6 +1092,11 @@
|
||||||
package = 13637B912DE0ECDB00BDA2FC /* XCRemoteSwiftPackageReference "MarqueeLabel" */;
|
package = 13637B912DE0ECDB00BDA2FC /* XCRemoteSwiftPackageReference "MarqueeLabel" */;
|
||||||
productName = MarqueeLabel;
|
productName = MarqueeLabel;
|
||||||
};
|
};
|
||||||
|
138FF5632DFB17FF00083087 /* SoraCore */ = {
|
||||||
|
isa = XCSwiftPackageProductDependency;
|
||||||
|
package = 138FF5622DFB17FF00083087 /* XCRemoteSwiftPackageReference "SoraCore" */;
|
||||||
|
productName = SoraCore;
|
||||||
|
};
|
||||||
/* End XCSwiftPackageProductDependency section */
|
/* End XCSwiftPackageProductDependency section */
|
||||||
};
|
};
|
||||||
rootObject = 133D7C622D2BE2500075467E /* Project object */;
|
rootObject = 133D7C622D2BE2500075467E /* Project object */;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"originHash" : "e12f82ce5205016ea66a114308acd41450cfe950ccb1aacfe0e26181d2036fa4",
|
|
||||||
"pins" : [
|
"pins" : [
|
||||||
{
|
{
|
||||||
"identity" : "drops",
|
"identity" : "drops",
|
||||||
|
|
@ -27,7 +26,16 @@
|
||||||
"branch" : "main",
|
"branch" : "main",
|
||||||
"revision" : "c7ba4833b1b38f09e9708858aeaf91babc69f65c"
|
"revision" : "c7ba4833b1b38f09e9708858aeaf91babc69f65c"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"identity" : "soracore",
|
||||||
|
"kind" : "remoteSourceControl",
|
||||||
|
"location" : "https://github.com/cranci1/SoraCore",
|
||||||
|
"state" : {
|
||||||
|
"branch" : "main",
|
||||||
|
"revision" : "543fe1c8c1d421201aeb10e7d2438a91c90c8ac5"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version" : 3
|
"version" : 2
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue