Commit Graph

6 Commits

Author SHA1 Message Date
Robert Bragg d4459921b9 Remove global android_app() API
android_main() now takes an `app: AndroidApp` argument and has an
extern "Rust" ABI instead of "C" ABI.

This should help make it possible to run multiple native Activities in a
single process.
2022-07-03 22:18:45 +01:00
Robert Bragg 0565ae01ec Expose native_window() via AndroidApp instead of static
To be able to support multiple activities per-process we can't have any
static/global state.
2022-07-03 22:18:45 +01:00
Robert Bragg 864d782c24 Attach native thread to JVM before calling android_main 2022-05-28 02:54:00 +01:00
Robert Bragg c492fead0f App: Expose internal/ext/obb paths + sdk_version
This exposes the state from ANativeActivity and GameActivity in a
portable (Activity agnostic) way.
2022-05-28 02:53:59 +01:00
Robert Bragg b2a675cb40 native-activity: remove unused input.rs copied from game-activity 2022-05-20 05:13:50 +01:00
Robert Bragg 0c3c4db1a6 Add initial native-activity glue crate 2022-05-20 04:07:17 +01:00