forked from jkcoxson/em_proxy
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Joe Mattiello <[email protected]>
- Loading branch information
Showing
11 changed files
with
180 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ em_proxy.h | |
/em_proxy.xcframework | ||
/em_proxy.xcframework.zip | ||
/include | ||
xcuserdata |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
.swiftpm/xcode/package.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// swift-tools-version: 6.0 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "em_proxy", | ||
products: [ | ||
.library( | ||
name: "em_proxy", | ||
targets: ["em_proxy"]), | ||
], | ||
targets: [ | ||
.target( | ||
name: "em_proxy", | ||
dependencies: ["libem_proxy"]), | ||
|
||
.target( | ||
name: "libem_proxy", | ||
dependencies: ["em_proxy-binary"] | ||
), | ||
|
||
.binaryTarget( | ||
name: "em_proxy-binary", | ||
url: "https://github.com/SideStore/em_proxy/releases/download/build/em_proxy.xcframework.zip", | ||
checksum: "79f90075b8ff2f47540a5bccf5fb7740905cda63463f833e2505256237df3c1b"), | ||
|
||
.testTarget( | ||
name: "em_proxyTests", | ||
dependencies: ["em_proxy", "libem_proxy"] | ||
), | ||
], | ||
swiftLanguageModes: [.v5] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// File automatically generated by swift-bridge. | ||
#include <stdint.h> | ||
#include <stdbool.h> | ||
#include "SwiftBridgeCore.h" | ||
|
||
typedef enum __swift_bridge__$EMPErrorTag { __swift_bridge__$EMPError$InvalidAddress, __swift_bridge__$EMPError$InvalidPort, __swift_bridge__$EMPError$InvalidSocket, __swift_bridge__$EMPError$AlreadyRunning, __swift_bridge__$EMPError$Unknown, } __swift_bridge__$EMPErrorTag; | ||
typedef struct __swift_bridge__$EMPError { __swift_bridge__$EMPErrorTag tag; } __swift_bridge__$EMPError; | ||
typedef struct __swift_bridge__$Option$EMPError { bool is_some; __swift_bridge__$EMPError val; } __swift_bridge__$Option$EMPError; | ||
void* __swift_bridge__$EMPError$Debug(__swift_bridge__$EMPError this); | ||
void* __swift_bridge__$Vec_EMPError$new(void); | ||
void __swift_bridge__$Vec_EMPError$drop(void* vec_ptr); | ||
void __swift_bridge__$Vec_EMPError$push(void* vec_ptr, __swift_bridge__$EMPError item); | ||
__swift_bridge__$Option$EMPError __swift_bridge__$Vec_EMPError$pop(void* vec_ptr); | ||
__swift_bridge__$Option$EMPError __swift_bridge__$Vec_EMPError$get(void* vec_ptr, uintptr_t index); | ||
__swift_bridge__$Option$EMPError __swift_bridge__$Vec_EMPError$get_mut(void* vec_ptr, uintptr_t index); | ||
uintptr_t __swift_bridge__$Vec_EMPError$len(void* vec_ptr); | ||
void* __swift_bridge__$Vec_EMPError$as_ptr(void* vec_ptr); | ||
|
||
struct __swift_bridge__$Option$EMPError __swift_bridge__$start_emotional_damage(struct RustStr bind_addr); | ||
void __swift_bridge__$stop_emotional_damage(void); | ||
struct __swift_bridge__$Option$EMPError __swift_bridge__$test_emotional_damage(uint32_t timeout); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module libem_proxy { | ||
header "../em_proxy.h" | ||
header "../SwiftBridgeCore.h" | ||
|
||
export * | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// Test.swift | ||
// em_proxy | ||
// | ||
// Created by Joseph Mattiello on 9/16/24. | ||
// | ||
|
||
import Testing | ||
@testable import em_proxy | ||
@testable import libem_proxy | ||
|
||
struct Test { | ||
|
||
@Test func test_em_proxy() async throws { | ||
// Write your test here and use APIs like `#expect(...)` to check expected conditions. | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.