File tree 2 files changed +8
-7
lines changed
Tests/KeystoneTests/Tests/Jetpack
WordPress/Classes/ViewRelated/Jetpack/Branding/Coordinator
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ final class JetpackFeaturesRemovalCoordinatorTests: CoreDataTestCase {
357
357
358
358
// When
359
359
// assume that we're requesting from the WordPress app.
360
- let phase = JetpackFeaturesRemovalCoordinator . generalPhase ( featureFlagStore: store, isJetpack : false )
360
+ let phase = JetpackFeaturesRemovalCoordinator . generalPhase ( featureFlagStore: store, app : . wordpress )
361
361
362
362
// Then
363
363
XCTAssertEqual ( phase, . staticScreens)
@@ -372,7 +372,7 @@ final class JetpackFeaturesRemovalCoordinatorTests: CoreDataTestCase {
372
372
373
373
// When
374
374
// assume that we're requesting from the Jetpack app.
375
- let phase = JetpackFeaturesRemovalCoordinator . generalPhase ( featureFlagStore: store, isJetpack : true )
375
+ let phase = JetpackFeaturesRemovalCoordinator . generalPhase ( featureFlagStore: store, app : . jetpack )
376
376
377
377
// Then
378
378
XCTAssertEqual ( phase, . normal)
Original file line number Diff line number Diff line change 1
1
import Foundation
2
+ import BuildSettingsKit
2
3
import WordPressShared
3
4
4
5
/// A class containing convenience methods for the the Jetpack features removal experience
@@ -92,9 +93,9 @@ public class JetpackFeaturesRemovalCoordinator: NSObject {
92
93
static var currentAppUIType : RootViewCoordinator . AppUIType ?
93
94
94
95
static func generalPhase( featureFlagStore: RemoteFeatureFlagStore = RemoteFeatureFlagStore ( ) ,
95
- isJetpack : Bool = AppConfiguration . isJetpack ) -> GeneralPhase {
96
- if isJetpack {
97
- return . normal // Always return normal for Jetpack
96
+ app : AppBrand = BuildSettings . current . brand ) -> GeneralPhase {
97
+ guard app == . wordpress else {
98
+ return . normal // Show migration only for the WordPress app
98
99
}
99
100
100
101
if AccountHelper . noWordPressDotComAccount {
@@ -124,8 +125,8 @@ public class JetpackFeaturesRemovalCoordinator: NSObject {
124
125
}
125
126
126
127
static func siteCreationPhase( featureFlagStore: RemoteFeatureFlagStore = RemoteFeatureFlagStore ( ) ) -> SiteCreationPhase {
127
- if AppConfiguration . isJetpack {
128
- return . normal // Always return normal for Jetpack
128
+ guard BuildSettings . current . brand == . wordpress else {
129
+ return . normal // Show migration only for the WordPress app
129
130
}
130
131
131
132
if RemoteFeatureFlag . jetpackFeaturesRemovalPhaseNewUsers. enabled ( using: featureFlagStore)
You can’t perform that action at this time.
0 commit comments