Skip to content

chore: extract CoderSDK to framework - #19

Merged
ethanndickson merged 5 commits into
mainfrom
ethan/codersdk-refactor
Jan 22, 2025
Merged

ethanndickson merged 5 commits into
mainfrom
ethan/codersdk-refactor

Conversation

@ethanndickson

@ethanndickson ethanndickson commented Jan 10, 2025 •

Copy link
Copy Markdown
Member

Closes #2.

Extracts CoderSDK to a seperate framework so it can be used in both the application and the network extension.
The SDK is used when the network extension verifies the dylib, to retrieve the version of the server from api/v2/buildinfo.
Removes Alamofire as a dependency of the SDK, as URLSession is good enough.

ethanndickson commented Jan 10, 2025 •

Copy link
Copy Markdown
Member Author

}
}

struct MockClient: Client {

@ethanndickson ethanndickson Jan 10, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I much prefer using the Mocker mocks over plastering a generic type throughout the actual implementation.

@ethanndickson
ethanndickson force-pushed the ethan/codersdk-refactor branch from d92d916 to 0c08c31 Compare January 10, 2025 05:28
@ethanndickson
ethanndickson marked this pull request as ready for review January 10, 2025 05:39
@ethanndickson ethanndickson self-assigned this Jan 10, 2025
@ethanndickson
ethanndickson force-pushed the ethan/codersdk-refactor branch 2 times, most recently from 70bb805 to 46212d6 Compare January 14, 2025 04:46
@ethanndickson
ethanndickson force-pushed the ethan/ne-manager branch 2 times, most recently from 8964672 to 8b80132 Compare January 14, 2025 04:49
@ethanndickson
ethanndickson force-pushed the ethan/codersdk-refactor branch 2 times, most recently from 0cb0f79 to b5babf4 Compare January 14, 2025 04:53
@ethanndickson
ethanndickson force-pushed the ethan/codersdk-refactor branch from b5babf4 to 7a7ece8 Compare January 14, 2025 04:59
@ethanndickson
ethanndickson changed the base branch from ethan/ne-manager to graphite-base/19 January 14, 2025 05:19
@ethanndickson
ethanndickson force-pushed the ethan/codersdk-refactor branch from 7a7ece8 to 11b78f9 Compare January 14, 2025 05:19
@ethanndickson
ethanndickson changed the base branch from graphite-base/19 to main January 14, 2025 05:20
@ethanndickson
ethanndickson force-pushed the ethan/codersdk-refactor branch 2 times, most recently from e1f515b to d566412 Compare January 14, 2025 06:01
@ethanndickson
ethanndickson changed the base branch from main to ethan/xcpretty-pipefail January 14, 2025 06:01
@ethanndickson
ethanndickson force-pushed the ethan/codersdk-refactor branch from d566412 to 84936d0 Compare January 15, 2025 06:59
@ethanndickson
ethanndickson changed the base branch from ethan/xcpretty-pipefail to main January 15, 2025 06:59
@ethanndickson
ethanndickson requested a review from coadler January 21, 2025 16:25
@ethanndickson
ethanndickson merged commit 7e37b0e into main Jan 22, 2025
@ethanndickson
ethanndickson deleted the ethan/codersdk-refactor branch January 23, 2025 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement the CoderVPN NetworkExtension

2 participants