File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
bindings/matrix-sdk-ffi/src/platform Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,11 @@ use jni::{
66} ;
77use tracing:: debug;
88
9- pub ( crate ) static ANDROID_JVM : once_cell:: sync:: OnceCell < jni:: JavaVM > =
10- once_cell:: sync:: OnceCell :: new ( ) ;
9+ static ANDROID_JVM : once_cell:: sync:: OnceCell < jni:: JavaVM > = once_cell:: sync:: OnceCell :: new ( ) ;
1110
11+ /// Initialize the platform support for Android targets.
12+ ///
13+ /// This includes setting up `rustls-platform-verifier`.
1214pub ( crate ) fn init ( ) {
1315 debug ! ( "Initializing Android platform support" ) ;
1416
@@ -77,6 +79,7 @@ fn init_rustls_platform_verifier(env: &mut jni::JNIEnv<'_>) -> jni::errors::Resu
7779 Ok ( rustls_platform_verifier:: android:: init_hosted ( env, context) ?)
7880}
7981
82+ /// Attach the current thread to a JVM one.
8083pub ( crate ) fn android_attach_current_thread_permanently (
8184) -> jni:: errors:: Result < jni:: JNIEnv < ' static > > {
8285 ANDROID_JVM
You can’t perform that action at this time.
0 commit comments