Skip to content

Commit d6e752c

Browse files
committed
Universal Framework
Should simplify installation. When SQLCipher support was introduced, we also needed to add a new target with the dependency, per platform. By flattening the platforms, we only need one extra target, SQLiteCipher. Signed-off-by: Stephen Celis <stephen@stephencelis.com>
1 parent 5044e00 commit d6e752c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+332
-1039
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "sqlcipher"]
2-
path = sqlcipher
2+
path = Vendor/sqlcipher
33
url = https://github.com/sqlcipher/sqlcipher.git

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
language: objective-c
22
env:
3-
- BUILD_PLATFORM=iOS
4-
- BUILD_PLATFORM=Mac
5-
before_install:
6-
- gem install xcpretty --no-document
3+
- BUILD_SDK=iphonesimulator ONLY_ACTIVE_ARCH=NO
4+
- BUILD_SDK=macosx
75
script:
86
- make test

Documentation/Index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ To install SQLite.swift as an Xcode sub-project:
6767

6868
![Installation](Resources/installation@2x.png)
6969

70-
2. In your target’s **Build Phases**, add **SQLite iOS** (or **SQLite Mac**) to the **Target Dependencies** build phase.
70+
2. In your target’s **Build Phases**, add **SQLite** to the **Target Dependencies** build phase.
7171

72-
3. Add the appropriate **SQLite.framework** product to the **Link Binary With Libraries** build phase.
72+
3. Add **SQLite.framework** to the **Link Binary With Libraries** build phase.
7373

74-
4. Add the same **SQLite.framework** to a **Copy Files** build phase with a **Frameworks** destination. (Add a new build phase if need be.)
74+
4. Add **SQLite.framework** to a **Copy Files** build phase with a **Frameworks** destination. (Add a new build phase if need be.)
7575

7676
You should now be able to `import SQLite` from any of your target’s source files and begin using SQLite.swift.
7777

Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
BUILD_TOOL = xcodebuild
2-
BUILD_PLATFORM ?= Mac
3-
BUILD_ARGUMENTS = -scheme 'SQLite $(BUILD_PLATFORM)'
4-
5-
XCPRETTY := $(shell command -v xcpretty)
2+
BUILD_SDK = macosx
3+
BUILD_ARGUMENTS = -scheme SQLite -sdk $(BUILD_SDK)
64

75
default: test
86

97
build:
108
$(BUILD_TOOL) $(BUILD_ARGUMENTS)
119

1210
test:
13-
ifdef XCPRETTY
14-
@set -o pipefail && $(BUILD_TOOL) $(BUILD_ARGUMENTS) test | $(XCPRETTY) -c
15-
else
1611
$(BUILD_TOOL) $(BUILD_ARGUMENTS) test
17-
endif
1812

1913
clean:
2014
$(BUILD_TOOL) $(BUILD_ARGUMENTS) clean

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ To install SQLite.swift:
115115

116116
![](Documentation/Resources/installation@2x.png)
117117

118-
2. In your target’s **Build Phases**, add **SQLite iOS** (or **SQLite Mac**)
119-
to the **Target Dependencies** build phase.
118+
2. In your target’s **Build Phases**, add **SQLite** to the **Target
119+
Dependencies** build phase.
120120

121-
3. Add the appropriate **SQLite.framework** product to the
122-
**Link Binary With Libraries** build phase.
121+
3. Add **SQLite.framework** to the **Link Binary With Libraries** build
122+
phase.
123123

124-
4. Add the same **SQLite.framework** to a **Copy Files** build phase with a
124+
4. Add **SQLite.framework** to a **Copy Files** build phase with a
125125
**Frameworks** destination. (Add a new build phase if need be.)
126126

127127
[4.1]: https://developer.apple.com/xcode/downloads/

SQLite Common/SQLite Common.xcconfig

Lines changed: 0 additions & 3 deletions
This file was deleted.

SQLite Mac sqlcipher-Info.plist

Lines changed: 0 additions & 28 deletions
This file was deleted.

SQLite Mac/Info.plist

Lines changed: 0 additions & 28 deletions
This file was deleted.

SQLite Mac/SQLite Mac.h

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

SQLite iOS Tests/Info.plist

Lines changed: 0 additions & 24 deletions
This file was deleted.

SQLite iOS sqlcipher-Info.plist

Lines changed: 0 additions & 28 deletions
This file was deleted.

SQLite iOS/SQLite iOS.h

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)