-
Notifications
You must be signed in to change notification settings - Fork 3
Replace JniType
with ReferenceType
; use new types in Env
and caches; support dynamic class loading for proxies
#12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Why have you added the calls to |
Code for registering native methods is added for the runtime dex class loader "technique", so that the user of some possible upstream library based on I've added an optional argument in Also note that the object array type signature runtime generation is fixed here; this code crashes with log prompt let arr_obj_arr = ObjectArray::<ObjectArray<String, Throwable>, Throwable>::new(env, 10);
let cast: &Ref<'_, ObjectArray::<ObjectArray<Object, Throwable>, Throwable>> = arr_obj_arr.cast_ref().unwrap();
info!("Created the array."); Side note: the current |
Changed To make Why change Current logcat message of trying to create L2CAP channel on an Android 9.0 device (not crashing):
|
Sorry, I just found a mistake while porting the generated proxy code to the old |
Env
methods: this doesn't change any behavior.Env
methods: reduced some redundant code, howeverEnv::get_class_name
probably becomes a bit less strong.JniType
withReferenceType
; use new types inEnv
and caches: this is the major breaking change. Generated class bindings now implementReferenceType
but notJniType
. Generated JNI type names for multi-dimension arrays changed from[L[I;
,[L[Ljava/lang/String;;
to[[I
,[[Ljava/lang/String;
.JClass
are added for class caches.JClass
,JMethodID
andJFieldID
are made public to be used inEnv
methods.Trying to test `bluest` here
Based on akiles-dev/bluest@3c55517.
Added in
java-spaghetti.yaml
:Added
build.rs
:Changed
android/adapter.rs
:bluest-test
'sCargo.toml
:bluest-test
'slib.rs
: