build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. namespace 'com.eastpolar.cli'
  6. compileSdk 34
  7. defaultConfig {
  8. minSdk 24
  9. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  10. consumerProguardFiles "consumer-rules.pro"
  11. externalNativeBuild {
  12. cmake {
  13. cppFlags "-std=c++17"
  14. }
  15. }
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. externalNativeBuild {
  24. cmake {
  25. path "src/main/cpp/CMakeLists.txt"
  26. version "3.22.1"
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. }
  34. dependencies {
  35. implementation 'androidx.appcompat:appcompat:1.6.1'
  36. implementation 'com.google.android.material:material:1.11.0'
  37. testImplementation 'junit:junit:4.13.2'
  38. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  39. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  40. }