build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 25
  4. buildToolsVersion "25.0.3"
  5. defaultConfig {
  6. applicationId "com.sdlpal.sdlpal"
  7. minSdkVersion 10
  8. targetSdkVersion 25
  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 false
  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. compile 'com.nononsenseapps:filepicker:4.1.0'
  49. }