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 | */ |
MingWei | 04e4bc7 | 2025-01-10 12:59:29 +0000 | [diff] [blame] | 24 | import androidx.build.KotlinTarget |
Aurimas Liutikas | 37e8321 | 2025-01-23 13:26:10 -0800 | [diff] [blame] | 25 | import androidx.build.SoftwareType |
MingWei | 113fd0a | 2025-01-20 10:35:44 +0000 | [diff] [blame] | 26 | import androidx.build.SdkHelperKt |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 27 | |
| 28 | plugins { |
| 29 | id("AndroidXPlugin") |
| 30 | id("kotlin") |
| 31 | } |
| 32 | |
MingWei | 04e4bc7 | 2025-01-10 12:59:29 +0000 | [diff] [blame] | 33 | androidx.configureAarAsJarForConfiguration("testImplementation") |
Utkarsh Nigam | e8be9b3 | 2025-01-24 16:17:43 +0530 | [diff] [blame] | 34 | androidx.configureAarAsJarForConfiguration("implementation") |
MingWei | 04e4bc7 | 2025-01-10 12:59:29 +0000 | [diff] [blame] | 35 | |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 36 | dependencies { |
| 37 | api(libs.kotlinStdlib) |
MingWei | 04e4bc7 | 2025-01-10 12:59:29 +0000 | [diff] [blame] | 38 | implementation(libs.kspApi) |
| 39 | implementation(libs.kotlinPoet) |
| 40 | |
Utkarsh Nigam | e8be9b3 | 2025-01-24 16:17:43 +0530 | [diff] [blame] | 41 | // Added for reusing AppFunctionMetadata classes. |
| 42 | implementationAarAsJar(project(":appfunctions:appfunctions-common")) |
| 43 | |
MingWei | a0300d2 | 2025-01-14 12:51:56 +0000 | [diff] [blame] | 44 | testImplementationAarAsJar(project(":appfunctions:appfunctions-common")) |
MingWei | 04e4bc7 | 2025-01-10 12:59:29 +0000 | [diff] [blame] | 45 | testImplementationAarAsJar(project(":appfunctions:appfunctions-runtime")) |
MingWei | 113fd0a | 2025-01-20 10:35:44 +0000 | [diff] [blame] | 46 | testImplementation(SdkHelperKt.getSdkDependency(project)) |
MingWei | 04e4bc7 | 2025-01-10 12:59:29 +0000 | [diff] [blame] | 47 | testImplementation(libs.googleCompileTesting) |
| 48 | testImplementation(project(":room:room-compiler-processing-testing")) |
| 49 | testImplementation(libs.junit) |
| 50 | testImplementation(libs.truth) |
| 51 | } |
| 52 | |
| 53 | def testGeneratedSourcesPath = "${layout.buildDirectory.get().asFile}/testGeneratedSources" |
| 54 | tasks.withType(Test).configureEach { test -> |
| 55 | test.doFirst { |
| 56 | systemProperty("test_output_dir", testGeneratedSourcesPath) |
| 57 | } |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | androidx { |
MingWei | a0d220e | 2025-01-08 16:03:06 +0000 | [diff] [blame] | 61 | name = "androidx.appfunctions:appfunctions-compiler" |
Aurimas Liutikas | 37e8321 | 2025-01-23 13:26:10 -0800 | [diff] [blame] | 62 | type = SoftwareType.ANNOTATION_PROCESSOR |
MingWei | a0d220e | 2025-01-08 16:03:06 +0000 | [diff] [blame] | 63 | inceptionYear = "2025" |
| 64 | description = "AppFunction Compiler" |
MingWei | 04e4bc7 | 2025-01-10 12:59:29 +0000 | [diff] [blame] | 65 | kotlinTarget = KotlinTarget.KOTLIN_1_9 |
Payam Pakzad | ea487f8 | 2024-12-03 14:01:41 -0800 | [diff] [blame] | 66 | } |