Created
July 13, 2022 10:34
-
-
Save buijs-dev/ee6b2ae4df8459c20b322bccf2bcc0aa to your computer and use it in GitHub Desktop.
nosuchmethod issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//root/build.gradle.kts | |
buildscript { | |
repositories { | |
gradlePluginPortal() | |
google() | |
mavenCentral() | |
maven { url = uri("https://repsy.io/mvn/buijs-dev/klutter") } | |
} | |
dependencies { | |
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10") | |
classpath("com.android.tools.build:gradle:7.2.1") | |
classpath("dev.buijs.klutter:core:0.16.0") | |
classpath("dev.buijs.klutter.gradle:dev.buijs.klutter.gradle.gradle.plugin:0.16.0") | |
} | |
} | |
repositories { | |
google() | |
gradlePluginPortal() | |
mavenCentral() | |
maven { url = uri("https://repsy.io/mvn/buijs-dev/klutter") } | |
} | |
//root/platform/settings.gradle.kts | |
plugins { | |
id("com.android.library") | |
id("dev.buijs.klutter.gradle") | |
kotlin("multiplatform") | |
kotlin("native.cocoapods") | |
kotlin("plugin.serialization") version "1.7.0" | |
} | |
version = "1.0" | |
klutter { | |
root = rootProject.rootDir | |
plugin { | |
name = "kompose3" | |
} | |
} | |
kotlin { | |
android() | |
iosX64() | |
iosArm64() | |
cocoapods { | |
summary = "Some description for the Shared Module" | |
homepage = "Link to the Shared Module homepage" | |
ios.deploymentTarget = "14.1" | |
framework { | |
baseName = "Platform" | |
} | |
} | |
sourceSets { | |
val commonMain by getting { | |
dependencies { | |
api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3") | |
api("dev.buijs.klutter:annotations:0.16.0") | |
} | |
} | |
val commonTest by getting { | |
dependencies { | |
implementation(kotlin("test-common")) | |
implementation(kotlin("test-annotations-common")) | |
implementation(kotlin("test-junit")) | |
implementation("junit:junit:4.13.2") | |
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.0") | |
} | |
} | |
val androidMain by getting { | |
dependencies { | |
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.0") | |
} | |
} | |
val androidTest by getting { | |
dependencies { | |
implementation(kotlin("test-junit")) | |
implementation("junit:junit:4.13.2") | |
} | |
} | |
val iosX64Main by getting | |
val iosArm64Main by getting | |
val iosMain by creating { | |
dependsOn(commonMain) | |
iosX64Main.dependsOn(this) | |
iosArm64Main.dependsOn(this) | |
dependencies {} | |
} | |
val iosX64Test by getting | |
val iosArm64Test by getting | |
val iosTest by creating { | |
dependsOn(commonTest) | |
iosX64Test.dependsOn(this) | |
iosArm64Test.dependsOn(this) | |
} | |
} | |
} | |
android { | |
compileSdk = 31 | |
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml") | |
sourceSets["main"].kotlin { srcDirs("src/androidMain/kotlin") } | |
defaultConfig { | |
minSdk = 21 | |
targetSdk = 31 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment