Skip to content

Commit caa8062

Browse files
committed
Rename examples to ndk-examples
[Dependabot complains] that: the binary target name `examples` is forbidden, it conflicts with cargo's build directory names And fails to provide dependency upgrades for Rust code. Fix that by renaming the folder and crate to `ndk-examples`. [Dependabot complains]: https://github.com/rust-mobile/cargo-apk/network/updates/774333460
1 parent b6555b0 commit caa8062

File tree

8 files changed

+4
-4
lines changed

8 files changed

+4
-4
lines changed

.github/workflows/android_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ adb uninstall rust.example.hello_world || true
1010

1111
if [ -z "$1" ];
1212
then
13-
cargo apk run -p examples --target x86_64-linux-android --example hello_world --no-logcat
13+
cargo apk run -p ndk-examples --target x86_64-linux-android --example hello_world --no-logcat
1414
else
1515
adb install -r "$1/hello_world.apk"
1616
adb shell am start -a android.intent.action.MAIN -n "rust.example.hello_world/android.app.NativeActivity"

.github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
run: cargo install --path cargo-apk
7171

7272
- name: Cargo apk build for target ${{ matrix.rust-target }}
73-
run: cargo apk build -p examples --target ${{ matrix.rust-target }} --examples
73+
run: cargo apk build -p ndk-examples --target ${{ matrix.rust-target }} --examples
7474

7575
- uses: actions/upload-artifact@v3
7676
# Only need this for CI, unless users are interested in downloading

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
members = [
33
"ndk-build",
4-
"examples",
4+
"ndk-examples",
55
"cargo-apk",
66
]

examples/Cargo.toml ndk-examples/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "examples"
2+
name = "ndk-examples"
33
version = "0.1.0"
44
authors = ["David Craven <david@craven.ch>"]
55
edition = "2018"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)