mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Fix make test_install_GRDBCipher_CocoaPods
This commit is contained in:
1 parent
9370036baf
commit
6b3f2e844c
6 files changed
+18
-18
No files matched your search
+8
-11
@@ -209,17 +209,14 @@ jobs:
|
||||
- TID=CocoaPods GRDB
|
||||
script: make test_install_GRDB_CocoaPods
|
||||
|
||||
# Disabled until we understand the reason for this failure:
|
||||
# https://travis-ci.org/groue/GRDB.swift/jobs/503214543
|
||||
#
|
||||
# # CocoaPods Install (Xcode 10)
|
||||
# - stage: Test Installation
|
||||
# osx_image: xcode10
|
||||
# install:
|
||||
# - gem install cocoapods --pre # >= 1.6.0.beta.1 for cocoapods lint
|
||||
# env:
|
||||
# - TID=CocoaPods GRDBCipher (Xcode 10)
|
||||
# script: make test_install_GRDBCipher_CocoaPods
|
||||
# CocoaPods Install (Xcode 10)
|
||||
- stage: Test Installation
|
||||
osx_image: xcode10.1
|
||||
install:
|
||||
- gem install cocoapods --pre # >= 1.6.0.beta.1 for cocoapods lint
|
||||
env:
|
||||
- TID=CocoaPods GRDBCipher
|
||||
script: make test_install_GRDBCipher_CocoaPods
|
||||
|
||||
# SPM Install
|
||||
- stage: Test Installation Xcode 10.1
|
||||
|
||||
+1
-2
@@ -12,18 +12,17 @@ Pod::Spec.new do |s|
|
||||
s.ios.deployment_target = '9.0'
|
||||
s.osx.deployment_target = '10.9'
|
||||
s.watchos.deployment_target = '2.0'
|
||||
s.module_map = 'Support/module.modulemap'
|
||||
s.default_subspec = 'standard'
|
||||
|
||||
s.subspec 'standard' do |ss|
|
||||
ss.source_files = 'GRDB/**/*.swift', 'Support/*.h'
|
||||
ss.module_map = 'Support/module.modulemap'
|
||||
ss.framework = 'Foundation'
|
||||
ss.library = 'sqlite3'
|
||||
end
|
||||
|
||||
s.subspec 'SQLCipher' do |ss|
|
||||
ss.source_files = 'GRDB/**/*.swift', 'Support/*.h'
|
||||
ss.module_map = 'Support/module.modulemap'
|
||||
ss.framework = 'Foundation'
|
||||
ss.dependency 'SQLCipher', '>= 3.4.0'
|
||||
ss.xcconfig = {
|
||||
|
||||
@@ -296,6 +296,7 @@ ifdef POD
|
||||
rm -rf GRDBCipherMacOS.xcworkspace && \
|
||||
rm -rf Pods && \
|
||||
rm -rf Podfile.lock && \
|
||||
$(POD) repo update && \
|
||||
$(POD) install && \
|
||||
$(XCODEBUILD) \
|
||||
-workspace GRDBCipherMacOS.xcworkspace \
|
||||
|
||||
@@ -182,12 +182,12 @@
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-GRDBCipherMacOS/Pods-GRDBCipherMacOS-frameworks.sh",
|
||||
"${BUILT_PRODUCTS_DIR}/GRDBCipher/GRDBCipher.framework",
|
||||
"${BUILT_PRODUCTS_DIR}/GRDB.swift/GRDB.framework",
|
||||
"${BUILT_PRODUCTS_DIR}/SQLCipher/SQLCipher.framework",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GRDBCipher.framework",
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GRDB.framework",
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SQLCipher.framework",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
import Cocoa
|
||||
import GRDBCipher
|
||||
import GRDB
|
||||
|
||||
@NSApplicationMain
|
||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
@IBOutlet weak var window: NSWindow!
|
||||
|
||||
func applicationDidFinishLaunching(_ aNotification: Notification) {
|
||||
let dbQueue = DatabaseQueue()
|
||||
// Make sure SQLCipher is enabled
|
||||
var configuration = Configuration()
|
||||
configuration.passphrase = "secret"
|
||||
let dbQueue = DatabaseQueue(configuration: configuration)
|
||||
|
||||
// Make sure FTS5 is enabled
|
||||
try! dbQueue.write { db in
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
target 'GRDBCipherMacOS'
|
||||
platform :macos, '10.13'
|
||||
use_frameworks!
|
||||
pod 'GRDBCipher', :path => '../../..'
|
||||
pod 'GRDB.swift/SQLCipher', :path => '../../..'
|
||||
Reference in new issue
Block a user