build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 27
  4. buildToolsVersion "27.0.2"
  5. defaultConfig {
  6. minSdkVersion 18
  7. targetSdkVersion 27
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. javaCompileOptions {
  12. annotationProcessorOptions {
  13. arguments = [AROUTER_MODULE_NAME: project.getName()]
  14. }
  15. }
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. }
  24. dependencies {
  25. compile fileTree(dir: 'libs', include: ['*.jar'])
  26. compile 'com.android.support:appcompat-v7:27.1.0'
  27. testCompile 'junit:junit:4.12'
  28. androidTestCompile('com.android.support.test.espresso:espresso-core:3.0.2', {
  29. exclude group: 'com.android.support', module: 'support-annotations'
  30. })
  31. compile project(':common')
  32. /* 模块路由 */
  33. compile 'com.alibaba:arouter-api:1.4.0'
  34. annotationProcessor 'com.alibaba:arouter-compiler:1.2.1'
  35. /* 视图注入 */
  36. compile 'com.jakewharton:butterknife:8.8.1'
  37. annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
  38. }