From e18e4b6d9e7cae8f87601b5746b841a9f8a41eae Mon Sep 17 00:00:00 2001 From: jinliu9508 Date: Tue, 16 Jul 2024 13:05:02 -0400 Subject: [PATCH] move unused service initialization out of main thread --- .../java/com/onesignal/core/CoreModule.kt | 2 - .../impl/RequestPermissionService.kt | 2 +- .../core/internal/startup/StartupService.kt | 18 ++--- .../com/onesignal/internal/OneSignalImp.kt | 69 +++++++++---------- .../internal/startup/StartupServiceTests.kt | 53 +++++++++----- 5 files changed, 78 insertions(+), 66 deletions(-) diff --git a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/CoreModule.kt b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/CoreModule.kt index efc06d54a4..6d36caaf9f 100644 --- a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/CoreModule.kt +++ b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/CoreModule.kt @@ -32,7 +32,6 @@ import com.onesignal.core.internal.preferences.impl.PreferencesService import com.onesignal.core.internal.purchases.impl.TrackAmazonPurchase import com.onesignal.core.internal.purchases.impl.TrackGooglePurchase import com.onesignal.core.internal.startup.IStartableService -import com.onesignal.core.internal.startup.StartupService import com.onesignal.core.internal.time.ITime import com.onesignal.core.internal.time.impl.Time import com.onesignal.inAppMessages.IInAppMessagesManager @@ -54,7 +53,6 @@ internal class CoreModule : IModule { builder.register().provides() builder.register