1/** 2 * This file was created using the `create_project.py` script located in the 3 * `<AndroidX root>/development/project-creator` directory. 4 * 5 * Please use that script when creating a new project, rather than copying an existing project and 6 * modifying its settings. 7 */ 8import androidx.build.PlatformIdentifier 9import androidx.build.SoftwareType 10import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType 11import org.jetbrains.kotlin.gradle.plugin.mpp.BitcodeEmbeddingMode 12 13plugins { 14 id("AndroidXPlugin") 15} 16 17androidXMultiplatform { 18 // needed for snapshot publishing to trigger component creation 19 jvm() 20 // default platform is not JVM but we need to use it because it is 21 // the only platform built on all machines 22 defaultPlatform(PlatformIdentifier.JVM) 23 ios { 24 compilations.main { 25 cinterops { 26 xcTestInterop { 27 defFile project.file("src/nativeInterop/cinterop/xcTestInterop.def") 28 // https://youtrack.jetbrains.com/issue/KT-48807#focus=Comments-27-5210791.0-0 29 compilerOpts("-DNS_FORMAT_ARGUMENT(A)=") 30 } 31 } 32 } 33 binaries.framework { 34 baseName = "AndroidXBenchmarkXCTest" 35 // https://youtrack.jetbrains.com/issue/KT-48552 36 embedBitcode = BitcodeEmbeddingMode.DISABLE 37 } 38 } 39 sourceSets { 40 // Need a source file to force a klib creation. 41 // see: https://youtrack.jetbrains.com/issue/KT-52344 42 darwinMain { 43 dependsOn(commonMain) 44 } 45 targets.configureEach { target -> 46 if (target.platformType == KotlinPlatformType.native) { 47 target.compilations["main"].defaultSourceSet { 48 dependsOn(darwinMain) 49 } 50 } 51 } 52 } 53} 54 55androidx { 56 name = "Benchmarks - Darwin Core" 57 type = SoftwareType.SNAPSHOT_ONLY_LIBRARY 58 inceptionYear = "2022" 59 description = "AndroidX Benchmarks - Darwin Core" 60} 61