Skip to content

Commit

Permalink
Fix libsqlfs/SQLCipher in Podfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Sep 13, 2016
1 parent 0148296 commit 1deb5ad
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
osx_image: xcode7.3
osx_image: xcode8
language: objective-c

# Handle git submodules yourself
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@
ReferencedContainer = "container:ChatSecure.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "OS_ACTIVITY_MODE"
value = "disable"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ abstract_target 'ChatSecureCorePods' do
pod 'ZXingObjC', '~> 3.0'

# CocoaPods 1.0 cannot compile C files anymore so we rename .c to .m.
pod 'libsqlfs', :podspec => 'Podspecs/libsqlfs.podspec'
pod 'libsqlfs/SQLCipher', :podspec => 'Podspecs/libsqlfs.podspec'
pod 'SQLCipher', :podspec => 'Podspecs/SQLCipher.podspec.json'

# Local Podspecs
Expand Down
12 changes: 4 additions & 8 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,10 @@ PODS:
- KissXML/Core (= 5.1.2)
- KissXML/Core (5.1.2)
- KVOController (1.1.0)
- libsqlfs (1.3):
- libsqlfs/standard (= 1.3)
- libsqlfs/common (1.3)
- libsqlfs/SQLCipher (1.3):
- libsqlfs/common
- SQLCipher (~> 3.4.0)
- libsqlfs/standard (1.3):
- libsqlfs/common
- Mantle (2.0.7):
- Mantle/extobjc (= 2.0.7)
- Mantle/extobjc (2.0.7)
Expand Down Expand Up @@ -345,7 +341,7 @@ DEPENDENCIES:
- JTSImageViewController (~> 1.4)
- JVFloatLabeledTextField (~> 1.0)
- KVOController (~> 1.0)
- libsqlfs (from `Podspecs/libsqlfs.podspec`)
- libsqlfs/SQLCipher (from `Podspecs/libsqlfs.podspec`)
- Mantle (~> 2.0)
- MBProgressHUD (~> 0.9)
- MWFeedParser (~> 1.0)
Expand Down Expand Up @@ -428,7 +424,7 @@ SPEC CHECKSUMS:
JVFloatLabeledTextField: ea4a3d8387ddd43724c472bb2b8ab39b79af05d4
KissXML: 246c842586bb77110e04fb88e19376d96245c856
KVOController: 321b5fc59300fcaabd42c0f679baa7a27efbb2fd
libsqlfs: 9f72d806d77e72876ff595feedd4fb497a05c9cf
libsqlfs: 54d2a3159625746e6b4aeea109a8d591bdc5fd00
Mantle: bc40bb061d8c2c6fb48d5083e04d928c3b7f73d9
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1
MWFeedParser: 2cf646014c1baf6ad1b08c480b40a08180079247
Expand All @@ -441,7 +437,7 @@ SPEC CHECKSUMS:
QRCodeReaderViewController: 6538745c8f4ffa9407a26bd7f9489ea01739e7b0
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
SAMKeychain: 6b04852a20684167aea97bdf8ba12c95d3616376
SQLCipher: 4c768761421736a247ed6cf412d9045615d53dff
SQLCipher: 5edce62bad2091ed65a422927fedee15149ad04c
TTTAttributedLabel: 0a2ac7b2dd726d32a070dafb01446026b11e624f
TUSafariActivity: afc55a00965377939107ce4fdc7f951f62454546
uservoice-iphone-sdk: 9abf27254c8488d7b72d70fb9b621132d6beebd4
Expand All @@ -451,6 +447,6 @@ SPEC CHECKSUMS:
YapDatabase: b1e43555a34a5298e23a045be96817a5ef0da58f
ZXingObjC: bf15b3814f7a105b6d99f47da2333c93a063650a

PODFILE CHECKSUM: 7317c8e5be8a343078162151f4dd56e8ce700042
PODFILE CHECKSUM: dd6c8a7ed7006ce4c0f0c66c82e25677751bce40

COCOAPODS: 1.1.0.rc.1
4 changes: 2 additions & 2 deletions Podspecs/SQLCipher.podspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"tvos": "9.0",
"watchos": "2.0"
},
"prepare_command": "./configure --enable-tempstore=yes --with-crypto-lib=commoncrypto CFLAGS=\"-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_STAT3 -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_LOAD_EXTENSION -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5\"; make sqlite3.c",
"prepare_command": "./configure --enable-tempstore=yes --with-crypto-lib=commoncrypto CFLAGS=\"-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_STAT3 -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_LOAD_EXTENSION -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5\"; make sqlite3.c; mv sqlite3.c sqlite3.m",
"requires_arc": false,
"source": {
"git": "https://github.com/sqlcipher/sqlcipher.git",
Expand Down Expand Up @@ -46,7 +46,7 @@
"Security"
],
"name": "common",
"source_files": "sqlite3.{h,c}",
"source_files": "sqlite3.{h,m}",
"xcconfig": {
"GCC_PREPROCESSOR_DEFINITIONS": "$(inherited) SQLITE_HAS_CODEC=1",
"OTHER_CFLAGS": "$(inherited) -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_STAT3 -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_LOAD_EXTENSION -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5 -DSQLCIPHER_CRYPTO_CC"
Expand Down
4 changes: 2 additions & 2 deletions Podspecs/libsqlfs.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Pod::Spec.new do |s|

s.default_subspec = 'standard'

# s.prepare_command = 'mv sqlfs.c sqlfs.m'
s.prepare_command = 'mv sqlfs.c sqlfs.m'

s.subspec 'common' do |ss|
ss.source_files = 'sqlfs.{h,c}', 'sqlfs_internal.h'
ss.source_files = 'sqlfs.{h,m}', 'sqlfs_internal.h'
end

# use a builtin version of sqlite3
Expand Down

0 comments on commit 1deb5ad

Please sign in to comment.