-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from christinadamianou/dev
Dev
- Loading branch information
Showing
124 changed files
with
1,327 additions
and
607 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
371 changes: 128 additions & 243 deletions
371
app/src/main/assets/OpenAPSSMBDynamicISF/determine-basal.js
Large diffs are not rendered by default.
Oops, something went wrong.
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
72 changes: 72 additions & 0 deletions
72
app/src/main/java/info/nightscout/androidaps/activities/fragments/HistoryBrowserData.kt
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,72 @@ | ||
package info.nightscout.androidaps.activities.fragments | ||
|
||
import dagger.android.HasAndroidInjector | ||
import info.nightscout.androidaps.database.AppRepository | ||
import info.nightscout.androidaps.interfaces.ActivePlugin | ||
import info.nightscout.androidaps.interfaces.ProfileFunction | ||
import info.nightscout.androidaps.interfaces.ResourceHelper | ||
import info.nightscout.androidaps.plugins.bus.RxBus | ||
import info.nightscout.androidaps.plugins.general.overview.OverviewData | ||
import info.nightscout.androidaps.plugins.iob.iobCobCalculator.IobCobCalculatorPlugin | ||
import info.nightscout.androidaps.utils.DateUtil | ||
import info.nightscout.androidaps.utils.DefaultValueHelper | ||
import info.nightscout.androidaps.utils.FabricPrivacy | ||
import info.nightscout.androidaps.utils.rx.AapsSchedulers | ||
import info.nightscout.androidaps.workflow.CalculationWorkflow | ||
import info.nightscout.shared.logging.AAPSLogger | ||
import info.nightscout.shared.sharedPreferences.SP | ||
import javax.inject.Inject | ||
import javax.inject.Singleton | ||
|
||
@Singleton | ||
class HistoryBrowserData @Inject constructor( | ||
injector: HasAndroidInjector, | ||
aapsSchedulers: AapsSchedulers, | ||
rxBus: RxBus, | ||
aapsLogger: AAPSLogger, | ||
rh: ResourceHelper, | ||
dateUtil: DateUtil, | ||
sp: SP, | ||
activePlugin: ActivePlugin, | ||
defaultValueHelper: DefaultValueHelper, | ||
profileFunction: ProfileFunction, | ||
repository: AppRepository, | ||
fabricPrivacy: FabricPrivacy, | ||
calculationWorkflow: CalculationWorkflow | ||
) { | ||
|
||
var iobCobCalculator: IobCobCalculatorPlugin | ||
var overviewData: OverviewData | ||
|
||
init { | ||
// We don't want to use injected singletons but own instance working on top of different data | ||
overviewData = | ||
OverviewData( | ||
aapsLogger, | ||
rh, | ||
dateUtil, | ||
sp, | ||
activePlugin, | ||
defaultValueHelper, | ||
profileFunction, | ||
repository, | ||
fabricPrivacy | ||
) | ||
iobCobCalculator = | ||
IobCobCalculatorPlugin( | ||
injector, | ||
aapsLogger, | ||
aapsSchedulers, | ||
rxBus, | ||
sp, | ||
rh, | ||
profileFunction, | ||
activePlugin, | ||
fabricPrivacy, | ||
dateUtil, | ||
repository, | ||
overviewData, | ||
calculationWorkflow | ||
) | ||
} | ||
} |
Oops, something went wrong.