Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
Updates dependencies and enables annotation processing
Browse files Browse the repository at this point in the history
Change-Id: I644cecf47b194c6b626bbef9897e3027477818af
  • Loading branch information
Manuel Vivo committed May 19, 2020
1 parent 7d323cd commit 6e50d4c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 7 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ android {
versionName "1.0"

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

javaCompileOptions {
annotationProcessorOptions {
arguments["room.incremental"] = "true"
}
}
}

compileOptions {
Expand All @@ -41,7 +47,7 @@ android {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
Expand All @@ -58,10 +64,6 @@ dependencies {
androidTestImplementation "androidx.test:rules:1.2.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.2.0"

// Dagger dependencies (temporary)
implementation 'com.google.dagger:dagger:2.27'
kapt 'com.google.dagger:dagger-compiler:2.27'

// Hilt dependencies
implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

buildscript {
ext.kotlin_version = '1.3.61'
ext.hilt_version = 'DEV-SNAPSHOT'
ext.hilt_version = '2.28-alpha'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0-beta05'
classpath 'com.android.tools.build:gradle:4.0.0-rc01'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
}
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# Use kapt incremental
kapt.incremental.apt=true

0 comments on commit 6e50d4c

Please sign in to comment.