Skip to content

CocoaPods: build standalone version of SQLite with subspec #431

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

Merged
merged 2 commits into from
May 13, 2016
Merged

CocoaPods: build standalone version of SQLite with subspec #431

merged 2 commits into from
May 13, 2016

Conversation

jberkel
Copy link
Collaborator

@jberkel jberkel commented May 12, 2016

Adresses #401.

Not sure about the "standalone" spec name – I just followed the pattern used in https://github.com/ccgus/fmdb/blob/master/FMDB.podspec.

Passes pod spec lint --allow-warnings.

The existing behavior and setup is left unchanged. I can't think of a good way to integrate the SQLite sources in a submodule, maybe this could be addressed in a separate PR.

It also needs tests – maybe a dummy project could be set up automatically, including test suite.

@jberkel jberkel changed the title Cocoapods: build standalone version of SQLite with subspec CocoaPods: build standalone version of SQLite with subspec May 12, 2016
@stephencelis
Copy link
Owner

Nice! This looks good, but I wonder if we can somehow retain the CSQLite module name? We were trying to adhere to the SwiftPM System Module guidelines: https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md#system-modules

jberkel added 2 commits May 13, 2016 00:51
The standard subspec is the default and behaves
as previously; the standalone subspec adds a
dependency to the sqlite3 pod which downloads and
compiles a version of SQLite instead of using the
system-supplied version.

The version of SQLite used can be further customized
by requiring another sqlite3 subspec from the main
Podfile.
@jberkel
Copy link
Collaborator Author

jberkel commented May 12, 2016

Ah, I wondered about the weird naming, now it makes sense. I changed it so that the renaming is avoided, it also makes it clearer which module is being used.

@stephencelis stephencelis merged commit c82f986 into stephencelis:master May 13, 2016
@stephencelis
Copy link
Owner

Beautiful, thanks!

@jberkel jberkel deleted the sqlite3-subspec branch May 13, 2016 20:23
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.

2 participants