mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Android: bump ndk versions (#1708)
* Bump ndk versions * Update README for new ndk proc attribute * android: add CHANGELOG entry to ndk vesion bump
This commit is contained in:
parent
83c95e774d
commit
386ead15a3
|
@ -32,6 +32,7 @@
|
||||||
- **Breaking:** `primary_monitor` now returns `Option<MonitorHandle>`.
|
- **Breaking:** `primary_monitor` now returns `Option<MonitorHandle>`.
|
||||||
- On macOS, updated core-* dependencies and cocoa.
|
- On macOS, updated core-* dependencies and cocoa.
|
||||||
- Bump `parking_lot` to 0.11
|
- Bump `parking_lot` to 0.11
|
||||||
|
- On Android, bump `ndk`, `ndk-sys` and `ndk-glue` to 0.2. Checkout the new ndk-glue main proc attribute.
|
||||||
|
|
||||||
# 0.22.2 (2020-05-16)
|
# 0.22.2 (2020-05-16)
|
||||||
|
|
||||||
|
|
|
@ -37,9 +37,9 @@ image = "0.23"
|
||||||
simple_logger = "1.9"
|
simple_logger = "1.9"
|
||||||
|
|
||||||
[target.'cfg(target_os = "android")'.dependencies]
|
[target.'cfg(target_os = "android")'.dependencies]
|
||||||
ndk = "0.1.0"
|
ndk = "0.2.0"
|
||||||
ndk-sys = "0.1.0"
|
ndk-sys = "0.2.0"
|
||||||
ndk-glue = "0.1.0"
|
ndk-glue = "0.2.0"
|
||||||
|
|
||||||
[target.'cfg(target_os = "ios")'.dependencies]
|
[target.'cfg(target_os = "ios")'.dependencies]
|
||||||
objc = "0.2.3"
|
objc = "0.2.3"
|
||||||
|
|
|
@ -92,8 +92,10 @@ crate-type = ["cdylib"]
|
||||||
|
|
||||||
And add this to the example file to add the native activity glue:
|
And add this to the example file to add the native activity glue:
|
||||||
```rust
|
```rust
|
||||||
#[cfg(target_os = "android")]
|
#[cfg_attr(target_os = "android", ndk_glue::main(backtrace = "on"))]
|
||||||
ndk_glue::ndk_glue!(main);
|
fn main() {
|
||||||
|
...
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
And run the application with `cargo apk run --example request_redraw_threaded`
|
And run the application with `cargo apk run --example request_redraw_threaded`
|
||||||
|
|
Loading…
Reference in a new issue