blob: 4fd9f06f39cbee5c33ca8260011409ff6d079252 [file] [log] [blame]
/*
* Copyright (C) 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import androidx.build.LibraryType
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("androidx.stableaidl")
id("kotlin-android")
}
dependencies {
api(libs.guavaAndroid)
api(libs.kotlinCoroutinesCore)
api("androidx.fragment:fragment-ktx:1.8.1")
api("com.google.android.material:material:1.6.0")
implementation(libs.kotlinStdlib)
implementation("androidx.exifinterface:exifinterface:1.3.2")
testImplementation(project(":pdf:pdf-viewer-fragment"))
testImplementation(libs.junit)
testImplementation(libs.testCore)
testImplementation(libs.testRunner)
testImplementation(libs.junit)
testImplementation(libs.mockitoCore4)
testImplementation(libs.robolectric)
testImplementation(libs.truth)
testImplementation(libs.guavaTestlib)
testImplementation(libs.testExtTruth)
testImplementation(libs.testExtJunitKtx)
testImplementation("androidx.fragment:fragment-testing:1.7.1")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
androidTestImplementation(libs.testExtJunit)
androidTestImplementation(libs.junit)
androidTestImplementation(libs.testCore)
androidTestImplementation(libs.testRules)
androidTestImplementation(libs.testRunner)
androidTestImplementation(libs.junit)
androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) // DexMaker has it"s own MockMaker
androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) // DexMaker has it"s own MockMaker
androidTestImplementation(libs.truth)
androidTestImplementation(libs.espressoCore)
}
android {
namespace "androidx.pdf"
defaultConfig {
minSdk 35 //TODO: Set to 31 after sdk extension 13 release
compileSdk 35
targetSdk 35 //TODO: Remove after sdk extension 13 release
}
buildFeatures {
aidl = true
}
buildTypes.configureEach {
stableAidl {
version 1
}
}
sourceSets {
test {
assets {
srcDirs += ["src/test/assets"]
}
resources {
srcDirs += ["src/test/res"]
}
}
}
}
androidx {
name = "androidx.pdf:pdf-viewer"
type = LibraryType.PUBLISHED_LIBRARY
inceptionYear = "2023"
description = "add pdf viewing to their apps."
}