build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }
  40. dependencies {
  41. compile fileTree(dir: 'libs', include: ['*.jar'])
  42. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  43. exclude group: 'com.android.support', module: 'support-annotations'
  44. })
  45. compile 'com.android.support:appcompat-v7:25.3.1'
  46. compile 'com.android.support:gridlayout-v7:25.3.1'
  47. compile 'com.android.support:design:25.3.1'
  48. }