Skip to content

Conversation

@crazytonyli
Copy link
Contributor

@crazytonyli crazytonyli commented Nov 23, 2022

Changes

Library updates

Here are full change sets in the libraries:

Unfortunately the CHANGELOG file doesn't contain all the releases. But by looking at the diff, WordPressShared and WordPressKit updates seems simply and straight forward to me. The WordPressAuthenticator update brings in some feature changes, which seems are all additive changes according to its changelog.

Logging in the libraries

This is the main reason I created this PR.

WordPressShared, WordPressKit, and WordPressAuthenticator used to depend on CocoaLumberjack and have their own ddLogLevel variable. It's strange that compiler would allow this, but this approach feels problematic anyway.

The new version of these libraries now have a function to set a logger instance, which uses the CocoaLumberjack set up in the app. Thus they no longer depend on CocoaLumberjack and also makes changing log level easier—there is only one log level variable which is in the app.

I've also updated the CocoaLumberjack Swift logging functions implementation in the app, using built-in functions in the latest version rather than using a copy of these functions in our own codebase.

Test instructions

Not entirely what to test. Maybe make sure log in and log out work as expected (which I've checked)?

Regression Notes

  1. Potential unintended areas of impact
    None.

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    None.

  3. What automated tests I added (or what prevented me from doing so)
    None.

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

Podfile Outdated
# pod 'WordPressShared', '~> 1.18.0'
# pod 'WordPressShared', :git => 'https://github.com/wordpress-mobile/WordPress-iOS-Shared.git', :tag => ''
# pod 'WordPressShared', :git => 'https://github.com/wordpress-mobile/WordPress-iOS-Shared.git', :branch => ''
pod 'WordPressShared', :git => 'https://github.com/wordpress-mobile/WordPress-iOS-Shared.git', :branch => 'delete-cocoalumberjack'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Use the new Ruby 1.9 hash syntax.

@crazytonyli crazytonyli force-pushed the wpshared-remove-cocoalumberjack branch 4 times, most recently from 989310a to e68fba7 Compare December 6, 2022 01:58
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 6, 2022

You can test the changes in WordPress from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19643-2fdebea on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 6, 2022

You can test the changes in Jetpack from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19643-2fdebea on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@crazytonyli crazytonyli force-pushed the wpshared-remove-cocoalumberjack branch from e68fba7 to 72d30c7 Compare December 8, 2022 00:17
@crazytonyli crazytonyli changed the title WordPressShared no longer depends on CocoaLumberjack Remove CocoaLumberjack from the libraries Dec 8, 2022
@crazytonyli crazytonyli force-pushed the wpshared-remove-cocoalumberjack branch from 72d30c7 to 2e66cbf Compare December 8, 2022 04:22
@crazytonyli crazytonyli requested a review from a team December 8, 2022 04:23
@crazytonyli crazytonyli self-assigned this Dec 8, 2022
@crazytonyli crazytonyli added this to the 21.4 milestone Dec 8, 2022
@crazytonyli crazytonyli marked this pull request as ready for review December 8, 2022 04:24
@spencertransier spencertransier modified the milestones: 21.4, 21.5 Dec 16, 2022
@crazytonyli crazytonyli force-pushed the wpshared-remove-cocoalumberjack branch from 2e66cbf to ee2fe1d Compare December 19, 2022 22:00
@peril-wordpress-mobile
Copy link

Warnings
⚠️ This PR is assigned to a milestone which is closing in less than 4 days Please, make sure to get it merged by then or assign it to a later expiring milestone

Generated by 🚫 dangerJS

@mokagio mokagio enabled auto-merge January 9, 2023 02:24
@mokagio
Copy link
Contributor

mokagio commented Jan 9, 2023

@crazytonyli I took over this branch to fix the merge conflict and merge it into trunk to move forward with the 21.5 code freeze.

@mokagio mokagio merged commit 8c8f151 into trunk Jan 9, 2023
@mokagio mokagio deleted the wpshared-remove-cocoalumberjack branch January 9, 2023 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants