| /* |
| * Copyright (C) 2023 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. |
| */ |
| import androidx.build.BundleInsideHelper |
| import androidx.build.LibraryType |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| id("org.jetbrains.kotlin.android") |
| } |
| |
| BundleInsideHelper.forInsideAar( |
| project, |
| [ |
| new BundleInsideHelper.Relocation( |
| /* from = */ "io.grpc.protobuf", |
| /* to = */ "androidx.appactions.interaction.grpc.protobuf"), |
| new BundleInsideHelper.Relocation( |
| /* from = */ "com.google.protobuf", |
| /* to = */ "androidx.appactions.interaction.protobuf") |
| ] |
| ) |
| |
| dependencies { |
| bundleInside(project(":appactions:interaction:interaction-service-proto")) |
| |
| implementation(project(":appactions:interaction:interaction-capabilities-core")) |
| implementation("androidx.annotation:annotation:1.1.0") |
| implementation("androidx.concurrent:concurrent-futures:1.1.0") |
| implementation("androidx.wear.tiles:tiles:1.1.0") |
| implementation(libs.grpcAndroid) |
| implementation(libs.grpcBinder) |
| implementation(libs.grpcStub) |
| implementation(libs.kotlinStdlib) |
| implementation(libs.jsr250) |
| |
| // Force upgrade since 1.2.0 is not compatible with latest lint. |
| implementation("androidx.annotation:annotation-experimental:1.3.0") |
| |
| testImplementation(project(":appactions:interaction:interaction-capabilities-core")) |
| testImplementation(project(":appactions:interaction:interaction-service-proto")) |
| testImplementation(libs.grpcTesting) |
| testImplementation(libs.junit) |
| testImplementation(libs.kotlinCoroutinesTest) |
| testImplementation(libs.kotlinStdlib) |
| testImplementation(libs.kotlinTest) |
| testImplementation(libs.mockitoKotlin) |
| testImplementation(libs.protobufLite) |
| testImplementation(libs.robolectric) |
| testImplementation(libs.testExtJunit) |
| testImplementation(libs.testExtTruth) |
| testImplementation(libs.testCore) |
| testImplementation(libs.testRunner) |
| testImplementation(libs.truth) |
| testImplementation("androidx.concurrent:concurrent-futures-ktx:1.1.0") |
| } |
| |
| android { |
| namespace "androidx.appactions.interaction.service" |
| defaultConfig { |
| // TODO(b/266649259): Temporary bump to 33 to support capabilities-core. Lower back to 25 to |
| // support wear:tiles |
| minSdkVersion 33 |
| } |
| defaultConfig { |
| testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| } |
| testOptions { |
| unitTests { |
| includeAndroidResources = true |
| } |
| } |
| } |
| |
| androidx { |
| name = "androidx.appactions.interaction:interaction-service" |
| type = LibraryType.PUBLISHED_LIBRARY |
| inceptionYear = "2023" |
| description = "Library for integrating with Google Assistant via GRPC binder channel." |
| } |