-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Created notification update function to update notification with a timer * Created Timer in foreground service notification * Fixed issue of notification noise playing everytime notification is updated * Added work manager with coroutine support, fixed DAO setup, created skeleton workmanager for jog entries * Fixed dao function refactoring to make sure it's reflected across app * Extremely huge change * Fixed minor issues * Stores jog entries, jog summary temp, and jog summary. But coroutine constantly runs even when application is dead. Ensure coroutine cancellation * Fixed issue of infinite work manager requests, missing requests, etc * Testing * Changed JogSummaryWorker structure to contain async blocks * removed testing * Fixed duration not updating for jogSummary' * Fixed notifications
- Loading branch information
1 parent
15bea0f
commit dbe036f
Showing
27 changed files
with
590 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package ramzi.eljabali.justjog.koin | ||
|
||
import androidx.room.Room | ||
import org.koin.android.ext.koin.androidApplication | ||
import org.koin.androidx.viewmodel.dsl.viewModel | ||
import org.koin.dsl.module | ||
import ramzi.eljabali.justjog.repository.room.database.JustJogDataBase | ||
import ramzi.eljabali.justjog.repository.room.jogentries.JogEntryDAO | ||
import ramzi.eljabali.justjog.repository.room.jogsummary.JogSummaryDAO | ||
import ramzi.eljabali.justjog.repository.room.jogsummarytemp.JogSummaryTempDAO | ||
import ramzi.eljabali.justjog.usecase.JogUseCase | ||
import ramzi.eljabali.justjog.viewmodel.JogViewModel | ||
|
||
val statisticsModule = module { | ||
viewModel { JogViewModel() } | ||
} | ||
|
||
val jogDataBaseModule = module { | ||
single<JustJogDataBase> { | ||
Room.databaseBuilder( | ||
androidApplication().applicationContext, | ||
JustJogDataBase::class.java, "just-jog-database" | ||
).build() | ||
} | ||
single<JogEntryDAO> { get<JustJogDataBase>().jogEntryDao() } | ||
single<JogSummaryDAO> { get<JustJogDataBase>().jogSummaryDao() } | ||
single<JogSummaryTempDAO> { get<JustJogDataBase>().jogSummaryTempDao() } | ||
} | ||
|
||
val jogUseCaseModule = module { | ||
single { JogUseCase(get(), get(), get()) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.