Guest User

Gradle Sradle

a guest
Sep 28th, 2022
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1.  
  2. plugins {
  3. id 'com.android.application'
  4. id 'org.jetbrains.kotlin.android'
  5. }
  6.  
  7. dependencyResolutionManagement {
  8. repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
  9. repositories {
  10. google()
  11. mavenCentral()
  12. mavenLocal()
  13. }
  14. }
  15.  
  16.  
  17. android {
  18. namespace 'com.example.kotlinappstudia'
  19. compileSdk 32
  20. compileSdkVersion 32
  21.  
  22. defaultConfig {
  23. applicationId "com.example.kotlinappstudia"
  24. minSdk 29
  25. targetSdk 32
  26. versionCode 1
  27. versionName "1.0"
  28.  
  29. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  30. }
  31.  
  32. buildTypes {
  33. release {
  34. minifyEnabled false
  35. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  36. }
  37. }
  38. compileOptions {
  39. sourceCompatibility JavaVersion.VERSION_1_8
  40. targetCompatibility JavaVersion.VERSION_1_8
  41. }
  42. kotlinOptions {
  43. jvmTarget = '1.8'
  44. }
  45. }
  46.  
  47. dependencies {
  48.  
  49. implementation 'com.android.support:appcompat-v7:28.0.0'
  50.  
  51. implementation 'androidx.core:core-ktx:1.7.0'
  52. implementation 'androidx.appcompat:appcompat:1.5.1'
  53. implementation 'com.google.android.material:material:1.6.1'
  54. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  55. testImplementation 'junit:junit:4.13.2'
  56. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  57. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  58.  
  59.  
  60. def room_version = "2.4.3"
  61.  
  62. implementation("androidx.room:room-runtime:$room_version")
  63. annotationProcessor("androidx.room:room-compiler:$room_version")
  64.  
  65. // To use Kotlin annotation processing tool (kapt)
  66. kapt("androidx.room:room-compiler:$room_version")
  67. // To use Kotlin Symbol Processing (KSP)
  68. ksp("androidx.room:room-compiler:$room_version")
  69.  
  70. // optional - Kotlin Extensions and Coroutines support for Room
  71. implementation("androidx.room:room-ktx:$room_version")
  72.  
  73. // optional - RxJava2 support for Room
  74. implementation("androidx.room:room-rxjava2:$room_version")
  75.  
  76. // optional - RxJava3 support for Room
  77. implementation("androidx.room:room-rxjava3:$room_version")
  78.  
  79. // optional - Guava support for Room, including Optional and ListenableFuture
  80. implementation("androidx.room:room-guava:$room_version")
  81.  
  82. // optional - Test helpers
  83. testImplementation("androidx.room:room-testing:$room_version")
  84.  
  85. // optional - Paging 3 Integration
  86. implementation("androidx.room:room-paging:2.5.0-alpha03")
  87. }
  88.  
  89.  
Add Comment
Please, Sign In to add comment