Skip to content

Commit 1227a3f

Browse files
committed
Merge branch 'tstump-phunware-bugfix/cocoapods_and_spm_installation_methods'
2 parents 622da1e + 0cb9d77 commit 1227a3f

File tree

8 files changed

+38
-36
lines changed

8 files changed

+38
-36
lines changed

CHANGES_AND_TODO_LIST.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Zip, nada, zilch. Got any ideas?
33

44
If you would like to contribute some code ... awesome! I just ask that you make it conform to the coding conventions already set in here, and to add the necessary of tests for your new code to tests target. And of course, the code should be of general use to more than just a couple of folks. Send your patches to [email protected].
55

6+
2024.05.29 Version 2.7.12
7+
Fix Privacy Manifest resource bundling for CocoaPods and Swift Package Manager installation methods.
8+
69
2023.02.08 - 2023.05.23 Versions 2.7.9 - 2.7.11
710
CocoaPods-related fixes and tweaks.
811

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ David Hart
4747
Mike Ash
4848
Julius Scott
4949
Justin Miller
50+
Troy Stump
5051

5152
Aaaaannnd, Gus Mueller (that's me!)

FMDB.podspec

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,57 @@
11
Pod::Spec.new do |s|
22
s.name = 'FMDB'
3-
s.version = '2.7.11'
3+
s.version = '2.7.12'
44
s.summary = 'A Cocoa / Objective-C wrapper around SQLite.'
55
s.homepage = 'https://github.com/ccgus/fmdb'
66
s.license = 'MIT'
77
s.author = { 'August Mueller' => '[email protected]' }
88
s.source = { :git => 'https://github.com/ccgus/fmdb.git', :tag => "#{s.version}" }
99
s.requires_arc = true
10-
s.ios.deployment_target = '11.0'
10+
s.ios.deployment_target = '12.0'
1111
s.osx.deployment_target = '10.13'
1212
s.watchos.deployment_target = '7.0'
13-
s.tvos.deployment_target = '11.0'
13+
s.tvos.deployment_target = '12.0'
14+
s.cocoapods_version = '>= 1.12.0'
1415
s.default_subspec = 'standard'
1516

16-
# use the built-in library version of sqlite3
17-
s.subspec 'standard' do |ss|
18-
ss.library = 'sqlite3'
17+
s.subspec 'Core' do |ss|
1918
ss.source_files = 'src/fmdb/FM*.{h,m}'
2019
ss.exclude_files = 'src/fmdb.m'
2120
ss.header_dir = 'fmdb'
21+
ss.resource_bundles = { 'FMDB_Privacy' => 'privacy/PrivacyInfo.xcprivacy' }
22+
end
23+
24+
# use the built-in library version of sqlite3
25+
s.subspec 'standard' do |ss|
26+
ss.dependency 'FMDB/Core'
27+
ss.library = 'sqlite3'
2228
end
2329

2430
# use the built-in library version of sqlite3 with custom FTS tokenizer source files
2531
s.subspec 'FTS' do |ss|
26-
ss.source_files = 'src/extra/fts3/*.{h,m}'
2732
ss.dependency 'FMDB/standard'
33+
ss.source_files = 'src/extra/fts3/*.{h,m}'
2834
end
29-
30-
# Commenting these out (2024.2.26) to get CocoaPods upstream stuff working again.
35+
3136
# build the latest stable version of sqlite3
32-
#s.subspec 'standalone' do |ss|
33-
# ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DFMDB_SQLITE_STANDALONE' }
34-
# ss.dependency 'sqlite3'
35-
# ss.source_files = 'src/fmdb/FM*.{h,m}'
36-
# ss.exclude_files = 'src/fmdb.m'
37-
# ss.header_dir = 'fmdb'
38-
#end
37+
s.subspec 'standalone' do |ss|
38+
ss.dependency 'FMDB/Core'
39+
ss.dependency 'sqlite3', '~> 3.46'
40+
ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DFMDB_SQLITE_STANDALONE' }
41+
end
3942

4043
# build with FTS support and custom FTS tokenizer source files
41-
#s.subspec 'standalone-fts' do |ss|
42-
# ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DFMDB_SQLITE_STANDALONE' }
43-
# ss.source_files = 'src/fmdb/FM*.{h,m}', 'src/extra/fts3/*.{h,m}'
44-
# ss.exclude_files = 'src/fmdb.m'
45-
# ss.header_dir = 'fmdb'
46-
# ss.dependency 'sqlite3/fts'
47-
#end
44+
s.subspec 'standalone-fts' do |ss|
45+
ss.dependency 'FMDB/Core'
46+
ss.dependency 'sqlite3/fts', '~> 3.46'
47+
ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DFMDB_SQLITE_STANDALONE' }
48+
ss.source_files = 'src/extra/fts3/*.{h,m}'
49+
end
4850

4951
# use SQLCipher and enable -DSQLITE_HAS_CODEC flag
5052
s.subspec 'SQLCipher' do |ss|
51-
ss.dependency 'SQLCipher', '~> 4.0'
52-
ss.source_files = 'src/fmdb/FM*.{h,m}'
53-
ss.exclude_files = 'src/fmdb.m'
54-
ss.header_dir = 'fmdb'
55-
ss.resource_bundles = {'SQLCipher' => ['privacy/PrivacyInfo.xcprivacy']}
53+
ss.dependency 'FMDB/Core'
54+
ss.dependency 'SQLCipher', '~> 4.6'
5655
ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC -DHAVE_USLEEP=1 -DSQLCIPHER_CRYPTO', 'HEADER_SEARCH_PATHS' => 'SQLCipher' }
5756
end
58-
59-
s.resource_bundles = {'FMDB' => ['privacy/PrivacyInfo.xcprivacy']}
6057
end

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -20,6 +20,7 @@ let package = Package(
2020
name: "FMDB",
2121
dependencies: [],
2222
path: "src/fmdb",
23+
resources: [.process("../../privacy/PrivacyInfo.xcprivacy")],
2324
publicHeadersPath: "."),
2425
]
2526
)

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Then, edit the `Podfile`, adding `FMDB`:
3232

3333
```ruby
3434
# Uncomment the next line to define a global platform for your project
35-
# platform :ios, '9.0'
35+
# platform :ios, '12.0'
3636

3737
target 'MyApp' do
3838
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
@@ -78,7 +78,7 @@ Declare FMDB as a package dependency.
7878
.package(
7979
name: "FMDB",
8080
url: "https://github.com/ccgus/fmdb",
81-
.upToNextMinor(from: "2.7.8")),
81+
.upToNextMinor(from: "2.7.12")),
8282
```
8383

8484
Use FMDB in target dependencies

Tests/FMDatabaseTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ - (void)createCustomFunctions {
11321132
*/
11331133

11341134
- (void)testUserVersion {
1135-
NSComparisonResult result = [[FMDatabase FMDBUserVersion] compare:@"2.7.8" options:NSNumericSearch];
1135+
NSComparisonResult result = [[FMDatabase FMDBUserVersion] compare:@"2.7.12" options:NSNumericSearch];
11361136
XCTAssertEqual(result, NSOrderedSame);
11371137
}
11381138

src/fmdb/FMDatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ func executeUpdate(sql: String, values: [Any]?) throws -> Bool { }
11231123

11241124
+ (NSString*)sqliteLibVersion;
11251125

1126-
/// The FMDB version number as a string in the form of @c "2.7.8" .
1126+
/// The FMDB version number as a string in the form of @c "2.7.12" .
11271127
///
11281128
/// If you want to compare version number strings, you can use NSNumericSearch option:
11291129
///

src/fmdb/FMDatabase.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ - (NSURL *)databaseURL {
112112
}
113113

114114
+ (NSString*)FMDBUserVersion {
115-
return @"2.7.8";
115+
return @"2.7.12";
116116
}
117117

118118
+ (SInt32)FMDBVersion {

0 commit comments

Comments
 (0)