Skip to content
Closed
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
2 changes: 0 additions & 2 deletions app/dependencies/releaseRuntimeClasspath.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ androidx.emoji2:emoji2:1.4.0
androidx.exifinterface:exifinterface:1.4.1
androidx.fragment:fragment:1.5.4
androidx.graphics:graphics-path:1.0.1
androidx.hilt:hilt-common:1.3.0
androidx.hilt:hilt-lifecycle-viewmodel-compose:1.3.0
androidx.hilt:hilt-lifecycle-viewmodel:1.3.0
androidx.hilt:hilt-work:1.3.0
androidx.interpolator:interpolator:1.0.0
androidx.legacy:legacy-support-core-utils:1.0.0
androidx.lifecycle:lifecycle-common-java8:2.10.0
Expand Down
1 change: 0 additions & 1 deletion app/proguardShield/releaseFastRules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ static java.lang.Void compose*RuntimeError(...);
-keepclassmembers,allowshrinking,allowobfuscation interface * {
@retrofit2.http.* <methods>;
}
-keepnames @androidx.hilt.work.HiltWorker class * extends androidx.work.ListenableWorker
-keepnames @kotlinx.serialization.internal.NamedCompanion class *
-keepnames class * extends androidx.startup.Initializer
-keepnames class * extends androidx.work.InputMerger
Expand Down
4 changes: 0 additions & 4 deletions feature/tasks/impl/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id "moop.android.feature"
id "com.google.devtools.ksp"
}

android {
Expand All @@ -15,9 +14,6 @@ dependencies {
implementation projects.feature.tasks.api
implementation projects.feature.notification.api

implementation libs.androidx.hilt.work
ksp libs.androidx.hilt.compiler

implementation libs.androidx.work.runtime
androidTestImplementation libs.androidx.work.testing

Expand Down
21 changes: 0 additions & 21 deletions feature/tasks/impl/src/main/AndroidManifest.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@
package soup.movie.feature.tasks.impl

import android.content.Context
import androidx.hilt.work.HiltWorker
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import dagger.assisted.Assisted
import dagger.assisted.AssistedInject
import dagger.hilt.android.EntryPointAccessors
import soup.movie.feature.tasks.impl.di.WorkerEntryPoint
import soup.movie.log.Logger

@HiltWorker
class AnnounceOpenDateWorker @AssistedInject constructor(
@Assisted context: Context,
@Assisted params: WorkerParameters,
private val announceOpenDate: AnnounceOpenDateUseCase,
class AnnounceOpenDateWorker(
context: Context,
params: WorkerParameters,
) : CoroutineWorker(context, params) {

private val announceOpenDate = EntryPointAccessors
.fromApplication(context, WorkerEntryPoint::class.java)
.announceOpenDate()

override suspend fun doWork(): Result {
Logger.d("doWork: start!")
return try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@
package soup.movie.feature.tasks.impl

import android.content.Context
import androidx.hilt.work.HiltWorker
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import dagger.assisted.Assisted
import dagger.assisted.AssistedInject
import dagger.hilt.android.EntryPointAccessors
import soup.movie.feature.tasks.impl.di.WorkerEntryPoint
import soup.movie.log.Logger

@HiltWorker
class SyncOpenDateWorker @AssistedInject constructor(
@Assisted context: Context,
@Assisted params: WorkerParameters,
private val syncOpenDate: SyncOpenDateUseCase,
class SyncOpenDateWorker(
context: Context,
params: WorkerParameters,
) : CoroutineWorker(context, params) {

private val syncOpenDate = EntryPointAccessors
.fromApplication(context, WorkerEntryPoint::class.java)
.syncOpenDate()

override suspend fun doWork(): Result {
Logger.d("doWork: start!")
return try {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
*/
package soup.movie.feature.tasks.impl.di

import androidx.hilt.work.HiltWorkerFactory
import dagger.hilt.EntryPoint
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import soup.movie.feature.tasks.impl.AnnounceOpenDateUseCase
import soup.movie.feature.tasks.impl.SyncOpenDateUseCase

@EntryPoint
@InstallIn(SingletonComponent::class)
interface InitializerDependencies {
interface WorkerEntryPoint {

fun workerFactory(): HiltWorkerFactory
fun syncOpenDate(): SyncOpenDateUseCase

fun announceOpenDate(): AnnounceOpenDateUseCase
}
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ dagger-hilt-android = { module = "com.google.dagger:hilt-android", version.ref =
dagger-hilt-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "dagger" }
dagger-hilt-testing = { module = "com.google.dagger:hilt-android-testing", version.ref = "dagger" }

androidx-hilt-work = { module = "androidx.hilt:hilt-work", version.ref = "androidxhilt" }
androidx-hilt-compiler = { module = "androidx.hilt:hilt-compiler", version.ref = "androidxhilt" }
androidx-hilt-lifecycle-viewmodel-compose = { module = "androidx.hilt:hilt-lifecycle-viewmodel-compose", version.ref = "androidxhilt" }

# AndroidX
Expand Down
Loading