aboutsummaryrefslogtreecommitdiffstats
path: root/java/java_test.go
diff options
context:
space:
mode:
authorJaewoong Jung <jungjw@google.com>2019-04-15 09:48:31 -0700
committerRashed Abdel-Tawab <rashed@linux.com>2019-09-27 20:30:59 -0700
commit10944252b2237cf5950d1fea443603f9603d394e (patch)
treeb8df08fab05f4b8e1bf4b51ddebec2f4f149c7c3 /java/java_test.go
parentb073f3cd7bf3af2e4220a83d2627234bd08315cf (diff)
downloadbuild_soong-10944252b2237cf5950d1fea443603f9603d394e.tar.gz
build_soong-10944252b2237cf5950d1fea443603f9603d394e.tar.bz2
build_soong-10944252b2237cf5950d1fea443603f9603d394e.zip
Add android_app_import.
This is an initial version that handles the most basic cases. Bug: 128610294 Test: app_test.go + prebuilt webview.apk Change-Id: Ic525559aad5612987e50aa75b326b77b23acb716
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go
index 90849c2f..60ea37ce 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -63,6 +63,7 @@ func testContext(config android.Config, bp string,
ctx := android.NewTestArchContext()
ctx.RegisterModuleType("android_app", android.ModuleFactoryAdaptor(AndroidAppFactory))
ctx.RegisterModuleType("android_app_certificate", android.ModuleFactoryAdaptor(AndroidAppCertificateFactory))
+ ctx.RegisterModuleType("android_app_import", android.ModuleFactoryAdaptor(AndroidAppImportFactory))
ctx.RegisterModuleType("android_library", android.ModuleFactoryAdaptor(AndroidLibraryFactory))
ctx.RegisterModuleType("android_test", android.ModuleFactoryAdaptor(AndroidTestFactory))
ctx.RegisterModuleType("android_test_helper_app", android.ModuleFactoryAdaptor(AndroidTestHelperAppFactory))
@@ -167,6 +168,8 @@ func testContext(config android.Config, bp string,
"prebuilts/sdk/tools/core-lambda-stubs.jar": nil,
"prebuilts/sdk/Android.bp": []byte(`prebuilt_apis { name: "sdk", api_dirs: ["14", "28", "current"],}`),
+ "prebuilts/apk/app.apk": nil,
+
// For framework-res, which is an implicit dependency for framework
"AndroidManifest.xml": nil,
"build/make/target/product/security/testkey": nil,