File tree Expand file tree Collapse file tree 5 files changed +6
-5
lines changed
src/main/java/org/astonbitecode/rustkeylock Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 42
42
<dependency >
43
43
<groupId >io.github.astonbitecode</groupId >
44
44
<artifactId >j4rs</artifactId >
45
- <version >0.11.0 -java7</version >
45
+ <version >0.11.2 -java7</version >
46
46
</dependency >
47
47
<dependency >
48
48
<groupId >com.dropbox.core</groupId >
Original file line number Diff line number Diff line change 17
17
18
18
import java .util .List ;
19
19
20
- import org .astonbitecode .rustkeylock .R ;
21
20
import org .astonbitecode .rustkeylock .api .JavaEntry ;
21
+ import org .astonbitecode .rustkeylock .R ;
22
22
23
23
import android .app .Activity ;
24
24
import android .content .Context ;
Original file line number Diff line number Diff line change 19
19
import android .util .Log ;
20
20
import org .astonbitecode .j4rs .api .invocation .NativeCallbackToRustChannelSupport ;
21
21
import org .astonbitecode .rustkeylock .api .stubs .GuiResponse ;
22
- import org .astonbitecode .rustkeylock .callbacks .*;
23
22
24
23
import java .util .List ;
25
24
import java .util .Map ;
28
27
public class InterfaceWithRust {
29
28
private final String TAG = getClass ().getName ();
30
29
public static final InterfaceWithRust INSTANCE = new InterfaceWithRust ();
31
- private AtomicReference <NativeCallbackToRustChannelSupport > callback = new AtomicReference (null );
30
+ private AtomicReference <NativeCallbackToRustChannelSupport > callback = new AtomicReference <> (null );
32
31
private AtomicReference <Fragment > previousFragment = new AtomicReference <>(null );
33
32
34
33
private InterfaceWithRust () {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
10
10
11
11
[dependencies ]
12
12
rust_keylock = {git =" https://github.com/rust-keylock/rust-keylock-lib.git" }
13
- j4rs = " 0.11.0 "
13
+ j4rs = " 0.11"
14
14
libc = " 0.2"
15
15
jni-sys = " 0.3"
16
16
serde = { version = " 1.0" , features = [" derive" ] }
Original file line number Diff line number Diff line change @@ -51,12 +51,14 @@ pub extern fn Java_org_astonbitecode_rustkeylock_api_InterfaceWithRust_execute(
51
51
_jni_env : * mut JNIEnv ,
52
52
_thiz : jobject ,
53
53
cert_file_path_java_string : jstring ) {
54
+ debug ! ( "Executing rust-keylock native" ) ;
54
55
match j4rs:: JvmBuilder :: new ( )
55
56
. detach_thread_on_drop ( false )
56
57
. with_no_implicit_classpath ( )
57
58
. with_native_lib_name ( "rustkeylockandroid" )
58
59
. build ( ) {
59
60
Ok ( jvm) => {
61
+ debug ! ( "JVM is created " ) ;
60
62
if let Ok ( cert_file_path) = j4rs:: jstring_to_rust_string ( & jvm, cert_file_path_java_string) {
61
63
:: std:: env:: set_var ( "SSL_CERT_FILE" , cert_file_path) ;
62
64
}
You can’t perform that action at this time.
0 commit comments