Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/21.8' into merge/hotfix-…
Browse files Browse the repository at this point in the history
…21.7.2-into-release-21.8

Got conflicts in the `config/Version.*.xcconfig` files. Resolved them,
as usual for hotfixes going into release branches, via `git checkout
--theirs` to keep the release branch version of the files.
  • Loading branch information
mokagio committed Feb 28, 2023
2 parents 1f4f9a7 + 4609f4c commit 5faf182
Show file tree
Hide file tree
Showing 321 changed files with 7,316 additions and 4,491 deletions.
5 changes: 5 additions & 0 deletions .buildkite/release-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,25 @@ steps:

- label: ":wordpress: :testflight: WordPress Release Build (App Store Connect)"
command: ".buildkite/commands/release-build-wordpress.sh $BETA_RELEASE"
# The TestFlight build has a priority of 2 so that it is higher than the AppCenter build
priority: 2
env: *common_env
plugins: *common_plugins
notify:
- slack: "#build-and-ship"

- label: ":wordpress: :appcenter: WordPress Release Build (App Center)"
command: ".buildkite/commands/release-build-wordpress-internal.sh"
priority: 1
env: *common_env
plugins: *common_plugins
notify:
- slack: "#build-and-ship"

- label: ":jetpack: :testflight: Jetpack Release Build (App Store Connect)"
command: ".buildkite/commands/release-build-jetpack.sh"
# The TestFlight build has a priority of 2 so that it is higher than the AppCenter build
priority: 2
env: *common_env
plugins: *common_plugins
notify:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,7 @@ WordPress/Credentials/wpcom_internal_app_credentials
WordPress/InfoPlist.h
WordPress/InfoPlist-alpha.h
WordPress/InfoPlist-internal.h


# SwiftLint Remote Config Cache
.swiftlint/RemoteConfigCache
88 changes: 2 additions & 86 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,86 +1,2 @@
# Project configuration
excluded:
- Pods
- Scripts
- vendor
- DerivedData

# Rules
only_rules:
# Colons should be next to the identifier when specifying a type.
- colon

# There should be no space before and one after any comma.
- comma

# if,for,while,do statements shouldn't wrap their conditionals in parentheses.
- control_statement

# Arguments can be omitted when matching enums with associated types if they
# are not used.
- empty_enum_arguments

# Prefer `() -> ` over `Void -> `.
- empty_parameters

# MARK comment should be in valid format.
- mark

# Opening braces should be preceded by a single space and on the same line as
# the declaration.
- opening_brace

# Files should have a single trailing newline.
- trailing_newline

# Lines should not have trailing semicolons.
- trailing_semicolon

# Lines should not have trailing whitespace.
- trailing_whitespace

- custom_rules

# Rules configuration

control_statement:
severity: error

custom_rules:

natural_content_alignment:
name: "Natural Content Alignment"
regex: '\.contentHorizontalAlignment(\s*)=(\s*)(\.left|\.right)'
message: "Forcing content alignment left or right can affect the Right-to-Left layout. Use naturalContentHorizontalAlignment instead."
severity: warning

natural_text_alignment:
name: "Natural Text Alignment"
regex: '\.textAlignment(\s*)=(\s*).left'
message: "Forcing text alignment to left can affect the Right-to-Left layout. Consider setting it to `natural`"
severity: warning

inverse_text_alignment:
name: "Inverse Text Alignment"
regex: '\.textAlignment(\s*)=(\s*).right'
message: "When forcing text alignment to the right, be sure to handle the Right-to-Left layout case properly, and then silence this warning with this line `// swiftlint:disable:next inverse_text_alignment`"
severity: warning

localization_comment:
name: "Localization Comment"
regex: 'NSLocalizedString([^,]+,\s+comment:\s*"")'
message: "Localized strings should include a description giving context for how the string is used."
severity: warning

string_interpolation_in_localized_string:
name: "String Interpolation in Localized String"
regex: 'NSLocalizedString\("[^"]*\\\(\S*\)'
message: "Localized strings must not use interpolated variables. Instead, use `String(format:`"
severity: error

swiftui_localization:
name: "SwiftUI Localization"
regex: 'LocalizedStringKey'
message: "Using `LocalizedStringKey` is incompatible with our tooling and doesn't allow you to provide a hint/context comment for translators either. Please use `NSLocalizedString` instead, even with SwiftUI code."
severity: error
excluded: '.*Widgets/.*'
parent_config: https://raw.githubusercontent.com/Automattic/swiftlint-config/0f8ab6388bd8d15a04391825ab125f80cfb90704/.swiftlint.yml
remote_timeout: 10.0
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ gem 'fastlane-plugin-appcenter', '~> 1.8'
gem 'fastlane-plugin-sentry'
# This comment avoids typing to switch to a development version for testing.
# gem 'fastlane-plugin-wpmreleasetoolkit', git: '[email protected]:wordpress-mobile/release-toolkit', branch: 'trunk'
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 6.0'
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 7.0'
gem 'octokit', '~> 4.0'
gem 'rake'
gem 'rubocop', '~> 1.30'
Expand Down
43 changes: 22 additions & 21 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ GEM
specs:
CFPropertyList (3.0.5)
rexml
activesupport (5.2.8.1)
activesupport (6.1.7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
algoliasearch (1.27.5)
Expand Down Expand Up @@ -42,10 +43,10 @@ GEM
cork
nap
open4 (~> 1.3)
cocoapods (1.11.2)
cocoapods (1.11.3)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.11.2)
cocoapods-core (= 1.11.3)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.4.0, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
Expand All @@ -60,7 +61,7 @@ GEM
nap (~> 1.0)
ruby-macho (>= 1.0, < 3.0)
xcodeproj (>= 1.21.0, < 2.0)
cocoapods-core (1.11.2)
cocoapods-core (1.11.3)
activesupport (>= 5.0, < 7)
addressable (~> 2.8)
algoliasearch (~> 1.0)
Expand All @@ -84,7 +85,7 @@ GEM
commander (4.6.0)
highline (~> 2.0.0)
commonmarker (0.23.7)
concurrent-ruby (1.1.10)
concurrent-ruby (1.2.0)
cork (0.3.0)
colored2 (~> 3.1)
danger (8.6.1)
Expand Down Expand Up @@ -187,8 +188,8 @@ GEM
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-appcenter (1.11.1)
fastlane-plugin-sentry (1.11.0)
fastlane-plugin-wpmreleasetoolkit (6.3.0)
activesupport (~> 5)
fastlane-plugin-wpmreleasetoolkit (7.0.0)
activesupport (>= 6.1.7.1)
bigdecimal (~> 1.4)
buildkit (~> 1.5)
chroma (= 0.2.0)
Expand All @@ -206,12 +207,12 @@ GEM
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
git (1.13.1)
git (1.13.2)
addressable (~> 2.8)
rchardet (~> 1.8)
google-apis-androidpublisher_v3 (0.26.0)
google-apis-core (>= 0.7, < 2.a)
google-apis-core (0.9.5)
google-apis-core (0.11.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
Expand All @@ -220,8 +221,8 @@ GEM
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-iamcredentials_v1 (0.16.0)
google-apis-core (>= 0.9.1, < 2.a)
google-apis-iamcredentials_v1 (0.17.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-playcustomapp_v1 (0.10.0)
google-apis-core (>= 0.7, < 2.a)
google-apis-storage_v1 (0.19.0)
Expand Down Expand Up @@ -255,7 +256,7 @@ GEM
concurrent-ruby (~> 1.0)
jmespath (1.6.1)
json (2.6.2)
jwt (2.6.0)
jwt (2.7.0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
Expand All @@ -273,7 +274,7 @@ GEM
naturally (2.2.1)
netrc (0.11.0)
no_proxy_fix (0.1.2)
nokogiri (1.14.0)
nokogiri (1.14.2)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
octokit (4.25.1)
Expand Down Expand Up @@ -337,22 +338,21 @@ GEM
naturally
terminal-notifier (2.0.0)
terminal-table (1.6.0)
thread_safe (0.3.6)
trailblazer-option (0.1.2)
tty-cursor (0.7.1)
tty-screen (0.8.1)
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.10)
thread_safe (~> 0.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
unicode-display_width (2.2.0)
webrick (1.7.0)
webrick (1.8.1)
word_wrap (1.0.0)
xcodeproj (1.22.0)
CFPropertyList (>= 2.3.3, < 4.0)
Expand All @@ -365,6 +365,7 @@ GEM
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)
zeitwerk (2.6.7)

PLATFORMS
ruby
Expand All @@ -378,7 +379,7 @@ DEPENDENCIES
fastlane (~> 2.174)
fastlane-plugin-appcenter (~> 1.8)
fastlane-plugin-sentry
fastlane-plugin-wpmreleasetoolkit (~> 6.0)
fastlane-plugin-wpmreleasetoolkit (~> 7.0)
octokit (~> 4.0)
rake
rmagick (~> 3.2.0)
Expand Down
8 changes: 8 additions & 0 deletions MIGRATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
This file documents changes in the data model. Please explain any changes to the
data model as well as any custom migrations.

## WordPress 147

@salimbraksa 2023-02-04

- Created a new entity `BlockedSite` with:
- `accountID` (required, no default, `Int 64`)
- `blogID` (required, no default, `Int 64`)

## WordPress 146

@salimbraksa 2023-01-31
Expand Down
14 changes: 11 additions & 3 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def wordpress_ui
end

def wordpress_kit
pod 'WordPressKit', '~> 6.0.0-beta'
pod 'WordPressKit', '~> 6.1.0-beta'
# pod 'WordPressKit', git: 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', tag: ''
# pod 'WordPressKit', git: 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', branch: ''
# pod 'WordPressKit', git: 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', branch: 'fix/plan-flag'
# pod 'WordPressKit', git: 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', commit: ''
# pod 'WordPressKit', path: '../WordPressKit-iOS'
end
Expand Down Expand Up @@ -91,7 +91,7 @@ def shared_style_pods
end

def gutenberg_pods
gutenberg tag: 'v1.88.0'
gutenberg tag: 'v1.89.0'
end

def gutenberg(options)
Expand Down Expand Up @@ -388,6 +388,10 @@ target 'WordPressUITests' do
project 'WordPress/WordPress.xcodeproj'
end

abstract_target 'Tools' do
pod 'SwiftLint', '~> 0.50'
end

# Static Frameworks:
# ============
#
Expand Down Expand Up @@ -500,4 +504,8 @@ post_install do |installer|
tracks_target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'ALPHA=1'] if (config.name == 'Release-Alpha') || (config.name == 'Release-Internal')
end

yellow_marker = "\033[33m"
reset_marker = "\033[0m"
puts "#{yellow_marker}The abstract target warning below is expected. Feel free to ignore it.#{reset_marker}"
end
Loading

0 comments on commit 5faf182

Please sign in to comment.