blob: c327d24e8eb5289c382dfd98ba348b5f0aa8fb45 [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 */
MingWei04e4bc72025-01-10 12:59:29 +000024import androidx.build.KotlinTarget
Aurimas Liutikas37e83212025-01-23 13:26:10 -080025import androidx.build.SoftwareType
MingWei113fd0a2025-01-20 10:35:44 +000026import androidx.build.SdkHelperKt
Payam Pakzadea487f82024-12-03 14:01:41 -080027
28plugins {
29 id("AndroidXPlugin")
30 id("kotlin")
31}
32
MingWei04e4bc72025-01-10 12:59:29 +000033androidx.configureAarAsJarForConfiguration("testImplementation")
Utkarsh Nigame8be9b32025-01-24 16:17:43 +053034androidx.configureAarAsJarForConfiguration("implementation")
MingWei04e4bc72025-01-10 12:59:29 +000035
Payam Pakzadea487f82024-12-03 14:01:41 -080036dependencies {
37 api(libs.kotlinStdlib)
MingWei04e4bc72025-01-10 12:59:29 +000038 implementation(libs.kspApi)
39 implementation(libs.kotlinPoet)
40
Utkarsh Nigame8be9b32025-01-24 16:17:43 +053041 // Added for reusing AppFunctionMetadata classes.
42 implementationAarAsJar(project(":appfunctions:appfunctions-common"))
43
MingWeia0300d22025-01-14 12:51:56 +000044 testImplementationAarAsJar(project(":appfunctions:appfunctions-common"))
MingWei04e4bc72025-01-10 12:59:29 +000045 testImplementationAarAsJar(project(":appfunctions:appfunctions-runtime"))
MingWei113fd0a2025-01-20 10:35:44 +000046 testImplementation(SdkHelperKt.getSdkDependency(project))
MingWei04e4bc72025-01-10 12:59:29 +000047 testImplementation(libs.googleCompileTesting)
48 testImplementation(project(":room:room-compiler-processing-testing"))
49 testImplementation(libs.junit)
50 testImplementation(libs.truth)
51}
52
53def testGeneratedSourcesPath = "${layout.buildDirectory.get().asFile}/testGeneratedSources"
54tasks.withType(Test).configureEach { test ->
55 test.doFirst {
56 systemProperty("test_output_dir", testGeneratedSourcesPath)
57 }
Payam Pakzadea487f82024-12-03 14:01:41 -080058}
59
60androidx {
MingWeia0d220e2025-01-08 16:03:06 +000061 name = "androidx.appfunctions:appfunctions-compiler"
Aurimas Liutikas37e83212025-01-23 13:26:10 -080062 type = SoftwareType.ANNOTATION_PROCESSOR
MingWeia0d220e2025-01-08 16:03:06 +000063 inceptionYear = "2025"
64 description = "AppFunction Compiler"
MingWei04e4bc72025-01-10 12:59:29 +000065 kotlinTarget = KotlinTarget.KOTLIN_1_9
Payam Pakzadea487f82024-12-03 14:01:41 -080066}