Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.jetbrains.compose.compose
- plugins {
- kotlin("multiplatform")
- id("org.jetbrains.compose") version "1.0.0-beta5"
- id("com.android.library")
- }
- group = "matei.trandafir"
- version = "1.0"
- kotlin {
- android()
- jvm("desktop") {
- compilations.all {
- kotlinOptions.jvmTarget = "11"
- }
- }
- js(IR) {
- browser()
- useCommonJs()
- }
- sourceSets {
- val commonMain by getting {
- dependencies {
- api(compose.runtime)
- api(compose.foundation)
- api(compose.material)
- }
- }
- val commonTest by getting {
- dependencies {
- implementation(kotlin("test"))
- }
- }
- val androidMain by getting {
- dependencies {
- api("androidx.appcompat:appcompat:1.4.0")
- api("androidx.core:core-ktx:1.7.0")
- }
- }
- val androidTest by getting {
- dependencies {
- implementation("junit:junit:4.13")
- }
- }
- val desktopMain by getting {
- dependencies {
- api(compose.preview)
- }
- }
- val desktopTest by getting
- }
- }
- android {
- compileSdkVersion(31)
- sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
- defaultConfig {
- minSdkVersion(24)
- targetSdkVersion(31)
- }
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- }
- }
Add Comment
Please, Sign In to add comment