Skip to content

Commit

Permalink
修正xml清单权限节点的可选字段的序列化问题;
Browse files Browse the repository at this point in the history
更新版本至1.0.2。
  • Loading branch information
SmileSky committed Nov 14, 2024
1 parent 75e4225 commit 7adc572
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "1.0.1"
version = "1.0.2"
authors = [
"SmileSky <[email protected]>",
"The Rust Windowing contributors",
Expand Down
2 changes: 1 addition & 1 deletion cargo-apk2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ toml = "0.8.19"

[dependencies.ndk-build2]
path = "../ndk-build2"
version = "1.0.0"
version = "1.0.2"

[dependencies.clap]
version = "4.5.20"
Expand Down
5 changes: 4 additions & 1 deletion ndk-build2/src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,10 @@ where
pub struct Permission {
#[serde(rename(serialize = "@android:name"))]
pub name: String,
#[serde(rename(serialize = "@android:maxSdkVersion"))]
#[serde(
rename(serialize = "@android:maxSdkVersion"),
skip_serializing_if = "Option::is_none"
)]
pub max_sdk_version: Option<u32>,
}

Expand Down

0 comments on commit 7adc572

Please sign in to comment.