blob: be0a598016385c1527845422e8a23ab383f2e18e [file] [log] [blame]
Sergey Vasilinets1cde9f62019-10-02 21:48:15 +01001/*
Jakub Gielzak8a666262019-10-30 15:50:45 +00002 * Copyright 2019 The Android Open Source Project
Sergey Vasilinets1cde9f62019-10-02 21:48:15 +01003 *
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
Tiem Songee0da742024-01-03 14:08:46 -080017/**
18 * This file was created using the `create_project.py` script located in the
19 * `<AndroidX root>/development/project-creator` directory.
20 *
21 * Please use that script when creating a new project, rather than copying an existing project and
22 * modifying its settings.
23 */
Owen Gray74cc2592020-09-24 15:05:40 -040024import androidx.build.LibraryType
Dustin Lamc351bfc2020-03-11 20:32:42 -070025import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
26
Sergey Vasilinets1cde9f62019-10-02 21:48:15 +010027plugins {
28 id("AndroidXPlugin")
29 id("com.android.library")
Jakub Gielzak71e1a692019-10-23 17:42:00 +010030 id("kotlin-android")
Sergey Vasilinets4e970562019-12-12 13:39:19 +000031 id("androidx.inspection")
Sergey Vasilinets1cde9f62019-10-02 21:48:15 +010032}
33
34dependencies {
Julia McClellana6f02e92024-11-21 11:21:49 -050035 api(libs.jspecify)
Aurimas Liutikas96f0b302024-07-25 15:49:23 -070036 api("androidx.annotation:annotation:1.8.1")
Sergey Vasilinets95f91db2020-01-13 20:21:29 +000037 compileOnly(project(":inspection:inspection"))
Jakub Gielzak71e1a692019-10-23 17:42:00 +010038
Jakub Gielzak8a666262019-10-30 15:50:45 +000039 androidTestImplementation(project(":inspection:inspection-testing"))
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070040 androidTestImplementation(libs.kotlinStdlib)
41 androidTestImplementation(libs.testRunner)
42 androidTestImplementation(libs.testExtJunit)
43 androidTestImplementation(libs.truth)
44 androidTestImplementation(libs.kotlinCoroutinesAndroid)
45 androidTestImplementation(libs.kotlinCoroutinesTest)
Sergey Vasilinets1cde9f62019-10-02 21:48:15 +010046}
47
Sergey Vasilinets1cde9f62019-10-02 21:48:15 +010048androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040049 name = "SQLite Inspector"
Owen Gray74cc2592020-09-24 15:05:40 -040050 type = LibraryType.IDE_PLUGIN
Rahul Ravikumar44198422019-11-18 11:18:09 -080051 // Decouple SQLITE_INSPECTOR because it depends on
52 // the inspection protocol, which is alpha
Sergey Vasilinets1cde9f62019-10-02 21:48:15 +010053 inceptionYear = "2019"
Sergey Vasilinets1cde9f62019-10-02 21:48:15 +010054 description = "The implementation of SQLite Inspector."
Sergey Vasilinets1cde9f62019-10-02 21:48:15 +010055}
Jakub Gielzak44a83b92019-10-29 12:47:35 +000056
57android {
Sergey Vasilinets8cf6fc52020-03-11 18:40:13 +000058 defaultConfig {
59 // studio pipeline works only starting with Android O
Aurimas Liutikas77952822024-12-04 18:00:17 -080060 minSdk = 26
Sergey Vasilinets8cf6fc52020-03-11 18:40:13 +000061 }
Sergey Vasilinets95f91db2020-01-13 20:21:29 +000062 sourceSets {
63 main.resources.srcDirs += "src/main/proto"
64 }
Aurimas Liutikas77952822024-12-04 18:00:17 -080065 namespace = "androidx.sqlite.inspection"
Jakub Gielzak44a83b92019-10-29 12:47:35 +000066}