title: Is it good practice to pass the context to the domain layer (Use cases) in android
body: <p>I have a usecase which will use the alarm manger to set a repeatingAlarms and the alarm manger requires a pendingIntent which also needs the context to create object from.
  Now my question is it a good approach to pass the context to the usecase ?
  if no then what's the solution?</p>
  <pre><code>class SetReminderAlarmsUseCase(
      private val hydrateRepository: HydrateRepository,
      private val alarmManager: AlarmManager,
  ) {
  
      suspend operator fun invoke(
          wakeUpTime: String,
          sleepTime: String,
          drinkAmount: Int,
          target: Int,
      ) {
          val alarms = getAlarmsList(wakeUpTime, sleepTime, drinkAmount, target)
          insertAlarms(alarms)
  
          alarms.forEach { alarm -&gt;
              alarmManager.setRepeating(
                  AlarmManager.RTC_WAKEUP,
                  getAlarmTime(alarm),
                  AlarmManager.INTERVAL_DAY,
                  pendingIntent
              )
          }
      }
  </code></pre>