Open Joe23232 opened 3 years ago
Thanks for asking!
cargo android build
and cargo android run
. You aren't required to use Java at all, though you'll absolutely need to interface with various NDK and JNI APIs if you wish to build a full-blown app. How you do that is ultimately up to you, since cargo-mobile is only responsible for your build process, not your app internals. All of the template packs we currently have use android-ndk-rs's ndk-glue
under the hood to give you access to your NativeActivity
and all sorts of other things, so consulting the docs over there is your best bet for learning how to do that in pure Rust. If you find it more convenient to use Java directly for some parts of your app, that's discussed a bit in #17.@francesca64 I see mate, thanks for your response :)
The difference in a nutshell is that cargo-apk is a cool standalone tool for building your Rust project as an APK, whereas cargo-mobile is designed to integrate with Android Studio and Xcode. They both give you an APK in the end, but follow two different equally-valid approaches to getting there.
So I suppose cargo-apk
is something I wish to proceed with then. I suppose this is a crate?
I suppose this is a crate?
Indeed it is: https://crates.io/crates/cargo-apk
cargo-apk is part of the android-ndk-rs umbrella, so the answers you got in rust-windowing/android-ndk-rs#123 were relevant to cargo-apk.
I see thanks mate =D
Hi I have some questions regarding this crate: