build.gradle 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 24
  4. buildToolsVersion "25.0.2"
  5. defaultConfig {
  6. applicationId "io.github.sdlpal"
  7. minSdkVersion 10
  8. targetSdkVersion 12
  9. externalNativeBuild {
  10. ndkBuild {
  11. arguments "NDK_APPLICATION_MK:=src/main/cpp/Application.mk"
  12. abiFilters "armeabi-v7a", "x86"
  13. }
  14. }
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled true
  19. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  20. }
  21. debug {
  22. jniDebuggable true
  23. externalNativeBuild {
  24. ndkBuild {
  25. cFlags "-DDEBUG", "-g"
  26. cppFlags "-DDEBUG", "-g"
  27. }
  28. }
  29. }
  30. }
  31. externalNativeBuild {
  32. ndkBuild {
  33. path 'src/main/cpp/Android.mk'
  34. }
  35. }
  36. sourceSets {
  37. main.java.srcDirs += 'src/main/java'
  38. }
  39. }