blob: 1d740b2f57a7e7cd9c6ea074126fd080a83afe1e [file] [log] [blame]
Sergey Vasilinets968529a2018-01-03 16:13:53 -08001/*
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 Gray74cc2592020-09-24 15:05:40 -040017import androidx.build.LibraryType
Aurimas Liutikase5878062019-12-04 15:10:08 -080018import androidx.build.SdkResourceGenerator
Sergey Vasilinets968529a2018-01-03 16:13:53 -080019
Aurimas Liutikas65d3d602019-04-01 23:08:13 -070020plugins {
21 id("AndroidXPlugin")
22 id("kotlin")
23 id("java-gradle-plugin")
24}
Sergey Vasilinets968529a2018-01-03 16:13:53 -080025
Sergey Vasilinets968529a2018-01-03 16:13:53 -080026dependencies {
Aurimas Liutikas48c26da2022-11-01 19:04:53 -070027 implementation("com.android.tools.build:gradle:7.3.0")
Aurimas Liutikas4a228f72021-08-05 15:43:18 -070028 implementation(libs.kotlinGradlePluginz)
Aurimas Liutikase5878062019-12-04 15:10:08 -080029 api(project(":navigation:navigation-safe-args-generator"))
30 api(gradleApi())
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070031 implementation(libs.gson)
Aurimas Liutikase5878062019-12-04 15:10:08 -080032 testImplementation(gradleTestKit())
Sergey Vasilinetsfe3324b2020-01-06 15:57:39 +000033 testImplementation(project(":internal-testutils-gradle-plugin"))
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070034 testImplementation(libs.junit)
Sergey Vasilinets968529a2018-01-03 16:13:53 -080035}
36
Aurimas Liutikase5878062019-12-04 15:10:08 -080037SdkResourceGenerator.generateForHostTest(project)
Sergey Vasilinets973a5c02018-01-11 23:39:12 -080038
Sergey Vasilinets968529a2018-01-03 16:13:53 -080039gradlePlugin {
40 plugins {
Daniel Santiago Rivera07446872019-01-10 12:59:41 -080041 safeargsJava {
Ian Lake1503d522018-02-15 13:43:50 -080042 id = "androidx.navigation.safeargs"
Daniel Santiago Rivera07446872019-01-10 12:59:41 -080043 implementationClass = "androidx.navigation.safeargs.gradle.SafeArgsJavaPlugin"
44 }
45 safeargsKotlin {
46 id = "androidx.navigation.safeargs.kotlin"
47 implementationClass = "androidx.navigation.safeargs.gradle.SafeArgsKotlinPlugin"
Sergey Vasilinets968529a2018-01-03 16:13:53 -080048 }
49 }
50}
51
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070052androidx {
Sergey Vasilinets968529a2018-01-03 16:13:53 -080053 name = "Android Navigation TypeSafe Arguments Gradle Plugin"
Owen Gray74cc2592020-09-24 15:05:40 -040054 type = LibraryType.GRADLE_PLUGIN
Sergey Vasilinets968529a2018-01-03 16:13:53 -080055 inceptionYear = "2017"
56 description = "Android Navigation TypeSafe Arguments Gradle Plugin"
Sergey Vasilinets968529a2018-01-03 16:13:53 -080057}