1/* 2 * Copyright (C) <YEAR> 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 id("com.android.library") 32} 33 34androidXMultiplatform { 35 androidTarget() 36 jvmStubs() 37 linuxX64Stubs() 38 39 defaultPlatform(PlatformIdentifier.ANDROID) 40 41 sourceSets { 42 commonMain { 43 dependencies { 44 implementation(libs.kotlinStdlib) 45 } 46 } 47 48 commonTest { 49 dependencies { 50 } 51 } 52 53 jvmMain { 54 dependsOn(commonMain) 55 dependencies { 56 implementation(libs.testRules) 57 implementation(libs.testRunner) 58 implementation(libs.junit) 59 implementation(libs.truth) 60 } 61 } 62 63 androidMain { 64 dependsOn(jvmMain) 65 dependencies { 66 api("androidx.annotation:annotation:1.8.1") 67 } 68 } 69 70 jvmTest { 71 dependsOn(commonTest) 72 dependencies { 73 } 74 } 75 76 androidInstrumentedTest { 77 dependsOn(jvmTest) 78 dependencies { 79 implementation(libs.testRules) 80 implementation(libs.testRunner) 81 implementation(libs.junit) 82 implementation(libs.truth) 83 } 84 } 85 86 commonStubsMain { 87 dependsOn(commonMain) 88 } 89 90 jvmStubsMain { 91 dependsOn(commonStubsMain) 92 } 93 94 linuxx64StubsMain { 95 dependsOn(commonStubsMain) 96 } 97 } 98} 99 100android { 101 namespace "<PACKAGE>" 102} 103 104androidx { 105 name = "<NAME>" 106 type = SoftwareType.<LIBRARY_TYPE> 107 mavenVersion = LibraryVersions.<GROUPID> 108 inceptionYear = "<YEAR>" 109 description = "<DESCRIPTION>" 110} 111