1 /* 2 * Copyright 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 17 package androidx.build 18 19 import org.gradle.api.Project 20 import org.gradle.api.plugins.ExtraPropertiesExtension 21 import java.io.File 22 23 object SupportConfig { 24 const val DEFAULT_MIN_SDK_VERSION = 14 25 const val INSTRUMENTATION_RUNNER = "android.support.test.runner.AndroidJUnitRunner" 26 const val BUILD_TOOLS_VERSION = "27.0.3" 27 const val CURRENT_SDK_VERSION = 28 28 getKeystorenull29 fun getKeystore(project: Project): File { 30 val supportRoot = (project.rootProject.property("ext") as ExtraPropertiesExtension) 31 .get("supportRootFolder") as File 32 return File(supportRoot, "development/keystore/debug.keystore") 33 } 34 getLintBaselinenull35 fun getLintBaseline(project: Project): File { 36 return File(project.projectDir, "/lint-baseline.xml") 37 } 38 } 39