This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

at master 2.6 kB View raw
1import org.jetbrains.compose.ExperimentalComposeLibrary 2import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree 3 4plugins { 5 alias(libs.plugins.multiplatform) 6 alias(libs.plugins.compose.compiler) 7 alias(libs.plugins.compose) 8 alias(libs.plugins.android.application) 9} 10 11kotlin { 12 androidTarget { 13 //https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-test.html 14 instrumentedTestVariant.sourceSetTree.set(KotlinSourceSetTree.test) 15 } 16 17 listOf( 18 iosX64(), 19 iosArm64(), 20 iosSimulatorArm64() 21 ).forEach { target -> 22 target.binaries.framework { 23 baseName = "ComposeApp" 24 // Default KMP behavior (dynamic framework). Library's cinterop 25 // linkerOpts supply -ObjC at framework link time to preserve MLKit 26 // ObjC category metadata inside the dylib; the consumer iOS app 27 // just loads the framework at runtime and categories are already 28 // registered. No consumer-side flags / build phases required. 29 isStatic = false 30 } 31 } 32 33 sourceSets { 34 commonMain.dependencies { 35 implementation(compose.runtime) 36 implementation(compose.foundation) 37 implementation(compose.material3) 38 implementation(compose.components.resources) 39 implementation(compose.components.uiToolingPreview) 40 implementation(project(":posedetection")) 41 implementation(libs.filekit.core) 42 implementation(libs.filekit.dialogs) 43 implementation(libs.filekit.dialogs.compose) 44 implementation(libs.compose.multiplatform.media.player) 45 } 46 47 commonTest.dependencies { 48 implementation(kotlin("test")) 49 @OptIn(ExperimentalComposeLibrary::class) 50 implementation(compose.uiTest) 51 } 52 53 androidMain.dependencies { 54 implementation(compose.uiTooling) 55 implementation(libs.androidx.activityCompose) 56 implementation(libs.androidx.media3.common.ktx) 57 } 58 59 } 60} 61 62android { 63 namespace = "com.nate.posedetection" 64 compileSdk = 36 65 66 defaultConfig { 67 minSdk = 24 68 targetSdk = 36 69 70 applicationId = "com.nate.posedetection.androidApp" 71 versionCode = 1 72 versionName = "1.0.0" 73 74 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" 75 } 76} 77 78//https://developer.android.com/develop/ui/compose/testing#setup 79dependencies { 80 androidTestImplementation(libs.androidx.uitest.junit4) 81 debugImplementation(libs.androidx.uitest.testManifest) 82}