Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions WordPress/src/main/java/org/wordpress/android/AppInitializer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ import org.wordpress.android.util.analytics.AnalyticsUtils
import org.wordpress.android.util.config.AppConfig
import org.wordpress.android.util.config.OpenWebLinksWithJetpackFlowFeatureConfig
import org.wordpress.android.util.enqueuePeriodicUploadWorkRequestForAllSites
import org.wordpress.android.util.experiments.ExPlat
import org.wordpress.android.util.image.ImageManager
import org.wordpress.android.widgets.AppReviewManager
import org.wordpress.android.workers.WordPressWorkersFactory
Expand Down Expand Up @@ -184,9 +183,6 @@ class AppInitializer @Inject constructor(
@Inject
lateinit var imageEditorFileUtils: ImageEditorFileUtils

@Inject
lateinit var exPlat: ExPlat

@Inject
lateinit var wordPressWorkerFactory: WordPressWorkersFactory

Expand Down Expand Up @@ -372,8 +368,6 @@ class AppInitializer @Inject constructor(
systemNotificationsTracker.checkSystemNotificationsState()
ImageEditorInitializer.init(imageManager, imageEditorTracker, imageEditorFileUtils, appScope)

exPlat.forceRefresh()

initDebugCookieManager()

if (!initialized && BuildConfig.DEBUG && Build.VERSION.SDK_INT >= VERSION_CODES.R) {
Expand Down Expand Up @@ -662,9 +656,6 @@ class AppInitializer @Inject constructor(
if (accountStore.hasAccessToken()) {
// Make sure the Push Notification token is sent to our servers after a successful login
gcmRegistrationScheduler.scheduleRegistration()

// Force a refresh if user has logged in. This can be removed once we start using an anonymous ID.
exPlat.forceRefresh()
}
}

Expand Down Expand Up @@ -727,9 +718,6 @@ class AppInitializer @Inject constructor(

// Clear WordPress.com account cookie cache
wordPressCookieAuthenticator.clearAllCachedCookies()

// Clear cached assignments if user has logged out. This can be removed once we start using an anonymous ID.
exPlat.clear()
}

/*
Expand Down Expand Up @@ -934,11 +922,6 @@ class AppInitializer @Inject constructor(

// Let's migrate the old editor preference if available in AppPrefs to the remote backend
SiteUtils.migrateAppWideMobileEditorPreferenceToRemote(accountStore, siteStore, dispatcher)
if (!firstActivityResumed) {
// Since we're force refreshing on app startup, we don't need to try refreshing again when starting
// our first Activity.
exPlat.refreshIfNeeded()
}
Comment on lines -937 to -941
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intended removal. The experimentation library will handle per-session cache. There's no need to refresh the experiments on app resume.

if (firstActivityResumed) {
deferredInit()
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading