:database:impl cleanup

This commit is contained in:
Milos Kozak 2023-09-26 20:35:00 +02:00
parent 7c417e3519
commit 1681ee558d
261 changed files with 522 additions and 61616 deletions

View file

@ -30,6 +30,9 @@ import app.aaps.core.interfaces.versionChecker.VersionCheckerUtils
import app.aaps.core.ui.locale.LocaleHelper import app.aaps.core.ui.locale.LocaleHelper
import app.aaps.database.entities.TherapyEvent import app.aaps.database.entities.TherapyEvent
import app.aaps.database.entities.UserEntry import app.aaps.database.entities.UserEntry
import app.aaps.database.impl.AppRepository
import app.aaps.database.impl.transactions.InsertIfNewByTimestampTherapyEventTransaction
import app.aaps.database.impl.transactions.VersionChangeTransaction
import app.aaps.di.DaggerAppComponent import app.aaps.di.DaggerAppComponent
import app.aaps.implementation.db.CompatDBHelper import app.aaps.implementation.db.CompatDBHelper
import app.aaps.implementation.lifecycle.ProcessLifecycleListener import app.aaps.implementation.lifecycle.ProcessLifecycleListener
@ -46,9 +49,6 @@ import app.aaps.ui.activityMonitor.ActivityMonitor
import app.aaps.ui.widget.Widget import app.aaps.ui.widget.Widget
import dagger.android.AndroidInjector import dagger.android.AndroidInjector
import dagger.android.DaggerApplication import dagger.android.DaggerApplication
import info.nightscout.database.impl.AppRepository
import info.nightscout.database.impl.transactions.InsertIfNewByTimestampTherapyEventTransaction
import info.nightscout.database.impl.transactions.VersionChangeTransaction
import io.reactivex.rxjava3.disposables.CompositeDisposable import io.reactivex.rxjava3.disposables.CompositeDisposable
import io.reactivex.rxjava3.exceptions.UndeliverableException import io.reactivex.rxjava3.exceptions.UndeliverableException
import io.reactivex.rxjava3.kotlin.plusAssign import io.reactivex.rxjava3.kotlin.plusAssign

View file

@ -13,10 +13,10 @@ import app.aaps.core.interfaces.utils.DecimalFormatter
import app.aaps.core.main.graph.OverviewData import app.aaps.core.main.graph.OverviewData
import app.aaps.core.main.utils.fabric.FabricPrivacy import app.aaps.core.main.utils.fabric.FabricPrivacy
import app.aaps.core.main.workflow.CalculationWorkflow import app.aaps.core.main.workflow.CalculationWorkflow
import app.aaps.database.impl.AppRepository
import app.aaps.implementation.overview.OverviewDataImpl import app.aaps.implementation.overview.OverviewDataImpl
import app.aaps.plugins.iob.iobCobCalculator.IobCobCalculatorPlugin import app.aaps.plugins.iob.iobCobCalculator.IobCobCalculatorPlugin
import dagger.android.HasAndroidInjector import dagger.android.HasAndroidInjector
import info.nightscout.database.impl.AppRepository
import javax.inject.Inject import javax.inject.Inject
import javax.inject.Singleton import javax.inject.Singleton

View file

@ -3,6 +3,7 @@ package app.aaps.di
import app.aaps.MainApp import app.aaps.MainApp
import app.aaps.core.main.di.CoreModule import app.aaps.core.main.di.CoreModule
import app.aaps.core.validators.di.ValidatorsModule import app.aaps.core.validators.di.ValidatorsModule
import app.aaps.database.impl.DatabaseModule
import app.aaps.implementation.di.ImplementationModule import app.aaps.implementation.di.ImplementationModule
import app.aaps.plugins.aps.di.ApsModule import app.aaps.plugins.aps.di.ApsModule
import app.aaps.plugins.automation.di.AutomationModule import app.aaps.plugins.automation.di.AutomationModule
@ -14,6 +15,7 @@ import app.aaps.plugins.source.di.SourceModule
import app.aaps.plugins.sync.di.OpenHumansModule import app.aaps.plugins.sync.di.OpenHumansModule
import app.aaps.plugins.sync.di.SyncModule import app.aaps.plugins.sync.di.SyncModule
import app.aaps.shared.impl.di.SharedImplModule import app.aaps.shared.impl.di.SharedImplModule
import app.aaps.ui.di.UiModule
import dagger.BindsInstance import dagger.BindsInstance
import dagger.Component import dagger.Component
import dagger.android.AndroidInjectionModule import dagger.android.AndroidInjectionModule
@ -26,7 +28,6 @@ import info.nightscout.androidaps.plugins.pump.eopatch.dagger.EopatchModule
import info.nightscout.androidaps.plugins.pump.medtronic.di.MedtronicModule import info.nightscout.androidaps.plugins.pump.medtronic.di.MedtronicModule
import info.nightscout.androidaps.plugins.pump.omnipod.dash.di.OmnipodDashModule import info.nightscout.androidaps.plugins.pump.omnipod.dash.di.OmnipodDashModule
import info.nightscout.androidaps.plugins.pump.omnipod.eros.di.OmnipodErosModule import info.nightscout.androidaps.plugins.pump.omnipod.eros.di.OmnipodErosModule
import info.nightscout.database.impl.DatabaseModule
import info.nightscout.pump.combo.di.ComboModule import info.nightscout.pump.combo.di.ComboModule
import info.nightscout.pump.combov2.di.ComboV2Module import info.nightscout.pump.combov2.di.ComboV2Module
import info.nightscout.pump.common.di.PumpCommonModule import info.nightscout.pump.common.di.PumpCommonModule
@ -36,7 +37,6 @@ import info.nightscout.pump.danars.di.DanaRSModule
import info.nightscout.pump.diaconn.di.DiaconnG8Module import info.nightscout.pump.diaconn.di.DiaconnG8Module
import info.nightscout.pump.medtrum.di.MedtrumModule import info.nightscout.pump.medtrum.di.MedtrumModule
import info.nightscout.pump.virtual.di.VirtualPumpModule import info.nightscout.pump.virtual.di.VirtualPumpModule
import app.aaps.ui.di.UiModule
import info.nightscout.workflow.di.WorkflowModule import info.nightscout.workflow.di.WorkflowModule
import javax.inject.Singleton import javax.inject.Singleton

View file

@ -27,9 +27,9 @@ import app.aaps.core.interfaces.utils.DateUtil
import app.aaps.core.interfaces.utils.T import app.aaps.core.interfaces.utils.T
import app.aaps.core.main.profile.ProfileSealed import app.aaps.core.main.profile.ProfileSealed
import app.aaps.core.main.utils.worker.LoggingWorker import app.aaps.core.main.utils.worker.LoggingWorker
import app.aaps.database.impl.AppRepository
import app.aaps.plugins.configuration.maintenance.MaintenancePlugin import app.aaps.plugins.configuration.maintenance.MaintenancePlugin
import com.google.common.util.concurrent.ListenableFuture import com.google.common.util.concurrent.ListenableFuture
import info.nightscout.database.impl.AppRepository
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import java.util.concurrent.TimeUnit import java.util.concurrent.TimeUnit
import javax.inject.Inject import javax.inject.Inject

View file

@ -319,7 +319,7 @@ interface PumpSync {
* if db record already has endPumpId assigned by [syncStopTemporaryBasalWithPumpId] other updates * if db record already has endPumpId assigned by [syncStopTemporaryBasalWithPumpId] other updates
* are ignored * are ignored
* *
* see [info.nightscout.database.impl.transactions.SyncPumpTemporaryBasalTransaction] * see [app.aaps.database.impl.transactions.SyncPumpTemporaryBasalTransaction]
* *
* @param timestamp timestamp of event from pump history * @param timestamp timestamp of event from pump history
* @param rate TBR rate in U/h or % (value of 100% is equal to no TBR) * @param rate TBR rate in U/h or % (value of 100% is equal to no TBR)
@ -349,7 +349,7 @@ interface PumpSync {
* endPumpId is stored to running record * endPumpId is stored to running record
* If db record doesn't exist data is ignored and false returned * If db record doesn't exist data is ignored and false returned
* *
* see [info.nightscout.database.impl.transactions.SyncPumpCancelTemporaryBasalIfAnyTransaction] * see [app.aaps.database.impl.transactions.SyncPumpCancelTemporaryBasalIfAnyTransaction]
* *
* @param timestamp timestamp of event from pump history * @param timestamp timestamp of event from pump history
* @param endPumpId pump id of ending event from history * @param endPumpId pump id of ending event from history
@ -383,7 +383,7 @@ interface PumpSync {
* @param pumpSerial pump serial number * @param pumpSerial pump serial number
* @return true if new record is created * @return true if new record is created
* *
* see [info.nightscout.database.impl.transactions.InsertTemporaryBasalWithTempIdTransaction] * see [app.aaps.database.impl.transactions.InsertTemporaryBasalWithTempIdTransaction]
**/ **/
fun addTemporaryBasalWithTempId(timestamp: Long, rate: Double, duration: Long, isAbsolute: Boolean, tempId: Long, type: TemporaryBasalType, pumpType: PumpType, pumpSerial: String): Boolean fun addTemporaryBasalWithTempId(timestamp: Long, rate: Double, duration: Long, isAbsolute: Boolean, tempId: Long, type: TemporaryBasalType, pumpType: PumpType, pumpSerial: String): Boolean
@ -475,7 +475,7 @@ interface PumpSync {
* If db record doesn't exist, new record is created. * If db record doesn't exist, new record is created.
* isValid field is preserved * isValid field is preserved
* *
* see [info.nightscout.database.impl.transactions.SyncPumpExtendedBolusTransaction] * see [app.aaps.database.impl.transactions.SyncPumpExtendedBolusTransaction]
* *
* @param timestamp timestamp of event from pump history * @param timestamp timestamp of event from pump history
* @param amount EB total amount in U * @param amount EB total amount in U
@ -503,7 +503,7 @@ interface PumpSync {
* endPumpId is stored to running record * endPumpId is stored to running record
* If db record doesn't exist data is ignored and false returned * If db record doesn't exist data is ignored and false returned
* *
* see [info.nightscout.database.impl.transactions.SyncPumpCancelExtendedBolusIfAnyTransaction] * see [app.aaps.database.impl.transactions.SyncPumpCancelExtendedBolusIfAnyTransaction]
* *
* @param timestamp timestamp of event from pump history * @param timestamp timestamp of event from pump history
* @param endPumpId pump id of ending event from history * @param endPumpId pump id of ending event from history
@ -528,7 +528,7 @@ interface PumpSync {
* isValid field is preserved * isValid field is preserved
* If db record doesn't exist, new record is created. * If db record doesn't exist, new record is created.
* *
* see [info.nightscout.database.impl.transactions.SyncPumpTotalDailyDoseTransaction] * see [app.aaps.database.impl.transactions.SyncPumpTotalDailyDoseTransaction]
* *
* @param timestamp timestamp of event from pump history * @param timestamp timestamp of event from pump history
* @param bolusAmount bolus part * @param bolusAmount bolus part

View file

@ -33,5 +33,5 @@ dependencies {
allOpen { allOpen {
// allows mocking for classes w/o directly opening them for release builds // allows mocking for classes w/o directly opening them for release builds
annotation 'info.nightscout.database.annotations.DbOpenForTesting' annotation 'app.aaps.database.annotations.DbOpenForTesting'
} }

View file

@ -11,8 +11,8 @@ apply from: "${project.rootDir}/core/main/test_dependencies.gradle"
apply from: "${project.rootDir}/core/main/jacoco_global.gradle" apply from: "${project.rootDir}/core/main/jacoco_global.gradle"
android { android {
namespace 'app.aaps.database.impl'
namespace 'info.nightscout.database.impl'
defaultConfig { defaultConfig {
kapt { kapt {
arguments { arguments {

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl package app.aaps.database.impl
import android.content.Context import android.content.Context
import androidx.room.Room import androidx.room.Room

View file

@ -1,12 +1,12 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import android.content.Context import android.content.Context
import androidx.room.Room import androidx.room.Room
import androidx.test.core.app.ApplicationProvider import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.ext.junit.runners.AndroidJUnit4
import info.nightscout.database.impl.AppDatabase import app.aaps.database.impl.AppDatabase
import info.nightscout.database.impl.AppRepository import app.aaps.database.impl.AppRepository
import info.nightscout.database.impl.HeartRateDaoTest import app.aaps.database.impl.HeartRateDaoTest
import org.junit.After import org.junit.After
import org.junit.Assert.assertEquals import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotEquals import org.junit.Assert.assertNotEquals

View file

@ -1,4 +1,4 @@
package info.nightscout.database.annotations package app.aaps.database.annotations
/** /**
* This is the actual annotation that makes the class open. Don't use it directly, only through [DbOpenForTesting] * This is the actual annotation that makes the class open. Don't use it directly, only through [DbOpenForTesting]

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl package app.aaps.database.impl
import androidx.room.Database import androidx.room.Database
import androidx.room.RoomDatabase import androidx.room.RoomDatabase
@ -22,27 +22,27 @@ import app.aaps.database.entities.TherapyEvent
import app.aaps.database.entities.TotalDailyDose import app.aaps.database.entities.TotalDailyDose
import app.aaps.database.entities.UserEntry import app.aaps.database.entities.UserEntry
import app.aaps.database.entities.VersionChange import app.aaps.database.entities.VersionChange
import info.nightscout.database.impl.daos.APSResultDao import app.aaps.database.impl.daos.APSResultDao
import info.nightscout.database.impl.daos.APSResultLinkDao import app.aaps.database.impl.daos.APSResultLinkDao
import info.nightscout.database.impl.daos.BolusCalculatorResultDao import app.aaps.database.impl.daos.BolusCalculatorResultDao
import info.nightscout.database.impl.daos.BolusDao import app.aaps.database.impl.daos.BolusDao
import info.nightscout.database.impl.daos.CarbsDao import app.aaps.database.impl.daos.CarbsDao
import info.nightscout.database.impl.daos.DeviceStatusDao import app.aaps.database.impl.daos.DeviceStatusDao
import info.nightscout.database.impl.daos.EffectiveProfileSwitchDao import app.aaps.database.impl.daos.EffectiveProfileSwitchDao
import info.nightscout.database.impl.daos.ExtendedBolusDao import app.aaps.database.impl.daos.ExtendedBolusDao
import info.nightscout.database.impl.daos.FoodDao import app.aaps.database.impl.daos.FoodDao
import info.nightscout.database.impl.daos.GlucoseValueDao import app.aaps.database.impl.daos.GlucoseValueDao
import info.nightscout.database.impl.daos.HeartRateDao import app.aaps.database.impl.daos.HeartRateDao
import info.nightscout.database.impl.daos.MultiwaveBolusLinkDao import app.aaps.database.impl.daos.MultiwaveBolusLinkDao
import info.nightscout.database.impl.daos.OfflineEventDao import app.aaps.database.impl.daos.OfflineEventDao
import info.nightscout.database.impl.daos.PreferenceChangeDao import app.aaps.database.impl.daos.PreferenceChangeDao
import info.nightscout.database.impl.daos.ProfileSwitchDao import app.aaps.database.impl.daos.ProfileSwitchDao
import info.nightscout.database.impl.daos.TemporaryBasalDao import app.aaps.database.impl.daos.TemporaryBasalDao
import info.nightscout.database.impl.daos.TemporaryTargetDao import app.aaps.database.impl.daos.TemporaryTargetDao
import info.nightscout.database.impl.daos.TherapyEventDao import app.aaps.database.impl.daos.TherapyEventDao
import info.nightscout.database.impl.daos.TotalDailyDoseDao import app.aaps.database.impl.daos.TotalDailyDoseDao
import info.nightscout.database.impl.daos.UserEntryDao import app.aaps.database.impl.daos.UserEntryDao
import info.nightscout.database.impl.daos.VersionChangeDao import app.aaps.database.impl.daos.VersionChangeDao
import java.io.Closeable import java.io.Closeable
const val DATABASE_VERSION = 24 const val DATABASE_VERSION = 24

View file

@ -1,6 +1,7 @@
package info.nightscout.database.impl package app.aaps.database.impl
import app.aaps.database.ValueWrapper import app.aaps.database.ValueWrapper
import app.aaps.database.annotations.DbOpenForTesting
import app.aaps.database.entities.Bolus import app.aaps.database.entities.Bolus
import app.aaps.database.entities.BolusCalculatorResult import app.aaps.database.entities.BolusCalculatorResult
import app.aaps.database.entities.Carbs import app.aaps.database.entities.Carbs
@ -20,8 +21,7 @@ import app.aaps.database.entities.UserEntry
import app.aaps.database.entities.data.NewEntries import app.aaps.database.entities.data.NewEntries
import app.aaps.database.entities.embedments.InterfaceIDs import app.aaps.database.entities.embedments.InterfaceIDs
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.annotations.DbOpenForTesting import app.aaps.database.impl.transactions.Transaction
import info.nightscout.database.impl.transactions.Transaction
import io.reactivex.rxjava3.core.Completable import io.reactivex.rxjava3.core.Completable
import io.reactivex.rxjava3.core.Maybe import io.reactivex.rxjava3.core.Maybe
import io.reactivex.rxjava3.core.Observable import io.reactivex.rxjava3.core.Observable

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl package app.aaps.database.impl
import androidx.room.TypeConverter import androidx.room.TypeConverter
import app.aaps.database.entities.APSResult import app.aaps.database.entities.APSResult
@ -16,8 +16,8 @@ import app.aaps.database.entities.ValueWithUnit
import app.aaps.database.entities.data.Block import app.aaps.database.entities.data.Block
import app.aaps.database.entities.data.TargetBlock import app.aaps.database.entities.data.TargetBlock
import app.aaps.database.entities.embedments.InterfaceIDs import app.aaps.database.entities.embedments.InterfaceIDs
import info.nightscout.database.impl.serialisation.SealedClassHelper import app.aaps.database.impl.serialisation.SealedClassHelper
import info.nightscout.database.impl.serialisation.fromJson import app.aaps.database.impl.serialisation.fromJson
import org.json.JSONArray import org.json.JSONArray
import org.json.JSONObject import org.json.JSONObject

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl package app.aaps.database.impl
import android.content.Context import android.content.Context
import androidx.annotation.VisibleForTesting import androidx.annotation.VisibleForTesting

View file

@ -0,0 +1,71 @@
package app.aaps.database.impl
import app.aaps.database.entities.interfaces.DBEntry
import app.aaps.database.impl.daos.APSResultDao
import app.aaps.database.impl.daos.APSResultLinkDao
import app.aaps.database.impl.daos.BolusCalculatorResultDao
import app.aaps.database.impl.daos.BolusDao
import app.aaps.database.impl.daos.CarbsDao
import app.aaps.database.impl.daos.DeviceStatusDao
import app.aaps.database.impl.daos.EffectiveProfileSwitchDao
import app.aaps.database.impl.daos.ExtendedBolusDao
import app.aaps.database.impl.daos.FoodDao
import app.aaps.database.impl.daos.GlucoseValueDao
import app.aaps.database.impl.daos.HeartRateDao
import app.aaps.database.impl.daos.MultiwaveBolusLinkDao
import app.aaps.database.impl.daos.OfflineEventDao
import app.aaps.database.impl.daos.PreferenceChangeDao
import app.aaps.database.impl.daos.ProfileSwitchDao
import app.aaps.database.impl.daos.TemporaryBasalDao
import app.aaps.database.impl.daos.TemporaryTargetDao
import app.aaps.database.impl.daos.TherapyEventDao
import app.aaps.database.impl.daos.TotalDailyDoseDao
import app.aaps.database.impl.daos.UserEntryDao
import app.aaps.database.impl.daos.VersionChangeDao
import app.aaps.database.impl.daos.delegated.DelegatedAPSResultDao
import app.aaps.database.impl.daos.delegated.DelegatedAPSResultLinkDao
import app.aaps.database.impl.daos.delegated.DelegatedBolusCalculatorResultDao
import app.aaps.database.impl.daos.delegated.DelegatedBolusDao
import app.aaps.database.impl.daos.delegated.DelegatedCarbsDao
import app.aaps.database.impl.daos.delegated.DelegatedDeviceStatusDao
import app.aaps.database.impl.daos.delegated.DelegatedEffectiveProfileSwitchDao
import app.aaps.database.impl.daos.delegated.DelegatedExtendedBolusDao
import app.aaps.database.impl.daos.delegated.DelegatedFoodDao
import app.aaps.database.impl.daos.delegated.DelegatedGlucoseValueDao
import app.aaps.database.impl.daos.delegated.DelegatedHeartRateDao
import app.aaps.database.impl.daos.delegated.DelegatedMultiwaveBolusLinkDao
import app.aaps.database.impl.daos.delegated.DelegatedOfflineEventDao
import app.aaps.database.impl.daos.delegated.DelegatedPreferenceChangeDao
import app.aaps.database.impl.daos.delegated.DelegatedProfileSwitchDao
import app.aaps.database.impl.daos.delegated.DelegatedTemporaryBasalDao
import app.aaps.database.impl.daos.delegated.DelegatedTemporaryTargetDao
import app.aaps.database.impl.daos.delegated.DelegatedTherapyEventDao
import app.aaps.database.impl.daos.delegated.DelegatedTotalDailyDoseDao
import app.aaps.database.impl.daos.delegated.DelegatedUserEntryDao
import app.aaps.database.impl.daos.delegated.DelegatedVersionChangeDao
internal class DelegatedAppDatabase(val changes: MutableList<DBEntry>, val database: AppDatabase) {
val glucoseValueDao: GlucoseValueDao = DelegatedGlucoseValueDao(changes, database.glucoseValueDao)
val therapyEventDao: TherapyEventDao = DelegatedTherapyEventDao(changes, database.therapyEventDao)
val temporaryBasalDao: TemporaryBasalDao = DelegatedTemporaryBasalDao(changes, database.temporaryBasalDao)
val bolusDao: BolusDao = DelegatedBolusDao(changes, database.bolusDao)
val extendedBolusDao: ExtendedBolusDao = DelegatedExtendedBolusDao(changes, database.extendedBolusDao)
val multiwaveBolusLinkDao: MultiwaveBolusLinkDao = DelegatedMultiwaveBolusLinkDao(changes, database.multiwaveBolusLinkDao)
val totalDailyDoseDao: TotalDailyDoseDao = DelegatedTotalDailyDoseDao(changes, database.totalDailyDoseDao)
val carbsDao: CarbsDao = DelegatedCarbsDao(changes, database.carbsDao)
val temporaryTargetDao: TemporaryTargetDao = DelegatedTemporaryTargetDao(changes, database.temporaryTargetDao)
val apsResultLinkDao: APSResultLinkDao = DelegatedAPSResultLinkDao(changes, database.apsResultLinkDao)
val bolusCalculatorResultDao: BolusCalculatorResultDao = DelegatedBolusCalculatorResultDao(changes, database.bolusCalculatorResultDao)
val effectiveProfileSwitchDao: EffectiveProfileSwitchDao = DelegatedEffectiveProfileSwitchDao(changes, database.effectiveProfileSwitchDao)
val profileSwitchDao: ProfileSwitchDao = DelegatedProfileSwitchDao(changes, database.profileSwitchDao)
val apsResultDao: APSResultDao = DelegatedAPSResultDao(changes, database.apsResultDao)
val versionChangeDao: VersionChangeDao = DelegatedVersionChangeDao(changes, database.versionChangeDao)
val userEntryDao: UserEntryDao = DelegatedUserEntryDao(changes, database.userEntryDao)
val preferenceChangeDao: PreferenceChangeDao = DelegatedPreferenceChangeDao(changes, database.preferenceChangeDao)
val foodDao: FoodDao = DelegatedFoodDao(changes, database.foodDao)
val deviceStatusDao: DeviceStatusDao = DelegatedDeviceStatusDao(changes, database.deviceStatusDao)
val offlineEventDao: OfflineEventDao = DelegatedOfflineEventDao(changes, database.offlineEventDao)
val heartRateDao: HeartRateDao = DelegatedHeartRateDao(changes, database.heartRateDao)
fun clearAllTables() = database.clearAllTables()
}

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Insert import androidx.room.Insert

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Insert import androidx.room.Insert

View file

@ -1,15 +1,16 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query
import app.aaps.database.entities.ProfileSwitch import app.aaps.database.entities.ProfileSwitch
import app.aaps.database.entities.TABLE_PROFILE_SWITCHES import app.aaps.database.entities.TABLE_PROFILE_SWITCHES
import app.aaps.database.entities.data.checkSanity import app.aaps.database.entities.data.checkSanity
import app.aaps.database.impl.daos.workaround.ProfileSwitchDaoWorkaround
import io.reactivex.rxjava3.core.Maybe import io.reactivex.rxjava3.core.Maybe
import io.reactivex.rxjava3.core.Single import io.reactivex.rxjava3.core.Single
@Dao @Dao
internal interface ProfileSwitchDao : info.nightscout.database.impl.daos.workaround.ProfileSwitchDaoWorkaround { internal interface ProfileSwitchDao : ProfileSwitchDaoWorkaround {
@Query("SELECT * FROM $TABLE_PROFILE_SWITCHES WHERE id = :id") @Query("SELECT * FROM $TABLE_PROFILE_SWITCHES WHERE id = :id")
override fun findById(id: Long): ProfileSwitch? override fun findById(id: Long): ProfileSwitch?

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Query import androidx.room.Query

View file

@ -1,9 +1,9 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Insert import androidx.room.Insert
import androidx.room.Update import androidx.room.Update
import app.aaps.database.entities.interfaces.TraceableDBEntry import app.aaps.database.entities.interfaces.TraceableDBEntry
import info.nightscout.database.impl.daos.workaround.TraceableDaoWorkaround import app.aaps.database.impl.daos.workaround.TraceableDaoWorkaround
internal interface TraceableDao<T : TraceableDBEntry> : TraceableDaoWorkaround<T> { internal interface TraceableDao<T : TraceableDBEntry> : TraceableDaoWorkaround<T> {

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Insert import androidx.room.Insert

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos package app.aaps.database.impl.daos
import androidx.room.Dao import androidx.room.Dao
import androidx.room.Insert import androidx.room.Insert

View file

@ -1,7 +1,7 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.APSResultDao import app.aaps.database.impl.daos.APSResultDao
internal class DelegatedAPSResultDao(changes: MutableList<DBEntry>, private val dao: APSResultDao) : DelegatedDao(changes), APSResultDao by dao { internal class DelegatedAPSResultDao(changes: MutableList<DBEntry>, private val dao: APSResultDao) : DelegatedDao(changes), APSResultDao by dao {

View file

@ -1,7 +1,7 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.APSResultLinkDao import app.aaps.database.impl.daos.APSResultLinkDao
internal class DelegatedAPSResultLinkDao(changes: MutableList<DBEntry>, private val dao: APSResultLinkDao) : DelegatedDao(changes), APSResultLinkDao by dao { internal class DelegatedAPSResultLinkDao(changes: MutableList<DBEntry>, private val dao: APSResultLinkDao) : DelegatedDao(changes), APSResultLinkDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.BolusCalculatorResult import app.aaps.database.entities.BolusCalculatorResult
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.BolusCalculatorResultDao import app.aaps.database.impl.daos.BolusCalculatorResultDao
internal class DelegatedBolusCalculatorResultDao(changes: MutableList<DBEntry>, private val dao: BolusCalculatorResultDao) : DelegatedDao(changes), BolusCalculatorResultDao by dao { internal class DelegatedBolusCalculatorResultDao(changes: MutableList<DBEntry>, private val dao: BolusCalculatorResultDao) : DelegatedDao(changes), BolusCalculatorResultDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.Bolus import app.aaps.database.entities.Bolus
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.BolusDao import app.aaps.database.impl.daos.BolusDao
internal class DelegatedBolusDao(changes: MutableList<DBEntry>, private val dao: BolusDao) : DelegatedDao(changes), BolusDao by dao { internal class DelegatedBolusDao(changes: MutableList<DBEntry>, private val dao: BolusDao) : DelegatedDao(changes), BolusDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.Carbs import app.aaps.database.entities.Carbs
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.CarbsDao import app.aaps.database.impl.daos.CarbsDao
internal class DelegatedCarbsDao(changes: MutableList<DBEntry>, private val dao: CarbsDao) : DelegatedDao(changes), CarbsDao by dao { internal class DelegatedCarbsDao(changes: MutableList<DBEntry>, private val dao: CarbsDao) : DelegatedDao(changes), CarbsDao by dao {

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry

View file

@ -1,6 +1,6 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.DeviceStatusDao import app.aaps.database.impl.daos.DeviceStatusDao
internal class DelegatedDeviceStatusDao(changes: MutableList<DBEntry>, private val dao: DeviceStatusDao) : DelegatedDao(changes), DeviceStatusDao by dao internal class DelegatedDeviceStatusDao(changes: MutableList<DBEntry>, private val dao: DeviceStatusDao) : DelegatedDao(changes), DeviceStatusDao by dao

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.EffectiveProfileSwitch import app.aaps.database.entities.EffectiveProfileSwitch
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.EffectiveProfileSwitchDao import app.aaps.database.impl.daos.EffectiveProfileSwitchDao
internal class DelegatedEffectiveProfileSwitchDao(changes: MutableList<DBEntry>, private val dao: EffectiveProfileSwitchDao) : DelegatedDao(changes), EffectiveProfileSwitchDao by dao { internal class DelegatedEffectiveProfileSwitchDao(changes: MutableList<DBEntry>, private val dao: EffectiveProfileSwitchDao) : DelegatedDao(changes), EffectiveProfileSwitchDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.ExtendedBolus import app.aaps.database.entities.ExtendedBolus
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.ExtendedBolusDao import app.aaps.database.impl.daos.ExtendedBolusDao
internal class DelegatedExtendedBolusDao(changes: MutableList<DBEntry>, private val dao: ExtendedBolusDao) : DelegatedDao(changes), ExtendedBolusDao by dao { internal class DelegatedExtendedBolusDao(changes: MutableList<DBEntry>, private val dao: ExtendedBolusDao) : DelegatedDao(changes), ExtendedBolusDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.Food import app.aaps.database.entities.Food
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.FoodDao import app.aaps.database.impl.daos.FoodDao
internal class DelegatedFoodDao(changes: MutableList<DBEntry>, private val dao: FoodDao) : DelegatedDao(changes), FoodDao by dao { internal class DelegatedFoodDao(changes: MutableList<DBEntry>, private val dao: FoodDao) : DelegatedDao(changes), FoodDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.GlucoseValue import app.aaps.database.entities.GlucoseValue
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.GlucoseValueDao import app.aaps.database.impl.daos.GlucoseValueDao
internal class DelegatedGlucoseValueDao(changes: MutableList<DBEntry>, private val dao: GlucoseValueDao) : DelegatedDao(changes), GlucoseValueDao by dao { internal class DelegatedGlucoseValueDao(changes: MutableList<DBEntry>, private val dao: GlucoseValueDao) : DelegatedDao(changes), GlucoseValueDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.HeartRate import app.aaps.database.entities.HeartRate
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.HeartRateDao import app.aaps.database.impl.daos.HeartRateDao
internal class DelegatedHeartRateDao( internal class DelegatedHeartRateDao(
changes: MutableList<DBEntry>, changes: MutableList<DBEntry>,

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.MultiwaveBolusLink import app.aaps.database.entities.MultiwaveBolusLink
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.MultiwaveBolusLinkDao import app.aaps.database.impl.daos.MultiwaveBolusLinkDao
internal class DelegatedMultiwaveBolusLinkDao(changes: MutableList<DBEntry>, private val dao: MultiwaveBolusLinkDao) : DelegatedDao(changes), MultiwaveBolusLinkDao by dao { internal class DelegatedMultiwaveBolusLinkDao(changes: MutableList<DBEntry>, private val dao: MultiwaveBolusLinkDao) : DelegatedDao(changes), MultiwaveBolusLinkDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.OfflineEvent import app.aaps.database.entities.OfflineEvent
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.OfflineEventDao import app.aaps.database.impl.daos.OfflineEventDao
internal class DelegatedOfflineEventDao(changes: MutableList<DBEntry>, private val dao: OfflineEventDao) : DelegatedDao(changes), OfflineEventDao by dao { internal class DelegatedOfflineEventDao(changes: MutableList<DBEntry>, private val dao: OfflineEventDao) : DelegatedDao(changes), OfflineEventDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.PreferenceChange import app.aaps.database.entities.PreferenceChange
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.PreferenceChangeDao import app.aaps.database.impl.daos.PreferenceChangeDao
internal class DelegatedPreferenceChangeDao(changes: MutableList<DBEntry>, private val dao: PreferenceChangeDao) : DelegatedDao(changes), PreferenceChangeDao by dao { internal class DelegatedPreferenceChangeDao(changes: MutableList<DBEntry>, private val dao: PreferenceChangeDao) : DelegatedDao(changes), PreferenceChangeDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.ProfileSwitch import app.aaps.database.entities.ProfileSwitch
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.ProfileSwitchDao import app.aaps.database.impl.daos.ProfileSwitchDao
internal class DelegatedProfileSwitchDao(changes: MutableList<DBEntry>, private val dao: ProfileSwitchDao) : DelegatedDao(changes), ProfileSwitchDao by dao { internal class DelegatedProfileSwitchDao(changes: MutableList<DBEntry>, private val dao: ProfileSwitchDao) : DelegatedDao(changes), ProfileSwitchDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.TemporaryBasal import app.aaps.database.entities.TemporaryBasal
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.TemporaryBasalDao import app.aaps.database.impl.daos.TemporaryBasalDao
internal class DelegatedTemporaryBasalDao(changes: MutableList<DBEntry>, private val dao: TemporaryBasalDao) : DelegatedDao(changes), TemporaryBasalDao by dao { internal class DelegatedTemporaryBasalDao(changes: MutableList<DBEntry>, private val dao: TemporaryBasalDao) : DelegatedDao(changes), TemporaryBasalDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.TemporaryTarget import app.aaps.database.entities.TemporaryTarget
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.TemporaryTargetDao import app.aaps.database.impl.daos.TemporaryTargetDao
internal class DelegatedTemporaryTargetDao(changes: MutableList<DBEntry>, private val dao: TemporaryTargetDao) : DelegatedDao(changes), TemporaryTargetDao by dao { internal class DelegatedTemporaryTargetDao(changes: MutableList<DBEntry>, private val dao: TemporaryTargetDao) : DelegatedDao(changes), TemporaryTargetDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.TherapyEvent import app.aaps.database.entities.TherapyEvent
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.TherapyEventDao import app.aaps.database.impl.daos.TherapyEventDao
internal class DelegatedTherapyEventDao(changes: MutableList<DBEntry>, private val dao: TherapyEventDao) : DelegatedDao(changes), TherapyEventDao by dao { internal class DelegatedTherapyEventDao(changes: MutableList<DBEntry>, private val dao: TherapyEventDao) : DelegatedDao(changes), TherapyEventDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.TotalDailyDose import app.aaps.database.entities.TotalDailyDose
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.TotalDailyDoseDao import app.aaps.database.impl.daos.TotalDailyDoseDao
internal class DelegatedTotalDailyDoseDao(changes: MutableList<DBEntry>, private val dao: TotalDailyDoseDao) : DelegatedDao(changes), TotalDailyDoseDao by dao { internal class DelegatedTotalDailyDoseDao(changes: MutableList<DBEntry>, private val dao: TotalDailyDoseDao) : DelegatedDao(changes), TotalDailyDoseDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.UserEntry import app.aaps.database.entities.UserEntry
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.UserEntryDao import app.aaps.database.impl.daos.UserEntryDao
internal class DelegatedUserEntryDao(changes: MutableList<DBEntry>, private val dao: UserEntryDao) : DelegatedDao(changes), UserEntryDao by dao { internal class DelegatedUserEntryDao(changes: MutableList<DBEntry>, private val dao: UserEntryDao) : DelegatedDao(changes), UserEntryDao by dao {

View file

@ -1,8 +1,8 @@
package info.nightscout.database.impl.daos.delegated package app.aaps.database.impl.daos.delegated
import app.aaps.database.entities.VersionChange import app.aaps.database.entities.VersionChange
import app.aaps.database.entities.interfaces.DBEntry import app.aaps.database.entities.interfaces.DBEntry
import info.nightscout.database.impl.daos.VersionChangeDao import app.aaps.database.impl.daos.VersionChangeDao
internal class DelegatedVersionChangeDao(changes: MutableList<DBEntry>, private val dao: VersionChangeDao) : DelegatedDao(changes), VersionChangeDao by dao { internal class DelegatedVersionChangeDao(changes: MutableList<DBEntry>, private val dao: VersionChangeDao) : DelegatedDao(changes), VersionChangeDao by dao {

View file

@ -1,11 +1,11 @@
package info.nightscout.database.impl.daos.workaround; package app.aaps.database.impl.daos.workaround;
import androidx.room.Transaction; import androidx.room.Transaction;
import app.aaps.database.entities.ProfileSwitch; import app.aaps.database.entities.ProfileSwitch;
import info.nightscout.database.impl.daos.ProfileSwitchDao; import app.aaps.database.impl.daos.ProfileSwitchDao;
import info.nightscout.database.impl.daos.ProfileSwitchDaoKt; import app.aaps.database.impl.daos.ProfileSwitchDaoKt;
import info.nightscout.database.impl.daos.TraceableDao; import app.aaps.database.impl.daos.TraceableDao;
public interface ProfileSwitchDaoWorkaround extends TraceableDao<ProfileSwitch> { public interface ProfileSwitchDaoWorkaround extends TraceableDao<ProfileSwitch> {

View file

@ -1,10 +1,10 @@
package info.nightscout.database.impl.daos.workaround; package app.aaps.database.impl.daos.workaround;
import androidx.room.Transaction; import androidx.room.Transaction;
import app.aaps.database.entities.interfaces.TraceableDBEntry; import app.aaps.database.entities.interfaces.TraceableDBEntry;
import info.nightscout.database.impl.daos.TraceableDao; import app.aaps.database.impl.daos.TraceableDao;
import info.nightscout.database.impl.daos.TraceableDaoKt; import app.aaps.database.impl.daos.TraceableDaoKt;
// keep in java, it's easier // keep in java, it's easier
public interface TraceableDaoWorkaround<T extends TraceableDBEntry> { public interface TraceableDaoWorkaround<T extends TraceableDBEntry> {

View file

@ -2,4 +2,4 @@
* Workarounds until Kotlin is able to properly translate interface default methods while annotation processing. * Workarounds until Kotlin is able to properly translate interface default methods while annotation processing.
* See https://youtrack.jetbrains.com/issue/KT-25960 * See https://youtrack.jetbrains.com/issue/KT-25960
*/ */
package info.nightscout.database.impl.daos.workaround; package app.aaps.database.impl.daos.workaround;

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.serialisation package app.aaps.database.impl.serialisation
import com.google.gson.Gson import com.google.gson.Gson
import com.google.gson.GsonBuilder import com.google.gson.GsonBuilder

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.OfflineEvent import app.aaps.database.entities.OfflineEvent
import app.aaps.database.entities.interfaces.end import app.aaps.database.entities.interfaces.end

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.TemporaryTarget import app.aaps.database.entities.TemporaryTarget
import app.aaps.database.entities.interfaces.end import app.aaps.database.entities.interfaces.end

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.GlucoseValue import app.aaps.database.entities.GlucoseValue
import app.aaps.database.entities.TherapyEvent import app.aaps.database.entities.TherapyEvent

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.Carbs import app.aaps.database.entities.Carbs
import app.aaps.database.entities.interfaces.end import app.aaps.database.entities.interfaces.end

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.OfflineEvent import app.aaps.database.entities.OfflineEvent
import app.aaps.database.entities.interfaces.end import app.aaps.database.entities.interfaces.end

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.TemporaryTarget import app.aaps.database.entities.TemporaryTarget
import app.aaps.database.entities.interfaces.end import app.aaps.database.entities.interfaces.end

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.Bolus import app.aaps.database.entities.Bolus

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.Carbs import app.aaps.database.entities.Carbs
import app.aaps.database.entities.embedments.InterfaceIDs import app.aaps.database.entities.embedments.InterfaceIDs

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.TherapyEvent import app.aaps.database.entities.TherapyEvent

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.BolusCalculatorResult import app.aaps.database.entities.BolusCalculatorResult

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.Bolus import app.aaps.database.entities.Bolus
import app.aaps.database.entities.embedments.InsulinConfiguration import app.aaps.database.entities.embedments.InsulinConfiguration

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.Carbs import app.aaps.database.entities.Carbs
import app.aaps.database.entities.embedments.InterfaceIDs import app.aaps.database.entities.embedments.InterfaceIDs

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.Food import app.aaps.database.entities.Food

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.HeartRate import app.aaps.database.entities.HeartRate

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.ProfileSwitch import app.aaps.database.entities.ProfileSwitch

View file

@ -1,4 +1,4 @@
package info.nightscout.database.impl.transactions package app.aaps.database.impl.transactions
import app.aaps.database.entities.TemporaryBasal import app.aaps.database.entities.TemporaryBasal

Some files were not shown because too many files have changed in this diff Show more