mirror of
https://github.com/rust-mobile/android-activity.git
synced 2026-07-04 05:47:26 +00:00
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:
@@ -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 = []
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user