plugins { kotlin("multiplatform") version "1.8.10" id("com.android.library") id("EmojiPlugin") id("maven-publish") } group = "dev.usbharu" version = "1.0-SNAPSHOT" repositories { google() mavenCentral() } kotlin { jvm { jvmToolchain(8) testRuns["test"].executionTask.configure { useJUnitPlatform() } } js(BOTH) { browser() nodejs() } android() sourceSets { val commonMain by getting { sourceSets["commonMain"].kotlin.srcDir("build/generated/source/emoji/main/kotlin") kotlin.srcDir("build/generated/emoji/source/main/kotlin") } val commonTest by getting { dependencies { implementation(kotlin("test")) } } val jvmMain by getting val jvmTest by getting val jsMain by getting val jsTest by getting val androidMain by getting val androidTest by getting { dependencies { implementation("junit:junit:4.13.2") } } } } 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 } lintOptions { isAbortOnError = false } } publishing{ repositories{ maven{ name = "GitHubPackages" url = uri("https://maven.pkg.github.com/multim-dev/emoji-kt") credentials { username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME") password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN") } } } }