examples: force Winit to use in-tree android-activity

This fixes build errors about not specifying either of the
"native-activity" or "game-activity" features.

The issue came about because the in-tree examples want to
build against the in-tree version of android-activity located
with a relative `path = ` but these particular examples
depend on Winit which would resolve a second implementation
of android-activity, via a github url - where Cargo will treat
them as completely different crates.
This commit is contained in:
Robert Bragg
2022-08-12 01:42:39 +01:00
parent 190a3b91e7
commit 4818de6709
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -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 = []
+5
View File
@@ -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 = []
+5
View File
@@ -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 = []