| Daniel Santiago Rivera | 7bc8576 | 2020-12-04 15:50:36 -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 | |
| Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 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 | 8c545f7 | 2024-08-21 17:45:15 +0100 | [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 |
| Daniel Santiago Rivera | 7bc8576 | 2020-12-04 15:50:36 -0800 | [diff] [blame] | 27 | |
| 28 | plugins { |
| 29 | id("AndroidXPlugin") |
| 30 | id("com.android.library") |
| 31 | id("kotlin-android") |
| Aurimas Liutikas | 7a13851 | 2024-04-24 22:55:21 +0000 | [diff] [blame] | 32 | id("com.google.devtools.ksp") |
| Daniel Santiago Rivera | 7bc8576 | 2020-12-04 15:50:36 -0800 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | dependencies { |
| Aurimas Liutikas | 7f24790 | 2021-05-19 08:43:01 -0700 | [diff] [blame] | 36 | api(libs.kotlinStdlib) |
| Aurimas Liutikas | 96f0b30 | 2024-07-25 15:49:23 -0700 | [diff] [blame] | 37 | api("androidx.annotation:annotation:1.8.1") |
| Kuan-Ying Chou | d2b5948 | 2022-10-07 23:08:21 +0800 | [diff] [blame] | 38 | api("androidx.navigation:navigation-runtime:2.5.1") |
| Aurimas Liutikas | 7f24790 | 2021-05-19 08:43:01 -0700 | [diff] [blame] | 39 | api(libs.hiltAndroid) |
| Aurimas Liutikas | 7a13851 | 2024-04-24 22:55:21 +0000 | [diff] [blame] | 40 | ksp(libs.hiltCompiler) |
| Daniel Santiago Rivera | 7bc8576 | 2020-12-04 15:50:36 -0800 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | androidx { |
| Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 44 | name = "Navigation Hilt Extension" |
| Aurimas Liutikas | 37e8321 | 2025-01-23 13:26:10 -0800 | [diff] [blame] | 45 | type = SoftwareType.PUBLISHED_LIBRARY |
| Kuan-Ying Chou | e0902f0 | 2023-07-26 16:18:30 +0100 | [diff] [blame] | 46 | mavenVersion = LibraryVersions.HILT_NAVIGATION |
| Daniel Santiago Rivera | 7bc8576 | 2020-12-04 15:50:36 -0800 | [diff] [blame] | 47 | inceptionYear = "2021" |
| 48 | description = "Android Navigation Hilt Extension" |
| Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 49 | legacyDisableKotlinStrictApiMode = true |
| Daniel Santiago Rivera | 7067335 | 2024-12-17 15:56:52 -0500 | [diff] [blame] | 50 | kotlinTarget = KotlinTarget.KOTLIN_2_0 |
| Daniel Santiago Rivera | 7bc8576 | 2020-12-04 15:50:36 -0800 | [diff] [blame] | 51 | } |
| Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 52 | |
| 53 | android { |
| Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 54 | namespace = "androidx.hilt.navigation" |
| Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 55 | } |
| Daniel Santiago Rivera | 7067335 | 2024-12-17 15:56:52 -0500 | [diff] [blame] | 56 | |
| 57 | ksp { |
| 58 | useKsp2 = true |
| 59 | } |