Skip to content

Commit

Permalink
Update core
Browse files Browse the repository at this point in the history
  • Loading branch information
rokas-ambrazevicius committed Nov 12, 2024
1 parent 7fb2486 commit 56096f1
Show file tree
Hide file tree
Showing 7 changed files with 1,034 additions and 3 deletions.
Binary file modified nym-vpn-apple/Daemon/net.nymtech.vpn.helper
Binary file not shown.
4 changes: 2 additions & 2 deletions nym-vpn-apple/MixnetLibrary/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ let package = Package(
),
.binaryTarget(
name: "NymVpnLib",
url: "https://github.com/nymtech/nym-vpn-client/releases/download/nym-vpn-core-v1.0.0-alpha-apple4/nym-vpn-core-v1.0.0-alpha.3_ios_universal.zip",
checksum: "ee594c5f0445f0fab93a2e8347def9b53a348341a512331a80b36f7249feb940"
url: "https://github.com/nymtech/nym-vpn-client/releases/download/nym-vpn-core-v1.0.0-alpha-apple5/nym-vpn-core-v1.0.0-alpha.3_ios_universal.zip",
checksum: "12260b55d251520abf820f94978c2455a8e7523fbde61a5c04044e4b9b8fa83a"
),
// .binaryTarget(
// name: "NymVpnLib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6223,6 +6223,12 @@ public func configureLib(dataDir: String)throws {try rustCallWithError(FfiConve
)
}
}
public func currentEnvironment()throws -> NetworkEnvironment {
return try FfiConverterTypeNetworkEnvironment.lift(try rustCallWithError(FfiConverterTypeVpnError.lift) {
uniffi_nym_vpn_lib_fn_func_currentenvironment($0
)
})
}
public func fetchAccountLinks(accountStorePath: String, networkName: String, locale: String)throws -> AccountLinks {
return try FfiConverterTypeAccountLinks.lift(try rustCallWithError(FfiConverterTypeVpnError.lift) {
uniffi_nym_vpn_lib_fn_func_fetchaccountlinks(
Expand Down Expand Up @@ -6268,6 +6274,16 @@ public func getLowLatencyEntryCountry(userAgent: UserAgent)throws -> Location {
)
})
}
/**
* Fetches the network environment details from the network name and initializes the environment,
* including exporting to the environment
*/
public func initEnvironment(networkName: String)throws {try rustCallWithError(FfiConverterTypeVpnError.lift) {
uniffi_nym_vpn_lib_fn_func_initenvironment(
FfiConverterString.lower(networkName),$0
)
}
}
public func initLogger() {try! rustCall() {
uniffi_nym_vpn_lib_fn_func_initlogger($0
)
Expand Down Expand Up @@ -6340,6 +6356,9 @@ private var initializationResult: InitializationResult {
if (uniffi_nym_vpn_lib_checksum_func_configurelib() != 38732) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_nym_vpn_lib_checksum_func_currentenvironment() != 63403) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_nym_vpn_lib_checksum_func_fetchaccountlinks() != 52598) {
return InitializationResult.apiChecksumMismatch
}
Expand All @@ -6358,6 +6377,9 @@ private var initializationResult: InitializationResult {
if (uniffi_nym_vpn_lib_checksum_func_getlowlatencyentrycountry() != 10827) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_nym_vpn_lib_checksum_func_initenvironment() != 50720) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_nym_vpn_lib_checksum_func_initlogger() != 45606) {
return InitializationResult.apiChecksumMismatch
}
Expand Down
Loading

0 comments on commit 56096f1

Please sign in to comment.