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

Commit

Permalink
fix dagger compile error and add new dependency of that
Browse files Browse the repository at this point in the history
  • Loading branch information
AbolfaZlRezaEe committed Oct 27, 2022
1 parent 66bd4e5 commit 292f195
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'com.google.gms.google-services'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
id 'com.google.dagger.hilt.android'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
}

Expand Down Expand Up @@ -56,6 +56,9 @@ android {
buildFeatures {
viewBinding true
}
kapt {
correctErrorTypes true
}
}

dependencies {
Expand Down Expand Up @@ -83,9 +86,12 @@ dependencies {
// Kotlin Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"

// Kotlin Reflect
implementation "org.jetbrains.kotlin:kotlin-reflect:1.7.10"

// Dagger-Hilt
implementation "com.google.dagger:hilt-android:2.38.1"
kapt "com.google.dagger:hilt-compiler:2.40.5"
implementation "com.google.dagger:hilt-android:2.44"
kapt "com.google.dagger:hilt-compiler:2.44"

// Room Wrapper
implementation "androidx.room:room-runtime:2.4.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class GPSBroadcastReceiver : BroadcastReceiver() {
private var receiverRegistered = false

override fun onReceive(context: Context, intent: Intent?) {
if (intent != null && intent?.action != null) {
if (intent != null && intent.action != null) {
if (intent.action.equals("android.location.PROVIDERS_CHANGED")) {
callBack?.invoke()
}
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ plugins {
id 'com.android.library' version '7.1.2' apply false
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
id 'io.sentry.android.gradle' version '3.1.0-beta.1'
id 'com.google.dagger.hilt.android' version '2.44' apply false
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' version '2.0.1' apply false
}

Expand Down

0 comments on commit 292f195

Please sign in to comment.