Skip to content

Commit

Permalink
Fix flutter bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Jan 20, 2025
1 parent 16acab6 commit 1c5dcb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion tunet-flutter/native/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ pub enum UpdateMsgWrap {
#[frb(mirror(NetState))]
pub enum _NetState {
Unknown,
Net,
Auth4,
Auth6,
}
Expand Down
4 changes: 2 additions & 2 deletions tunet-flutter/native/src/init_android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use jni::{

#[no_mangle]
pub extern "system" fn Java_io_github_berrysoft_tunet_1flutter_InitPlugin_init_1android(
env: JNIEnv,
mut env: JNIEnv,
_class: JClass,
context: JObject,
) {
rustls_platform_verifier::android::init_hosted(&env, context).ok();
rustls_platform_verifier::android::init_hosted(&mut env, context).ok();
}

0 comments on commit 1c5dcb2

Please sign in to comment.