use of com.letscooee.utils.SentryHelper in project cooee-android-sdk by letscooee.
the class CooeeFactory method init.
public static synchronized void init(Context context) {
if (initialized) {
return;
}
appInfo = AppInfo.getInstance(context);
deviceInfo = DeviceInfo.getInstance(context);
manifestReader = ManifestReader.getInstance(context);
sentryHelper = new SentryHelper(context, appInfo, manifestReader);
sentryHelper.init();
// Sentry should be initialized first
ITransaction transaction = Sentry.startTransaction("CooeeFactory.init()", "task");
baseHTTPService = new BaseHTTPService(context);
// This is required in PendingTaskService (ultimately). TODO make this a strong dependency
deviceAuthService = new DeviceAuthService(context, sentryHelper, manifestReader);
deviceAuthService.populateUserDataFromStorage();
pendingTaskService = new PendingTaskService(context, sentryHelper);
runtimeData = RuntimeData.getInstance(context);
sessionManager = SessionManager.getInstance(context);
safeHTTPService = new SafeHTTPService(context, pendingTaskService, sessionManager, runtimeData);
transaction.finish();
initialized = true;
}
Aggregations