build.gradle 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'org.jetbrains.kotlin.android'
  3. android {
  4. compileSdkVersion 33
  5. buildToolsVersion '30.0.3'
  6. defaultConfig {
  7. applicationId "com.dar.nbook"
  8. minSdkVersion 21
  9. targetSdkVersion 33
  10. versionCode 301002
  11. multiDexEnabled true
  12. versionName "3.0.1-stable"
  13. vectorDrawables.useSupportLibrary true
  14. proguardFiles 'proguard-rules.pro'
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled true
  19. shrinkResources true
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
  21. versionNameSuffix "-release"
  22. resValue "string", "app_name", "NBook"
  23. }
  24. debug {
  25. // applicationIdSuffix ".debug"
  26. versionNameSuffix "-debug"
  27. resValue "string", "app_name", "NBook Debug"
  28. }
  29. }
  30. compileOptions {
  31. sourceCompatibility JavaVersion.VERSION_17
  32. targetCompatibility JavaVersion.VERSION_17
  33. }
  34. lint {
  35. abortOnError false
  36. checkReleaseBuilds false
  37. }
  38. namespace 'com.dar.nbook'
  39. kotlinOptions {
  40. jvmTarget = '17'
  41. }
  42. buildFeatures {
  43. compose true
  44. }
  45. composeOptions {
  46. kotlinCompilerExtensionVersion '1.4.3'
  47. }
  48. packagingOptions {
  49. resources {
  50. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  51. }
  52. }
  53. viewBinding {
  54. enabled = true
  55. }
  56. }
  57. dependencies {
  58. // AndroidX
  59. implementation 'androidx.appcompat:appcompat:1.6.1'
  60. implementation 'androidx.cardview:cardview:1.0.0'
  61. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  62. implementation 'androidx.fragment:fragment:1.5.6'
  63. implementation 'androidx.preference:preference:1.2.0'
  64. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  65. implementation 'androidx.recyclerview:recyclerview:1.3.0'
  66. implementation 'com.google.android.material:material:1.8.0'
  67. // Other
  68. implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.12.12'//Because of min SDK
  69. implementation 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
  70. //implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  71. implementation 'org.jsoup:jsoup:1.15.4'
  72. implementation 'ch.acra:acra-core:5.7.0'
  73. implementation('com.github.bumptech.glide:glide:4.15.0') {
  74. exclude group: "com.android.support"
  75. }
  76. implementation "androidx.multidex:multidex:2.0.1"
  77. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  78. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
  79. implementation 'androidx.activity:activity-compose:1.5.1'
  80. implementation platform('androidx.compose:compose-bom:2022.10.00')
  81. implementation 'androidx.compose.ui:ui'
  82. implementation 'androidx.compose.ui:ui-graphics'
  83. implementation 'androidx.compose.ui:ui-tooling-preview'
  84. implementation 'androidx.compose.material3:material3'
  85. androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
  86. androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
  87. annotationProcessor 'com.github.bumptech.glide:compiler:4.15.0'
  88. implementation 'com.github.yukuku:ambilwarna:2.0.1'
  89. implementation 'me.zhanghai.android.fastscroll:library:1.2.0'
  90. implementation 'net.opacapp:multiline-collapsingtoolbar:27.1.1'
  91. implementation 'com.zeugmasolutions.localehelper:locale-helper-android:1.5.1'
  92. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  93. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  94. debugImplementation 'androidx.compose.ui:ui-tooling'
  95. debugImplementation 'androidx.compose.ui:ui-test-manifest'
  96. implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.10'
  97. implementation 'androidx.core:core-ktx:1.10.1'
  98. implementation 'com.louiscad.splitties:splitties-fun-pack-android-base:3.0.0'
  99. implementation 'com.louiscad.splitties:splitties-fun-pack-android-material-components:3.0.0'
  100. implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
  101. implementation 'com.adjust.sdk:adjust-android:4.33.4'
  102. implementation 'com.android.installreferrer:installreferrer:2.2'
  103. implementation 'com.adjust.sdk:adjust-android-webbridge:4.33.4'
  104. }