Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2020 The Android Open Source Project |
| 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 | |
Owen Gray | 74cc259 | 2020-09-24 15:05:40 -0400 | [diff] [blame] | 17 | import androidx.build.LibraryType |
Daniel Santiago Rivera | 006c7bb | 2020-04-07 11:51:16 -0700 | [diff] [blame] | 18 | import androidx.build.SdkHelperKt |
| 19 | import androidx.build.SupportConfig |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 20 | |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 21 | plugins { |
| 22 | id("AndroidXPlugin") |
| 23 | id("kotlin") |
| 24 | id("kotlin-kapt") |
| 25 | } |
| 26 | |
Ember Rose | c662e1a | 2022-09-16 14:37:50 -0400 | [diff] [blame^] | 27 | androidx.configureAarAsJarForConfiguration("testImplementation") |
Aurimas Liutikas | 7d0ea332 | 2022-09-13 18:47:56 -0700 | [diff] [blame] | 28 | |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 29 | dependencies { |
Aurimas Liutikas | 7f24790 | 2021-05-19 08:43:01 -0700 | [diff] [blame] | 30 | implementation(libs.kotlinStdlib) |
| 31 | compileOnly(libs.autoServiceAnnotations) |
| 32 | kapt(libs.autoService) |
| 33 | compileOnly(libs.gradleIncapHelper) |
| 34 | kapt(libs.gradleIncapHelperProcessor) |
| 35 | implementation(libs.autoCommon) |
| 36 | implementation(libs.javapoet) |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 37 | |
Daniel Santiago Rivera | 2de05ef | 2020-09-25 17:49:39 -0700 | [diff] [blame] | 38 | testImplementation(project(":hilt:hilt-common")) |
Aurimas Liutikas | 7f24790 | 2021-05-19 08:43:01 -0700 | [diff] [blame] | 39 | testImplementation(libs.junit) |
| 40 | testImplementation(libs.truth) |
| 41 | testImplementation(libs.googleCompileTesting) |
| 42 | testImplementation(libs.hiltCore) |
Ember Rose | c662e1a | 2022-09-16 14:37:50 -0400 | [diff] [blame^] | 43 | testImplementationAarAsJar(project(":hilt:hilt-work")) |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 44 | testImplementation(fileTree( |
Daniel Santiago Rivera | 006c7bb | 2020-04-07 11:51:16 -0700 | [diff] [blame] | 45 | dir: "${SdkHelperKt.getSdkPath(project)}/platforms/$SupportConfig.COMPILE_SDK_VERSION/", |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 46 | include : "android.jar")) |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 47 | } |
| 48 | |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 49 | androidx { |
Daniel Santiago Rivera | 67f849d | 2020-04-02 17:12:21 -0700 | [diff] [blame] | 50 | name = "AndroidX Hilt Extension Compiler" |
Daniel Santiago Rivera | 565946b | 2022-08-01 11:49:07 -0700 | [diff] [blame] | 51 | type = LibraryType.ANNOTATION_PROCESSOR |
Daniel Santiago Rivera | 67f849d | 2020-04-02 17:12:21 -0700 | [diff] [blame] | 52 | mavenVersion = LibraryVersions.HILT |
| 53 | mavenGroup = LibraryGroups.HILT |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 54 | inceptionYear = "2020" |
Daniel Santiago Rivera | 67f849d | 2020-04-02 17:12:21 -0700 | [diff] [blame] | 55 | description = "AndroidX Hilt Extension Compiler" |
Alex Saveau | b50d500 | 2020-07-14 05:25:54 +0000 | [diff] [blame] | 56 | } |