Skip to content

Commit

Permalink
Use Android source set layout version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed May 16, 2023
1 parent 9be9800 commit cc27747
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 25 deletions.
4 changes: 0 additions & 4 deletions box/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,4 @@ android {
abortOnError = true
warningsAsErrors = true
}

sourceSets {
getByName("main").manifest.srcFile("src/androidMain/AndroidManifest.xml")
}
}
2 changes: 0 additions & 2 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,4 @@ android {
abortOnError = true
warningsAsErrors = true
}

sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
}
4 changes: 0 additions & 4 deletions element-view/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,4 @@ android {
abortOnError = true
warningsAsErrors = true
}

sourceSets {
getByName("main").manifest.srcFile("src/androidMain/AndroidManifest.xml")
}
}
9 changes: 5 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ android.useAndroidX=true
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.resvalues=false

kotlin.js.compiler=IR

kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.androidSourceSetLayoutVersion=2

# Publication configuration
# https://github.com/vanniktech/gradle-maven-publish-plugin#setting-properties

Expand All @@ -33,7 +38,3 @@ POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=cedrickcooke
POM_DEVELOPER_NAME=Cedrick Cooke
POM_DEVELOPER_URL=https://github.com/cedrickcooke

kotlin.js.compiler=IR

kotlin.mpp.enableCInteropCommonization=true
6 changes: 1 addition & 5 deletions kanvas/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ kotlin {
}
}

val androidTest by getting {
val androidUnitTest by getting {
dependencies {
implementation(kotlin("test-junit"))
implementation(libs.androidx.test)
Expand Down Expand Up @@ -100,8 +100,4 @@ android {
abortOnError = true
warningsAsErrors = true
}

sourceSets {
getByName("main").manifest.srcFile("src/androidMain/AndroidManifest.xml")
}
}
7 changes: 1 addition & 6 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat

plugins {
Expand Down Expand Up @@ -50,7 +49,7 @@ kotlin {
}
}

val androidTest by getting {
val androidUnitTest by getting {
dependencies {
implementation(kotlin("test-junit"))
}
Expand Down Expand Up @@ -110,10 +109,6 @@ android {
disable += "MissingClass"
disable += "UnusedResources"
}

sourceSets {
getByName("main").manifest.srcFile("src/androidMain/AndroidManifest.xml")
}
}

compose.desktop {
Expand Down

0 comments on commit cc27747

Please sign in to comment.