Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 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 | |
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 | */ |
Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 24 | import androidx.build.LibraryType |
| 25 | |
| 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
Josep del Río | 2e29ec0 | 2023-08-07 20:07:31 +0100 | [diff] [blame] | 29 | id("org.jetbrains.kotlin.android") |
Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | dependencies { |
Aurimas Liutikas | 96f0b30 | 2024-07-25 15:49:23 -0700 | [diff] [blame] | 33 | api("androidx.annotation:annotation:1.8.1") |
Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 34 | |
Josep del Río | a5869e4 | 2023-06-14 02:12:52 +0100 | [diff] [blame] | 35 | implementation("androidx.core:core:1.10.1") |
| 36 | |
Josep del Río | 2e29ec0 | 2023-08-07 20:07:31 +0100 | [diff] [blame] | 37 | testImplementation(libs.robolectric) |
| 38 | testImplementation(libs.testCore) |
| 39 | testImplementation(libs.testExtJunit) |
| 40 | testImplementation(libs.testRules) |
| 41 | testImplementation(libs.testRunner) |
| 42 | testImplementation(libs.truth) |
| 43 | testImplementation(libs.junit) |
| 44 | testImplementation(libs.kotlinCoroutinesTest) |
| 45 | testImplementation(libs.kotlinTest) |
| 46 | testImplementation(libs.kotlinReflect) |
| 47 | |
Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | android { |
| 51 | defaultConfig { |
Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 52 | } |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 53 | namespace = "androidx.input.motionprediction" |
Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 57 | name = "Motion Prediction" |
Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 58 | type = LibraryType.PUBLISHED_LIBRARY |
| 59 | mavenVersion = LibraryVersions.INPUT_MOTIONPREDICTION |
Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 60 | inceptionYear = "2022" |
| 61 | description = "reduce the latency of input interactions by predicting future MotionEvents" |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 62 | legacyDisableKotlinStrictApiMode = true |
Julia McClellan | 81a46bc | 2024-12-03 14:42:36 -0500 | [diff] [blame] | 63 | // TODO: b/326456246 |
| 64 | optOutJSpecify = true |
Josep del Río | 48ca6e6 | 2022-10-07 20:25:19 +0100 | [diff] [blame] | 65 | } |