na-mainloop: Drop unneeded and broken cargo-apk setup#9
na-mainloop: Drop unneeded and broken cargo-apk setup#9
cargo-apk setup#9Conversation
ac61f12 to
5e30ef6
Compare
|
Yeah this sounds probably ok if they can Just Work(tm) - maybe the gradle builds could be configured with the same application Id that cargo apk / xbuild will come up with by default. Does xbuild have the same default as cargo apk here? Btw, it would be kinda interesting to know if it would be possible to have xbuild also work with the agdk examples at some point, and those would need some kind of config for knowing to fetch the game-activity dependency. |
Afaik they're different. |
|
|
|
I don't really know where to start with configuring xbuild without looking at the implementation atm, the README doesn't show any examples and I haven't seen it reference any example projects. Can you maybe link to some open source example with an xbuild config to get a starting point for knowing what's configurable? |
|
Maybe @dvc94ch has a link. Afaik it's "as simple as" setting Supposedly it creates a bunch of files in the source dir for you, at least if https://github.com/rust-mobile/xbuild/tree/master/xbuild/src/gradle |
8d7cb4a to
e95e9c4
Compare
|
Well this is awkward. The Ubuntu VM probably has a weird/old |
|
I just ran into this myself while trying to teach
Its precedence is not documented at https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags, but it probably falls at position 3. (after |
cargo-apk setup and add xbuild docscargo-apk setup
e95e9c4 to
5221b0b
Compare
| [package.metadata.android.sdk] | ||
| min_sdk_version = 31 | ||
| target_sdk_version = 35 |
There was a problem hiding this comment.
Might be dropped in favour of defaults.
5221b0b to
e873070
Compare
cargo-apk setupcargo-apk setup
e873070 to
98dd8eb
Compare
|
I think I recently dropped the cargo apk docs when updating na-winit-wgpu since I had briefly gone to try running |
|
Cargo-apk might have broken, as we were on a severe time-wasting distraction with xbuild unfortunately :/ |
There were many things wrong with the
cargo-apkmetadata configuration:[package.metadata.android.application]commented outlabel = "NativeActivity Mainloop"was applied to[[package.metadata.android.uses_feature]];android.hardware.vulkan.level==1is completely irrelevant forna-mainloop.Without configuration
cargo-apkuses the defaultrust.<package>namespace instead of the hardcodedcom.foo.barbut that seems to have recently been rewritten tocom.github.rust_mobile.namainloop.