aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-12-15 17:27:18 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-12-15 17:27:18 +0000
commita80fcfc585692e9007d043230a02df041777a983 (patch)
tree43bab00e5ec43b815763a04910bfe134838923d0
parente7aeff3733243eb685324c3c8c86fe0dad350363 (diff)
parent5f84145a59b496bd57e9be5022d6038c54a14773 (diff)
downloadjni-sys-a80fcfc585692e9007d043230a02df041777a983.tar.gz
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: 688831757b am: f66d34fbe1 am: 5f84145a59
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/jni-sys/+/1912643 Change-Id: I4da6815b6225b79963ed2a4b1eb5b7960dfa6349
-rw-r--r--Android.bp24
-rw-r--r--TEST_MAPPING52
-rw-r--r--cargo2android.json2
3 files changed, 3 insertions, 75 deletions
diff --git a/Android.bp b/Android.bp
index c9cf3b0..6e0d013 100644
--- a/Android.bp
+++ b/Android.bp
@@ -37,30 +37,6 @@ license {
],
}
-rust_defaults {
- name: "jni-sys_test_defaults",
- crate_name: "jni_sys",
- srcs: ["src/lib.rs"],
- cargo_env_compat: true,
- cargo_pkg_version: "0.3.0",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- edition: "2015",
-}
-
-rust_test_host {
- name: "jni-sys_host_test_src_lib",
- defaults: ["jni-sys_test_defaults"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
- name: "jni-sys_device_test_src_lib",
- defaults: ["jni-sys_test_defaults"],
-}
-
rust_library {
name: "libjni_sys",
host_supported: true,
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 5e21b08..a21e10e 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,56 +1,8 @@
// Generated by update_crate_tests.py for tests that depend on this crate.
{
- "presubmit": [
+ "imports": [
{
- "name": "jni-sys_device_test_src_lib"
- },
- {
- "name": "jni_device_test_src_lib"
- },
- {
- "name": "jni_device_test_tests_executor"
- },
- {
- "name": "jni_device_test_tests_executor_nested_attach"
- },
- {
- "name": "jni_device_test_tests_java_integers"
- },
- {
- "name": "jni_device_test_tests_jmap"
- },
- {
- "name": "jni_device_test_tests_jni_api"
- },
- {
- "name": "jni_device_test_tests_jni_global_refs"
- },
- {
- "name": "jni_device_test_tests_threads_attach_guard"
- },
- {
- "name": "jni_device_test_tests_threads_detach"
- },
- {
- "name": "jni_device_test_tests_threads_detach_daemon"
- },
- {
- "name": "jni_device_test_tests_threads_explicit_detach"
- },
- {
- "name": "jni_device_test_tests_threads_explicit_detach_daemon"
- },
- {
- "name": "jni_device_test_tests_threads_explicit_detach_permanent"
- },
- {
- "name": "jni_device_test_tests_threads_nested_attach_daemon"
- },
- {
- "name": "jni_device_test_tests_threads_nested_attach_guard"
- },
- {
- "name": "jni_device_test_tests_threads_nested_attach_permanently"
+ "path": "external/rust/crates/jni"
}
]
}
diff --git a/cargo2android.json b/cargo2android.json
index 728c976..39b0f84 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -4,7 +4,7 @@
"com.android.uwb"
],
"device": true,
- "min_sdk_version": "29",
+ "min-sdk-version": "29",
"run": true,
"tests": true
} \ No newline at end of file