1/*
2 * Copyright 2018 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
17package androidx.build
18
19import androidx.build.SupportConfig.DEFAULT_MIN_SDK_VERSION
20import org.gradle.api.Project
21
22/**
23 * Extension for [SupportAndroidTestAppPlugin].
24 */
25open class SupportAndroidTestAppExtension(val project: Project) {
26    /**
27     * If unset minSdkVersion will be [DEFAULT_MIN_SDK_VERSION].
28     */
29    var minSdkVersion: Int = DEFAULT_MIN_SDK_VERSION
30
31    /**
32     * Modifies the java compile tasks to run with error prone.
33     * This can be useful for code generators to assert that the generated code won't cause trouble
34     * for the developers.
35     * <p>
36     * Enabling this modifies all of the Javac tasks in the project to run with error prone.
37     */
38    var enableErrorProne: Boolean = false
39}