build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion versions.compileSdk
  5. buildToolsVersion versions.buildToolsVersion
  6. defaultConfig {
  7. minSdkVersion versions.minSdk
  8. targetSdkVersion versions.targetSdk
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles 'consumer-rules.pro'
  13. vectorDrawables.useSupportLibrary = true
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. kotlinOptions {
  26. freeCompilerArgs = ['-Xjvm-default=enable']
  27. jvmTarget = JavaVersion.VERSION_1_8
  28. }
  29. lintOptions {
  30. checkReleaseBuilds false
  31. }
  32. dexOptions {
  33. preDexLibraries true
  34. maxProcessCount 8
  35. }
  36. }
  37. configurations.all {
  38. resolutionStrategy.force 'androidx.activity:activity:1.1.0'
  39. resolutionStrategy.force 'androidx.core:core:1.2.0'
  40. resolutionStrategy.force 'androidx.fragment:fragment:1.2.0'
  41. resolutionStrategy.force 'androidx.multidex:multidex:2.0.1'
  42. resolutionStrategy.force 'androidx.transition:transition:1.3.1'
  43. resolutionStrategy.force 'androidx.arch.core:core-common:2.1.0'
  44. resolutionStrategy.force 'androidx.arch.core:core-runtime:2.1.0'
  45. resolutionStrategy.force 'androidx.lifecycle:lifecycle-livedata:2.2.0'
  46. resolutionStrategy.force 'androidx.lifecycle:lifecycle-livedata-core:2.2.0'
  47. }
  48. dependencies {
  49. api fileTree(dir: 'libs', include: ['*.jar'])
  50. api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  51. //组件路由模块
  52. api 'io.github.prototypez:app-joint-core:1.7'
  53. }