build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 30
  4. defaultConfig {
  5. minSdkVersion 19
  6. targetSdkVersion 30
  7. versionCode 1
  8. versionName "1.0"
  9. externalNativeBuild {
  10. cmake {
  11. arguments '-DANDROID_TOOLCHAIN=clang'
  12. }
  13. }
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. externalNativeBuild {
  22. cmake {
  23. path "src/main/cpp/CMakeLists.txt"
  24. }
  25. }
  26. compileOptions {
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. }
  30. ndkVersion '22.1.7171670'
  31. buildToolsVersion '30.0.2'
  32. }
  33. dependencies {
  34. implementation fileTree(dir: 'libs', include: ['*.jar'])
  35. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  36. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  37. testImplementation 'junit:junit:4.13.2'
  38. implementation 'androidx.appcompat:appcompat:1.3.0'
  39. }