1/*
2 * Copyright (C) 2024 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
17import androidx.build.SoftwareType
18import androidx.build.PlatformIdentifier
19
20plugins {
21    id("AndroidXPlugin")
22    id("com.android.library")
23}
24
25androidXMultiplatform {
26    androidTarget()
27
28    defaultPlatform(PlatformIdentifier.ANDROID)
29
30    sourceSets {
31        androidMain {
32            dependencies {
33                implementation("androidx.collection:collection:1.4.3")
34                implementation("androidx.core:core:1.16.0-rc01")
35                implementation("androidx.core:core-ktx:1.16.0-rc01")
36                implementation(project(":ink:ink-nativeloader"))
37                implementation(project(":ink:ink-geometry"))
38                implementation(project(":ink:ink-brush"))
39                implementation(project(":ink:ink-strokes"))
40            }
41        }
42
43        androidInstrumentedTest {
44            dependencies {
45                implementation(libs.testExtJunit)
46                implementation(libs.testRules)
47                implementation(libs.testRunner)
48                implementation(libs.espressoCore)
49                implementation(libs.junit)
50                implementation(libs.truth)
51                implementation("androidx.core:core-ktx:1.15.0")
52                implementation(project(":test:screenshot:screenshot"))
53            }
54        }
55    }
56}
57
58android {
59    namespace = "androidx.ink.rendering"
60    compileSdk = 35
61}
62
63androidx {
64    name = "Ink Rendering"
65    type = SoftwareType.PUBLISHED_LIBRARY
66    inceptionYear = "2024"
67    description = "Display beautiful strokes"
68    addGoldenImageAssets()
69}
70