You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generated bindings for the androidx.security-crypto library based on the example for Health Connect and everything went smoothly.
As the builder of the EncryptedSharedPreference needs a Context, I added android.content.Context to the list of classes in the JNIGen config file.
And I packaged my generated bindings in a reusable package.
Now let's say I would like to generate binding for HealthConnect, or any other Jetpack library.
Those library will almost certainly use the Context class so I will have to also add the Context class in the config file for my new binding.
If I package these new bindings in a reusable package as well and I use both my package of security-crypto & heathConnect, I will have twice the binding for the Context class.
Is there a way to generate the binding for Context once, package it into a reusable library and use this library for both the bindings of security-crypto & HealthConnect so that in the end, I will have only 1 implementation for the bindings for android.content.Context ?
Side question : is this even a good "practice" to generate binding of such a big class as Context or should I rather just use the context as JObject and calling its method with callMethodByName ?
Thank you :)
The text was updated successfully, but these errors were encountered:
Hi,
I generated bindings for the androidx.security-crypto library based on the example for Health Connect and everything went smoothly.
As the builder of the EncryptedSharedPreference needs a Context, I added
android.content.Context
to the list of classes in the JNIGen config file.And I packaged my generated bindings in a reusable package.
Now let's say I would like to generate binding for HealthConnect, or any other Jetpack library.
Those library will almost certainly use the Context class so I will have to also add the Context class in the config file for my new binding.
If I package these new bindings in a reusable package as well and I use both my package of security-crypto & heathConnect, I will have twice the binding for the Context class.
Is there a way to generate the binding for Context once, package it into a reusable library and use this library for both the bindings of security-crypto & HealthConnect so that in the end, I will have only 1 implementation for the bindings for android.content.Context ?
Side question : is this even a good "practice" to generate binding of such a big class as Context or should I rather just use the context as JObject and calling its method with
callMethodByName
?Thank you :)
The text was updated successfully, but these errors were encountered: