-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge upstream 3.2.0 #22
Conversation
Update Circle CI PR tests to include cache for pods
Add PR tests by Danger and SwiftLint
98c3dc1
to
23d215a
Compare
Generated by 🚫 Danger |
022299a
to
788f216
Compare
======= | ||
let cells = ["Basic Example", "Advanced Example", "Autocomplete Example", "Embedded Example", "Subview Example", "SwiftUI Example", "Settings", "Source Code", "Contributors"] | ||
>>>>>>> theirs | ||
let cells = ["Announcement Example", "Basic Example", "Advanced Example", "Autocomplete Example", "Embedded Example", "Subview Example", "SwiftUI Example", "Settings", "Source Code", "Contributors"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Announcement
feature was added by @m-sugawara.
Sources/Models/MessageStyle.swift
Outdated
case leftBubble | ||
case rightBubble | ||
case announcement | ||
case warning(color: UIColor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We heavily customize MessageStyle
. Upstream changes are simply ignored.
@@ -50,7 +50,7 @@ class AvatarViewTests: XCTestCase { | |||
func testWithImage() { | |||
let avatar = Avatar(image: nil) | |||
avatarView.set(avatar: avatar) | |||
XCTAssertEqual(avatar.initials, "?") | |||
XCTAssertEqual(avatar.initials, "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We changed the default value at de95cd4#diff-8272c0fbb141fe6938bead67a2365ce451c7ecb42e0107acc6443ce23e7d2581
GitHubActions/build.sh
Outdated
@@ -35,14 +35,14 @@ MODE="$1" | |||
|
|||
if [ "$MODE" = "tests" -o "$MODE" = "all" ]; then | |||
echo "Running MessageKit tests." | |||
carthage bootstrap --platform ios | |||
carthage checkout && ./GitHubActions/install-dependencies.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Back then, Carthage did not support xcframework.
Nowadays we need to use xcframework to build on both Intel Mac and Apple Silicon like carthage bootstrap --platform ios --use-xcframeworks
.
However, to use xcframeworks need to vastly change project settings, which leads conflicts in future update.
So I added ./GitHubActions/install-dependencies.sh
script to build frameworks using xcodebuild
directly.
xcodebuild build \ | ||
-project "$project" \ | ||
-scheme "$scheme" \ | ||
-configuration Debug \ | ||
-derivedDataPath "$derived_data_dir" \ | ||
-sdk iphonesimulator \ | ||
-quiet \ | ||
ONLY_ACTIVE_ARCH=YES \ | ||
CODE_SIGNING_REQUIRED=NO \ | ||
CODE_SIGN_IDENTITY= \ | ||
CARTHAGE=YES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost same as Carthage does but this script builds framework for active architecture only.
@@ -5,7 +5,7 @@ on: pull_request | |||
jobs: | |||
tests: | |||
name: Build Example app | |||
runs-on: macOS-latest | |||
runs-on: macOS-11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current macOS-latest
is equivalent to macOS-12
.
At that time, macOS-11
should be the latest.
upstream/3.2.0 dependes on Ruby 2.7 which is not installed in macOS-12
but macOS-11
.
12f4721
to
d3ba066
Compare
Example/Podfile
Outdated
# Workaround for https://github.com/pinterest/PINRemoteImage/issues/566 | ||
post_install do |installer| | ||
installer.pods_project.targets.each do |target| | ||
next unless %w[PINCache PINRemoteImage].include?(target.name) | ||
|
||
target.build_configurations.each do |config| | ||
config.build_settings['OTHER_CFLAGS'] = [ | ||
'$(inherited)', | ||
'-Xclang', | ||
'-fcompatibility-qualified-id-block-type-checking' | ||
].join(' ') | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the dependencies PINRemoteImage
(and its subspec PINCache) is not compatible with Xcode 12.
The compiler complains that there's incompatible block pointers.
So I added workaround to disable this warning by passing extra flags.
d3ba066
to
7ecbe46
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overviewに書かれてるcommitで疑問はありません!LGTM🚀
Overview
You don't need to see other commits.
Known issues
Example app cannnot be built as reported in MessageKit#1441
To workaround this, cherry-pick the PR.
Screenshot