Skip to content

Commit 4e55364

Browse files
committed
Merge branch 'trunk' into issue/6902-bug-refunds-in-products-list-order-details
2 parents 19dacc3 + ee78bd0 commit 4e55364

File tree

128 files changed

+3294
-1449
lines changed

Some content is hidden

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

128 files changed

+3294
-1449
lines changed

.buildkite/cache-builder.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,22 @@ common_params:
1313
repo: "woocommerce/woocommerce-ios/"
1414
# Common environment values to use with the `env` key.
1515
- &common_env
16-
IMAGE_ID: xcode-13.3.1
16+
IMAGE_ID: xcode-13.4.1
1717

1818
steps:
1919

2020
#################
2121
# Build the CocoaPods Base Cache
22-
#
22+
#
2323
# This prevents the base cache from infinite growth caused by storing every
2424
# version of every pod we've ever used.
2525
#################
2626
- label: ":cocoapods: Rebuild CocoaPods cache"
2727
command: |
28+
# Workaround for https://github.com/Automattic/buildkite-ci/issues/79
29+
echo "--- :rubygems: Fixing Ruby Setup"
30+
gem install bundler
31+
2832
echo "--- :rubygems: Setting up Gems"
2933
install_gems
3034

.buildkite/commands/build-for-testing.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -eu
22

3-
# FIXIT-13.1: Temporary fix until we're on the Xcode 13.1 VM
3+
# Workaround for https://github.com/Automattic/buildkite-ci/issues/79
44
echo "--- :rubygems: Fixing Ruby Setup"
55
gem install bundler
66

.buildkite/commands/release-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -eu
22

3-
# FIXIT-13.1: Temporary fix until we're on the Xcode 13.1 VM
3+
# Workaround for https://github.com/Automattic/buildkite-ci/issues/79
44
echo "--- :rubygems: Fixing Ruby Setup"
55
gem install bundler
66

.buildkite/commands/run-ui-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IOS_VERSION=$3
66

77
echo "Running $TEST_NAME on $DEVICE for iOS $IOS_VERSION"
88

9-
# FIXIT-13.1: Temporary fix until we're on the Xcode 13.1 VM
9+
# Workaround for https://github.com/Automattic/buildkite-ci/issues/79
1010
echo "--- :rubygems: Fixing Ruby Setup"
1111
gem install bundler
1212

.buildkite/commands/run-unit-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ echo "--- 📦 Downloading Build Artifacts"
44
buildkite-agent artifact download build-products.tar .
55
tar -xf build-products.tar
66

7-
# FIXIT-13.1: Temporary fix until we're on the Xcode 13.1 VM
7+
# Workaround for https://github.com/Automattic/buildkite-ci/issues/79
88
echo "--- :rubygems: Fixing Ruby Setup"
99
gem install bundler
1010

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ common_params:
88
repo: "woocommerce/woocommerce-ios/"
99
# Common environment values to use with the `env` key.
1010
- &common_env
11-
IMAGE_ID: xcode-13.3.1
11+
IMAGE_ID: xcode-13.4.1
1212

1313
# This is the default pipeline – it will build and test the app
1414
steps:

.buildkite/release-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ common_params:
1010
repo: "woocommerce/woocommerce-ios/"
1111
# Common environment values to use with the `env` key.
1212
- &common_env
13-
IMAGE_ID: xcode-13.3.1
13+
IMAGE_ID: xcode-13.4.1
1414

1515
steps:
1616

CodeGeneration/Package.swift

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
1-
// swift-tools-version:5.3
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
1+
// swift-tools-version:5.5
32

43
import PackageDescription
54

65
let package = Package(
76
name: "Codegen",
87
products: [
9-
// Products define the executables and libraries a package produces, and make them visible to other packages.
108
.library(
119
name: "Codegen",
1210
type: .dynamic,
1311
targets: ["Codegen"]),
1412
],
15-
dependencies: [
16-
// Dependencies declare other packages that this package depends on.
17-
// .package(url: /* package url */, from: "1.0.0"),
18-
],
13+
dependencies: [],
1914
targets: [
20-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
21-
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2215
.target(
2316
name: "Codegen",
2417
dependencies: []),

Experiments/Experiments/DefaultFeatureFlagService.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
2929
return true
3030
case .couponEditing:
3131
return true
32+
case .couponCreation:
33+
return buildConfig == .localDeveloper || buildConfig == .alpha
3234
case .updateOrderOptimistically:
3335
return buildConfig == .localDeveloper || buildConfig == .alpha
3436
case .shippingLabelsOnboardingM1:
@@ -39,6 +41,8 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
3941
return buildConfig == .localDeveloper || buildConfig == .alpha
4042
case .backgroundProductImageUpload:
4143
return buildConfig == .localDeveloper || buildConfig == .alpha
44+
case .appleIDAccountDeletion:
45+
return buildConfig == .localDeveloper || buildConfig == .alpha
4246
default:
4347
return true
4448
}

Experiments/Experiments/FeatureFlag.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ public enum FeatureFlag: Int {
5858
///
5959
case couponEditing
6060

61+
/// Displays the option to create a coupon
62+
///
63+
case couponCreation
64+
6165
/// Enable optimistic updates for orders
6266
///
6367
case updateOrderOptimistically
@@ -77,4 +81,8 @@ public enum FeatureFlag: Int {
7781
/// Enable image upload after leaving the product form
7882
///
7983
case backgroundProductImageUpload
84+
85+
/// Apple ID account deletion
86+
///
87+
case appleIDAccountDeletion
8088
}

0 commit comments

Comments
 (0)