Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 617157001
  • Loading branch information
jscott1989 authored and pfmaggi committed Mar 20, 2024
1 parent 62a9f6e commit ed8f4a8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
15 changes: 15 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ exports_files(["LICENSE"])

MANIFEST = "src/main/AndroidManifest.xml"

MANIFEST_DEBUG = "src/main/AndroidManifestDebug.xml"

PACKAGE = "com.afwsamples.testdpc"

aar_import(
Expand Down Expand Up @@ -85,6 +87,19 @@ android_binary(
],
)

android_binary(
name = "testdpc_debug",
custom_package = PACKAGE,
dexopts = [
"--force-jumbo",
],
manifest = MANIFEST_DEBUG,
multidex = "native",
deps = [
":testdpc_lib",
],
)

android_library(
name = "testdpc_lib",
srcs = glob(["src/main/java/**/*.java"]),
Expand Down
2 changes: 0 additions & 2 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
<uses-feature android:name="android.hardware.wifi" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>

<!-- TODO(b/201271137): Add non-testOnly build config. -->
<!-- NOTE: android:testOnly will be stripped by build.gradle (stripTestOnlyForBuild()) -->
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
Expand Down
25 changes: 25 additions & 0 deletions src/main/AndroidManifestDebug.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.afwsamples.testdpc">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34"/>
<application
android:testOnly="true">
</application>
</manifest>

0 comments on commit ed8f4a8

Please sign in to comment.