1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
android_webview / tools / sdk_sandbox / BUILD.gn [blame]
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//testing/test.gni")
# Mark all targets as test only.
testonly = true
group("sdk_sandbox") {
deps = [
":sdk_sandbox_webview_client",
":sdk_sandbox_webview_sdk",
]
}
android_apk("sdk_sandbox_webview_client") {
apk_name = "SdkSandboxWebviewClient"
android_manifest = "webview_client/AndroidManifest.xml"
deps = [
":sdk_sandbox_webview_client_java",
":sdk_sandbox_webview_client_resources",
":sdk_sandbox_webview_sdk",
]
}
android_library("sdk_sandbox_webview_client_java") {
testonly = true
sources = [ "webview_client/src/org/chromium/sdk_sandbox/webview_client/MainActivity.java" ]
deps = [
":sdk_sandbox_webview_client_resources",
":sdksandbox_aidl_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_appcompat_appcompat_java",
]
resources_package = "org.chromium.sdk_sandbox.webview_client"
}
android_resources("sdk_sandbox_webview_client_resources") {
sources = [
"webview_client/res/drawable-mdpi/breadcrumb_arrow_black.png",
"webview_client/res/layout/activity_main.xml",
"webview_client/res/values/strings.xml",
]
}
android_apk("sdk_sandbox_webview_sdk") {
apk_name = "SdkSandboxWebviewSdk"
android_manifest = "webview_sdk/AndroidManifest.xml"
sources = [ "webview_sdk/src/org/chromium/sdk_sandbox/webview_sdk/WebViewSandboxedSdkProvider.java" ]
deps = [ ":sdksandbox_aidl_java" ]
}
android_aidl("sdksandbox_aidl") {
sources = [
"webview_sdk/src/org/chromium/sdk_sandbox/webview_sdk/IWebViewSdkApi.aidl",
]
}
android_library("sdksandbox_aidl_java") {
srcjar_deps = [ ":sdksandbox_aidl" ]
}