build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apply plugin: 'com.android.library'
  2. group='com.github.freyskill'
  3. android {
  4. compileSdkVersion 28
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 28
  8. versionCode 1
  9. versionName "1.0"
  10. multiDexEnabled true
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. externalNativeBuild {
  13. cmake {
  14. cppFlags ""
  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. cmake {
  26. path "src/main/cpp/CMakeLists.txt"
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. packagingOptions {
  34. exclude 'META-INF/DEPENDENCIES'
  35. exclude 'META-INF/NOTICE'
  36. exclude 'META-INF/NOTICE.txt'
  37. exclude 'META-INF/LICENSE'
  38. exclude 'META-INF/LICENSE.txt'
  39. }
  40. }
  41. dependencies {
  42. implementation fileTree(include: ['*.jar'], dir: 'libs')
  43. implementation 'com.android.support:appcompat-v7:28.0.0'
  44. testImplementation 'junit:junit:4.12'
  45. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  46. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  47. }