Sergey Vasilinets | 1cde9f6 | 2019-10-02 21:48:15 +0100 | [diff] [blame] | 1 | /* |
Jakub Gielzak | 8a66626 | 2019-10-30 15:50:45 +0000 | [diff] [blame] | 2 | * Copyright 2019 The Android Open Source Project |
Sergey Vasilinets | 1cde9f6 | 2019-10-02 21:48:15 +0100 | [diff] [blame] | 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 | |
Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 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 Gray | 74cc259 | 2020-09-24 15:05:40 -0400 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Dustin Lam | c351bfc | 2020-03-11 20:32:42 -0700 | [diff] [blame] | 25 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| 26 | |
Sergey Vasilinets | 1cde9f6 | 2019-10-02 21:48:15 +0100 | [diff] [blame] | 27 | plugins { |
| 28 | id("AndroidXPlugin") |
| 29 | id("com.android.library") |
Jakub Gielzak | 71e1a69 | 2019-10-23 17:42:00 +0100 | [diff] [blame] | 30 | id("kotlin-android") |
Sergey Vasilinets | 4e97056 | 2019-12-12 13:39:19 +0000 | [diff] [blame] | 31 | id("androidx.inspection") |
Sergey Vasilinets | 1cde9f6 | 2019-10-02 21:48:15 +0100 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | dependencies { |
Julia McClellan | a6f02e9 | 2024-11-21 11:21:49 -0500 | [diff] [blame] | 35 | api(libs.jspecify) |
Aurimas Liutikas | 96f0b30 | 2024-07-25 15:49:23 -0700 | [diff] [blame] | 36 | api("androidx.annotation:annotation:1.8.1") |
Sergey Vasilinets | 95f91db | 2020-01-13 20:21:29 +0000 | [diff] [blame] | 37 | compileOnly(project(":inspection:inspection")) |
Jakub Gielzak | 71e1a69 | 2019-10-23 17:42:00 +0100 | [diff] [blame] | 38 | |
Jakub Gielzak | 8a66626 | 2019-10-30 15:50:45 +0000 | [diff] [blame] | 39 | androidTestImplementation(project(":inspection:inspection-testing")) |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 40 | androidTestImplementation(libs.kotlinStdlib) |
| 41 | androidTestImplementation(libs.testRunner) |
| 42 | androidTestImplementation(libs.testExtJunit) |
| 43 | androidTestImplementation(libs.truth) |
| 44 | androidTestImplementation(libs.kotlinCoroutinesAndroid) |
| 45 | androidTestImplementation(libs.kotlinCoroutinesTest) |
Sergey Vasilinets | 1cde9f6 | 2019-10-02 21:48:15 +0100 | [diff] [blame] | 46 | } |
| 47 | |
Sergey Vasilinets | 1cde9f6 | 2019-10-02 21:48:15 +0100 | [diff] [blame] | 48 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 49 | name = "SQLite Inspector" |
Owen Gray | 74cc259 | 2020-09-24 15:05:40 -0400 | [diff] [blame] | 50 | type = LibraryType.IDE_PLUGIN |
Rahul Ravikumar | 4419842 | 2019-11-18 11:18:09 -0800 | [diff] [blame] | 51 | // Decouple SQLITE_INSPECTOR because it depends on |
| 52 | // the inspection protocol, which is alpha |
Sergey Vasilinets | 1cde9f6 | 2019-10-02 21:48:15 +0100 | [diff] [blame] | 53 | inceptionYear = "2019" |
Sergey Vasilinets | 1cde9f6 | 2019-10-02 21:48:15 +0100 | [diff] [blame] | 54 | description = "The implementation of SQLite Inspector." |
Sergey Vasilinets | 1cde9f6 | 2019-10-02 21:48:15 +0100 | [diff] [blame] | 55 | } |
Jakub Gielzak | 44a83b9 | 2019-10-29 12:47:35 +0000 | [diff] [blame] | 56 | |
| 57 | android { |
Sergey Vasilinets | 8cf6fc5 | 2020-03-11 18:40:13 +0000 | [diff] [blame] | 58 | defaultConfig { |
| 59 | // studio pipeline works only starting with Android O |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 60 | minSdk = 26 |
Sergey Vasilinets | 8cf6fc5 | 2020-03-11 18:40:13 +0000 | [diff] [blame] | 61 | } |
Sergey Vasilinets | 95f91db | 2020-01-13 20:21:29 +0000 | [diff] [blame] | 62 | sourceSets { |
| 63 | main.resources.srcDirs += "src/main/proto" |
| 64 | } |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 65 | namespace = "androidx.sqlite.inspection" |
Jakub Gielzak | 44a83b9 | 2019-10-29 12:47:35 +0000 | [diff] [blame] | 66 | } |