Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 1 | /* |
MingWei | a0d220e | 2025-01-08 16:03:06 +0000 | [diff] [blame] | 2 | * Copyright (C) 2025 The Android Open Source Project |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 3 | * |
| 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 Ismail | 2d71e6c | 2025-03-06 13:33:58 +0000 | [diff] [blame^] | 24 | |
| 25 | import androidx.build.KotlinTarget |
Aurimas Liutikas | 37e8321 | 2025-01-23 13:26:10 -0800 | [diff] [blame] | 26 | import androidx.build.SoftwareType |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 27 | |
| 28 | plugins { |
| 29 | id("AndroidXPlugin") |
| 30 | id("com.android.library") |
| 31 | id("org.jetbrains.kotlin.android") |
Oluwarotimi Adesina | 4e9def0 | 2025-03-31 18:12:37 +0000 | [diff] [blame] | 32 | id("com.google.devtools.ksp") |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | dependencies { |
| 36 | api(libs.kotlinStdlib) |
Tony Mak | 75ac014 | 2025-02-20 22:52:41 +0000 | [diff] [blame] | 37 | api(libs.kotlinCoroutinesAndroid) |
| 38 | api project(":appfunctions:appfunctions-common") |
Oluwarotimi Adesina | 4e9def0 | 2025-03-31 18:12:37 +0000 | [diff] [blame] | 39 | ksp(project(":appfunctions:appfunctions-compiler")) |
Oluwarotimi Adesina | af9e226 | 2025-01-10 13:26:10 +0000 | [diff] [blame] | 40 | |
| 41 | // Internal dependencies |
Tony Mak | 75ac014 | 2025-02-20 22:52:41 +0000 | [diff] [blame] | 42 | implementation("androidx.appsearch:appsearch:1.1.0-beta01") |
| 43 | implementation("androidx.appsearch:appsearch-platform-storage:1.1.0-beta01") |
Oluwarotimi Adesina | af9e226 | 2025-01-10 13:26:10 +0000 | [diff] [blame] | 44 | implementation("androidx.annotation:annotation:1.9.0-rc01") |
Utkarsh Nigam | 3269123 | 2025-02-26 15:20:04 +0000 | [diff] [blame] | 45 | implementation(libs.kotlinCoroutinesGuava) { |
| 46 | exclude group: "com.google.guava", module: "guava" |
| 47 | } |
MingWei | ec73f97 | 2025-02-10 14:00:35 +0000 | [diff] [blame] | 48 | // Compile only dependencies |
| 49 | compileOnly(project(":appfunctions:appfunctions-stubs")) |
| 50 | |
MingWei | 1ed93ed | 2025-01-21 11:21:40 +0000 | [diff] [blame] | 51 | // Test dependencies |
MingWei | ebc753d | 2025-01-15 09:57:28 +0000 | [diff] [blame] | 52 | testImplementation(libs.junit) |
| 53 | testImplementation(libs.truth) |
Tony Mak | 2db83b9 | 2025-03-11 22:27:55 +0000 | [diff] [blame] | 54 | testImplementation(libs.testMonitor) |
Tony Mak | 67cbdbd | 2025-03-11 06:21:10 -0700 | [diff] [blame] | 55 | testImplementation(libs.kotlinCoroutinesTest) |
| 56 | testImplementation(libs.testRunner) |
| 57 | testImplementation(project(":appfunctions:appfunctions-stubs")) |
| 58 | testImplementation(libs.mockitoCore) |
| 59 | testImplementation(libs.testCore) |
| 60 | testImplementation(libs.robolectric) |
Tony Mak | 2db83b9 | 2025-03-11 22:27:55 +0000 | [diff] [blame] | 61 | testImplementation(libs.kotlinTest) |
MingWei | 1ed93ed | 2025-01-21 11:21:40 +0000 | [diff] [blame] | 62 | |
MingWei | 460e955 | 2025-02-06 14:50:00 +0000 | [diff] [blame] | 63 | androidTestCompileOnly(project(":appfunctions:appfunctions-stubs")) |
Tony Mak | 0b05450 | 2025-02-24 17:51:08 +0000 | [diff] [blame] | 64 | androidTestImplementation("androidx.appsearch:appsearch:1.1.0-beta01") |
| 65 | androidTestImplementation("androidx.appsearch:appsearch-platform-storage:1.1.0-beta01") |
MingWei | 1ed93ed | 2025-01-21 11:21:40 +0000 | [diff] [blame] | 66 | androidTestImplementation(libs.junit) |
| 67 | androidTestImplementation(libs.truth) |
| 68 | androidTestImplementation(libs.kotlinCoroutinesTest) |
MingWei | 4f62892 | 2025-02-04 16:56:22 +0000 | [diff] [blame] | 69 | androidTestImplementation(libs.testParameterInjector) |
Tony Mak | 75ac014 | 2025-02-20 22:52:41 +0000 | [diff] [blame] | 70 | androidTestImplementation('androidx.concurrent:concurrent-futures-ktx:1.1.0') |
| 71 | androidTestImplementation(libs.guavaAndroid) |
| 72 | androidTestImplementation(libs.testMonitor) |
| 73 | androidTestImplementation(libs.testRunner) |
Tony Mak | 2db83b9 | 2025-03-11 22:27:55 +0000 | [diff] [blame] | 74 | androidTestImplementation(libs.kotlinTest) |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | android { |
Tony Mak | 985dcb6 | 2025-03-20 14:55:50 -0700 | [diff] [blame] | 78 | compileSdk = 36 |
MingWei | 548780f | 2025-03-12 16:56:35 +0000 | [diff] [blame] | 79 | buildTypes.configureEach { |
| 80 | consumerProguardFiles "proguard-rules.pro" |
| 81 | } |
MingWei | a0d220e | 2025-01-08 16:03:06 +0000 | [diff] [blame] | 82 | namespace = "androidx.appfunctions.runtime" |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | androidx { |
MingWei | a0d220e | 2025-01-08 16:03:06 +0000 | [diff] [blame] | 86 | name = "androidx.appfunctions:appfunctions-runtime" |
Aurimas Liutikas | 37e8321 | 2025-01-23 13:26:10 -0800 | [diff] [blame] | 87 | type = SoftwareType.PUBLISHED_LIBRARY |
Omar Ismail | 2d71e6c | 2025-03-06 13:33:58 +0000 | [diff] [blame^] | 88 | //TODO(b/407634710): Task :appfunctions:appfunctions-runtime:kspReleaseAndroidTestKotlin fails when targeting Kotlin 2 |
| 89 | kotlinTarget = KotlinTarget.KOTLIN_1_9 |
MingWei | a0d220e | 2025-01-08 16:03:06 +0000 | [diff] [blame] | 90 | inceptionYear = "2025" |
| 91 | description = "Runtime library for the app to provide and interact with AppFunctions" |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 92 | } |