| /** |
| * This file was created using the `create_project.py` script located in the |
| * `<AndroidX root>/development/project-creator` directory. |
| * |
| * Please use that script when creating a new project, rather than copying an existing project and |
| * modifying its settings. |
| */ |
| |
| import androidx.build.LibraryType |
| import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| id("kotlin-android") |
| } |
| |
| android { |
| testOptions { |
| unitTests { |
| includeAndroidResources = true |
| } |
| } |
| buildTypes.configureEach { |
| consumerProguardFiles "proguard-rules.pro" |
| } |
| namespace = "androidx.fragment" |
| } |
| |
| dependencies { |
| api(libs.jspecify) |
| api("androidx.annotation:annotation:1.8.1") |
| api("androidx.core:core-ktx:1.8.0") |
| api("androidx.collection:collection:1.4.2") |
| api("androidx.viewpager:viewpager:1.0.0") |
| api("androidx.loader:loader:1.0.0") |
| api("androidx.activity:activity:1.8.1") |
| api("androidx.lifecycle:lifecycle-common:2.6.1") |
| api("androidx.lifecycle:lifecycle-runtime:2.6.1") |
| api("androidx.lifecycle:lifecycle-livedata-core:2.6.1") |
| api("androidx.lifecycle:lifecycle-viewmodel:2.6.1") |
| api("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.1") |
| implementation("androidx.profileinstaller:profileinstaller:1.4.0") |
| api("androidx.savedstate:savedstate:1.2.1") |
| api("androidx.annotation:annotation-experimental:1.4.1") |
| api(libs.kotlinStdlib) |
| implementation("androidx.arch.core:core-common:2.2.0") |
| |
| androidTestImplementation("androidx.appcompat:appcompat:1.1.0", { |
| exclude group: "androidx.fragment", module: "fragment" |
| exclude group: "androidx.activity", module: "activity" |
| }) |
| androidTestImplementation(libs.kotlinStdlib) |
| androidTestImplementation(libs.leakcanaryInstrumentation) |
| androidTestImplementation(libs.hamcrestCore) |
| androidTestImplementation(libs.junit) |
| androidTestImplementation(libs.testExtJunit) |
| androidTestImplementation(libs.testCore) |
| androidTestImplementation(libs.testMonitor) |
| androidTestImplementation(libs.testRunner) |
| androidTestImplementation(libs.testRules) |
| androidTestImplementation(libs.truth) |
| androidTestImplementation(libs.espressoCore) |
| androidTestImplementation(libs.mockitoCore) |
| androidTestImplementation(libs.dexmakerMockito) |
| androidTestImplementation(project(":internal-testutils-runtime"), { |
| exclude group: "androidx.fragment", module: "fragment" |
| }) |
| |
| testImplementation(project(":fragment:fragment")) |
| testImplementation(libs.kotlinStdlib) |
| testImplementation(libs.junit) |
| testRuntimeOnly(libs.testCore) |
| testImplementation(libs.truth) |
| testImplementation(libs.robolectric) |
| |
| lintPublish(project(":fragment:fragment-lint")) |
| } |
| |
| androidx { |
| name = "fragment" |
| type = LibraryType.PUBLISHED_LIBRARY |
| inceptionYear = "2011" |
| description = "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren\'t a part of the framework APIs. Compatible on devices running API 14 or later." |
| legacyDisableKotlinStrictApiMode = true |
| } |