Skip to content

Commit 4dcceaa

Browse files
authored
Update sample project (#24)
1 parent abc8b2d commit 4dcceaa

File tree

2 files changed

+29
-21
lines changed

2 files changed

+29
-21
lines changed

Example/SQLiteExample.xcodeproj/project.pbxproj

+28-20
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
EBD6C68A1C4E5315004270C5 /* Frameworks */,
126126
EBD6C68B1C4E5315004270C5 /* Resources */,
127127
92C795C014556F977D6D891E /* [CP] Embed Pods Frameworks */,
128-
F9546D11EF8C628C7717CC7C /* [CP] Copy Pods Resources */,
129128
);
130129
buildRules = (
131130
);
@@ -143,7 +142,7 @@
143142
isa = PBXProject;
144143
attributes = {
145144
LastSwiftUpdateCheck = 0720;
146-
LastUpgradeCheck = 0810;
145+
LastUpgradeCheck = 1010;
147146
ORGANIZATIONNAME = "Vincent Garrigues";
148147
TargetAttributes = {
149148
EBD6C68C1C4E5315004270C5 = {
@@ -191,9 +190,14 @@
191190
files = (
192191
);
193192
inputPaths = (
193+
"${SRCROOT}/Pods/Target Support Files/Pods-SQLiteExample/Pods-SQLiteExample-frameworks.sh",
194+
"${BUILT_PRODUCTS_DIR}/SQLite.swift/SQLite.framework",
195+
"${BUILT_PRODUCTS_DIR}/SQLiteMigrationManager.swift/SQLiteMigrationManager.framework",
194196
);
195197
name = "[CP] Embed Pods Frameworks";
196198
outputPaths = (
199+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SQLite.framework",
200+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SQLiteMigrationManager.framework",
197201
);
198202
runOnlyForDeploymentPostprocessing = 0;
199203
shellPath = /bin/sh;
@@ -206,28 +210,16 @@
206210
files = (
207211
);
208212
inputPaths = (
213+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
214+
"${PODS_ROOT}/Manifest.lock",
209215
);
210216
name = "[CP] Check Pods Manifest.lock";
211217
outputPaths = (
218+
"$(DERIVED_FILE_DIR)/Pods-SQLiteExample-checkManifestLockResult.txt",
212219
);
213220
runOnlyForDeploymentPostprocessing = 0;
214221
shellPath = /bin/sh;
215-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
216-
showEnvVarsInLog = 0;
217-
};
218-
F9546D11EF8C628C7717CC7C /* [CP] Copy Pods Resources */ = {
219-
isa = PBXShellScriptBuildPhase;
220-
buildActionMask = 2147483647;
221-
files = (
222-
);
223-
inputPaths = (
224-
);
225-
name = "[CP] Copy Pods Resources";
226-
outputPaths = (
227-
);
228-
runOnlyForDeploymentPostprocessing = 0;
229-
shellPath = /bin/sh;
230-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SQLiteExample/Pods-SQLiteExample-resources.sh\"\n";
222+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
231223
showEnvVarsInLog = 0;
232224
};
233225
/* End PBXShellScriptBuildPhase section */
@@ -274,14 +266,22 @@
274266
CLANG_CXX_LIBRARY = "libc++";
275267
CLANG_ENABLE_MODULES = YES;
276268
CLANG_ENABLE_OBJC_ARC = YES;
269+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
277270
CLANG_WARN_BOOL_CONVERSION = YES;
271+
CLANG_WARN_COMMA = YES;
278272
CLANG_WARN_CONSTANT_CONVERSION = YES;
273+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
279274
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
280275
CLANG_WARN_EMPTY_BODY = YES;
281276
CLANG_WARN_ENUM_CONVERSION = YES;
282277
CLANG_WARN_INFINITE_RECURSION = YES;
283278
CLANG_WARN_INT_CONVERSION = YES;
279+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
280+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
281+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
284282
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
283+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
284+
CLANG_WARN_STRICT_PROTOTYPES = YES;
285285
CLANG_WARN_SUSPICIOUS_MOVE = YES;
286286
CLANG_WARN_UNREACHABLE_CODE = YES;
287287
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -309,6 +309,7 @@
309309
ONLY_ACTIVE_ARCH = YES;
310310
SDKROOT = iphoneos;
311311
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
312+
SWIFT_VERSION = 4.2;
312313
};
313314
name = Debug;
314315
};
@@ -320,14 +321,22 @@
320321
CLANG_CXX_LIBRARY = "libc++";
321322
CLANG_ENABLE_MODULES = YES;
322323
CLANG_ENABLE_OBJC_ARC = YES;
324+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
323325
CLANG_WARN_BOOL_CONVERSION = YES;
326+
CLANG_WARN_COMMA = YES;
324327
CLANG_WARN_CONSTANT_CONVERSION = YES;
328+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
325329
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
326330
CLANG_WARN_EMPTY_BODY = YES;
327331
CLANG_WARN_ENUM_CONVERSION = YES;
328332
CLANG_WARN_INFINITE_RECURSION = YES;
329333
CLANG_WARN_INT_CONVERSION = YES;
334+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
335+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
336+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
330337
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
338+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
339+
CLANG_WARN_STRICT_PROTOTYPES = YES;
331340
CLANG_WARN_SUSPICIOUS_MOVE = YES;
332341
CLANG_WARN_UNREACHABLE_CODE = YES;
333342
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -348,6 +357,7 @@
348357
MTL_ENABLE_DEBUG_INFO = NO;
349358
SDKROOT = iphoneos;
350359
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
360+
SWIFT_VERSION = 4.2;
351361
VALIDATE_PRODUCT = YES;
352362
};
353363
name = Release;
@@ -361,7 +371,6 @@
361371
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
362372
PRODUCT_BUNDLE_IDENTIFIER = io.garriguv.SQLiteExample;
363373
PRODUCT_NAME = "$(TARGET_NAME)";
364-
SWIFT_VERSION = 3.0;
365374
};
366375
name = Debug;
367376
};
@@ -374,7 +383,6 @@
374383
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
375384
PRODUCT_BUNDLE_IDENTIFIER = io.garriguv.SQLiteExample;
376385
PRODUCT_NAME = "$(TARGET_NAME)";
377-
SWIFT_VERSION = 3.0;
378386
};
379387
name = Release;
380388
};

Example/SQLiteExample/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
55

66
var window: UIWindow?
77

8-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
8+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
99

1010
guard let database = Database() else {
1111
fatalError("could not setup database")

0 commit comments

Comments
 (0)