Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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 |
Aurimas Liutikas | e587806 | 2019-12-04 15:10:08 -0800 | [diff] [blame] | 18 | import androidx.build.SdkResourceGenerator |
Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 19 | |
Aurimas Liutikas | 65d3d60 | 2019-04-01 23:08:13 -0700 | [diff] [blame] | 20 | plugins { |
| 21 | id("AndroidXPlugin") |
| 22 | id("kotlin") |
| 23 | id("java-gradle-plugin") |
| 24 | } |
Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 25 | |
Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 26 | dependencies { |
Aurimas Liutikas | 48c26da | 2022-11-01 19:04:53 -0700 | [diff] [blame] | 27 | implementation("com.android.tools.build:gradle:7.3.0") |
Aurimas Liutikas | 4a228f7 | 2021-08-05 15:43:18 -0700 | [diff] [blame] | 28 | implementation(libs.kotlinGradlePluginz) |
Aurimas Liutikas | e587806 | 2019-12-04 15:10:08 -0800 | [diff] [blame] | 29 | api(project(":navigation:navigation-safe-args-generator")) |
| 30 | api(gradleApi()) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 31 | implementation(libs.gson) |
Aurimas Liutikas | e587806 | 2019-12-04 15:10:08 -0800 | [diff] [blame] | 32 | testImplementation(gradleTestKit()) |
Sergey Vasilinets | fe3324b | 2020-01-06 15:57:39 +0000 | [diff] [blame] | 33 | testImplementation(project(":internal-testutils-gradle-plugin")) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 34 | testImplementation(libs.junit) |
Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 35 | } |
| 36 | |
Aurimas Liutikas | e587806 | 2019-12-04 15:10:08 -0800 | [diff] [blame] | 37 | SdkResourceGenerator.generateForHostTest(project) |
Sergey Vasilinets | 973a5c0 | 2018-01-11 23:39:12 -0800 | [diff] [blame] | 38 | |
Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 39 | gradlePlugin { |
| 40 | plugins { |
Daniel Santiago Rivera | 0744687 | 2019-01-10 12:59:41 -0800 | [diff] [blame] | 41 | safeargsJava { |
Ian Lake | 1503d52 | 2018-02-15 13:43:50 -0800 | [diff] [blame] | 42 | id = "androidx.navigation.safeargs" |
Daniel Santiago Rivera | 0744687 | 2019-01-10 12:59:41 -0800 | [diff] [blame] | 43 | implementationClass = "androidx.navigation.safeargs.gradle.SafeArgsJavaPlugin" |
| 44 | } |
| 45 | safeargsKotlin { |
| 46 | id = "androidx.navigation.safeargs.kotlin" |
| 47 | implementationClass = "androidx.navigation.safeargs.gradle.SafeArgsKotlinPlugin" |
Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 48 | } |
| 49 | } |
| 50 | } |
| 51 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 52 | androidx { |
Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 53 | name = "Android Navigation TypeSafe Arguments Gradle Plugin" |
Owen Gray | 74cc259 | 2020-09-24 15:05:40 -0400 | [diff] [blame] | 54 | type = LibraryType.GRADLE_PLUGIN |
Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 55 | inceptionYear = "2017" |
| 56 | description = "Android Navigation TypeSafe Arguments Gradle Plugin" |
Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame] | 57 | } |