mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Disallow accesskit on Android NativeActivity, making hello_android working again (#6855)
Follow up for https://github.com/emilk/egui/pull/6766 I wasn't sure if `compile_error` is appropriate. It felt right.
This commit is contained in:
@@ -144,6 +144,15 @@
|
||||
#![warn(missing_docs)] // let's keep eframe well-documented
|
||||
#![allow(clippy::needless_doctest_main)]
|
||||
|
||||
// Limitation imposed by `accesskit_winit`:
|
||||
// https://github.com/AccessKit/accesskit/tree/accesskit-v0.18.0/platforms/winit#android-activity-compatibility`
|
||||
#[cfg(all(
|
||||
target_os = "android",
|
||||
feature = "accesskit",
|
||||
feature = "android-native-activity"
|
||||
))]
|
||||
compile_error!("`accesskit` feature is only available with `android-game-activity`");
|
||||
|
||||
// Re-export all useful libraries:
|
||||
pub use {egui, egui::emath, egui::epaint};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user