build.gradle.kts 907 B

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