aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuntao Xu <yuntaoxu@google.com>2021-04-28 14:31:11 -0700
committerYuntao Xu <yuntaoxu@google.com>2021-04-28 14:31:11 -0700
commitb7101833296fdab1ecd4247c3dd1abbfc1d61368 (patch)
treed51fe2c9b495971f9cde4ab36814184d070aa0b7
parent7d23920f2b4a671795f7a795e58e3221d789b2ea (diff)
downloadandroid-b7101833296fdab1ecd4247c3dd1abbfc1d61368.tar.gz
Convert src/main/Android.mk to Android.bp
Convert the Make file to a Soong one Bug: 186677673 Test: compared the two apk files built by Make and Soong Test: TreeHugger Change-Id: I90506bd1d462f56b588907bbb8f8974a78e06229
-rw-r--r--security/FingerprintDialog/Application/src/main/Android.bp37
-rw-r--r--security/FingerprintDialog/Application/src/main/Android.mk33
2 files changed, 37 insertions, 33 deletions
diff --git a/security/FingerprintDialog/Application/src/main/Android.bp b/security/FingerprintDialog/Application/src/main/Android.bp
new file mode 100644
index 00000000..8fd208f0
--- /dev/null
+++ b/security/FingerprintDialog/Application/src/main/Android.bp
@@ -0,0 +1,37 @@
+// Copyright (C) 2016 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.
+
+package {
+ // See: http://go/android-license-faq
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+android_app {
+ name: "FingerprintDialog",
+ static_libs: [
+ "androidx.appcompat_appcompat",
+ "androidx.legacy_legacy-support-v4",
+ "androidx.annotation_annotation",
+ ],
+ srcs: ["**/*.java"],
+ sdk_version: "current",
+ resource_dirs: [
+ "res",
+ ],
+ aaptflags: [
+ "--auto-add-overlay",
+ "--extra-packages",
+ "android.support.v7.appcompat",
+ ],
+}
diff --git a/security/FingerprintDialog/Application/src/main/Android.mk b/security/FingerprintDialog/Application/src/main/Android.mk
deleted file mode 100644
index 796e182f..00000000
--- a/security/FingerprintDialog/Application/src/main/Android.mk
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright (C) 2016 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.
-
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-LOCAL_USE_AAPT2 := true
-LOCAL_STATIC_ANDROID_LIBRARIES := \
- androidx.appcompat_appcompat \
- androidx.legacy_legacy-support-v4 \
- androidx.annotation_annotation
-LOCAL_MODULE_TAGS := samples
-LOCAL_SRC_FILES := $(call all-subdir-java-files)
-LOCAL_PACKAGE_NAME := FingerprintDialog
-LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
-LOCAL_LICENSE_CONDITIONS := notice
-LOCAL_SDK_VERSION := current
-LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \
- prebuilts/sdk/current/support/v7/appcompat/res
-LOCAL_AAPT_FLAGS := --auto-add-overlay \
- --extra-packages android.support.v7.appcompat
-
-include $(BUILD_PACKAGE)