Skip to content
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

refactor: Clean up properties/ivars in CDVViewController #1474

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Aug 23, 2024

Platforms affected

iOS

Motivation and Context

A bunch of properties on CDVViewController were publicly exposing internal state that should be private to the instance. We can't completely solve that problem right now, but we can make the API boundary more clearly delineated.

Description

Clean up properties/ivars in CDVViewController

Rename wwwFolderName to webContentFolderName so that it gets a useful label in Xcode's Interface Builder for people embedding CDVViewController inside their own apps (IB showed it as "Www Folder Name" and there's no way to alias that, so now it shows up as "Web Content Folder Name")

Testing

Existing tests pass.

Checklist

  • I've run the tests to see all new and existing tests pass

@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.22%. Comparing base (ab78439) to head (81c217f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1474   +/-   ##
=======================================
  Coverage   80.22%   80.22%           
=======================================
  Files          16       16           
  Lines        1871     1871           
=======================================
  Hits         1501     1501           
  Misses        370      370           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Rename wwwFolderName to webContentFolderName so that it gets a useful
label in Xcode's Interface Builder for people embedding
CDVViewController inside their own apps.
Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

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

LGTM

Tested with Xcode 16 beta 6, iOS 18 beta 7, Apache Cordova plugins and a plugin with CocoaPods.

@dpogue dpogue merged commit 27a6068 into apache:master Aug 24, 2024
10 checks passed
@dpogue dpogue deleted the refactor7-ivars branch August 24, 2024 06:37
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.

3 participants