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
32        androidMain {
33            dependencies {
34                implementation("androidx.collection:collection:1.4.3")
35                implementation("androidx.graphics:graphics-core:1.0.3")
36                implementation("androidx.fragment:fragment-ktx:1.5.7")
37                implementation("androidx.test.espresso:espresso-idling-resource:3.5.0")
38                implementation("androidx.core:core:1.16.0-rc01")
39                implementation("androidx.core:core-ktx:1.16.0-rc01")
40                implementation(project(":ink:ink-nativeloader"))
41                implementation(project(":ink:ink-geometry"))
42                implementation(project(":ink:ink-brush"))
43                implementation(project(":ink:ink-strokes"))
44                implementation(project(":ink:ink-rendering"))
45            }
46        }
47
48        androidInstrumentedTest {
49            dependencies {
50                implementation(libs.testExtJunit)
51                implementation(libs.testRules)
52                implementation(libs.testRunner)
53                implementation(libs.espressoCore)
54                implementation(libs.junit)
55                implementation(libs.kotlinTest)
56                implementation(libs.mockitoCore4)
57                implementation(libs.mockitoKotlin4)
58                implementation(libs.dexmakerMockito)
59                implementation(libs.truth)
60                implementation(project(":test:screenshot:screenshot"))
61            }
62        }
63    }
64}
65
66android {
67    namespace = "androidx.ink.authoring"
68    compileSdk = 35
69}
70
71androidx {
72    name = "Ink Authoring"
73    type = SoftwareType.PUBLISHED_LIBRARY
74    inceptionYear = "2024"
75    description = "Author beautiful strokes"
76    addGoldenImageAssets()
77}
78