Skip to content

Commit ed8f4a8

Browse files
jscott1989pfmaggi
authored andcommitted
No public description
PiperOrigin-RevId: 617157001
1 parent 62a9f6e commit ed8f4a8

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

BUILD

+15
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ exports_files(["LICENSE"])
22

33
MANIFEST = "src/main/AndroidManifest.xml"
44

5+
MANIFEST_DEBUG = "src/main/AndroidManifestDebug.xml"
6+
57
PACKAGE = "com.afwsamples.testdpc"
68

79
aar_import(
@@ -85,6 +87,19 @@ android_binary(
8587
],
8688
)
8789

90+
android_binary(
91+
name = "testdpc_debug",
92+
custom_package = PACKAGE,
93+
dexopts = [
94+
"--force-jumbo",
95+
],
96+
manifest = MANIFEST_DEBUG,
97+
multidex = "native",
98+
deps = [
99+
":testdpc_lib",
100+
],
101+
)
102+
88103
android_library(
89104
name = "testdpc_lib",
90105
srcs = glob(["src/main/java/**/*.java"]),

src/main/AndroidManifest.xml

-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@
6969
<uses-feature android:name="android.hardware.wifi" android:required="false" />
7070
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
7171

72-
<!-- TODO(b/201271137): Add non-testOnly build config. -->
73-
<!-- NOTE: android:testOnly will be stripped by build.gradle (stripTestOnlyForBuild()) -->
7472
<application
7573
android:allowBackup="true"
7674
android:icon="@drawable/ic_launcher"

src/main/AndroidManifestDebug.xml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright (C) 2024 The Android Open Source Project
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
18+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19+
xmlns:tools="http://schemas.android.com/tools"
20+
package="com.afwsamples.testdpc">
21+
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34"/>
22+
<application
23+
android:testOnly="true">
24+
</application>
25+
</manifest>

0 commit comments

Comments
 (0)