Skip to content

Commit

Permalink
Modified the file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
aritra-tech committed Nov 5, 2023
1 parent 5b1773f commit 98df20f
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".reciever.ReminderNoteNotificationBroadcast" />
<receiver android:name=".services.reciever.ReminderNoteNotificationBroadcast" />
</application>

</manifest>
2 changes: 1 addition & 1 deletion app/src/main/java/com/aritra/notify/NotifyApplication.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.aritra.notify

import android.app.Application
import com.aritra.notify.core.notification.createNotificationChannel
import com.aritra.notify.services.notification.createNotificationChannel
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/com/aritra/notify/di/DispatcherModule.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.aritra.notify.di

import com.aritra.notify.core.DispatcherProvider
import com.aritra.notify.core.DispatcherProviderImpl
import com.aritra.notify.core.alarm.AlarmScheduler
import com.aritra.notify.core.alarm.AlarmSchedulerImpl
import com.aritra.notify.services.DispatcherProvider
import com.aritra.notify.services.DispatcherProviderImpl
import com.aritra.notify.services.alarm.AlarmScheduler
import com.aritra.notify.services.alarm.AlarmSchedulerImpl
import com.aritra.notify.domain.repository.trash.TrashNoteRepoImpl
import com.aritra.notify.domain.repository.trash.TrashNoteRepo
import dagger.Binds
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.aritra.notify.domain.repository

import android.app.Application
import com.aritra.notify.core.alarm.AlarmInfo
import com.aritra.notify.core.alarm.AlarmScheduler
import com.aritra.notify.services.alarm.AlarmInfo
import com.aritra.notify.services.alarm.AlarmScheduler
import com.aritra.notify.data.dao.NoteDao
import com.aritra.notify.data.db.NoteDatabase
import com.aritra.notify.domain.models.Note
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.aritra.notify.core
package com.aritra.notify.services

import kotlinx.coroutines.CoroutineDispatcher

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.aritra.notify.core
package com.aritra.notify.services

import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.aritra.notify.core.alarm
package com.aritra.notify.services.alarm

interface AlarmScheduler {
fun scheduleAlarm(alarmInfo: AlarmInfo)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.aritra.notify.core.alarm
package com.aritra.notify.services.alarm

import android.app.AlarmManager
import android.app.PendingIntent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.aritra.notify.exception
package com.aritra.notify.services.exception

class NoteNotFoundException(message: String) : Exception(message)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.aritra.notify.core.notification
package com.aritra.notify.services.notification

import android.app.NotificationChannel
import android.app.NotificationManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.aritra.notify.reciever
package com.aritra.notify.services.reciever

import android.app.NotificationManager
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.aritra.notify.domain.repository.NoteRepository
import com.aritra.notify.exception.NoteNotFoundException
import com.aritra.notify.services.exception.NoteNotFoundException
import com.aritra.notify.utils.Const
import com.aritra.notify.utils.sendReminderNote
import dagger.hilt.android.AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.map
import androidx.lifecycle.viewModelScope
import com.aritra.notify.core.DispatcherProvider
import com.aritra.notify.core.alarm.AlarmInfo
import com.aritra.notify.core.alarm.AlarmScheduler
import com.aritra.notify.services.DispatcherProvider
import com.aritra.notify.services.alarm.AlarmInfo
import com.aritra.notify.services.alarm.AlarmScheduler
import com.aritra.notify.domain.models.Note
import com.aritra.notify.domain.models.TrashNote
import com.aritra.notify.domain.repository.NoteRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import TrashNoteInfo
import TrashNoteState
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.aritra.notify.core.DispatcherProvider
import com.aritra.notify.services.DispatcherProvider
import com.aritra.notify.domain.repository.NoteRepository
import com.aritra.notify.domain.repository.trash.TrashNoteRepo
import dagger.hilt.android.lifecycle.HiltViewModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.aritra.notify.utils
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import com.aritra.notify.reciever.ReminderNoteNotificationBroadcast
import com.aritra.notify.services.reciever.ReminderNoteNotificationBroadcast

fun getNoteAlarmPendingIntent(
context: Context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.aritra.notify.components.biometric.AppBioMetricManager
import com.aritra.notify.components.biometric.BiometricAuthListener
import com.aritra.notify.core.DispatcherProvider
import com.aritra.notify.services.DispatcherProvider
import com.aritra.notify.di.DataStoreUtil
import com.aritra.notify.domain.repository.NoteRepository
import com.aritra.notify.domain.repository.trash.TrashNoteRepo
Expand Down

0 comments on commit 98df20f

Please sign in to comment.