Skip to content

Commit

Permalink
Merge branch 'trunk' into xcode-14
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli committed Sep 5, 2022
2 parents 73e0ff8 + a016e82 commit d5c1cdd
Show file tree
Hide file tree
Showing 79 changed files with 1,789 additions and 777 deletions.
1 change: 1 addition & 0 deletions .buildkite/commands/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ bundle exec fastlane run configure_apply
echo "--- :hammer_and_wrench: Building"
bundle exec fastlane build_and_upload_itc \
skip_confirm:true \
skip_prechecks:true \
create_release:true \
beta_release:${1:-true} # use first call param, default to true for safety
11 changes: 11 additions & 0 deletions .buildkite/commands/run-ui-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ install_cocoapods
echo "--- 🧪 Testing"
xcrun simctl list >> /dev/null
rake mocks &
set +e
bundle exec fastlane test_without_building name:"$TEST_NAME" device:"$DEVICE" ios_version:"$IOS_VERSION"
TESTS_EXIT_STATUS=$?
set -e

if [[ "$TESTS_EXIT_STATUS" -ne 0 ]]; then
# Keep the (otherwise collapsed) current "Testing" section open in Buildkite logs on error. See https://buildkite.com/docs/pipelines/managing-log-output#collapsing-output
echo "^^^ +++"
echo "UI Tests failed!"
fi

echo "--- 📦 Zipping test results"
cd fastlane/test_output/ && zip -rq WooCommerce.xcresult.zip WooCommerce.xcresult && cd -

exit $TESTS_EXIT_STATUS
11 changes: 11 additions & 0 deletions .buildkite/commands/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ echo "--- :rubygems: Setting up Gems"
install_gems

echo "--- 🧪 Testing"
set +e
bundle exec fastlane test_without_building name:UnitTests
TESTS_EXIT_STATUS=$?
set -e

if [[ "$TESTS_EXIT_STATUS" -ne 0 ]]; then
# Keep the (otherwise collapsed) current "Testing" section open in Buildkite logs on error. See https://buildkite.com/docs/pipelines/managing-log-output#collapsing-output
echo "^^^ +++"
echo "Unit Tests failed!"
fi

echo "--- 📦 Zipping test results"
cd fastlane/test_output/ && zip -rq WooCommerce.xcresult.zip WooCommerce.xcresult && cd -

exit $TESTS_EXIT_STATUS
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Contains editorialized release notes. Raw release notes should go into `RELEASE-NOTES.txt`.
-->

## 10.2
Even though this release doesn’t have any new features, we still put a lot of love into it! You can now enable or disable the option to take card or cash payments on collection or delivery. We also added a new Help Center page that makes it easier for you to login to the app.

## 10.1
This release has several fixes that makes it easier for you to take payments from the app. We’ve also added a new Help Center FAQ page that makes it easier for you to login to the app.
Please continue to send us feedback – we are listening!
Expand Down
4 changes: 2 additions & 2 deletions Experiments/Experiments/DefaultFeatureFlagService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
return buildConfig == .localDeveloper || buildConfig == .alpha
case .jetpackConnectionPackageSupport:
return true
case .hubMenu:
return true
case .couponView:
return true
case .productSKUInputScanner:
Expand Down Expand Up @@ -49,6 +47,8 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
return true
case .promptToEnableCodInIppOnboarding:
return true
case .storeWidgets:
return buildConfig == .localDeveloper || buildConfig == .alpha
default:
return true
}
Expand Down
8 changes: 4 additions & 4 deletions Experiments/Experiments/FeatureFlag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ public enum FeatureFlag: Int {
///
case jetpackConnectionPackageSupport

/// Display the new tab "Menu" in the tab bar.
///
case hubMenu

/// Displays the option to view coupons
///
case couponView
Expand Down Expand Up @@ -101,4 +97,8 @@ public enum FeatureFlag: Int {
/// Whether to include the Cash on Delivery enable step in In-Person Payment onboarding
///
case promptToEnableCodInIppOnboarding

/// Enables home screen store widgets.
///
case storeWidgets
}
38 changes: 19 additions & 19 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ GEM
ast (2.4.2)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.579.0)
aws-sdk-core (3.130.1)
aws-partitions (1.621.0)
aws-sdk-core (3.134.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.56.0)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.58.0)
aws-sdk-core (~> 3, >= 3.127.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.113.0)
aws-sdk-s3 (1.114.0)
aws-sdk-core (~> 3, >= 3.127.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
aws-sigv4 (1.5.0)
aws-sigv4 (1.5.1)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
bigdecimal (1.4.4)
Expand Down Expand Up @@ -89,13 +89,13 @@ GEM
rake (>= 12.0.0, < 14.0.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
dotenv (2.8.1)
emoji_regex (3.2.3)
escape (0.0.4)
ethon (0.15.0)
ffi (>= 1.15.0)
excon (0.92.2)
faraday (1.10.1)
excon (0.92.4)
faraday (1.10.2)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
Expand Down Expand Up @@ -124,7 +124,7 @@ GEM
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.2.6)
fastlane (2.205.2)
fastlane (2.209.1)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
Expand Down Expand Up @@ -188,8 +188,8 @@ GEM
git (1.12.0)
addressable (~> 2.8)
rchardet (~> 1.8)
google-apis-androidpublisher_v3 (0.19.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-androidpublisher_v3 (0.25.0)
google-apis-core (>= 0.7, < 2.a)
google-apis-core (0.7.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
Expand All @@ -201,8 +201,8 @@ GEM
webrick
google-apis-iamcredentials_v1 (0.13.0)
google-apis-core (>= 0.7, < 2.a)
google-apis-playcustomapp_v1 (0.7.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-playcustomapp_v1 (0.10.0)
google-apis-core (>= 0.7, < 2.a)
google-apis-storage_v1 (0.17.0)
google-apis-core (>= 0.7, < 2.a)
google-cloud-core (1.6.0)
Expand All @@ -227,13 +227,13 @@ GEM
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
highline (2.0.3)
http-cookie (1.0.4)
http-cookie (1.0.5)
domain_name (~> 0.5)
httpclient (2.8.3)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jmespath (1.6.1)
json (2.6.1)
json (2.6.2)
jsonlint (0.3.0)
oj (~> 3)
optimist (~> 3)
Expand Down Expand Up @@ -330,14 +330,14 @@ GEM
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.1)
unf_ext (0.0.8.2)
unicode-display_width (2.1.0)
webrick (1.7.0)
word_wrap (1.0.0)
xcode-install (2.8.0)
claide (>= 0.9.1, < 1.1.0)
fastlane (>= 2.1.0, < 3.0.0)
xcodeproj (1.21.0)
xcodeproj (1.22.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
Expand Down Expand Up @@ -371,4 +371,4 @@ DEPENDENCIES
xcpretty-travis-formatter

BUNDLED WITH
2.3.8
2.3.20
25 changes: 17 additions & 8 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ def aztec
pod 'WordPress-Editor-iOS', '~> 1.11.0'
end

def tracks
pod 'Automattic-Tracks-iOS', '~> 0.12.0'
# pod 'Automattic-Tracks-iOS', :git => 'https://github.com/Automattic/Automattic-Tracks-iOS.git', :branch => ''
# pod 'Automattic-Tracks-iOS', :git => 'https://github.com/Automattic/Automattic-Tracks-iOS.git', :commit => ''
# pod 'Automattic-Tracks-iOS', :path => '../Automattic-Tracks-iOS'
end

# Main Target!
# ============
#
Expand All @@ -36,10 +43,7 @@ target 'WooCommerce' do
# ====================
#

pod 'Automattic-Tracks-iOS', '~> 0.12.0-beta.2'
# pod 'Automattic-Tracks-iOS', :git => 'https://github.com/Automattic/Automattic-Tracks-iOS.git', :branch => ''
# pod 'Automattic-Tracks-iOS', :git => 'https://github.com/Automattic/Automattic-Tracks-iOS.git', :commit => ''
# pod 'Automattic-Tracks-iOS', :path => '../Automattic-Tracks-iOS'
tracks

pod 'Gridicons', '~> 1.2.0'

Expand Down Expand Up @@ -79,6 +83,14 @@ target 'WooCommerce' do
end
end

# StoreWidget Target
# ==========
#
target 'StoreWidgetsExtension' do
project 'WooCommerce/WooCommerce.xcodeproj'
tracks
end

# Yosemite Layer:
# ===============
#
Expand Down Expand Up @@ -229,10 +241,7 @@ end
# ==================
#
def experiments_pods
pod 'Automattic-Tracks-iOS', '~> 0.12.0-beta.2'
# pod 'Automattic-Tracks-iOS', :git => 'https://github.com/Automattic/Automattic-Tracks-iOS.git', :branch => ''
# pod 'Automattic-Tracks-iOS', :git => 'https://github.com/Automattic/Automattic-Tracks-iOS.git', :commit => '7e11e93d6205f51c09aad5d59f4e0679a796a2ef'
# pod 'Automattic-Tracks-iOS', :path => '../Automattic-Tracks-iOS'
tracks
pod 'CocoaLumberjack', '~> 3.7.4'
pod 'CocoaLumberjack/Swift', '~> 3.7.4'
end
Expand Down
8 changes: 4 additions & 4 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PODS:
- AppAuth/Core (1.5.0)
- AppAuth/ExternalUserAgent (1.5.0):
- AppAuth/Core
- Automattic-Tracks-iOS (0.12.0-beta.2):
- Automattic-Tracks-iOS (0.12.0):
- Sentry (~> 6)
- Sodium (>= 0.9.1)
- UIDeviceIdentifier (~> 2.0)
Expand Down Expand Up @@ -83,7 +83,7 @@ PODS:

DEPENDENCIES:
- Alamofire (~> 4.8)
- Automattic-Tracks-iOS (~> 0.12.0-beta.2)
- Automattic-Tracks-iOS (~> 0.12.0)
- CocoaLumberjack (~> 3.7.4)
- CocoaLumberjack/Swift (~> 3.7.4)
- Gridicons (~> 1.2.0)
Expand Down Expand Up @@ -144,7 +144,7 @@ SPEC REPOS:
SPEC CHECKSUMS:
Alamofire: 3ec537f71edc9804815215393ae2b1a8ea33a844
AppAuth: 80317d99ac7ff2801a2f18ff86b48cd315ed465d
Automattic-Tracks-iOS: f31213fbf0391968ffcff75e8c1bdad398589261
Automattic-Tracks-iOS: dae8787ffc2c74493a3a908abc48aed527686131
CocoaLumberjack: 543c79c114dadc3b1aba95641d8738b06b05b646
FormatterKit: 184db51bf120b633693a73624a4cede89ec51a41
GoogleSignIn: fd381840dbe7c1137aa6dc30849a5c3e070c034a
Expand Down Expand Up @@ -179,6 +179,6 @@ SPEC CHECKSUMS:
ZendeskSupportProvidersSDK: 2bdf8544f7cd0fd4c002546f5704b813845beb2a
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba

PODFILE CHECKSUM: 9a75e7f419482622cc94acc2a73bd04ebbc4beaf
PODFILE CHECKSUM: 79417db449eae85f8a39f1707df162e137f11d43

COCOAPODS: 1.11.2
5 changes: 5 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
*** PLEASE FOLLOW THIS FORMAT: [<priority indicator, more stars = higher priority>] <description> [<PR URL>]

10.3
-----


10.2
-----
- [*] Help center: Added help center web page with FAQs for "Enter Store Credentials", "Enter WordPress.com email " and "Jetpack required Error" screens. [https://github.com/woocommerce/woocommerce-ios/pull/7588, https://github.com/woocommerce/woocommerce-ios/pull/7590, https://github.com/woocommerce/woocommerce-ios/pull/7621]
- [*] In-Person Payments: Fixed the Learn More link from the `Enable Pay in Person` onboarding screen for WCPay [https://github.com/woocommerce/woocommerce-ios/pull/7598]
- [**] In-Person Payments: Added a switch for the Pay in Person payment method on the Payments menu. This allows you to accept In-Person Payments for website orders [https://github.com/woocommerce/woocommerce-ios/pull/7613]

10.1
-----
Expand Down
Loading

0 comments on commit d5c1cdd

Please sign in to comment.