Skip to content

Commit

Permalink
Included the storage APIs in the maven artifacts.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 295221242
  • Loading branch information
AndroidX Test Team authored and copybara-androidxtest committed Feb 14, 2020
1 parent beb13b7 commit b578fb0
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2020 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"
package="androidx.test.services.storage" >

<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="28" />

</manifest>
40 changes: 34 additions & 6 deletions services/storage/java/androidx/test/services/storage/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Description:
# Exposes sd card storage to tests regardless of permissions.
load("@build_bazel_rules_android//android:rules.bzl", "android_library")
load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:release.bzl", "axt_release_lib")
load("//build_extensions:axt_versions.bzl", "RUNNER_VERSION", "SERVICES_VERSION")

package(
default_visibility = ["//services:__subpackages__"],
default_visibility = [
"//visibility:public",
],
features = ["-android_resources_strict_deps"],
)

Expand Down Expand Up @@ -34,11 +39,11 @@ android_library(
# Constants shared between on-device (android) and host-side (java code) testing
# infrastructure for the storage service.
java_library(
name = "test_storage_constants",
srcs = ["TestStorageConstants.java"],
deps = [
":experimental_storage_annotation",
],
name = "test_storage_constants",
srcs = ["TestStorageConstants.java"],
deps = [
":experimental_storage_annotation",
],
)

proto_library(
Expand All @@ -56,3 +61,26 @@ java_proto_library(
name = "storage_service_pb_java_proto",
deps = [":storage_service_pb"],
)

# Generate release artifacts for the test storage.
axt_release_lib(
name = "test_storage_release",
keep_spec = "androidx/test/services/storage",
deps = [
":storage",
],
)

maven_artifact(
name = "test_storage_maven_artifact",
src = ":test_storage_release.aar",
artifact_deps = [
"androidx.test:runner:%s" % RUNNER_VERSION,
"com.google.code.findbugs:jsr305:2.0.1",
],
artifact_id = "storage",
group_id = "androidx.test.services",
last_updated = "2020020700000",
src_jar = ":libstorage-src.jar",
version = "%s" % SERVICES_VERSION,
)

0 comments on commit b578fb0

Please sign in to comment.