Use cargo2android.py feature to remove a patch.
Test: Run cargo2android.py.
Change-Id: If3997545067c4ebfe23d175951147342267ad795
diff --git a/cargo2android.json b/cargo2android.json
index d63dca0..24ca9c1 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -8,6 +8,8 @@
],
"device": true,
"run": true,
- "tests": true,
- "patch": "patches/Android.bp.patch"
+ "test-data": [
+ "tests/event_writer.rs=tests/documents/*"
+ ],
+ "tests": true
}
\ No newline at end of file
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
deleted file mode 100644
index 465a940..0000000
--- a/patches/Android.bp.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff --git a/Android.bp b/Android.bp
-index 15bae6d..2800012 100644
---- a/Android.bp
-+++ b/Android.bp
-@@ -107,6 +107,7 @@ rust_test_host {
- test_options: {
- unit_test: true,
- },
-+ data: ["tests/documents/*"],
- }
-
- rust_test {
-@@ -114,6 +115,7 @@ rust_test {
- defaults: ["xml-rs_test_defaults_xml_rs"],
- // has rustc warnings
- srcs: ["tests/event_writer.rs"],
-+ data: ["tests/documents/*"],
- }
-
- rust_test_host {