APEX now correctly tracks jni_lib dependencies
Bug: 144135069 Test: m (apex_test.go amended) Change-Id: If9dde4e2e62c2642267dbcac68bab76a032682c0
This commit is contained in:
@@ -2460,6 +2460,7 @@ func TestApexWithApps(t *testing.T) {
|
||||
srcs: ["foo/bar/MyClass.java"],
|
||||
sdk_version: "none",
|
||||
system_modules: "none",
|
||||
jni_libs: ["libjni"],
|
||||
}
|
||||
|
||||
android_app {
|
||||
@@ -2469,6 +2470,13 @@ func TestApexWithApps(t *testing.T) {
|
||||
system_modules: "none",
|
||||
privileged: true,
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "libjni",
|
||||
srcs: ["mylib.cpp"],
|
||||
stl: "none",
|
||||
system_shared_libs: [],
|
||||
}
|
||||
`)
|
||||
|
||||
module := ctx.ModuleForTests("myapex", "android_common_myapex_image")
|
||||
@@ -2477,6 +2485,7 @@ func TestApexWithApps(t *testing.T) {
|
||||
|
||||
ensureContains(t, copyCmds, "image.apex/app/AppFoo/AppFoo.apk")
|
||||
ensureContains(t, copyCmds, "image.apex/priv-app/AppFooPriv/AppFooPriv.apk")
|
||||
ensureContains(t, copyCmds, "image.apex/lib64/libjni.so")
|
||||
}
|
||||
|
||||
func TestApexWithAppImports(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user