Skip to content

Commit 2474539

Browse files
authored
Remove IAP code and usage (#16128)
2 parents c85bad1 + 20a4859 commit 2474539

File tree

61 files changed

+18
-5095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+18
-5095
lines changed

Modules/Sources/Networking/Mapper/InAppPurchaseOrderResultMapper.swift

Lines changed: 0 additions & 28 deletions
This file was deleted.

Modules/Sources/Networking/Mapper/InAppPurchasesProductMapper.swift

Lines changed: 0 additions & 13 deletions
This file was deleted.

Modules/Sources/Networking/Mapper/InAppPurchasesTransactionMapper.swift

Lines changed: 0 additions & 34 deletions
This file was deleted.

Modules/Sources/Networking/Model/Site.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,6 @@ public extension Site {
265265
var isSimpleSite: Bool {
266266
plan == WooConstants.freePlanSlug
267267
}
268-
269-
/// Whether the site is running a free trial WooExpress plan
270-
///
271-
var isFreeTrialSite: Bool {
272-
plan == WooConstants.freeTrialPlanSlug
273-
}
274268
}
275269

276270
/// Defines all of the Site CodingKeys.

Modules/Sources/Networking/Remote/FeatureFlagRemote.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,13 @@ public class FeatureFlagRemote: Remote, FeatureFlagRemoteProtocol {
2828

2929
public enum RemoteFeatureFlag: Decodable {
3030
case storeCreationCompleteNotification
31-
case hardcodedPlanUpgradeDetailsMilestone1AreAccurate
3231
case pointOfSale
3332
case appPasswordsForJetpackSites
3433

3534
init?(rawValue: String) {
3635
switch rawValue {
3736
case "woo_notification_store_creation_ready":
3837
self = .storeCreationCompleteNotification
39-
case "woo_hardcoded_plan_upgrade_details_milestone_1_are_accurate":
40-
self = .hardcodedPlanUpgradeDetailsMilestone1AreAccurate
4138
case "woo_pos":
4239
self = .pointOfSale
4340
case "woo_app_passwords_for_jetpack_sites":

Modules/Sources/Networking/Remote/InAppPurchasesRemote.swift

Lines changed: 0 additions & 169 deletions
This file was deleted.

Modules/Sources/Networking/Remote/PaymentRemote.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public protocol PaymentRemoteProtocol {
2828

2929
/// WPCOM Payment Endpoints
3030
///
31+
// periphery:ignore
3132
public class PaymentRemote: Remote, PaymentRemoteProtocol {
3233
public func loadPlan(thatMatchesID productID: Int64) async throws -> WPComPlan {
3334
let path = Path.products
@@ -103,6 +104,7 @@ public struct WPComPlan: Decodable, Equatable {
103104
}
104105

105106
/// Contains necessary data for a site's WPCOM plan.
107+
// periphery:ignore
106108
public struct WPComSitePlan: Equatable {
107109
/// ID of the WPCOM plan.
108110
///

Modules/Sources/NetworkingCore/Settings/WooConstants.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ public enum WooConstants {
1313
/// Slug of the free plan
1414
public static let freePlanSlug = "free_plan"
1515

16-
/// Slug of the free trial WooExpress plan
17-
public static let freeTrialPlanSlug = "ecommerce-trial-bundle-monthly"
1816
}

Modules/Sources/WooFoundationCore/Analytics/WooAnalyticsStat.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,16 +1170,6 @@ public enum WooAnalyticsStat: String {
11701170
case planUpgradeSuccess = "plan_upgrade_success"
11711171
case planUpgradeAbandoned = "plan_upgrade_abandoned"
11721172

1173-
// MARK: In-App Purchases
1174-
case planUpgradePurchaseButtonTapped = "plan_upgrade_purchase_button_tapped"
1175-
case planUpgradeScreenLoaded = "plan_upgrade_screen_loaded"
1176-
case planUpgradeScreenDismissed = "plan_upgrade_screen_dismissed"
1177-
case planUpgradeDetailsScreenLoaded = "plan_upgrade_details_screen_loaded"
1178-
case planUpgradeProcessingScreenLoaded = "plan_upgrade_processing_screen_loaded"
1179-
case planUpgradeCompletedScreenLoaded = "plan_upgrade_completed_screen_loaded"
1180-
case planUpgradePurchaseFailed = "plan_upgrade_purchase_failed"
1181-
1182-
11831173
// MARK: Application password authorization in web view
11841174
case applicationPasswordAuthorizationButtonTapped = "application_password_authorization_button_tapped"
11851175
case applicationPasswordAuthorizationWebViewShown = "application_password_authorization_web_view_shown"

Modules/Sources/Yosemite/Actions/InAppPurchaseAction.swift

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)