build.gradle.kts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. plugins {
  2. kotlin("multiplatform")
  3. id("com.android.application")
  4. id("org.jetbrains.compose")
  5. }
  6. kotlin {
  7. android {
  8. compilations.all {
  9. kotlinOptions {
  10. jvmTarget = "1.8"
  11. }
  12. }
  13. }
  14. sourceSets {
  15. val androidMain by getting {
  16. dependencies {
  17. implementation(project(":shared"))
  18. }
  19. }
  20. }
  21. }
  22. android {
  23. compileSdk = (findProperty("android.compileSdk") as String).toInt()
  24. namespace = "com.myapplication"
  25. sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
  26. defaultConfig {
  27. applicationId = "com.myapplication.MyApplication"
  28. minSdk = (findProperty("android.minSdk") as String).toInt()
  29. targetSdk = (findProperty("android.targetSdk") as String).toInt()
  30. versionCode = 1
  31. versionName = "1.0"
  32. }
  33. compileOptions {
  34. sourceCompatibility = JavaVersion.VERSION_1_8
  35. targetCompatibility = JavaVersion.VERSION_1_8
  36. }
  37. }