 /*
 * 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.
 */


 import androidx.build.SoftwareType

 plugins {
    id("AndroidXPlugin")
    id("com.android.library")
}

dependencies {
    api(libs.jspecify)
    api("androidx.annotation:annotation:1.8.1")
}

androidx {
    name = "Camera OEM Extensions Stub"
    type = SoftwareType.UNSET
    inceptionYear = "2019"
    description = "OEM Extensions stub implementation for the Jetpack Camera Library, a library providing interfaces" +
            " to integrate with OEM specific camera features."
}

 android {
     namespace = "androidx.camera.extensions.impl"

     lint {
         enable.add("CameraXQuirksClassDetector")
     }
 }

