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
17import static android.support.dependencies.DependenciesKt.*
18import android.support.LibraryVersions
19import android.support.LibraryGroups
20
21buildscript {
22    ext.supportRootFolder = new File("../../../")
23    apply from: "${supportRootFolder}/buildSrc/repos.gradle"
24    apply from: "${supportRootFolder}/buildSrc/init.gradle"
25    apply from: "${supportRootFolder}/buildSrc/build_dependencies.gradle"
26    init.setSdkInLocalPropertiesFile()
27    repos.addMavenRepositories(repositories)
28
29    repositories {
30        maven {
31            url "$buildDir/localMaven/"
32        }
33    }
34    dependencies {
35        classpath build_libs.gradle
36        classpath "${LibraryGroups.NAVIGATION}:safe-args-gradle-plugin:${LibraryVersions.NAVIGATION}"
37    }
38}
39
40plugins {
41    id("SupportAndroidTestAppPlugin")
42}
43
44apply plugin: 'androidx.navigation.safeargs'
45apply from: "${supportRootFolder}/buildSrc/repos.gradle"
46repos.addMavenRepositories(repositories)
47repositories {
48    maven {
49        url "$buildDir/localMaven/"
50    }
51}
52
53android {
54    flavorDimensions "mode"
55    productFlavors {
56        foo {
57            dimension "mode"
58            applicationIdSuffix ".foo"
59        }
60        notfoo {
61            dimension "mode"
62        }
63    }
64}
65
66dependencies {
67    implementation "${LibraryGroups.NAVIGATION}:runtime:${LibraryVersions.NAVIGATION}"
68    testCompile(JUNIT)
69    testCompile(MOCKITO_CORE)
70}