1/* 2 * Copyright 2020 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 17/** 18 * This file was created using the `create_project.py` script located in the 19 * `<AndroidX root>/development/project-creator` directory. 20 * 21 * Please use that script when creating a new project, rather than copying an existing project and 22 * modifying its settings. 23 */ 24 25import androidx.build.SoftwareType 26import androidx.build.PlatformIdentifier 27 28plugins { 29 id("AndroidXPlugin") 30 id("AndroidXComposePlugin") 31} 32 33androidXMultiplatform { 34 androidLibrary { 35 namespace = "androidx.compose.material.ripple" 36 withAndroidTestOnDeviceBuilder { 37 it.compilationName = "instrumentedTest" 38 it.defaultSourceSetName = "androidInstrumentedTest" 39 it.sourceSetTreeName = "test" 40 } 41 withAndroidTestOnJvmBuilder { 42 it.defaultSourceSetName = "androidUnitTest" 43 } 44 45 compileSdk = 35 46 aarMetadata.minCompileSdk = 35 47 } 48 jvmStubs() 49 linuxX64Stubs() 50 51 defaultPlatform(PlatformIdentifier.ANDROID) 52 53 sourceSets { 54 commonMain { 55 dependencies { 56 implementation(libs.kotlinStdlib) 57 api("androidx.compose.foundation:foundation:1.7.1") 58 api(project(":compose:runtime:runtime")) 59 60 implementation(project(":collection:collection")) 61 implementation("androidx.compose.animation:animation:1.7.1") 62 implementation("androidx.compose.ui:ui-util:1.7.1") 63 } 64 } 65 66 commonTest { 67 dependencies { 68 } 69 } 70 71 jvmMain { 72 dependsOn(commonMain) 73 dependencies { 74 } 75 } 76 77 androidMain { 78 dependsOn(jvmMain) 79 dependencies { 80 } 81 } 82 83 commonStubsMain { 84 dependsOn(commonMain) 85 } 86 87 jvmStubsMain { 88 dependsOn(commonStubsMain) 89 } 90 91 linuxx64StubsMain { 92 dependsOn(commonStubsMain) 93 } 94 95 androidInstrumentedTest { 96 dependsOn(commonTest) 97 dependencies { 98 implementation(project(":compose:test-utils")) 99 implementation(project(":compose:foundation:foundation")) 100 implementation(libs.testRules) 101 implementation(libs.testRunner) 102 implementation(libs.junit) 103 implementation(libs.truth) 104 } 105 } 106 107 androidUnitTest { 108 dependsOn(commonTest) 109 dependencies { 110 implementation(libs.testRules) 111 implementation(libs.testRunner) 112 implementation(libs.junit) 113 implementation(libs.truth) 114 } 115 } 116 } 117} 118 119androidx { 120 name = "Compose Material Ripple" 121 type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS 122 mavenVersion = LibraryVersions.COMPOSE 123 inceptionYear = "2020" 124 description = "Material ripple used to build interactive components" 125 legacyDisableKotlinStrictApiMode = true 126} 127 128