-
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
Cocoapods support improvement, using podspec tag in plugin.xml #405
Cocoapods support improvement, using podspec tag in plugin.xml #405
Conversation
Thanks @knight9999 but the builds are failing:
|
@shazron Thanks for testing, and I am sorry to trouble you.
|
cb43839
to
53c2526
Compare
I have rebased master. |
Thanks! This can be reviewed and tested, but can't be accepted to be merged until the production release of cordova-common that has the changes needed is out for final testing. We've had this situation before, and we just had to wait until the dependency is updated in npm. Thus, let us try to get cordova-common that has these dependent changes out for a new release, then we update this PR. |
@shazron Thanks a lot. |
53c2526
to
465e4bb
Compare
Sorry, I have updated this PR again to fix the issue that the swift-version in CocoaPods is reseted when adding other CoacoaPods plugin. |
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.
(just so this doesn't get merged accidentally)
needs cordova-common release and update in package.json
465e4bb
to
bcdf347
Compare
bcdf347
to
e02c3c7
Compare
Codecov Report
@@ Coverage Diff @@
## master #405 +/- ##
==========================================
+ Coverage 74.29% 75.36% +1.06%
==========================================
Files 12 12
Lines 1564 1802 +238
==========================================
+ Hits 1162 1358 +196
- Misses 402 444 +42
Continue to review full report at Codecov.
|
@janpio common 3 had been released and master's package.json had been bumped. |
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.
Ran following tests:
$ cordova-nightly create podtest com.erisu.podtest
$ cordova-nightly platform add github:cordova-develop/cordova-ios#dev_improve_cocoapod_support
$ cordova-nightly prepare ios
$ cordova-nightly compile ios
$ cordova-nightly build ios
$ cordova-nightly run ios
$ cordova-nightly plugin add onesignal-cordova-plugin
>>> This uses the old pattern <framework src="OneSignal" type="podspec" spec="2.9.3" />
$ cordova-nightly build ios
>>> Test build with plugin added with old pattern
$ cordova-nightly plugin rm onesignal-cordova-plugin
$ cordova-nightly build ios
>>> Verify build works after Podfile and pods.json was updated.
I also tested with the fake plugin that uses the new podspec pattern. This was only to validate that the new pattern added the Pods properly and built. Was not intended to test the running of the app with this fake plugin.
$ cordova-nightly plugin add github:cordova-develop/cordova-plugin-pods3
$ cordova-nightly build ios
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
Platforms affected
ios
What does this PR do?
See apache/cordova-discuss#108
The following PR is needed to be merged first
apache/cordova-common#48
What testing has been done on this change?
cordova plugin add
which usespodspec
tags to local PC)npm run test
Because this PR depends on PR (apache/cordova-common#48), the test fails without editing package.json.
With modified package.json, both the travis and appveyor tests passes.
Checklist