Android library as Android Archive (AAR)#2592
Conversation
|
Oh, and to verify the authenticity of the |
This is wanted, for sure! We try to publish everywhere, just that we need help when we don't know much, and your help is precious. |
The Rust wrapper can be published as a crate at crates.io too (there are some abandoned third-party mediainfo crates there) but the way I did it is probably not ready to be published as it depends on files from repo or the official DLL package. I do not have experience publishing crates too. |
91d68da to
0604d92
Compare
d86dc20 to
4c57f71
Compare
Great, very appreciated. |
Great! |
|
@cjee21 When I tried running Could not resolve all files for configuration ':mediainfolib:releaseRuntimeClasspath'.
Any thoughts? |
|
Looks like your system fails (does not trust the security cert) to establish https connection to repo.maven.apache.org repository? It works fine here. The cert for that repo is from Let's Encrypt and looks fine. You can build without the last commit to exclude libcurl if you want to build without libcurl. |
|
Thanks, I'm actually _re_building from this commit because I would like to include libcurl. |
|
Update: Yes, that was definitely a corp'd laptop VPN issue. I'm building now. Sorry for coming here so quickly with the issue! |




As previously discussed at #2370 (comment)
Not sure if this is wanted but I just make a PR here with a PoC of building MediaInfoLib Android library as an AAR. Using AAR is documented at https://developer.android.com/studio/projects/android-library and is used by other libraries such as libsignal, c2pa and geckoview. Prefab is documented at https://developer.android.com/build/native-dependencies. AARs can be published to repositories as well for direct use in gradle projects.
This PR implements both JNI (with Kotlin wrapper from official app included) and C interface in the AAR.