build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. namespace 'net.typeblog.lpac_jni'
  7. compileSdk 33
  8. defaultConfig {
  9. minSdk 27
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. consumerProguardFiles "consumer-rules.pro"
  12. externalNativeBuild {
  13. ndkBuild {
  14. arguments '-j4'
  15. }
  16. }
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. externalNativeBuild {
  25. ndkBuild {
  26. path "src/main/jni/Android.mk"
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. kotlinOptions {
  34. jvmTarget = '1.8'
  35. }
  36. }
  37. dependencies {
  38. implementation 'androidx.core:core-ktx:1.12.0'
  39. implementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.0')
  40. implementation 'androidx.appcompat:appcompat:1.6.1'
  41. implementation 'com.google.android.material:material:1.10.0'
  42. testImplementation 'junit:junit:4.13.2'
  43. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  44. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  45. }