AbstractCommand constructor
AbstractCommand()
Implementation
AbstractCommand() {
WidgetsFlutterBinding.ensureInitialized();
// Initialization of serialization
CarpMobileSensing.ensureInitialized();
CarpDataManager();
ResearchPackage.ensureInitialized();
CognitionPackage.ensureInitialized();
// make sure not to mess with CAMS
Settings().saveAppTaskQueue = false;
_yaml ??= loadYaml(File('carp/carpspec.yaml').readAsStringSync());
// register the sampling packages
// this is used to be able to deserialize the json protocol
SamplingPackageRegistry().register(AppsSamplingPackage());
SamplingPackageRegistry().register(CommunicationSamplingPackage());
SamplingPackageRegistry().register(ContextSamplingPackage());
SamplingPackageRegistry().register(MediaSamplingPackage());
SamplingPackageRegistry().register(SurveySamplingPackage());
SamplingPackageRegistry().register(HealthSamplingPackage());
SamplingPackageRegistry().register(ESenseSamplingPackage());
SamplingPackageRegistry().register(PolarSamplingPackage());
}