Ian Lake | dc78ca1 | 2018-02-15 09:50:29 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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 | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Ian Lake | dc78ca1 | 2018-02-15 09:50:29 -0800 | [diff] [blame] | 25 | |
| 26 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
Ian Lake | 98c3979 | 2018-08-29 14:42:02 -0700 | [diff] [blame] | 29 | id("kotlin-android") |
Clara Fok | d75f481 | 2024-03-26 14:19:42 -0700 | [diff] [blame] | 30 | alias(libs.plugins.kotlinSerialization) |
Ian Lake | dc78ca1 | 2018-02-15 09:50:29 -0800 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | dependencies { |
Prajakta Patil | a52a01e | 2023-10-25 16:49:12 +0000 | [diff] [blame] | 34 | api("androidx.fragment:fragment-ktx:1.6.2") |
Jeremy Woods | 14523ed | 2021-04-07 09:22:44 -0700 | [diff] [blame] | 35 | api(project(":navigation:navigation-runtime")) |
Jeremy Woods | 78c3a00 | 2022-01-18 14:13:23 -0800 | [diff] [blame] | 36 | api("androidx.slidingpanelayout:slidingpanelayout:1.2.0") |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 37 | api(libs.kotlinStdlib) |
Clara Fok | d75f481 | 2024-03-26 14:19:42 -0700 | [diff] [blame] | 38 | implementation(libs.kotlinSerializationCore) |
Ian Lake | 4485a51 | 2021-05-06 21:55:58 -0700 | [diff] [blame] | 39 | androidTestImplementation(project(":navigation:navigation-testing")) |
Prajakta Patil | a52a01e | 2023-10-25 16:49:12 +0000 | [diff] [blame] | 40 | androidTestImplementation("androidx.fragment:fragment-testing:1.6.2") |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 41 | androidTestImplementation(libs.testExtJunit) |
| 42 | androidTestImplementation(libs.testCore) |
| 43 | androidTestImplementation(libs.testRunner) |
| 44 | androidTestImplementation(libs.testRules) |
| 45 | androidTestImplementation(libs.truth) |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 46 | androidTestImplementation(project(":internal-testutils-runtime"), { |
| 47 | exclude group: "androidx.fragment", module: "fragment" |
| 48 | }) |
| 49 | androidTestImplementation(project(":internal-testutils-navigation"), { |
Jeremy Woods | 2a78a49 | 2021-04-12 10:57:31 -0700 | [diff] [blame] | 50 | exclude group: "androidx.navigation", module: "navigation-common" |
Jeremy Woods | 24227ee | 2020-11-02 15:36:48 -0800 | [diff] [blame] | 51 | }) |
Ian Lake | dc78ca1 | 2018-02-15 09:50:29 -0800 | [diff] [blame] | 52 | } |
| 53 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 54 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 55 | name = "Navigation Fragment" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 56 | type = LibraryType.PUBLISHED_LIBRARY |
Ian Lake | dc78ca1 | 2018-02-15 09:50:29 -0800 | [diff] [blame] | 57 | inceptionYear = "2017" |
| 58 | description = "Android Navigation-Fragment" |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 59 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 60 | legacyDisableKotlinStrictApiMode = true |
Ian Lake | dc78ca1 | 2018-02-15 09:50:29 -0800 | [diff] [blame] | 61 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 62 | |
| 63 | android { |
| 64 | namespace "androidx.navigation.fragment" |
| 65 | } |