blob: 942c860a1c749f033b1dc31d4f9afd7ec8e0c117 [file] [log] [blame]
Daniel Santiago Rivera7bc85762020-12-04 15:50:36 -08001/*
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 Songee0da742024-01-03 14:08:46 -080017/**
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 Ismail8c545f72024-08-21 17:45:15 +010024
25import androidx.build.KotlinTarget
Aurimas Liutikas37e83212025-01-23 13:26:10 -080026import androidx.build.SoftwareType
Daniel Santiago Rivera7bc85762020-12-04 15:50:36 -080027
28plugins {
29 id("AndroidXPlugin")
30 id("com.android.library")
31 id("kotlin-android")
Aurimas Liutikas7a138512024-04-24 22:55:21 +000032 id("com.google.devtools.ksp")
Daniel Santiago Rivera7bc85762020-12-04 15:50:36 -080033}
34
35dependencies {
Aurimas Liutikas7f247902021-05-19 08:43:01 -070036 api(libs.kotlinStdlib)
Aurimas Liutikas96f0b302024-07-25 15:49:23 -070037 api("androidx.annotation:annotation:1.8.1")
Kuan-Ying Choud2b59482022-10-07 23:08:21 +080038 api("androidx.navigation:navigation-runtime:2.5.1")
Aurimas Liutikas7f247902021-05-19 08:43:01 -070039 api(libs.hiltAndroid)
Aurimas Liutikas7a138512024-04-24 22:55:21 +000040 ksp(libs.hiltCompiler)
Daniel Santiago Rivera7bc85762020-12-04 15:50:36 -080041}
42
43androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040044 name = "Navigation Hilt Extension"
Aurimas Liutikas37e83212025-01-23 13:26:10 -080045 type = SoftwareType.PUBLISHED_LIBRARY
Kuan-Ying Choue0902f02023-07-26 16:18:30 +010046 mavenVersion = LibraryVersions.HILT_NAVIGATION
Daniel Santiago Rivera7bc85762020-12-04 15:50:36 -080047 inceptionYear = "2021"
48 description = "Android Navigation Hilt Extension"
Aurimas Liutikas5c5419a2024-05-29 15:26:58 -070049 legacyDisableKotlinStrictApiMode = true
Daniel Santiago Rivera70673352024-12-17 15:56:52 -050050 kotlinTarget = KotlinTarget.KOTLIN_2_0
Daniel Santiago Rivera7bc85762020-12-04 15:50:36 -080051}
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070052
53android {
Aurimas Liutikas77952822024-12-04 18:00:17 -080054 namespace = "androidx.hilt.navigation"
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070055}
Daniel Santiago Rivera70673352024-12-17 15:56:52 -050056
57ksp {
58 useKsp2 = true
59}