diff --git a/StikJIT.xcodeproj/project.pbxproj b/StikJIT.xcodeproj/project.pbxproj index 23480b9..1c1f623 100644 --- a/StikJIT.xcodeproj/project.pbxproj +++ b/StikJIT.xcodeproj/project.pbxproj @@ -7,8 +7,8 @@ objects = { /* Begin PBXBuildFile section */ - DC6F1D772D94EB620071B2B6 /* em_proxy.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC6F1D762D94EB620071B2B6 /* em_proxy.xcframework */; }; - DC6F1D782D94EB620071B2B6 /* em_proxy.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = DC6F1D762D94EB620071B2B6 /* em_proxy.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + DC5716262D95648B0099302E /* em_proxy.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC5716242D9564760099302E /* em_proxy.xcframework */; }; + DC5716272D95648B0099302E /* em_proxy.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = DC5716242D9564760099302E /* em_proxy.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -29,13 +29,13 @@ /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ - DC6F1D792D94EB620071B2B6 /* Embed Frameworks */ = { + DC5716282D95648B0099302E /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( - DC6F1D782D94EB620071B2B6 /* em_proxy.xcframework in Embed Frameworks */, + DC5716272D95648B0099302E /* em_proxy.xcframework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -43,10 +43,10 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + DC5716242D9564760099302E /* em_proxy.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = em_proxy.xcframework; sourceTree = ""; }; DC6F1D372D94EADD0071B2B6 /* StikJIT.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StikJIT.app; sourceTree = BUILT_PRODUCTS_DIR; }; DC6F1D482D94EADF0071B2B6 /* StikJITTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StikJITTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; DC6F1D522D94EADF0071B2B6 /* StikJITUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StikJITUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - DC6F1D762D94EB620071B2B6 /* em_proxy.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = em_proxy.xcframework; path = ../../../Downloads/em_proxy.xcframework; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedRootGroup section */ @@ -72,7 +72,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - DC6F1D772D94EB620071B2B6 /* em_proxy.xcframework in Frameworks */, + DC5716262D95648B0099302E /* em_proxy.xcframework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -117,7 +117,7 @@ DC6F1D752D94EB620071B2B6 /* Frameworks */ = { isa = PBXGroup; children = ( - DC6F1D762D94EB620071B2B6 /* em_proxy.xcframework */, + DC5716242D9564760099302E /* em_proxy.xcframework */, ); name = Frameworks; sourceTree = ""; @@ -132,7 +132,7 @@ DC6F1D332D94EADD0071B2B6 /* Sources */, DC6F1D342D94EADD0071B2B6 /* Frameworks */, DC6F1D352D94EADD0071B2B6 /* Resources */, - DC6F1D792D94EB620071B2B6 /* Embed Frameworks */, + DC5716282D95648B0099302E /* Embed Frameworks */, ); buildRules = ( ); diff --git a/em_proxy.xcframework/Info.plist b/em_proxy.xcframework/Info.plist new file mode 100644 index 0000000..7613357 --- /dev/null +++ b/em_proxy.xcframework/Info.plist @@ -0,0 +1,47 @@ + + + + + AvailableLibraries + + + BinaryPath + libem_proxy.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libem_proxy.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + BinaryPath + libem_proxy.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64-simulator + LibraryPath + libem_proxy.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/em_proxy.xcframework/ios-arm64-simulator/Headers/em_proxy/em_proxy.h b/em_proxy.xcframework/ios-arm64-simulator/Headers/em_proxy/em_proxy.h new file mode 100644 index 0000000..fd09f4f --- /dev/null +++ b/em_proxy.xcframework/ios-arm64-simulator/Headers/em_proxy/em_proxy.h @@ -0,0 +1,40 @@ +// Jackson Coxson + +#include +#include +#include +#include +#include + + +/** + * Starts your emotional damage + * # Arguments + * * `bind_addr` - The UDP socket to listen to + * # Returns + * A handle to stop further emotional damage. + * Null on failure + * # Safety + * Don't be stupid + */ +int start_emotional_damage(const char *bind_addr); + +/** + * Stops further emotional damage + * # Arguments + * * `handle` - The coping mechanism generated by start_emotional_damage + * # Returns + * The knowledge of knowing that you couldn't handle failure + * # Safety + * Don't be stupid + */ +void stop_emotional_damage(void); + +/** + * Blocks until Wireguard is ready + * # Arguments + * * `timeout` - The timeout in miliseconds to wait for Wireguard + * # Returns + * 0 on success, -1 on failure + */ +int test_emotional_damage(int timeout); diff --git a/em_proxy.xcframework/ios-arm64-simulator/Headers/em_proxy/module.modulemap b/em_proxy.xcframework/ios-arm64-simulator/Headers/em_proxy/module.modulemap new file mode 100644 index 0000000..22cb95f --- /dev/null +++ b/em_proxy.xcframework/ios-arm64-simulator/Headers/em_proxy/module.modulemap @@ -0,0 +1,5 @@ +module em_proxy { + header "em_proxy.h" + + export * +} diff --git a/em_proxy.xcframework/ios-arm64-simulator/libem_proxy.a b/em_proxy.xcframework/ios-arm64-simulator/libem_proxy.a new file mode 100644 index 0000000..eef9c15 Binary files /dev/null and b/em_proxy.xcframework/ios-arm64-simulator/libem_proxy.a differ diff --git a/em_proxy.xcframework/ios-arm64/Headers/em_proxy/em_proxy.h b/em_proxy.xcframework/ios-arm64/Headers/em_proxy/em_proxy.h new file mode 100644 index 0000000..fd09f4f --- /dev/null +++ b/em_proxy.xcframework/ios-arm64/Headers/em_proxy/em_proxy.h @@ -0,0 +1,40 @@ +// Jackson Coxson + +#include +#include +#include +#include +#include + + +/** + * Starts your emotional damage + * # Arguments + * * `bind_addr` - The UDP socket to listen to + * # Returns + * A handle to stop further emotional damage. + * Null on failure + * # Safety + * Don't be stupid + */ +int start_emotional_damage(const char *bind_addr); + +/** + * Stops further emotional damage + * # Arguments + * * `handle` - The coping mechanism generated by start_emotional_damage + * # Returns + * The knowledge of knowing that you couldn't handle failure + * # Safety + * Don't be stupid + */ +void stop_emotional_damage(void); + +/** + * Blocks until Wireguard is ready + * # Arguments + * * `timeout` - The timeout in miliseconds to wait for Wireguard + * # Returns + * 0 on success, -1 on failure + */ +int test_emotional_damage(int timeout); diff --git a/em_proxy.xcframework/ios-arm64/Headers/em_proxy/module.modulemap b/em_proxy.xcframework/ios-arm64/Headers/em_proxy/module.modulemap new file mode 100644 index 0000000..22cb95f --- /dev/null +++ b/em_proxy.xcframework/ios-arm64/Headers/em_proxy/module.modulemap @@ -0,0 +1,5 @@ +module em_proxy { + header "em_proxy.h" + + export * +} diff --git a/em_proxy.xcframework/ios-arm64/libem_proxy.a b/em_proxy.xcframework/ios-arm64/libem_proxy.a new file mode 100644 index 0000000..afa7b5e Binary files /dev/null and b/em_proxy.xcframework/ios-arm64/libem_proxy.a differ