-
Notifications
You must be signed in to change notification settings - Fork 984
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
Implement swift support and testing #395
Conversation
Codecov Report
@@ Coverage Diff @@
## master #395 +/- ##
==========================================
+ Coverage 73.68% 74.26% +0.57%
==========================================
Files 11 12 +1
Lines 1463 1562 +99
==========================================
+ Hits 1078 1160 +82
- Misses 385 402 +17
Continue to review full report at Codecov.
|
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 all looks good to me, but I'll let someone with more iOS experience give it a more thorough review
this.path = bridgingHeaderPath; | ||
this.bridgingHeaders = null; | ||
if (!fs.existsSync(this.path)) { | ||
throw new CordovaError('BridgingHeader.js is not found.'); |
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 actually if the BridgingHeader.h
file is not found? The error message says .js
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.
I am aiming to check the BridgingHeader.h
file exists or not.
Sorry I am going to fix the wrong message. Thank you a lot!
bin/templates/scripts/cordova/Api.js
Outdated
bridgingHeaderFile.write(); | ||
} | ||
} | ||
return Q.resolve(); |
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.
Do we need to return Q.resolve()
here? I think if the function finishes with no exceptions, it should continue into the next .then
block
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.
Thank you. There is no reason for Q.resolve(). I will remove it.
bin/templates/scripts/cordova/Api.js
Outdated
bridgingHeaderFile.write(); | ||
} | ||
} | ||
return Q.resolve(); |
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.
Again, I don't think we need to explicitly return Q.resolve()
here
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.
Thank you. There is no paticular reason for Q.resolve(). I will remove it.
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.
👍 from me :)
Thanks you! |
Platforms affected
ios
What does this PR do?
Add swift support for ios platform and unit testing.
apache/cordova-discuss#107
This PR is needed to be merged first
apache/cordova-common#42 .
What testing has been done on this change?
Run 'cordova build' with this code and cordova-common change.
Run the jasmine tests.
Checklist