blob: 93ebf64e35eb9d0e958a329717684518f5bfb2fc [file] [log] [blame]
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
ext.supportRootFolder = new File("../../../")
apply from: "${supportRootFolder}/buildSrc/repos.gradle"
apply from: "${supportRootFolder}/buildSrc/init.gradle"
apply from: "${supportRootFolder}/buildSrc/build_dependencies.gradle"
init.setSdkInLocalPropertiesFile()
repos.addMavenRepositories(repositories)
repositories {
maven {
url("$buildDir/localMaven/")
}
}
dependencies {
classpath build_libs.agp
classpath "${LibraryGroups.NAVIGATION}:navigation-safe-args-gradle-plugin:${LibraryVersions.NAVIGATION}"
}
}
plugins {
id("AndroidXPlugin")
id("com.android.application")
}
apply plugin: "androidx.navigation.safeargs"
apply from: "${supportRootFolder}/buildSrc/repos.gradle"
repos.addMavenRepositories(repositories)
repositories {
maven {
url("$buildDir/localMaven/")
}
}
android {
flavorDimensions "mode"
productFlavors {
foo {
dimension "mode"
applicationIdSuffix ".foo"
}
notfoo {
dimension "mode"
}
}
}
dependencies {
implementation "${LibraryGroups.NAVIGATION}:navigation-runtime:${LibraryVersions.NAVIGATION}"
testImplementation(libs.junit)
testImplementation(libs.mockitoCore)
}