build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 26
  4. buildToolsVersion "26.0.1"
  5. defaultConfig {
  6. applicationId "com.wdkl.launch"
  7. minSdkVersion 16
  8. targetSdkVersion 26
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. multiDexEnabled true
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. sourceSets{
  21. main{
  22. jniLibs.srcDirs=['libs']
  23. }
  24. }
  25. }
  26. allprojects {
  27. repositories {
  28. jcenter()
  29. }
  30. gradle.projectsEvaluated {
  31. tasks.withType(JavaCompile) {
  32. options.compilerArgs << '-Xbootclasspath/p:app/src/main/jniLibs/frame.jar'
  33. }
  34. }
  35. }
  36. dependencies {
  37. compile fileTree(include: ['*.jar'], dir: 'libs')
  38. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  39. exclude group: 'com.android.support', module: 'support-annotations'
  40. })
  41. compile 'com.android.support:appcompat-v7:26.+'
  42. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  43. testCompile 'junit:junit:4.12'
  44. compile 'com.jakewharton:butterknife:7.0.1'
  45. compile 'com.github.anrwatchdog:anrwatchdog:1.3.+'
  46. //hongyang okhttp
  47. compile 'com.zhy:autolayout:1.4.3'
  48. compile 'com.zhy:okhttputils:2.6.2'
  49. provided files('src/main/jniLibs/frame.jar')
  50. }