Skip to content

Commit 613cb63

Browse files
committed
Moved debug into Util.swift
1 parent ac5cd02 commit 613cb63

File tree

3 files changed

+9
-28
lines changed

3 files changed

+9
-28
lines changed

CoreDataQueryInterface.xcodeproj/project.pbxproj

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@
9898
F3967F081D98481E006382C6 /* Query.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3967F051D98481E006382C6 /* Query.swift */; };
9999
F3967F091D98481E006382C6 /* Query.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3967F051D98481E006382C6 /* Query.swift */; };
100100
F39C7A741B718E34008DB31C /* CoreDataQueryInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = F37C46A51B2A780200B35B1B /* CoreDataQueryInterface.h */; settings = {ATTRIBUTES = (Public, ); }; };
101-
F3E65C911DBFEBF80063DFA5 /* Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3E65C901DBFEBF80063DFA5 /* Debug.swift */; };
102-
F3E65C921DBFEBF80063DFA5 /* Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3E65C901DBFEBF80063DFA5 /* Debug.swift */; };
103-
F3E65C931DBFEBF80063DFA5 /* Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3E65C901DBFEBF80063DFA5 /* Debug.swift */; };
104-
F3E65C941DBFEBF80063DFA5 /* Debug.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3E65C901DBFEBF80063DFA5 /* Debug.swift */; };
105101
F3E6B5501B2BFCA500F735EE /* FilterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3E6B54F1B2BFCA500F735EE /* FilterTests.swift */; };
106102
F3E6B5511B2BFCA500F735EE /* FilterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3E6B54F1B2BFCA500F735EE /* FilterTests.swift */; };
107103
F3E6B5531B2C01CC00F735EE /* OrderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3E6B5521B2C01CC00F735EE /* OrderTests.swift */; };
@@ -179,7 +175,6 @@
179175
F3967F051D98481E006382C6 /* Query.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Query.swift; sourceTree = "<group>"; };
180176
F39C7A711B718DB2008DB31C /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
181177
F3DEBD9F1B40FCCD00EE1382 /* bin */ = {isa = PBXFileReference; lastKnownFileType = folder; path = bin; sourceTree = "<group>"; };
182-
F3E65C901DBFEBF80063DFA5 /* Debug.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Debug.swift; sourceTree = "<group>"; };
183178
F3E6B54F1B2BFCA500F735EE /* FilterTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FilterTests.swift; sourceTree = "<group>"; };
184179
F3E6B5521B2C01CC00F735EE /* OrderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OrderTests.swift; sourceTree = "<group>"; };
185180
F3F1BC531CD0020100F9072D /* CoreDataQueryInterface.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CoreDataQueryInterface.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -287,7 +282,6 @@
287282
F3967F001D984801006382C6 /* QueryBuilder.swift */,
288283
F3967EE21D984610006382C6 /* Types.swift */,
289284
F34169B51DA57AB00009560A /* Util.swift */,
290-
F3E65C901DBFEBF80063DFA5 /* Debug.swift */,
291285
);
292286
name = Source;
293287
sourceTree = "<group>";
@@ -629,7 +623,6 @@
629623
F3967EDA1D9844CD006382C6 /* Protocols.swift in Sources */,
630624
F3967EE91D9846C7006382C6 /* Attributes.swift in Sources */,
631625
F3967EF81D984758006382C6 /* Miscellanea.swift in Sources */,
632-
F3E65C921DBFEBF80063DFA5 /* Debug.swift in Sources */,
633626
F3F52CEF1D984CB4009D8DFB /* Predicate.swift in Sources */,
634627
F34169B71DA57AB00009560A /* Util.swift in Sources */,
635628
F3967F021D984801006382C6 /* QueryBuilder.swift in Sources */,
@@ -672,7 +665,6 @@
672665
F3967EDB1D9844CD006382C6 /* Protocols.swift in Sources */,
673666
F3967EEA1D9846C7006382C6 /* Attributes.swift in Sources */,
674667
F3967EF91D984758006382C6 /* Miscellanea.swift in Sources */,
675-
F3E65C931DBFEBF80063DFA5 /* Debug.swift in Sources */,
676668
F3F52CF01D984CB4009D8DFB /* Predicate.swift in Sources */,
677669
F34169B81DA57AB00009560A /* Util.swift in Sources */,
678670
F3967F031D984801006382C6 /* QueryBuilder.swift in Sources */,
@@ -715,7 +707,6 @@
715707
F3967ED91D9844CD006382C6 /* Protocols.swift in Sources */,
716708
F3967EE81D9846C7006382C6 /* Attributes.swift in Sources */,
717709
F3967EF71D984758006382C6 /* Miscellanea.swift in Sources */,
718-
F3E65C911DBFEBF80063DFA5 /* Debug.swift in Sources */,
719710
F3F52CEE1D984CB4009D8DFB /* Predicate.swift in Sources */,
720711
F34169B61DA57AB00009560A /* Util.swift in Sources */,
721712
F3967F011D984801006382C6 /* QueryBuilder.swift in Sources */,
@@ -758,7 +749,6 @@
758749
F3967EDC1D9844CD006382C6 /* Protocols.swift in Sources */,
759750
F3967EEB1D9846C7006382C6 /* Attributes.swift in Sources */,
760751
F3967EFA1D984758006382C6 /* Miscellanea.swift in Sources */,
761-
F3E65C941DBFEBF80063DFA5 /* Debug.swift in Sources */,
762752
F3F52CF11D984CB4009D8DFB /* Predicate.swift in Sources */,
763753
F34169B91DA57AB00009560A /* Util.swift in Sources */,
764754
F3967F041D984801006382C6 /* QueryBuilder.swift in Sources */,

CoreDataQueryInterface/Debug.swift

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

CoreDataQueryInterface/Util.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88

99
import Foundation
1010

11+
var debug: Bool = {
12+
for arg in ProcessInfo.processInfo.arguments {
13+
if arg == "-com.prosumma.CoreDataQueryInterface.Debug" {
14+
return true
15+
}
16+
}
17+
return false
18+
}()
19+
1120
infix operator ??= : AssignmentPrecedence
1221

1322
func ??=<T>(lhs: inout T?, rhs: @autoclosure () -> T?) {

0 commit comments

Comments
 (0)