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

CB-13164: Integrated cordova-plugin-console #330

Merged
merged 1 commit into from
Aug 11, 2017

Conversation

filmaj
Copy link
Contributor

@filmaj filmaj commented Aug 10, 2017

What does this PR do?

Adds support for window.console to be built in to generated cordova-ios projects. Essentially: sunsetting cordova-plugin-console and integrating its iOS bits into cordova-ios.

  • added native source files for CDVLogger
  • updated pbxproj file for CordovaLib to take the new files into account

NOTE: this PR requires the use of latest master of cordova-js.

What testing has been done on this change?

Just npm test locally on my Mac. Unsure if I should add any additional tests? @shazron leaning on you for guidance on that question.

Checklist

  • Reported issue CB-13147
  • Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
  • Added automated test coverage as appropriate for this change.

@shazron
Copy link
Member

shazron commented Aug 10, 2017

Not sure why AppVeyor is saying "AppVeyor was unable to build non-mergeable pull request", it looks mergeable to me.

@filmaj
Copy link
Contributor Author

filmaj commented Aug 10, 2017

I've rebased w/ master, let's see if that rejigs the wires.

@codecov-io
Copy link

codecov-io commented Aug 10, 2017

Codecov Report

Merging #330 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #330   +/-   ##
=======================================
  Coverage   63.95%   63.95%           
=======================================
  Files          14       14           
  Lines        1673     1673           
  Branches      277      277           
=======================================
  Hits         1070     1070           
  Misses        603      603

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0dfe4ca...adabe28. Read the comment docs.

@@ -65,6 +65,10 @@
<feature name="LocalStorage">
<param name="ios-package" value="CDVLocalStorage"/>
</feature>
<feature name="Console">
Copy link
Member

Choose a reason for hiding this comment

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

You need to add this in defaults.xml as well. I tried adding the platform to a newly created CLI project, console.log failed because this wasn't in config.xml.

See b0c71bf

Copy link
Contributor Author

Choose a reason for hiding this comment

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

really.... my locally generated project worked fine without that....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh is that a cordova-cli integration requirement or something? I was testing it without using cordova-cli, just by creating a project via ./bin/create, etc.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, see the linked commit description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes mental note as good use case for integration test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rebased + added

…indow.console.

- added native source files for CDVLogger
- updated pbxproj file for CordovaLib to take the new files into account
@shazron shazron merged commit 990d6d8 into apache:master Aug 11, 2017
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