1/*
2 * Copyright 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.KotlinTarget
18
19plugins {
20    id("AndroidXPlugin")
21    id("com.android.library")
22    id("org.jetbrains.kotlin.android")
23    id("com.google.protobuf")
24    id ("kotlin-parcelize")
25}
26
27android {
28    namespace = "androidx.datastore.testapp"
29}
30
31dependencies {
32    implementation(libs.okio)
33    implementation(libs.protobufLite)
34    implementation("androidx.lifecycle:lifecycle-service:2.6.1")
35    implementation(project(":datastore:datastore-core"))
36    implementation(project(":datastore:datastore-core-okio"))
37
38    androidTestImplementation(libs.kotlinCoroutinesTest)
39    androidTestImplementation(libs.kotlinTest)
40    androidTestImplementation(libs.truth)
41    androidTestImplementation(libs.testRunner)
42    androidTestImplementation(libs.testCore)
43    androidTestImplementation(project(":internal-testutils-truth"))
44    androidTestImplementation(project(":internal-testutils-datastore"))
45    androidTestImplementation(project(":kruth:kruth"))
46}
47
48androidx {
49    //TODO(b/407740332): Target Kotlin 2. Fails MultiProcessDataStoreIpcTest test
50    kotlinTarget = KotlinTarget.KOTLIN_1_9
51}
52