aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSasha Smundak <asmundak@google.com>2019-01-15 02:27:23 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-01-15 02:27:23 -0800
commite3a5477217b1b7c174fc7f8258db96702a5b84f6 (patch)
tree5b9ab3f02d73297c500224125f9cc44ffa60eec3
parent854f2253c26409778e84f518aff306dc800fc0a2 (diff)
parent44e54c2848954392f2dc3195097e5c647f89494f (diff)
downloadrappor-e3a5477217b1b7c174fc7f8258db96702a5b84f6.tar.gz
Convert Android.mk file to Android.bp
am: 44e54c2848 Change-Id: I87c1d63077e754d71a3b209bc69b03ab03327566
-rw-r--r--Android.bp14
-rw-r--r--Android.mk25
2 files changed, 14 insertions, 25 deletions
diff --git a/Android.bp b/Android.bp
index e98e467..fcae131 100644
--- a/Android.bp
+++ b/Android.bp
@@ -23,3 +23,17 @@ java_library {
],
srcs: ["client/java/**/*.java"],
}
+
+java_library {
+ name: "rappor-tests",
+ java_version: "1.7",
+ static_libs: [
+ "hamcrest-library",
+ "rappor",
+ "guava",
+ "junit",
+ ],
+ libs: ["jsr305"],
+ sdk_version: "core_current",
+ srcs: ["client/javatest/**/*.java"],
+}
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index 1fb2caf..0000000
--- a/Android.mk
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# Copyright (C) 2017 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_MODULE := rappor-tests
-LOCAL_JAVA_LANGUAGE_VERSION := 1.7
-LOCAL_STATIC_JAVA_LIBRARIES := hamcrest-library rappor guava junit
-LOCAL_JAVA_LIBRARIES := jsr305
-LOCAL_SDK_VERISON := core_current
-LOCAL_SRC_FILES := $(call all-java-files-under, client/javatest)
-include $(BUILD_STATIC_JAVA_LIBRARY)