Restore GRDB.swift.podspec, introduce GRDBCipher.podspec

This commit is contained in:
Gwendal Roué committed 2017-05-17 13:27:03 +02:00
1 parent c66c0a11b6
commit f1a9cdaa8e
5 files changed
+36 -27

No files matched your search

+2 -18
View File
@@ -13,24 +13,8 @@ Pod::Spec.new do |s|
s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
s.source_files = 'GRDB/**/*.swift', 'Support/*.{c,h}'
s.module_map = 'Support/module.modulemap'
s.framework = 'Foundation'
s.default_subspec = 'default'
s.subspec 'default' do |ss|
ss.source_files = 'GRDB/**/*.swift', 'Support/*.{c,h}'
ss.library = 'sqlite3'
end
s.subspec 'SQLCipher' do |ss|
ss.source_files = 'GRDB/**/*.swift', 'Support/*.{c,h}'
ss.exclude_files = 'Support/sqlite3.h'
ss.xcconfig = {
'OTHER_SWIFT_FLAGS' => '$(inherited) -DSQLITE_HAS_CODEC -DUSING_SQLCIPHER',
'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC',
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SQLITE_HAS_CODEC=1'
}
ss.dependency 'SQLCipher', '>= 3.4.0'
end
s.library = 'sqlite3'
end
+25
View File
@@ -0,0 +1,25 @@
Pod::Spec.new do |s|
s.name = 'GRDBCipher'
s.version = '0.107.0'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'A Swift application toolkit for SQLite databases.'
s.homepage = 'https://github.com/groue/GRDB.swift'
s.author = { 'Gwendal Roué' => 'gr@pierlis.com' }
s.source = { :git => 'https://github.com/groue/GRDB.swift.git', :tag => "v#{s.version}" }
s.module_name = 'GRDBCipher'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
s.source_files = 'GRDB/**/*.swift', 'SQLCipher/*.h', 'Support/grdb_config.{c,h}'
s.module_map = 'SQLCipher/module.modulemap'
s.xcconfig = {
'OTHER_SWIFT_FLAGS' => '$(inherited) -DSQLITE_HAS_CODEC -DUSING_SQLCIPHER',
'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC -DUSING_SQLCIPHER',
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SQLITE_HAS_CODEC=1'
}
s.framework = 'Foundation'
s.dependency 'SQLCipher', '~> 3.4.0'
end
+5 -1
View File
@@ -8,4 +8,8 @@ FOUNDATION_EXPORT const unsigned char GRDB_VersionString[];
#define SQLITE_HAS_CODEC
#import <GRDBCipher/GRDBCipher-Bridging.h>
#import <GRDBCipher/sqlite3.h>
#ifdef COCOAPODS
#import <SQLCipher/sqlite3.h>
#else
#import <GRDBCipher/sqlite3.h>
#endif
+1 -6
View File
@@ -7,9 +7,4 @@ FOUNDATION_EXPORT double GRDB_VersionNumber;
FOUNDATION_EXPORT const unsigned char GRDB_VersionString[];
#import <GRDB/GRDB-Bridging.h>
#if SQLITE_HAS_CODEC && defined(COCOAPODS)
#import <SQLCipher/sqlite3.h>
#else
#import <GRDB/sqlite3.h>
#endif
#import <GRDB/sqlite3.h>
+3 -2
View File
@@ -1,7 +1,8 @@
#include <GRDB/grdb_config.h>
#if SQLITE_HAS_CODEC && defined(COCOAPODS)
#if USING_SQLCIPHER && defined(COCOAPODS)
#include <GRDBCipher/grdb_config.h>
#include <SQLCipher/sqlite3.h>
#else
#include <GRDB/grdb_config.h>
#include <GRDB/sqlite3.h>
#endif