Skip to content

Commit 7c11519

Browse files
committed
Make "example" crate part of the workspace
1 parent 4767c26 commit 7c11519

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ description = "Android intent utilities"
99
[dependencies]
1010
jni = "0.20.0"
1111
ndk-context = "0.1.1"
12+
13+
[workspace]
14+
members = [
15+
"example"
16+
]

example/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ version = "0.1.0"
44
edition = "2021"
55

66
[lib]
7-
crate_type=["lib", "cdylib"]
7+
crate-type = ["cdylib"]
88

99
[dependencies]
1010
android-activity = { version = "0.4.0", features = ["native-activity"] }
11-
android-intent = { path = "../" }
12-
jni = { version = "0.20.0" }
11+
android-intent.path = "../"
12+
jni = "0.20.0"
1313
ndk-context = "0.1.1"
1414

1515
[package.metadata.android.sdk]

example/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ fn android_main(_android_app: AndroidApp) {
1111
.start_activity()
1212
.unwrap()
1313
});
14-
15-
loop {}
1614
}

0 commit comments

Comments
 (0)