build.gradle 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 28
  6. defaultConfig {
  7. applicationId "com.kdanmobile.testpdflib"
  8. minSdkVersion 15
  9. targetSdkVersion 27
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. flavorDimensions "abi"
  25. productFlavors {
  26. armabi {
  27. dimension "abi"
  28. ndk {
  29. abiFilters "armeabi"
  30. }
  31. }
  32. armabiv7a {
  33. dimension "abi"
  34. ndk {
  35. abiFilters "armeabi-v7a"
  36. }
  37. }
  38. x86 {
  39. dimension "abi"
  40. ndk {
  41. abiFilters "x86"
  42. }
  43. }
  44. }
  45. configurations.all {
  46. resolutionStrategy.force "androidx.lifecycle:lifecycle-extensions:2.0.0"
  47. }
  48. }
  49. dependencies {
  50. def koinVersion = "2.0.0"
  51. implementation fileTree(dir: 'libs', include: ['*.jar'])
  52. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  53. implementation 'androidx.appcompat:appcompat:1.0.2'
  54. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  55. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  56. testImplementation 'junit:junit:4.12'
  57. androidTestImplementation 'androidx.test:runner:1.2.0'
  58. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  59. // Koin for Android
  60. implementation "org.koin:koin-android:$koinVersion"
  61. implementation "org.koin:koin-android-viewmodel:$koinVersion"
  62. implementation "org.koin:koin-java:$koinVersion"
  63. implementation project(':PDFReaderReaderModule')
  64. implementation project(':KdanBaseModule')
  65. }
  66. repositories {
  67. flatDir {
  68. dirs 'libs', '../PDFReaderReaderModule/libs'
  69. }
  70. }