diff --git a/examples/agdk-egui/Cargo.toml b/examples/agdk-egui/Cargo.toml index 4a3c8fc..31ebc15 100644 --- a/examples/agdk-egui/Cargo.toml +++ b/examples/agdk-egui/Cargo.toml @@ -45,6 +45,11 @@ env_logger = "0.9" android_logger = "0.11.0" android-activity = { path="../../android-activity", features = [ "game-activity" ] } +# Since Winit also depends on android-activity (via a github url) we need to +# make sure we only resolve a single implementation. +[patch.'https://github.com/rib/android-activity'] +android-activity = { path="../../android-activity", features = [ "game-activity" ] } + [features] default = [] desktop = [] diff --git a/examples/agdk-winit-wgpu/Cargo.toml b/examples/agdk-winit-wgpu/Cargo.toml index 28427d2..7204c54 100644 --- a/examples/agdk-winit-wgpu/Cargo.toml +++ b/examples/agdk-winit-wgpu/Cargo.toml @@ -19,6 +19,11 @@ env_logger = "0.9" android_logger = "0.11.0" android-activity = { path="../../android-activity", features = [ "game-activity" ] } +# Since Winit also depends on android-activity (via a github url) we need to +# make sure we only resolve a single implementation. +[patch.'https://github.com/rib/android-activity'] +android-activity = { path="../../android-activity", features = [ "game-activity" ] } + [features] default = [] desktop = [] diff --git a/examples/na-winit-wgpu/Cargo.toml b/examples/na-winit-wgpu/Cargo.toml index 00e9107..3915abd 100644 --- a/examples/na-winit-wgpu/Cargo.toml +++ b/examples/na-winit-wgpu/Cargo.toml @@ -19,6 +19,11 @@ env_logger = "0.9" android_logger = "0.11.0" android-activity = { path="../../android-activity", features = [ "native-activity" ] } +# Since Winit also depends on android-activity (via a github url) we need to +# make sure we only resolve a single implementation. +[patch.'https://github.com/rib/android-activity'] +android-activity = { path="../../android-activity", features = [ "native-activity" ] } + [features] default = [] desktop = []