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

 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 = LibraryType.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"

     lintOptions {
         enable 'CameraXQuirksClassDetector'
     }
 }

