Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Remove :data:inject #1101

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ dependencies {
implementation(projects.common.ui.view)
implementation(projects.common.imageloading)
implementation(projects.common.ui.compose)
implementation(projects.data.inject)
implementation(projects.data.dbRoom)
implementation(projects.api.trakt)
implementation(projects.api.traktAuth.android)
Expand Down
4 changes: 2 additions & 2 deletions data/episodes/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ dependencies {
implementation(projects.api.tmdb)
implementation(libs.retrofit.retrofit)

implementation(libs.dagger.dagger)
kapt(libs.dagger.compiler)
implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
4 changes: 2 additions & 2 deletions data/followedshows/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ dependencies {
api(libs.store)
implementation(libs.kotlinx.atomicfu)

implementation(libs.dagger.dagger)
kapt(libs.dagger.compiler)
implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
51 changes: 0 additions & 51 deletions data/inject/build.gradle.kts

This file was deleted.

4 changes: 2 additions & 2 deletions data/popularshows/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ dependencies {
api(libs.store)
implementation(libs.kotlinx.atomicfu)

implementation(libs.dagger.dagger)
kapt(libs.dagger.compiler)
implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
6 changes: 5 additions & 1 deletion data/recommendedshows/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,6 +18,7 @@
plugins {
id("kotlin")
alias(libs.plugins.android.lint)
alias(libs.plugins.kotlin.kapt)
}

dependencies {
Expand All @@ -31,4 +32,7 @@ dependencies {

api(libs.store)
implementation(libs.kotlinx.atomicfu)

implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
24 changes: 23 additions & 1 deletion data/relatedshows/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,9 +15,28 @@
*/


import org.jetbrains.kotlin.kapt3.base.Kapt.kapt

/*
* Copyright 2017 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
id("kotlin")
alias(libs.plugins.android.lint)
alias(libs.plugins.kotlin.kapt)
}

dependencies {
Expand All @@ -31,4 +50,7 @@ dependencies {

api(libs.store)
implementation(libs.kotlinx.atomicfu)

implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
4 changes: 2 additions & 2 deletions data/search/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ dependencies {

implementation(libs.androidx.collection) // LruCache

implementation(libs.dagger.dagger)
kapt(libs.dagger.compiler)
implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
4 changes: 2 additions & 2 deletions data/showimages/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ dependencies {
api(libs.store)
implementation(libs.kotlinx.atomicfu)

implementation(libs.dagger.dagger)
kapt(libs.dagger.compiler)
implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
4 changes: 2 additions & 2 deletions data/shows/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ dependencies {
api(libs.store)
implementation(libs.kotlinx.atomicfu)

implementation(libs.dagger.dagger)
kapt(libs.dagger.compiler)
implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
1 change: 0 additions & 1 deletion data/test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ android {
}

dependencies {
implementation(projects.data.inject)
implementation(projects.data.followedshows)
implementation(projects.data.episodes)
implementation(projects.data.showimages)
Expand Down
4 changes: 2 additions & 2 deletions data/traktusers/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ dependencies {
api(libs.store)
implementation(libs.kotlinx.atomicfu)

implementation(libs.dagger.dagger)
kapt(libs.dagger.compiler)
implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
4 changes: 2 additions & 2 deletions data/trendingshows/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ dependencies {
api(libs.store)
implementation(libs.kotlinx.atomicfu)

implementation(libs.dagger.dagger)
kapt(libs.dagger.compiler)
implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
4 changes: 2 additions & 2 deletions data/watchedshows/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ dependencies {
api(libs.store)
implementation(libs.kotlinx.atomicfu)

implementation(libs.dagger.dagger)
kapt(libs.dagger.compiler)
implementation(libs.hilt.core)
kapt(libs.hilt.compiler)
}
16 changes: 0 additions & 16 deletions domain/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@
*/


/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
id("kotlin")
alias(libs.plugins.cacheFixPlugin)
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ debugdrawer-timber = { module = "au.com.gridstone.debugdrawer:debugdrawer-timber
debugdrawer-okhttplogger = { module = "au.com.gridstone.debugdrawer:debugdrawer-okhttp-logger", version.ref = "debugdrawer" }

hilt-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "dagger" }
hilt-core = { module = "com.google.dagger:hilt-core", version.ref = "dagger" }
hilt-library = { module = "com.google.dagger:hilt-android", version.ref = "dagger" }
hilt-testing = { module = "com.google.dagger:hilt-android-testing", version.ref = "dagger" }

Expand Down
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ include(
":common:imageloading",
":data:db",
":data:db-room",
":data:inject",
":data:legacy",
":data:models",
":data:test",
Expand Down