blob: 912a05b8250d72c929d6246962878f623505c888 [file] [log] [blame]
Payam Pakzadea487f82024-12-03 14:01:41 -08001/*
MingWeia0d220e2025-01-08 16:03:06 +00002 * Copyright (C) 2025 The Android Open Source Project
Payam Pakzadea487f82024-12-03 14:01:41 -08003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/**
18 * This file was created using the `create_project.py` script located in the
19 * `<AndroidX root>/development/project-creator` directory.
20 *
21 * Please use that script when creating a new project, rather than copying an existing project and
22 * modifying its settings.
23 */
Omar Ismail2d71e6c2025-03-06 13:33:58 +000024
25import androidx.build.KotlinTarget
Aurimas Liutikas37e83212025-01-23 13:26:10 -080026import androidx.build.SoftwareType
Payam Pakzadea487f82024-12-03 14:01:41 -080027
28plugins {
29 id("AndroidXPlugin")
30 id("com.android.library")
31 id("org.jetbrains.kotlin.android")
32}
33
34dependencies {
35 api(libs.kotlinStdlib)
Tony Mak75ac0142025-02-20 22:52:41 +000036 api(libs.kotlinCoroutinesAndroid)
MingWei9c59a332025-04-09 11:37:05 +000037 api project(":appfunctions:appfunctions")
Oluwarotimi Adesinaaf9e2262025-01-10 13:26:10 +000038
39 // Internal dependencies
Oluwarotimi Adesinaaf9e2262025-01-10 13:26:10 +000040 implementation("androidx.annotation:annotation:1.9.0-rc01")
Utkarsh Nigam32691232025-02-26 15:20:04 +000041 implementation(libs.kotlinCoroutinesGuava) {
42 exclude group: "com.google.guava", module: "guava"
43 }
MingWeiec73f972025-02-10 14:00:35 +000044 // Compile only dependencies
45 compileOnly(project(":appfunctions:appfunctions-stubs"))
46
MingWei1ed93ed2025-01-21 11:21:40 +000047 // Test dependencies
MingWeiebc753d2025-01-15 09:57:28 +000048 testImplementation(libs.junit)
49 testImplementation(libs.truth)
Tony Mak2db83b92025-03-11 22:27:55 +000050 testImplementation(libs.testMonitor)
Tony Mak67cbdbd2025-03-11 06:21:10 -070051 testImplementation(libs.kotlinCoroutinesTest)
52 testImplementation(libs.testRunner)
53 testImplementation(project(":appfunctions:appfunctions-stubs"))
54 testImplementation(libs.mockitoCore)
55 testImplementation(libs.testCore)
56 testImplementation(libs.robolectric)
Tony Mak2db83b92025-03-11 22:27:55 +000057 testImplementation(libs.kotlinTest)
MingWei1ed93ed2025-01-21 11:21:40 +000058
MingWei460e9552025-02-06 14:50:00 +000059 androidTestCompileOnly(project(":appfunctions:appfunctions-stubs"))
Tony Mak0b054502025-02-24 17:51:08 +000060 androidTestImplementation("androidx.appsearch:appsearch:1.1.0-beta01")
61 androidTestImplementation("androidx.appsearch:appsearch-platform-storage:1.1.0-beta01")
MingWei1ed93ed2025-01-21 11:21:40 +000062 androidTestImplementation(libs.junit)
63 androidTestImplementation(libs.truth)
64 androidTestImplementation(libs.kotlinCoroutinesTest)
MingWei4f628922025-02-04 16:56:22 +000065 androidTestImplementation(libs.testParameterInjector)
Tony Mak75ac0142025-02-20 22:52:41 +000066 androidTestImplementation('androidx.concurrent:concurrent-futures-ktx:1.1.0')
67 androidTestImplementation(libs.guavaAndroid)
68 androidTestImplementation(libs.testMonitor)
69 androidTestImplementation(libs.testRunner)
Tony Mak2db83b92025-03-11 22:27:55 +000070 androidTestImplementation(libs.kotlinTest)
Payam Pakzadea487f82024-12-03 14:01:41 -080071}
72
73android {
Tony Mak985dcb62025-03-20 14:55:50 -070074 compileSdk = 36
MingWei548780f2025-03-12 16:56:35 +000075 buildTypes.configureEach {
76 consumerProguardFiles "proguard-rules.pro"
77 }
MingWei28c7afe2025-04-09 12:48:35 +000078 namespace = "androidx.appfunctions.service"
Payam Pakzadea487f82024-12-03 14:01:41 -080079}
80
81androidx {
MingWei28c7afe2025-04-09 12:48:35 +000082 name = "androidx.appfunctions:appfunctions-service"
Aurimas Liutikas37e83212025-01-23 13:26:10 -080083 type = SoftwareType.PUBLISHED_LIBRARY
MingWeia0d220e2025-01-08 16:03:06 +000084 inceptionYear = "2025"
MingWei28c7afe2025-04-09 12:48:35 +000085 description = "A runtime library for the app to expose AppFunctions"
Payam Pakzadea487f82024-12-03 14:01:41 -080086}