Skip to content

Commit 7fdc552

Browse files
authored
Remove remaining internal build references (#24235)
* Remove INTERNAL_BUILD compiler flag * Remove a8cPrereleaseTesting usages * Consolidate BuildConfiguration cases
1 parent 59da9d1 commit 7fdc552

File tree

8 files changed

+16
-23
lines changed

8 files changed

+16
-23
lines changed

WordPress/Classes/Services/Page Layouts/PageLayoutService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PageLayoutService {
6464
}
6565

6666
private static let supportedBlocks: String = {
67-
let isDevMode = BuildConfiguration.current ~= [.localDeveloper, .a8cBranchTest]
67+
let isDevMode = BuildConfiguration.current ~= [.localDeveloper, .alpha]
6868
return Gutenberg.supportedBlocks(isDev: isDevMode).joined(separator: ",")
6969
}()
7070

@@ -73,7 +73,7 @@ class PageLayoutService {
7373
private static let type = "mobile"
7474

7575
// Return "true" or "false" for isBeta that gets passed into the endpoint.
76-
private static let isBeta = String(BuildConfiguration.current ~= [.localDeveloper, .a8cBranchTest])
76+
private static let isBeta = String(BuildConfiguration.current ~= [.localDeveloper, .alpha])
7777

7878
}
7979

WordPress/Classes/System/WordPressAppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ extension WordPressAppDelegate {
543543
/// Otherwise an anonymous remote will be used
544544
func updateFeatureFlags(authToken: String? = nil, completion: (() -> Void)? = nil) {
545545
// Enable certain feature flags on test builds.
546-
if BuildConfiguration.current ~= [.a8cPrereleaseTesting, .a8cBranchTest, .localDeveloper] {
546+
if BuildConfiguration.current ~= [.alpha, .localDeveloper] {
547547
FeatureFlagOverrideStore().override(RemoteFeatureFlag.dotComWebLogin, withValue: true)
548548
}
549549

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
enum BuildConfiguration: String {
2-
/// Development build, usually run from Xcode
2+
/// Development build, usually run from Xcode.
33
case localDeveloper
44

5-
/// Continuous integration builds for Automattic employees to test branches & PRs
6-
case a8cBranchTest
5+
/// Preproduction builds for Automattic employees.
6+
case alpha
77

8-
/// Beta released internally for Automattic employees
9-
case a8cPrereleaseTesting
10-
11-
/// Production build released in the app store
8+
/// Production build released in the app store.
129
case appStore
1310

1411
static var current: BuildConfiguration {
1512
#if DEBUG
1613
return .localDeveloper
1714
#elseif ALPHA_BUILD
18-
return .a8cBranchTest
19-
#elseif INTERNAL_BUILD
20-
return .a8cPrereleaseTesting
15+
return .alpha
2116
#else
2217
return .appStore
2318
#endif
@@ -28,6 +23,6 @@ enum BuildConfiguration: String {
2823
}
2924

3025
var isInternal: Bool {
31-
self ~= [.localDeveloper, .a8cBranchTest, .a8cPrereleaseTesting]
26+
self ~= [.localDeveloper, .alpha]
3227
}
3328
}

WordPress/Classes/Utility/BuildInformation/FeatureFlag.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ enum FeatureFlag: Int, CaseIterable {
6262
case .googleDomainsCard:
6363
return false
6464
case .voiceToContent:
65-
return AppConfiguration.isJetpack && BuildConfiguration.current ~= [.localDeveloper, .a8cBranchTest]
65+
return AppConfiguration.isJetpack && BuildConfiguration.current ~= [.localDeveloper, .alpha]
6666
case .authenticateUsingApplicationPassword:
6767
return false
6868
case .newGutenberg:

WordPress/Classes/Utility/BuildInformation/RemoteFeatureFlag.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ enum RemoteFeatureFlag: Int, CaseIterable {
8383
case .inAppUpdates:
8484
return false
8585
case .gravatarQuickEditor:
86-
return BuildConfiguration.current ~= [.localDeveloper, .a8cBranchTest, .a8cPrereleaseTesting]
86+
return BuildConfiguration.current ~= [.localDeveloper, .alpha]
8787
case .dotComWebLogin:
8888
return false
8989
}

WordPress/Classes/ViewRelated/Jetpack/Branding/Coordinator/JetpackRedirector.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ class JetpackRedirector {
1414
return "jpdebug"
1515
#elseif ALPHA_BUILD
1616
return "jpalpha"
17-
#elseif INTERNAL_BUILD
18-
return "jpinternal"
1917
#else
2018
return "jetpack"
2119
#endif

WordPress/Classes/ViewRelated/NUX/Helpers/WordPressAuthenticationManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extension WordPressAuthenticationManager {
5858
private func authenticatorConfiguation() -> WordPressAuthenticatorConfiguration {
5959
// SIWA can not be enabled for internal builds
6060
// Ref https://github.com/wordpress-mobile/WordPress-iOS/pull/12332#issuecomment-521994963
61-
let enableSignInWithApple = !(BuildConfiguration.current ~= [.a8cBranchTest, .a8cPrereleaseTesting])
61+
let enableSignInWithApple = !(BuildConfiguration.current ~= [.alpha])
6262

6363
return WordPressAuthenticatorConfiguration(
6464
wpcomClientId: ApiCredentials.client,

WordPress/WordPress.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11218,7 +11218,7 @@
1121811218
"@executable_path/../../Frameworks",
1121911219
);
1122011220
MTL_ENABLE_DEBUG_INFO = NO;
11221-
OTHER_SWIFT_FLAGS = "$(inherited) -D ALPHA_BUILD -D INTERNAL_BUILD";
11221+
OTHER_SWIFT_FLAGS = "$(inherited) -D ALPHA_BUILD";
1122211222
PRODUCT_BUNDLE_IDENTIFIER = com.jetpack.alpha.JetpackShare;
1122311223
PRODUCT_NAME = "$(TARGET_NAME)";
1122411224
PROVISIONING_PROFILE_SPECIFIER = "match InHouse com.jetpack.alpha.JetpackShare";
@@ -11766,7 +11766,7 @@
1176611766
"-l\"sqlite3.0\"",
1176711767
"-l\"z\"",
1176811768
);
11769-
OTHER_SWIFT_FLAGS = "$(inherited) -D ALPHA_BUILD -D INTERNAL_BUILD";
11769+
OTHER_SWIFT_FLAGS = "$(inherited) -D ALPHA_BUILD";
1177011770
PRODUCT_BUNDLE_IDENTIFIER = org.wordpress.alpha;
1177111771
PRODUCT_NAME = WordPress;
1177211772
PROVISIONING_PROFILE_SPECIFIER = "match InHouse org.wordpress.alpha";
@@ -12008,7 +12008,7 @@
1200812008
"@executable_path/../../Frameworks",
1200912009
);
1201012010
MTL_ENABLE_DEBUG_INFO = NO;
12011-
OTHER_SWIFT_FLAGS = "$(inherited) -D ALPHA_BUILD -D INTERNAL_BUILD";
12011+
OTHER_SWIFT_FLAGS = "$(inherited) -D ALPHA_BUILD";
1201212012
PRODUCT_BUNDLE_IDENTIFIER = org.wordpress.alpha.WordPressShare;
1201312013
PRODUCT_NAME = "$(TARGET_NAME)";
1201412014
PROVISIONING_PROFILE_SPECIFIER = "match InHouse org.wordpress.alpha.WordPressShare";
@@ -12548,7 +12548,7 @@
1254812548
"-l\"sqlite3.0\"",
1254912549
"-l\"z\"",
1255012550
);
12551-
OTHER_SWIFT_FLAGS = "$(inherited) -D ALPHA_BUILD -D INTERNAL_BUILD";
12551+
OTHER_SWIFT_FLAGS = "$(inherited) -D ALPHA_BUILD";
1255212552
PRODUCT_BUNDLE_IDENTIFIER = com.jetpack.alpha;
1255312553
PRODUCT_MODULE_NAME = WordPress;
1255412554
PRODUCT_NAME = "$(TARGET_NAME)";

0 commit comments

Comments
 (0)