build.gradle 990 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 33
  5. buildToolsVersion "33.0.2"
  6. ndkVersion "25.2.9519653"
  7. defaultConfig {
  8. applicationId "imgui.example.android"
  9. namespace "imgui.example.android"
  10. minSdkVersion 24
  11. targetSdkVersion 33
  12. versionCode 1
  13. versionName "1.0"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_11
  23. targetCompatibility JavaVersion.VERSION_11
  24. }
  25. kotlinOptions {
  26. jvmTarget="11"
  27. }
  28. externalNativeBuild {
  29. cmake {
  30. path "../../CMakeLists.txt"
  31. version '3.22.1'
  32. }
  33. }
  34. }
  35. repositories {
  36. mavenCentral()
  37. }
  38. dependencies {
  39. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  40. }