-
Notifications
You must be signed in to change notification settings - Fork 350
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
Multiple platform support #23
Multiple platform support #23
Conversation
@greenantdotcom Thanks a lot for both your PRs! I'll take a look asap. As suggested, would you mind keeping those two changes separate? It'll make the process easier. |
f97bc13
to
9a060c7
Compare
This should be a clean patch set now! |
28ae009
to
672bfcf
Compare
@ldiqual FYI - I was having a really tough time getting my CI tests to pass, and I think it's because of the multiple schemes now for each of the three platforms. I've refactored the CI away from |
@greenantdotcom Thanks a lot for taking time to make the tests pass. A couple comments to get this review going:
Awesome work, thanks so much for contributing! |
6639fa4
to
81c601b
Compare
Per https://developer.apple.com/support/app-store/, I don't think 8.x is highly used, but I'm certain there are some real use cases like enterprise/school deployments that might not fully upgraded - question is whether this is a deal breaker, or whether it can be assimilated into #19 separately. Thanks! |
|
||
# Build Framework in Debug and Run Tests if specified | ||
- if [ $RUN_TESTS == "YES" ]; then |
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.
Let's just test every time. You can remove the if and the second body,
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.
@ldiqual: It's an unfortunate need for watchOS which isn't test targetable - otherwise, it would definitely be simpler… It's the same as Alamofire (https://github.com/Alamofire/Alamofire/blob/master/.travis.yml)
@greenantdotcom Thanks for updating your PR.
The PR looks great. I'll merge it after you remove the test flags. |
- Added additional targets for watchOS and tvOS platforms - Tests pass on tvOS - Changed the master `SwiftyRSA.h` file to pull in Foundation and not UIKit/Cocoa since those frameworks aren't needed - The current CI pipeline doesn't assume multiple targets/schemes, so I refactored `.travis.yml` to allow for AppleTV, iOS, and watchOS targets, and based on how Alamofire does theirs for multiple platform support - Updated `podspec` to show multiple platform support - Also raised iOS version to 8.3 since Travis platform doesn't seem to have support for iOS 8.0-8.2
81c601b
to
81ae771
Compare
@greenantdotcom Thanks a lot! We're good to go. Merging now. |
* Make SwiftyRSA compile with Swift 3.0 * Fixed all errors + warnings * Fix spelling * Added support to read multiple public keys from a PEM file (#22) For a usecase where we may have multiple public keys that our content might have been signed with, we wanted to put multiple public keys into a single file, much like you may have multiple SSL certs in a chain file. This method parses out any data between `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`, and then uses `publicKeyFromPEMString` to try to parse it. Tests added for a really insane usecases, an empty string, and reading one of the test private keys for fun. All added code has 100% coverage, and the new method is commented. * Added targets for watchOS and tvOS (#23) - Added additional targets for watchOS and tvOS platforms - Tests pass on tvOS - Changed the master `SwiftyRSA.h` file to pull in Foundation and not UIKit/Cocoa since those frameworks aren't needed - The current CI pipeline doesn't assume multiple targets/schemes, so I refactored `.travis.yml` to allow for AppleTV, iOS, and watchOS targets, and based on how Alamofire does theirs for multiple platform support - Updated `podspec` to show multiple platform support - Also raised iOS version to 8.3 since Travis platform doesn't seem to have support for iOS 8.0-8.2 * Updated changelog * Bump to 0.4.0 * Update to Xcode 8.0 beta 4 * Migrate to Xcode 8 beta 6 * Don't reduce maximum block size when padding is `none` Closes #29 * Update CHANGELOG.md #29 * Fix OSStatus -34018 on iOS 10 * Update travis to support xcode 8
SwiftyRSA.h
file to pull in Foundation and not UIKit/Cocoa since those frameworks aren't neededAlso includes the work sent in on #22, which I know is a faux pas, so I can resubmit "clean" if you prefer and/or reject #22.
Thanks!