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 | |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 17 | import androidx.build.Publish |
| 18 | |
| 19 | plugins { |
| 20 | id("AndroidXPlugin") |
Daniel Santiago Rivera | 2de05ef | 2020-09-25 17:49:39 -0700 | [diff] [blame] | 21 | id("java-library") |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | dependencies { |
Aurimas Liutikas | 7f24790 | 2021-05-19 08:43:01 -0700 | [diff] [blame] | 25 | implementation(libs.hiltCore) |
| 26 | annotationProcessor(libs.hiltCompiler) |
Daniel Santiago Rivera | 228fcf5 | 2020-05-11 17:48:05 -0700 | [diff] [blame] | 27 | } |
| 28 | |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 29 | androidx { |
Daniel Santiago Rivera | 67f849d | 2020-04-02 17:12:21 -0700 | [diff] [blame] | 30 | name = "AndroidX Hilt Extension Annotations" |
Daniel Santiago Rivera | ad59b2e | 2020-04-21 08:26:12 -0700 | [diff] [blame] | 31 | publish = Publish.SNAPSHOT_AND_RELEASE |
Daniel Santiago Rivera | 67f849d | 2020-04-02 17:12:21 -0700 | [diff] [blame] | 32 | mavenVersion = LibraryVersions.HILT |
| 33 | mavenGroup = LibraryGroups.HILT |
Daniel Santiago Rivera | 0c716ae | 2020-03-01 11:27:57 -0800 | [diff] [blame] | 34 | inceptionYear = "2020" |
Daniel Santiago Rivera | 67f849d | 2020-04-02 17:12:21 -0700 | [diff] [blame] | 35 | description = "AndroidX Hilt Extension Annotations" |
Daniel Santiago Rivera | f40ded1 | 2021-01-11 14:11:52 -0800 | [diff] [blame] | 36 | // TODO(danysantiago): Remove once @ViewModelInject is deleted. |
| 37 | // This suppresses the the warning in the generated code by Hilt's GeneratesRootInput processor. |
| 38 | failOnDeprecationWarnings = false |
Alex Saveau | b50d500 | 2020-07-14 05:25:54 +0000 | [diff] [blame] | 39 | } |