build.gradle 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion rootProject.ext.android.compileSdkVersion
  4. buildToolsVersion rootProject.ext.android.buildToolsVersion
  5. signingConfigs {
  6. release {
  7. keyAlias 'phonelive'
  8. keyPassword 'phonelive'
  9. storeFile file('../education.jks')
  10. storePassword 'phonelive'
  11. }
  12. }
  13. defaultConfig {
  14. applicationId rootProject.ext.android.applicationId
  15. minSdkVersion rootProject.ext.android.minSdkVersion
  16. targetSdkVersion rootProject.ext.android.targetSdkVersion
  17. versionCode rootProject.ext.android.versionCode
  18. versionName rootProject.ext.android.versionName
  19. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  20. manifestPlaceholders = rootProject.ext.manifestPlaceholders
  21. multiDexEnabled true
  22. ndk {
  23. abiFilters "armeabi-v7a","arm64-v8a"
  24. }
  25. javaCompileOptions {
  26. annotationProcessorOptions {
  27. arguments = [AROUTER_MODULE_NAME: project.getName()]
  28. }
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. buildTypes {
  36. release {
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. }
  40. debug {
  41. signingConfig signingConfigs.release
  42. }
  43. }
  44. }
  45. dependencies {
  46. implementation fileTree(dir: 'libs', include: ['*.jar'])
  47. api 'com.android.support.constraint:constraint-layout:1.1.3'
  48. api 'com.trello.rxlifecycle2:rxlifecycle:2.2.1'
  49. api 'com.trello.rxlifecycle2:rxlifecycle-android:2.2.1'
  50. api 'com.trello.rxlifecycle2:rxlifecycle-components:2.2.1'
  51. annotationProcessor rootProject.ext.dependencies["butterknife-compiler"]
  52. annotationProcessor rootProject.ext.dependencies["arouter-compiler"]
  53. api project(':main')
  54. api 'com.github.moduth:blockcanary-android:1.1.0'
  55. // 如果只想在debug包看到弹出notification
  56. debugApi 'com.github.moduth:blockcanary-ui:1.1.0'
  57. }