Compare commits

...

56 Commits

Author SHA1 Message Date
Michael Kirk
e12565f98c optional legacy cipher params 2019-01-10 13:29:52 -07:00
Robbie Hanson
3a7bfc57b9 Fixing formatting: tabs/spaces/indentation 2018-12-27 09:02:23 -05:00
Robbie Hanson
ae1003a09e Improving docs in Podspec. Fixes issue #480 2018-12-27 08:58:22 -05:00
Robbie Hanson
c63690b4d8 Fixing a few minor analyzer warnings. 2018-12-20 11:15:31 -05:00
Robbie Hanson
a8101ab09d Enabling some helpful compiler warnings. 2018-12-20 11:15:14 -05:00
Robbie Hanson
f9aeea4196 Fixing typo bug - no help from the compiler 2018-12-20 11:05:13 -05:00
Robbie Hanson
f59640a745 Improving protection against circular dependencies in CloudCore operations. 2018-12-20 10:17:24 -05:00
Robbie Hanson
e510867eaa Minor documentation improvement 2018-12-20 10:16:51 -05:00
Robbie Hanson
6a142dfdd1 Removing dependencyUUIDs subclassing idea. It was broken, and the issue can be solved cleaner in other ways. 2018-12-17 09:31:10 -05:00
Robbie Hanson
b0e98dc706 Fixing unit test projects & Carthage build. 2018-12-17 09:25:52 -05:00
Robbie Hanson
f89d768fa8 Making YapDatabaseAtomic a public utility. 2018-12-17 08:48:05 -05:00
Robbie Hanson
e91e23709d Bug fix for issue #478 - Userinfo keys used by YapDatabaseModifiedNotification defined in YapDatabaseViewPrivate.h should be public 2018-12-16 20:18:47 -05:00
Robbie Hanson
3156b068b3 Fixing compiler warnings about depected OSAtomic 2018-12-16 17:11:53 -05:00
Robbie Hanson
92df118ad3 Fixing compiler warnings about depected OSSpinLock. 2018-12-16 16:29:11 -05:00
Robbie Hanson
9be3cc4e61 Updating unit tests and testing new modulemap setup 2018-12-16 15:15:43 -05:00
Robbie Hanson
2a6474bb58 Adding YapDatabaseExtensionPrivate as implicit import with YapDatabaseCloudCorePrivate. 2018-12-16 11:51:41 -05:00
Robbie Hanson
965e767b46 Merge branch 'CloudCoreSubclassing' of https://github.com/flovouin/YapDatabase into flovouin-CloudCoreSubclassing 2018-12-16 11:31:50 -05:00
Robbie Hanson
727a27fe1b Minor performance optimizations for dequeuing operations from a graph. 2018-12-02 17:02:08 -05:00
Robbie Hanson
a88e92d972 Adding more information to YDBCloudCorePipelineQueueChangedNotification. 2018-11-29 18:19:32 -05:00
Robbie Hanson
1464b30d9f Fix for compiler warning - loss of precision. 2018-11-28 09:37:39 -05:00
Robbie Hanson
2f9af3a6a9 Multiple performance optimizations for dequeuing operations from a graph. 2018-11-28 09:36:00 -05:00
Robbie Hanson
8068fd7e17 Bug fix - YDBCloudCore wasn't properly updating database table when switching algorithms or name. 2018-11-28 09:35:16 -05:00
Robbie Hanson
29e2182833 Bug fix for YDBCloudCore - wasn't properly restoring graphs. 2018-11-27 17:24:52 -05:00
Robbie Hanson
c53421e55c Bug fix for last commit. 2018-11-26 12:32:46 -05:00
Robbie Hanson
5e4eca9f44 Adding a few more convience methods to YDBCloudCorePipeline. 2018-11-26 10:51:20 -05:00
Robbie Hanson
75ffdb166f Improvements for YDBCloudCorePipeline. Now supports multiple holdDates per operation. This allows parallel sub-tasks to manage dependencies that an operation might have. 2018-11-25 17:25:00 -05:00
Robbie Hanson
691f350427 Fixing a few analyzer warnings. 2018-11-25 15:27:14 -05:00
Robbie Hanson
88f268b394 Adding nullability annotations for YDBCloudCore extension. 2018-11-25 15:26:58 -05:00
Robbie Hanson
09113142cc Bug fix - increasing the maxConcurrentOperationCount value didn't start new operations. 2018-11-23 14:07:49 -05:00
Robbie Hanson
96fa8524fa Bug fix - mapping graphIdx to snapshots wasn't stable because the graphIdx could change during enumeration. So the snapshot is now being stored as a property on the operation itself. 2018-11-22 18:24:56 -05:00
Robbie Hanson
5698d2a0d0 Bug fix - YDBCloudCorePipeline wasn't always properly reporting active status changes. 2018-11-16 11:07:27 -05:00
Robbie Hanson
ab6aa20374 Bug fix - YDBCloudCorePipeline wasn't always properly reporting active status changes. 2018-11-16 10:35:25 -05:00
Robbie Hanson
edc265c1d6 Bug fix - don't allow empty graphs in FlatCommit mode 2018-11-16 10:19:38 -05:00
Robbie Hanson
1bb2f42586 Improving documentation. 2018-11-14 16:59:22 -05:00
Robbie Hanson
84eb3f931b Adding method to fetch active operations from a pipeline. 2018-11-14 16:37:07 -05:00
Robbie Hanson
dad2c4f8d4 Minor API change for YDBCloudCore. The term "started" is a little ambigous. If a operation was "started", but then fails, is the operation still "started"? It was started once... So the terminology is changing to "active", which seems less ambiguous. 2018-11-14 16:16:05 -05:00
Robbie Hanson
b532a39b22 Bug fix - forgot to expose subclass hooks in private header. 2018-11-13 16:02:37 -05:00
Flo
b1cdd4a489 Use modulemaps in the Podspec and add modules for private headers. 2018-11-13 18:06:48 +01:00
Robbie Hanson
43482f3336 YapDatabaseCloudCore now uses the global snapshot value for internal storage & ordering of graphs (instead of it's own counting mechanism). And the snapshot numbers are available via the public API's. 2018-11-13 10:09:31 -05:00
Robbie Hanson
f54f552770 Minor documentation improvements. 2018-11-13 10:07:05 -05:00
Robbie Hanson
22bb512e23 Performing recommended Xcode project updates 2018-11-13 09:06:22 -05:00
Robbie Hanson
fa929d7546 Updating CocoaLumberjack to latest version (so compiler warnings go away) 2018-11-13 09:04:25 -05:00
Robbie Hanson
f060a248fa Performing recommended Xcode project updates 2018-11-12 18:13:17 -05:00
Robbie Hanson
7530666f41 Bug fix for recent changes (optimization) to YapDatabaseCloudCorePipeline 2018-11-12 18:09:08 -05:00
Robbie Hanson
e51e5bf77a Fixing a bunch of minor analyzer warnings. Mostly fixing nullability annotations. 2018-11-12 18:08:11 -05:00
Robbie Hanson
179d003d9c Fixing several analyzer warnings: "Converting a pointer value of type 'NSNumber *' to a primitive boolean value; instead, either compare the pointer to nil or call -boolValue" 2018-11-12 17:27:47 -05:00
Robbie Hanson
b3ea037520 Fixing analyzer warning - potential memory leak during error scenario 2018-11-12 17:26:52 -05:00
Robbie Hanson
041cf46d0c
Merge pull request #468 from rupertdaniel/fix-crash-searchresultsview
Fixed crash in YapDatabaseSearchResultsViewTransaction.
2018-11-12 17:08:23 -05:00
Robbie Hanson
21d3233ec3
Merge pull request #477 from iwheelbuy/master
Added debug check for duplicated groups in YapDatabaseViewMappings
2018-11-12 15:02:18 -05:00
Robbie Hanson
9ef94eb9fa Some defensive programming - don't allow an operation to depend on itself (illegal dependency) 2018-11-08 11:03:48 -05:00
Robbie Hanson
c6420a8ca7 Some defensive programming in cases where assertions are disabled. 2018-11-08 11:03:04 -05:00
Robbie Hanson
876171bdb8 Adding additional enumerate methods for YapDatabaseCloudCore subclasses. 2018-11-08 11:01:11 -05:00
Robbie Hanson
c6857693d4 Bug fixes for recent changes to YapDatabaseCloudCore. 2018-11-06 09:55:20 -08:00
Robbie Hanson
ba8b796ef4 YapDatabaseCloudCore improvements: adding support for an advanced pipeline concept: FlatGraph. 2018-11-05 16:26:41 -08:00
Vasilyev Mikhail
ef3e679dd0 Added debug check for duplicated groups in YapDatabaseViewMappings 2018-10-02 21:18:48 +03:00
Rupert Daniel
67bcf9bff3 Fixed crash in YapDatabaseSearchResultsViewTransaction.
This was caused by the the transaction calling the wrong rollback method and eventually dereferencing a nil pointer.
2018-08-07 09:41:49 +01:00
241 changed files with 13390 additions and 11078 deletions

View File

@ -13,6 +13,7 @@ framework module YapDatabase {
header "YapBidirectionalCache.h"
header "YapCache.h"
header "YapCollectionKey.h"
header "YapDatabaseAtomic.h"
header "YapDatabaseConnectionConfig.h"
header "YapDatabaseQuery.h"
header "YapMurmurHash.h"
@ -21,7 +22,11 @@ framework module YapDatabase {
header "YapWhitelistBlacklist.h"
header "YapMutationStack.h"
}
explicit module YapDatabaseExtensionPrivate {
header "YapDatabaseExtensionPrivate.h"
}
// Extension: View
explicit module YapDatabaseView {
@ -34,16 +39,16 @@ framework module YapDatabase {
header "YapDatabaseViewRangeOptions.h"
}
// Extension: AutoView
// Extension: AutoView
explicit module YapDatabaseAutoView {
header "YapDatabaseViewTypes.h"
header "YapDatabaseAutoView.h"
header "YapDatabaseAutoViewConnection.h"
header "YapDatabaseAutoViewTransaction.h"
explicit module YapDatabaseAutoView {
header "YapDatabaseViewTypes.h"
header "YapDatabaseAutoView.h"
header "YapDatabaseAutoViewConnection.h"
header "YapDatabaseAutoViewTransaction.h"
export YapDatabaseView
}
export YapDatabaseView
}
// Extension: FilteredView
@ -178,4 +183,13 @@ framework module YapDatabase {
header "YapDatabaseCloudCorePipeline.h"
header "YapDatabaseCloudCoreGraph.h"
}
explicit module YapDatabaseCloudCorePrivate {
header "YapDatabaseCloudCorePrivate.h"
header "YapDatabaseCloudCoreOperationPrivate.h"
header "YapDatabaseCloudCorePipelinePrivate.h"
header "YapDatabaseCloudCoreGraphPrivate.h"
export YapDatabaseExtensionPrivate
}
}

View File

@ -13,6 +13,7 @@ framework module YapDatabase {
header "YapBidirectionalCache.h"
header "YapCache.h"
header "YapCollectionKey.h"
header "YapDatabaseAtomic.h"
header "YapDatabaseConnectionConfig.h"
header "YapDatabaseQuery.h"
header "YapMurmurHash.h"
@ -21,7 +22,11 @@ framework module YapDatabase {
header "YapWhitelistBlacklist.h"
header "YapMutationStack.h"
}
explicit module YapDatabaseExtensionPrivate {
header "YapDatabaseExtensionPrivate.h"
}
// Extension: View
explicit module YapDatabaseView {
@ -34,16 +39,16 @@ framework module YapDatabase {
header "YapDatabaseViewRangeOptions.h"
}
// Extension: AutoView
// Extension: AutoView
explicit module YapDatabaseAutoView {
header "YapDatabaseViewTypes.h"
header "YapDatabaseAutoView.h"
header "YapDatabaseAutoViewConnection.h"
header "YapDatabaseAutoViewTransaction.h"
explicit module YapDatabaseAutoView {
header "YapDatabaseViewTypes.h"
header "YapDatabaseAutoView.h"
header "YapDatabaseAutoViewConnection.h"
header "YapDatabaseAutoViewTransaction.h"
export YapDatabaseView
}
export YapDatabaseView
}
// Extension: FilteredView
@ -178,4 +183,13 @@ framework module YapDatabase {
header "YapDatabaseCloudCorePipeline.h"
header "YapDatabaseCloudCoreGraph.h"
}
explicit module YapDatabaseCloudCorePrivate {
header "YapDatabaseCloudCorePrivate.h"
header "YapDatabaseCloudCoreOperationPrivate.h"
header "YapDatabaseCloudCorePipelinePrivate.h"
header "YapDatabaseCloudCoreGraphPrivate.h"
export YapDatabaseExtensionPrivate
}
}

View File

@ -13,6 +13,7 @@ framework module YapDatabase {
header "YapBidirectionalCache.h"
header "YapCache.h"
header "YapCollectionKey.h"
header "YapDatabaseAtomic.h"
header "YapDatabaseConnectionConfig.h"
header "YapDatabaseQuery.h"
header "YapMurmurHash.h"
@ -21,7 +22,11 @@ framework module YapDatabase {
header "YapWhitelistBlacklist.h"
header "YapMutationStack.h"
}
explicit module YapDatabaseExtensionPrivate {
header "YapDatabaseExtensionPrivate.h"
}
// Extension: View
explicit module YapDatabaseView {
@ -178,4 +183,13 @@ framework module YapDatabase {
header "YapDatabaseCloudCorePipeline.h"
header "YapDatabaseCloudCoreGraph.h"
}
explicit module YapDatabaseCloudCorePrivate {
header "YapDatabaseCloudCorePrivate.h"
header "YapDatabaseCloudCoreOperationPrivate.h"
header "YapDatabaseCloudCorePipelinePrivate.h"
header "YapDatabaseCloudCoreGraphPrivate.h"
export YapDatabaseExtensionPrivate
}
}

View File

@ -13,6 +13,7 @@ framework module YapDatabase {
header "YapBidirectionalCache.h"
header "YapCache.h"
header "YapCollectionKey.h"
header "YapDatabaseAtomic.h"
header "YapDatabaseConnectionConfig.h"
header "YapDatabaseQuery.h"
header "YapMurmurHash.h"
@ -21,7 +22,11 @@ framework module YapDatabase {
header "YapWhitelistBlacklist.h"
header "YapMutationStack.h"
}
explicit module YapDatabaseExtensionPrivate {
header "YapDatabaseExtensionPrivate.h"
}
// Extension: View
explicit module YapDatabaseView {
@ -178,4 +183,13 @@ framework module YapDatabase {
header "YapDatabaseCloudCorePipeline.h"
header "YapDatabaseCloudCoreGraph.h"
}
explicit module YapDatabaseCloudCorePrivate {
header "YapDatabaseCloudCorePrivate.h"
header "YapDatabaseCloudCoreOperationPrivate.h"
header "YapDatabaseCloudCorePipelinePrivate.h"
header "YapDatabaseCloudCoreGraphPrivate.h"
export YapDatabaseExtensionPrivate
}
}

View File

@ -12,3 +12,12 @@ end
target 'MultiprocessApp' do
pod "YapDatabase", path: '../../'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings.delete 'MACOSX_DEPLOYMENT_TARGET'
end
end
end

View File

@ -1,85 +1,89 @@
PODS:
- CocoaLumberjack (3.4.1):
- CocoaLumberjack/Default (= 3.4.1)
- CocoaLumberjack/Extensions (= 3.4.1)
- CocoaLumberjack/Default (3.4.1)
- CocoaLumberjack/Extensions (3.4.1):
- CocoaLumberjack (3.4.2):
- CocoaLumberjack/Default (= 3.4.2)
- CocoaLumberjack/Extensions (= 3.4.2)
- CocoaLumberjack/Default (3.4.2)
- CocoaLumberjack/Extensions (3.4.2):
- CocoaLumberjack/Default
- YapDatabase (3.0.2):
- YapDatabase/Standard (= 3.0.2)
- YapDatabase/Standard (3.0.2):
- YapDatabase/Standard/Core (= 3.0.2)
- YapDatabase/Standard/Extensions (= 3.0.2)
- YapDatabase/Standard/Core (3.0.2):
- YapDatabase (3.1.1):
- YapDatabase/Standard (= 3.1.1)
- YapDatabase/Standard (3.1.1):
- YapDatabase/Standard/Core (= 3.1.1)
- YapDatabase/Standard/Extensions (= 3.1.1)
- YapDatabase/Standard/Core (3.1.1):
- CocoaLumberjack
- YapDatabase/Standard/Extensions (3.0.2):
- YapDatabase/Standard/Extensions (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ActionManager (= 3.0.2)
- YapDatabase/Standard/Extensions/AutoView (= 3.0.2)
- YapDatabase/Standard/Extensions/CloudCore (= 3.0.2)
- YapDatabase/Standard/Extensions/CloudKit (= 3.0.2)
- YapDatabase/Standard/Extensions/ConnectionPool (= 3.0.2)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.0.2)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.0.2)
- YapDatabase/Standard/Extensions/FilteredView (= 3.0.2)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.0.2)
- YapDatabase/Standard/Extensions/Hooks (= 3.0.2)
- YapDatabase/Standard/Extensions/ManualView (= 3.0.2)
- YapDatabase/Standard/Extensions/Relationships (= 3.0.2)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.0.2)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.0.2)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.0.2)
- YapDatabase/Standard/Extensions/View (= 3.0.2)
- YapDatabase/Standard/Extensions/ActionManager (3.0.2):
- YapDatabase/Standard/Extensions/ActionManager (= 3.1.1)
- YapDatabase/Standard/Extensions/AutoView (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudCore (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudKit (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionPool (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.1.1)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.1.1)
- YapDatabase/Standard/Extensions/FilteredView (= 3.1.1)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.1.1)
- YapDatabase/Standard/Extensions/Hooks (= 3.1.1)
- YapDatabase/Standard/Extensions/ManualView (= 3.1.1)
- YapDatabase/Standard/Extensions/Relationships (= 3.1.1)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.1.1)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/View (= 3.1.1)
- YapDatabase/Standard/Extensions/ActionManager (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/AutoView (3.0.2):
- YapDatabase/Standard/Extensions/AutoView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/CloudCore (3.0.2):
- YapDatabase/Standard/Extensions/CloudCore (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CloudKit (3.0.2):
- YapDatabase/Standard/Extensions/CloudKit (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ConnectionPool (3.0.2):
- YapDatabase/Standard/Extensions/ConnectionPool (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ConnectionProxy (3.0.2):
- YapDatabase/Standard/Extensions/ConnectionProxy (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.0.2):
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/FilteredView (3.0.2):
- YapDatabase/Standard/Extensions/FilteredView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/FullTextSearch (3.0.2):
- YapDatabase/Standard/Extensions/FullTextSearch (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/Hooks (3.0.2):
- YapDatabase/Standard/Extensions/Hooks (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ManualView (3.0.2):
- YapDatabase/Standard/Extensions/ManualView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/Relationships (3.0.2):
- YapDatabase/Standard/Extensions/Relationships (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/RTreeIndex (3.0.2):
- YapDatabase/Standard/Extensions/RTreeIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/SearchResultsView (3.0.2):
- YapDatabase/Standard/Extensions/SearchResultsView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/FullTextSearch
- YapDatabase/Standard/Extensions/SecondaryIndex (3.0.2):
- YapDatabase/Standard/Extensions/SecondaryIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View (3.0.2):
- YapDatabase/Standard/Extensions/View (3.1.1):
- YapDatabase/Standard/Core
DEPENDENCIES:
- YapDatabase (from `../../`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- CocoaLumberjack
EXTERNAL SOURCES:
YapDatabase:
:path: ../../
:path: "../../"
SPEC CHECKSUMS:
CocoaLumberjack: 2e258a064cacc8eb9a2aca318e24d02a0a7fd56d
YapDatabase: 972eccb0c997d0dafe8192dccf7f58351914baf1
CocoaLumberjack: db7cc9e464771f12054c22ff6947c5a58d43a0fd
YapDatabase: 68188358039b289e962ddf55ffea39a336efd0e1
PODFILE CHECKSUM: 8dceb5c937bc6e9558d8d75103d141eef959b637
PODFILE CHECKSUM: c2d8695a2f756bf50f110a4ad94cf5aa99d53c43
COCOAPODS: 1.4.0
COCOAPODS: 1.6.0.beta.2

View File

@ -217,7 +217,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _saveThreshold;
result = self->_saveThreshold;
});
});
@ -227,15 +227,15 @@
- (void)setSaveThreshold:(NSUInteger)threshold {
dispatch_block_t block = ^{
@autoreleasepool {
if (_saveThreshold != threshold) {
_saveThreshold = threshold;
if (self->_saveThreshold != threshold) {
self->_saveThreshold = threshold;
// Since the saveThreshold has changed,
// we check to see if the current unsavedCount has surpassed the new threshold.
//
// If it has, we immediately save the log.
if ((_unsavedCount >= _saveThreshold) && (_saveThreshold > 0)) {
if ((self->_unsavedCount >= self->_saveThreshold) && (self->_saveThreshold > 0)) {
[self performSaveAndSuspendSaveTimer];
}
}
@ -277,7 +277,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _saveInterval;
result = self->_saveInterval;
});
});
@ -290,8 +290,8 @@
// C99 recommended floating point comparison macro
// Read: isLessThanOrGreaterThan(floatA, floatB)
if (/* saveInterval != interval */ islessgreater(_saveInterval, interval)) {
_saveInterval = interval;
if (/* saveInterval != interval */ islessgreater(self->_saveInterval, interval)) {
self->_saveInterval = interval;
// There are several cases we need to handle here.
//
@ -306,8 +306,8 @@
// 4. If the saveInterval decreased, then we need to reset the timer so that it fires at an earlier date.
// (Plus we might need to do an immediate save.)
if (_saveInterval > 0.0) {
if (_saveTimer == NULL) {
if (self->_saveInterval > 0.0) {
if (self->_saveTimer == NULL) {
// Handles #2
//
// Since the saveTimer uses the unsavedTime to calculate it's first fireDate,
@ -324,7 +324,7 @@
[self updateAndResumeSaveTimer];
}
} else if (_saveTimer) {
} else if (self->_saveTimer) {
// Handles #1
[self destroySaveTimer];
@ -368,7 +368,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _maxAge;
result = self->_maxAge;
});
});
@ -381,11 +381,11 @@
// C99 recommended floating point comparison macro
// Read: isLessThanOrGreaterThan(floatA, floatB)
if (/* maxAge != interval */ islessgreater(_maxAge, interval)) {
NSTimeInterval oldMaxAge = _maxAge;
if (/* maxAge != interval */ islessgreater(self->_maxAge, interval)) {
NSTimeInterval oldMaxAge = self->_maxAge;
NSTimeInterval newMaxAge = interval;
_maxAge = interval;
self->_maxAge = interval;
// There are several cases we need to handle here.
//
@ -420,7 +420,7 @@
if (shouldDeleteNow) {
[self performDelete];
if (_deleteTimer) {
if (self->_deleteTimer) {
[self updateDeleteTimer];
} else {
[self createAndStartDeleteTimer];
@ -465,7 +465,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _deleteInterval;
result = self->_deleteInterval;
});
});
@ -478,8 +478,8 @@
// C99 recommended floating point comparison macro
// Read: isLessThanOrGreaterThan(floatA, floatB)
if (/* deleteInterval != interval */ islessgreater(_deleteInterval, interval)) {
_deleteInterval = interval;
if (/* deleteInterval != interval */ islessgreater(self->_deleteInterval, interval)) {
self->_deleteInterval = interval;
// There are several cases we need to handle here.
//
@ -494,8 +494,8 @@
// 4. If the deleteInterval decreased, then we need to reset the timer so that it fires at an earlier date.
// (Plus we might need to do an immediate delete.)
if (_deleteInterval > 0.0) {
if (_deleteTimer == NULL) {
if (self->_deleteInterval > 0.0) {
if (self->_deleteTimer == NULL) {
// Handles #2
//
// Since the deleteTimer uses the lastDeleteTime to calculate it's first fireDate,
@ -511,7 +511,7 @@
[self updateDeleteTimer];
}
} else if (_deleteTimer) {
} else if (self->_deleteTimer) {
// Handles #1
[self destroyDeleteTimer];
@ -555,7 +555,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _deleteOnEverySave;
result = self->_deleteOnEverySave;
});
});
@ -564,7 +564,7 @@
- (void)setDeleteOnEverySave:(BOOL)flag {
dispatch_block_t block = ^{
_deleteOnEverySave = flag;
self->_deleteOnEverySave = flag;
};
// The design of the setter logic below is taken from the DDAbstractLogger implementation.

View File

@ -326,6 +326,11 @@ extern unsigned long long const kDDDefaultLogFilesDiskQuota;
*/
- (void)didLogMessage NS_REQUIRES_SUPER;
/**
* Writes all in-memory log data to the permanent storage. Call super before your implementation.
*/
- (void)flush NS_REQUIRES_SUPER;
/**
* Called when the logger checks archive or not current log file.
* Override this method to exdend standart behavior. By default returns NO.

View File

@ -612,7 +612,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
__block unsigned long long result;
dispatch_block_t block = ^{
result = _maximumFileSize;
result = self->_maximumFileSize;
};
// The design of this method is taken from the DDAbstractLogger implementation.
@ -640,7 +640,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
- (void)setMaximumFileSize:(unsigned long long)newMaximumFileSize {
dispatch_block_t block = ^{
@autoreleasepool {
_maximumFileSize = newMaximumFileSize;
self->_maximumFileSize = newMaximumFileSize;
[self maybeRollLogFileDueToSize];
}
};
@ -669,7 +669,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
__block NSTimeInterval result;
dispatch_block_t block = ^{
result = _rollingFrequency;
result = self->_rollingFrequency;
};
// The design of this method is taken from the DDAbstractLogger implementation.
@ -697,7 +697,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
- (void)setRollingFrequency:(NSTimeInterval)newRollingFrequency {
dispatch_block_t block = ^{
@autoreleasepool {
_rollingFrequency = newRollingFrequency;
self->_rollingFrequency = newRollingFrequency;
[self maybeRollLogFileDueToAge];
}
};
@ -1040,6 +1040,10 @@ static int exception_count = 0;
return @"cocoa.lumberjack.fileLogger";
}
- (void)flush {
[_currentLogFileHandle synchronizeFile];
}
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -177,7 +177,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @return the file name
*/
NSString * __nullable DDExtractFileNameWithoutExtension(const char *filePath, BOOL copy);
FOUNDATION_EXTERN NSString * __nullable DDExtractFileNameWithoutExtension(const char *filePath, BOOL copy);
/**
* The THIS_FILE macro gives you an NSString of the file name.

View File

@ -629,6 +629,7 @@ static NSUInteger _numProcessors;
if (numClasses > bufferSize || numClasses == 0) {
//apparently more classes added between calls (or a problem); try again
free(classes);
classes = NULL;
numClasses = 0;
}
}
@ -1312,8 +1313,8 @@ static __inline__ __attribute__((__always_inline__)) void _dispatch_queue_label_
__block id <DDLogFormatter> result;
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(_loggerQueue, ^{
result = _logFormatter;
dispatch_sync(self->_loggerQueue, ^{
result = self->_logFormatter;
});
});
@ -1328,17 +1329,17 @@ static __inline__ __attribute__((__always_inline__)) void _dispatch_queue_label_
dispatch_block_t block = ^{
@autoreleasepool {
if (_logFormatter != logFormatter) {
if ([_logFormatter respondsToSelector:@selector(willRemoveFromLogger:)]) {
[_logFormatter willRemoveFromLogger:self];
if (self->_logFormatter != logFormatter) {
if ([self->_logFormatter respondsToSelector:@selector(willRemoveFromLogger:)]) {
[self->_logFormatter willRemoveFromLogger:self];
}
_logFormatter = logFormatter;
self->_logFormatter = logFormatter;
if ([_logFormatter respondsToSelector:@selector(didAddToLogger:inQueue:)]) {
[_logFormatter didAddToLogger:self inQueue:_loggerQueue];
} else if ([_logFormatter respondsToSelector:@selector(didAddToLogger:)]) {
[_logFormatter didAddToLogger:self];
if ([self->_logFormatter respondsToSelector:@selector(didAddToLogger:inQueue:)]) {
[self->_logFormatter didAddToLogger:self inQueue:self->_loggerQueue];
} else if ([self->_logFormatter respondsToSelector:@selector(didAddToLogger:)]) {
[self->_logFormatter didAddToLogger:self];
}
}
}
@ -1347,7 +1348,7 @@ static __inline__ __attribute__((__always_inline__)) void _dispatch_queue_label_
dispatch_queue_t globalLoggingQueue = [DDLog loggingQueue];
dispatch_async(globalLoggingQueue, ^{
dispatch_async(_loggerQueue, block);
dispatch_async(self->_loggerQueue, block);
});
}

View File

@ -900,7 +900,7 @@ static DDTTYLogger *sharedInstance;
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _colorsEnabled;
result = self->_colorsEnabled;
});
});
@ -910,9 +910,9 @@ static DDTTYLogger *sharedInstance;
- (void)setColorsEnabled:(BOOL)newColorsEnabled {
dispatch_block_t block = ^{
@autoreleasepool {
_colorsEnabled = newColorsEnabled;
self->_colorsEnabled = newColorsEnabled;
if ([_colorProfilesArray count] == 0) {
if ([self->_colorProfilesArray count] == 0) {
[self loadDefaultColorProfiles];
}
}
@ -955,7 +955,7 @@ static DDTTYLogger *sharedInstance;
NSUInteger i = 0;
for (DDTTYLoggerColorProfile *colorProfile in _colorProfilesArray) {
for (DDTTYLoggerColorProfile *colorProfile in self->_colorProfilesArray) {
if ((colorProfile->mask == mask) && (colorProfile->context == ctxt)) {
break;
}
@ -963,10 +963,10 @@ static DDTTYLogger *sharedInstance;
i++;
}
if (i < [_colorProfilesArray count]) {
_colorProfilesArray[i] = newColorProfile;
if (i < [self->_colorProfilesArray count]) {
self->_colorProfilesArray[i] = newColorProfile;
} else {
[_colorProfilesArray addObject:newColorProfile];
[self->_colorProfilesArray addObject:newColorProfile];
}
}
};
@ -999,7 +999,7 @@ static DDTTYLogger *sharedInstance;
NSLogInfo(@"DDTTYLogger: newColorProfile: %@", newColorProfile);
_colorProfilesDict[tag] = newColorProfile;
self->_colorProfilesDict[tag] = newColorProfile;
}
};
@ -1027,7 +1027,7 @@ static DDTTYLogger *sharedInstance;
@autoreleasepool {
NSUInteger i = 0;
for (DDTTYLoggerColorProfile *colorProfile in _colorProfilesArray) {
for (DDTTYLoggerColorProfile *colorProfile in self->_colorProfilesArray) {
if ((colorProfile->mask == mask) && (colorProfile->context == context)) {
break;
}
@ -1035,8 +1035,8 @@ static DDTTYLogger *sharedInstance;
i++;
}
if (i < [_colorProfilesArray count]) {
[_colorProfilesArray removeObjectAtIndex:i];
if (i < [self->_colorProfilesArray count]) {
[self->_colorProfilesArray removeObjectAtIndex:i];
}
}
};
@ -1061,7 +1061,7 @@ static DDTTYLogger *sharedInstance;
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesDict removeObjectForKey:tag];
[self->_colorProfilesDict removeObjectForKey:tag];
}
};
@ -1083,7 +1083,7 @@ static DDTTYLogger *sharedInstance;
- (void)clearColorsForAllFlags {
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesArray removeAllObjects];
[self->_colorProfilesArray removeAllObjects];
}
};
@ -1105,7 +1105,7 @@ static DDTTYLogger *sharedInstance;
- (void)clearColorsForAllTags {
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesDict removeAllObjects];
[self->_colorProfilesDict removeAllObjects];
}
};
@ -1127,8 +1127,8 @@ static DDTTYLogger *sharedInstance;
- (void)clearAllColors {
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesArray removeAllObjects];
[_colorProfilesDict removeAllObjects];
[self->_colorProfilesArray removeAllObjects];
[self->_colorProfilesDict removeAllObjects];
}
};

View File

@ -81,7 +81,7 @@
__block NSString *line = logMessage->_message;
dispatch_sync(_queue, ^{
for (id<DDLogFormatter> formatter in _formatters) {
for (id<DDLogFormatter> formatter in self->_formatters) {
DDLogMessage *message = [self logMessageForLine:line originalMessage:logMessage];
line = [formatter formatLogMessage:message];
@ -107,7 +107,7 @@
__block NSArray *formatters;
dispatch_sync(_queue, ^{
formatters = [_formatters copy];
formatters = [self->_formatters copy];
});
return formatters;
@ -115,19 +115,19 @@
- (void)addFormatter:(id<DDLogFormatter>)formatter {
dispatch_barrier_async(_queue, ^{
[_formatters addObject:formatter];
[self->_formatters addObject:formatter];
});
}
- (void)removeFormatter:(id<DDLogFormatter>)formatter {
dispatch_barrier_async(_queue, ^{
[_formatters removeObject:formatter];
[self->_formatters removeObject:formatter];
});
}
- (void)removeAllFormatters {
dispatch_barrier_async(_queue, ^{
[_formatters removeAllObjects];
[self->_formatters removeAllObjects];
});
}
@ -135,7 +135,7 @@
__block BOOL hasFormatter;
dispatch_sync(_queue, ^{
hasFormatter = [_formatters containsObject:formatter];
hasFormatter = [self->_formatters containsObject:formatter];
});
return hasFormatter;

View File

@ -48,11 +48,11 @@ DDLog.add(fileLogger)
...
DDLogVerbose("Verbose");
DDLogDebug("Debug");
DDLogInfo("Info");
DDLogWarn("Warn");
DDLogError("Error");
DDLogVerbose("Verbose")
DDLogDebug("Debug")
DDLogInfo("Info")
DDLogWarn("Warn")
DDLogError("Error")
```
##### Obj-C version via CocoaPods

View File

@ -1 +1 @@
../../../../../../YapDatabase/Internal/YapDatabaseAtomic.h
../../../../../../YapDatabase/Utilities/YapDatabaseAtomic.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCoreGraphPrivate.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Utilities/YapDatabaseAtomic.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCoreGraphPrivate.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCoreOperationPrivate.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCorePipelinePrivate.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCorePrivate.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/Protocol/Internal/YapDatabaseExtensionPrivate.h

View File

@ -1,6 +1,6 @@
{
"name": "YapDatabase",
"version": "3.0.2",
"version": "3.1.1",
"summary": "A key/value store built atop sqlite for iOS & Mac.",
"homepage": "https://github.com/yapstudios/YapDatabase",
"license": "MIT",
@ -9,7 +9,7 @@
},
"source": {
"git": "https://github.com/yapstudios/YapDatabase.git",
"tag": "3.0.2"
"tag": "3.1.1"
},
"platforms": {
"osx": "10.10",
@ -19,6 +19,18 @@
},
"libraries": "c++",
"default_subspecs": "Standard",
"osx": {
"module_map": "Framework/Mac/module.modulemap"
},
"ios": {
"module_map": "Framework/iOS/module.modulemap"
},
"tvos": {
"module_map": "Framework/tvOS/module.modulemap"
},
"watchos": {
"module_map": "Framework/watchOS/module.modulemap"
},
"subspecs": [
{
"name": "Standard",
@ -39,10 +51,7 @@
"YapDatabase/{Internal,Utilities}/*.{h,m,mm,c}",
"YapDatabase/Extensions/Protocol/**/*.{h,m,mm,c}"
],
"private_header_files": [
"YapDatabase/Internal/*.h",
"YapDatabase/Extensions/Protocol/Internal/*.h"
]
"private_header_files": "YapDatabase/Internal/*.h"
},
{
"name": "Extensions",
@ -164,8 +173,7 @@
},
{
"name": "CloudCore",
"source_files": "YapDatabase/Extensions/CloudCore/**/*.{h,m,mm,c}",
"private_header_files": "YapDatabase/Extensions/CloudCore/Internal/*.h"
"source_files": "YapDatabase/Extensions/CloudCore/**/*.{h,m,mm,c}"
}
]
}
@ -192,10 +200,7 @@
"YapDatabase/{Internal,Utilities}/*.{h,m,mm,c}",
"YapDatabase/Extensions/Protocol/**/*.{h,m,mm,c}"
],
"private_header_files": [
"YapDatabase/Internal/*.h",
"YapDatabase/Extensions/Protocol/Internal/*.h"
]
"private_header_files": "YapDatabase/Internal/*.h"
},
{
"name": "Extensions",
@ -317,8 +322,7 @@
},
{
"name": "CloudCore",
"source_files": "YapDatabase/Extensions/CloudCore/**/*.{h,m,mm,c}",
"private_header_files": "YapDatabase/Extensions/CloudCore/Internal/*.h"
"source_files": "YapDatabase/Extensions/CloudCore/**/*.{h,m,mm,c}"
}
]
}

View File

@ -1,85 +1,89 @@
PODS:
- CocoaLumberjack (3.4.1):
- CocoaLumberjack/Default (= 3.4.1)
- CocoaLumberjack/Extensions (= 3.4.1)
- CocoaLumberjack/Default (3.4.1)
- CocoaLumberjack/Extensions (3.4.1):
- CocoaLumberjack (3.4.2):
- CocoaLumberjack/Default (= 3.4.2)
- CocoaLumberjack/Extensions (= 3.4.2)
- CocoaLumberjack/Default (3.4.2)
- CocoaLumberjack/Extensions (3.4.2):
- CocoaLumberjack/Default
- YapDatabase (3.0.2):
- YapDatabase/Standard (= 3.0.2)
- YapDatabase/Standard (3.0.2):
- YapDatabase/Standard/Core (= 3.0.2)
- YapDatabase/Standard/Extensions (= 3.0.2)
- YapDatabase/Standard/Core (3.0.2):
- YapDatabase (3.1.1):
- YapDatabase/Standard (= 3.1.1)
- YapDatabase/Standard (3.1.1):
- YapDatabase/Standard/Core (= 3.1.1)
- YapDatabase/Standard/Extensions (= 3.1.1)
- YapDatabase/Standard/Core (3.1.1):
- CocoaLumberjack
- YapDatabase/Standard/Extensions (3.0.2):
- YapDatabase/Standard/Extensions (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ActionManager (= 3.0.2)
- YapDatabase/Standard/Extensions/AutoView (= 3.0.2)
- YapDatabase/Standard/Extensions/CloudCore (= 3.0.2)
- YapDatabase/Standard/Extensions/CloudKit (= 3.0.2)
- YapDatabase/Standard/Extensions/ConnectionPool (= 3.0.2)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.0.2)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.0.2)
- YapDatabase/Standard/Extensions/FilteredView (= 3.0.2)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.0.2)
- YapDatabase/Standard/Extensions/Hooks (= 3.0.2)
- YapDatabase/Standard/Extensions/ManualView (= 3.0.2)
- YapDatabase/Standard/Extensions/Relationships (= 3.0.2)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.0.2)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.0.2)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.0.2)
- YapDatabase/Standard/Extensions/View (= 3.0.2)
- YapDatabase/Standard/Extensions/ActionManager (3.0.2):
- YapDatabase/Standard/Extensions/ActionManager (= 3.1.1)
- YapDatabase/Standard/Extensions/AutoView (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudCore (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudKit (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionPool (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.1.1)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.1.1)
- YapDatabase/Standard/Extensions/FilteredView (= 3.1.1)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.1.1)
- YapDatabase/Standard/Extensions/Hooks (= 3.1.1)
- YapDatabase/Standard/Extensions/ManualView (= 3.1.1)
- YapDatabase/Standard/Extensions/Relationships (= 3.1.1)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.1.1)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/View (= 3.1.1)
- YapDatabase/Standard/Extensions/ActionManager (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/AutoView (3.0.2):
- YapDatabase/Standard/Extensions/AutoView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/CloudCore (3.0.2):
- YapDatabase/Standard/Extensions/CloudCore (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CloudKit (3.0.2):
- YapDatabase/Standard/Extensions/CloudKit (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ConnectionPool (3.0.2):
- YapDatabase/Standard/Extensions/ConnectionPool (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ConnectionProxy (3.0.2):
- YapDatabase/Standard/Extensions/ConnectionProxy (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.0.2):
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/FilteredView (3.0.2):
- YapDatabase/Standard/Extensions/FilteredView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/FullTextSearch (3.0.2):
- YapDatabase/Standard/Extensions/FullTextSearch (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/Hooks (3.0.2):
- YapDatabase/Standard/Extensions/Hooks (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ManualView (3.0.2):
- YapDatabase/Standard/Extensions/ManualView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/Relationships (3.0.2):
- YapDatabase/Standard/Extensions/Relationships (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/RTreeIndex (3.0.2):
- YapDatabase/Standard/Extensions/RTreeIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/SearchResultsView (3.0.2):
- YapDatabase/Standard/Extensions/SearchResultsView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/FullTextSearch
- YapDatabase/Standard/Extensions/SecondaryIndex (3.0.2):
- YapDatabase/Standard/Extensions/SecondaryIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View (3.0.2):
- YapDatabase/Standard/Extensions/View (3.1.1):
- YapDatabase/Standard/Core
DEPENDENCIES:
- YapDatabase (from `../../`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- CocoaLumberjack
EXTERNAL SOURCES:
YapDatabase:
:path: ../../
:path: "../../"
SPEC CHECKSUMS:
CocoaLumberjack: 2e258a064cacc8eb9a2aca318e24d02a0a7fd56d
YapDatabase: 972eccb0c997d0dafe8192dccf7f58351914baf1
CocoaLumberjack: db7cc9e464771f12054c22ff6947c5a58d43a0fd
YapDatabase: 68188358039b289e962ddf55ffea39a336efd0e1
PODFILE CHECKSUM: 8dceb5c937bc6e9558d8d75103d141eef959b637
PODFILE CHECKSUM: c2d8695a2f756bf50f110a4ad94cf5aa99d53c43
COCOAPODS: 1.4.0
COCOAPODS: 1.6.0.beta.2

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/CocoaLumberjack" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/CocoaLumberjack" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_ROOT = ${SRCROOT}

View File

@ -1,9 +1,18 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the script phase was successful).
exit 0
fi
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
# Used as a return value for each invocation of `strip_invalid_archs` function.
@ -92,10 +101,10 @@ install_dsym() {
# Signs a framework with the provided identity
code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'"
if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
code_sign_cmd="$code_sign_cmd &"

View File

@ -1,5 +1,13 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then
# If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy
# resources to, so exit 0 (signalling the script phase was successful).
exit 0
fi
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
@ -12,7 +20,7 @@ XCASSET_FILES=()
# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
case "${TARGETED_DEVICE_FAMILY}" in
case "${TARGETED_DEVICE_FAMILY:-}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
@ -92,7 +100,7 @@ if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
fi
rm -f "$RESOURCES_TO_COPY"
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ]
then
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
@ -102,5 +110,9 @@ then
fi
done <<<"$OTHER_XCASSETS"
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
else
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist"
fi
fi

View File

@ -1,7 +1,7 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -1,7 +1,7 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -1,9 +1,18 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the script phase was successful).
exit 0
fi
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
# Used as a return value for each invocation of `strip_invalid_archs` function.
@ -92,10 +101,10 @@ install_dsym() {
# Signs a framework with the provided identity
code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'"
if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
code_sign_cmd="$code_sign_cmd &"

View File

@ -1,5 +1,13 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then
# If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy
# resources to, so exit 0 (signalling the script phase was successful).
exit 0
fi
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
@ -12,7 +20,7 @@ XCASSET_FILES=()
# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
case "${TARGETED_DEVICE_FAMILY}" in
case "${TARGETED_DEVICE_FAMILY:-}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
@ -92,7 +100,7 @@ if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
fi
rm -f "$RESOURCES_TO_COPY"
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ]
then
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
@ -102,5 +110,9 @@ then
fi
done <<<"$OTHER_XCASSETS"
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
else
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist"
fi
fi

View File

@ -1,7 +1,7 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -1,7 +1,7 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -1,9 +1,18 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the script phase was successful).
exit 0
fi
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
# Used as a return value for each invocation of `strip_invalid_archs` function.
@ -92,10 +101,10 @@ install_dsym() {
# Signs a framework with the provided identity
code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'"
if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
code_sign_cmd="$code_sign_cmd &"

View File

@ -1,5 +1,13 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then
# If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy
# resources to, so exit 0 (signalling the script phase was successful).
exit 0
fi
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
@ -12,7 +20,7 @@ XCASSET_FILES=()
# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
case "${TARGETED_DEVICE_FAMILY}" in
case "${TARGETED_DEVICE_FAMILY:-}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
@ -92,7 +100,7 @@ if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
fi
rm -f "$RESOURCES_TO_COPY"
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ]
then
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
@ -102,5 +110,9 @@ then
fi
done <<<"$OTHER_XCASSETS"
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
else
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist"
fi
fi

View File

@ -1,7 +1,7 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -1,7 +1,7 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -1,9 +1,7 @@
CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/YapDatabase" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/YapDatabase" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = -l"c++" -l"sqlite3" -framework "SystemConfiguration"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_ROOT = ${SRCROOT}

View File

@ -3,7 +3,7 @@
@interface AppDelegate : NSObject <NSApplicationDelegate>
@property (assign) IBOutlet NSWindow *window;
@property (nonatomic, assign) IBOutlet NSWindow *window;
@property (nonatomic, strong, readwrite) IBOutlet NSButton *databaseBenchmarksButton;
@property (nonatomic, strong, readwrite) IBOutlet NSButton *cacheBenchmarksButton;

View File

@ -9,14 +9,16 @@
@implementation AppDelegate
@synthesize window;
@synthesize databaseBenchmarksButton = databaseBenchmarksButton;
@synthesize cacheBenchmarksButton = cacheBenchmarksButton;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
}
@synthesize databaseBenchmarksButton = databaseBenchmarksButton;
@synthesize cacheBenchmarksButton = cacheBenchmarksButton;
- (IBAction)runDatabaseBenchmarks:(id)sender
{
databaseBenchmarksButton.enabled = NO;
@ -27,9 +29,13 @@
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
[BenchmarkYapDatabase runTestsWithCompletion:^{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wimplicit-retain-self"
databaseBenchmarksButton.enabled = YES;
cacheBenchmarksButton.enabled = YES;
#pragma clang diagnostic pop
}];
});
}
@ -44,9 +50,13 @@
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
[BenchmarkYapCache runTestsWithCompletion:^{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wimplicit-retain-self"
databaseBenchmarksButton.enabled = YES;
cacheBenchmarksButton.enabled = YES;
#pragma clang diagnostic pop
}];
});
}

View File

@ -377,7 +377,6 @@
98987F7B1C71D79600173D90 /* Sources */,
98987F7C1C71D79600173D90 /* Frameworks */,
980A1A1E1C73445200AE574D /* CopyFiles */,
3F3B1E8341485E819B1ECFB9 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@ -396,8 +395,6 @@
DC84FF87175130D2003BFBB2 /* Sources */,
DC84FF88175130D2003BFBB2 /* Frameworks */,
DC84FF89175130D2003BFBB2 /* Resources */,
87068B8ADA8374DE292CA2A9 /* [CP] Embed Pods Frameworks */,
54F2B23EDEE349A6675A75AF /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@ -416,8 +413,6 @@
DCFBF7001B45F2D700EC6DFF /* Sources */,
DCFBF7011B45F2D700EC6DFF /* Frameworks */,
DCFBF7021B45F2D700EC6DFF /* Resources */,
9ACE8F341C5C45529F0CEF7E /* [CP] Embed Pods Frameworks */,
DDAB329B4D08BE3FF60F3C63 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@ -436,7 +431,7 @@
isa = PBXProject;
attributes = {
LastTestingUpgradeCheck = 0510;
LastUpgradeCheck = 0910;
LastUpgradeCheck = 1010;
ORGANIZATIONNAME = "Robbie Hanson";
TargetAttributes = {
98987F7E1C71D79600173D90 = {
@ -531,66 +526,6 @@
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";
showEnvVarsInLog = 0;
};
3F3B1E8341485E819B1ECFB9 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MultiprocessApp/Pods-MultiprocessApp-resources.sh\"\n";
showEnvVarsInLog = 0;
};
54F2B23EDEE349A6675A75AF /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YapDatabase/Pods-YapDatabase-resources.sh\"\n";
showEnvVarsInLog = 0;
};
87068B8ADA8374DE292CA2A9 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YapDatabase/Pods-YapDatabase-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
9ACE8F341C5C45529F0CEF7E /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YapDatabaseTests/Pods-YapDatabaseTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
CA689FA5101E28C0B10CF1BB /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@ -609,21 +544,6 @@
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";
showEnvVarsInLog = 0;
};
DDAB329B4D08BE3FF60F3C63 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YapDatabaseTests/Pods-YapDatabaseTests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@ -764,11 +684,13 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
@ -811,11 +733,13 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
@ -843,6 +767,8 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 71C1B3CA4D75DBA9CA1F368F /* Pods-YapDatabase.debug.xcconfig */;
buildSettings = {
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = YES;
COMBINE_HIDPI_IMAGES = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "YapDatabase/YapDatabase-Prefix.pch";
@ -864,6 +790,8 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 588E5E6547945E9906A3C836 /* Pods-YapDatabase.release.xcconfig */;
buildSettings = {
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = YES;
COMBINE_HIDPI_IMAGES = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "YapDatabase/YapDatabase-Prefix.pch";

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0910"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@ -26,7 +26,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
@ -46,7 +45,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0910"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

View File

@ -1,5 +1,6 @@
project 'YapDatabaseTesting.xcodeproj'
platform :ios, '8.1'
platform :ios, '10.0'
use_modular_headers!
target 'YapDatabase' do
pod "YapDatabase", path: '../../'
@ -8,3 +9,12 @@ end
target 'YapDatabaseTests' do
pod "YapDatabase", path: '../../'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings.delete 'MACOSX_DEPLOYMENT_TARGET'
end
end
end

View File

@ -1,85 +1,89 @@
PODS:
- CocoaLumberjack (3.4.1):
- CocoaLumberjack/Default (= 3.4.1)
- CocoaLumberjack/Extensions (= 3.4.1)
- CocoaLumberjack/Default (3.4.1)
- CocoaLumberjack/Extensions (3.4.1):
- CocoaLumberjack (3.4.2):
- CocoaLumberjack/Default (= 3.4.2)
- CocoaLumberjack/Extensions (= 3.4.2)
- CocoaLumberjack/Default (3.4.2)
- CocoaLumberjack/Extensions (3.4.2):
- CocoaLumberjack/Default
- YapDatabase (3.0.2):
- YapDatabase/Standard (= 3.0.2)
- YapDatabase/Standard (3.0.2):
- YapDatabase/Standard/Core (= 3.0.2)
- YapDatabase/Standard/Extensions (= 3.0.2)
- YapDatabase/Standard/Core (3.0.2):
- YapDatabase (3.1.1):
- YapDatabase/Standard (= 3.1.1)
- YapDatabase/Standard (3.1.1):
- YapDatabase/Standard/Core (= 3.1.1)
- YapDatabase/Standard/Extensions (= 3.1.1)
- YapDatabase/Standard/Core (3.1.1):
- CocoaLumberjack
- YapDatabase/Standard/Extensions (3.0.2):
- YapDatabase/Standard/Extensions (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ActionManager (= 3.0.2)
- YapDatabase/Standard/Extensions/AutoView (= 3.0.2)
- YapDatabase/Standard/Extensions/CloudCore (= 3.0.2)
- YapDatabase/Standard/Extensions/CloudKit (= 3.0.2)
- YapDatabase/Standard/Extensions/ConnectionPool (= 3.0.2)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.0.2)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.0.2)
- YapDatabase/Standard/Extensions/FilteredView (= 3.0.2)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.0.2)
- YapDatabase/Standard/Extensions/Hooks (= 3.0.2)
- YapDatabase/Standard/Extensions/ManualView (= 3.0.2)
- YapDatabase/Standard/Extensions/Relationships (= 3.0.2)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.0.2)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.0.2)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.0.2)
- YapDatabase/Standard/Extensions/View (= 3.0.2)
- YapDatabase/Standard/Extensions/ActionManager (3.0.2):
- YapDatabase/Standard/Extensions/ActionManager (= 3.1.1)
- YapDatabase/Standard/Extensions/AutoView (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudCore (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudKit (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionPool (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.1.1)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.1.1)
- YapDatabase/Standard/Extensions/FilteredView (= 3.1.1)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.1.1)
- YapDatabase/Standard/Extensions/Hooks (= 3.1.1)
- YapDatabase/Standard/Extensions/ManualView (= 3.1.1)
- YapDatabase/Standard/Extensions/Relationships (= 3.1.1)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.1.1)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/View (= 3.1.1)
- YapDatabase/Standard/Extensions/ActionManager (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/AutoView (3.0.2):
- YapDatabase/Standard/Extensions/AutoView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/CloudCore (3.0.2):
- YapDatabase/Standard/Extensions/CloudCore (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CloudKit (3.0.2):
- YapDatabase/Standard/Extensions/CloudKit (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ConnectionPool (3.0.2):
- YapDatabase/Standard/Extensions/ConnectionPool (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ConnectionProxy (3.0.2):
- YapDatabase/Standard/Extensions/ConnectionProxy (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.0.2):
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/FilteredView (3.0.2):
- YapDatabase/Standard/Extensions/FilteredView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/FullTextSearch (3.0.2):
- YapDatabase/Standard/Extensions/FullTextSearch (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/Hooks (3.0.2):
- YapDatabase/Standard/Extensions/Hooks (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ManualView (3.0.2):
- YapDatabase/Standard/Extensions/ManualView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/Relationships (3.0.2):
- YapDatabase/Standard/Extensions/Relationships (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/RTreeIndex (3.0.2):
- YapDatabase/Standard/Extensions/RTreeIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/SearchResultsView (3.0.2):
- YapDatabase/Standard/Extensions/SearchResultsView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/FullTextSearch
- YapDatabase/Standard/Extensions/SecondaryIndex (3.0.2):
- YapDatabase/Standard/Extensions/SecondaryIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View (3.0.2):
- YapDatabase/Standard/Extensions/View (3.1.1):
- YapDatabase/Standard/Core
DEPENDENCIES:
- YapDatabase (from `../../`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- CocoaLumberjack
EXTERNAL SOURCES:
YapDatabase:
:path: ../../
:path: "../../"
SPEC CHECKSUMS:
CocoaLumberjack: 2e258a064cacc8eb9a2aca318e24d02a0a7fd56d
YapDatabase: 972eccb0c997d0dafe8192dccf7f58351914baf1
CocoaLumberjack: db7cc9e464771f12054c22ff6947c5a58d43a0fd
YapDatabase: 68188358039b289e962ddf55ffea39a336efd0e1
PODFILE CHECKSUM: 56e0faf7e85fac2003da53b861394c2731e637d4
PODFILE CHECKSUM: a3d25f1bb5723f2682be762798ccdb8bb5b4eb81
COCOAPODS: 1.4.0
COCOAPODS: 1.6.0.beta.2

View File

@ -217,7 +217,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _saveThreshold;
result = self->_saveThreshold;
});
});
@ -227,15 +227,15 @@
- (void)setSaveThreshold:(NSUInteger)threshold {
dispatch_block_t block = ^{
@autoreleasepool {
if (_saveThreshold != threshold) {
_saveThreshold = threshold;
if (self->_saveThreshold != threshold) {
self->_saveThreshold = threshold;
// Since the saveThreshold has changed,
// we check to see if the current unsavedCount has surpassed the new threshold.
//
// If it has, we immediately save the log.
if ((_unsavedCount >= _saveThreshold) && (_saveThreshold > 0)) {
if ((self->_unsavedCount >= self->_saveThreshold) && (self->_saveThreshold > 0)) {
[self performSaveAndSuspendSaveTimer];
}
}
@ -277,7 +277,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _saveInterval;
result = self->_saveInterval;
});
});
@ -290,8 +290,8 @@
// C99 recommended floating point comparison macro
// Read: isLessThanOrGreaterThan(floatA, floatB)
if (/* saveInterval != interval */ islessgreater(_saveInterval, interval)) {
_saveInterval = interval;
if (/* saveInterval != interval */ islessgreater(self->_saveInterval, interval)) {
self->_saveInterval = interval;
// There are several cases we need to handle here.
//
@ -306,8 +306,8 @@
// 4. If the saveInterval decreased, then we need to reset the timer so that it fires at an earlier date.
// (Plus we might need to do an immediate save.)
if (_saveInterval > 0.0) {
if (_saveTimer == NULL) {
if (self->_saveInterval > 0.0) {
if (self->_saveTimer == NULL) {
// Handles #2
//
// Since the saveTimer uses the unsavedTime to calculate it's first fireDate,
@ -324,7 +324,7 @@
[self updateAndResumeSaveTimer];
}
} else if (_saveTimer) {
} else if (self->_saveTimer) {
// Handles #1
[self destroySaveTimer];
@ -368,7 +368,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _maxAge;
result = self->_maxAge;
});
});
@ -381,11 +381,11 @@
// C99 recommended floating point comparison macro
// Read: isLessThanOrGreaterThan(floatA, floatB)
if (/* maxAge != interval */ islessgreater(_maxAge, interval)) {
NSTimeInterval oldMaxAge = _maxAge;
if (/* maxAge != interval */ islessgreater(self->_maxAge, interval)) {
NSTimeInterval oldMaxAge = self->_maxAge;
NSTimeInterval newMaxAge = interval;
_maxAge = interval;
self->_maxAge = interval;
// There are several cases we need to handle here.
//
@ -420,7 +420,7 @@
if (shouldDeleteNow) {
[self performDelete];
if (_deleteTimer) {
if (self->_deleteTimer) {
[self updateDeleteTimer];
} else {
[self createAndStartDeleteTimer];
@ -465,7 +465,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _deleteInterval;
result = self->_deleteInterval;
});
});
@ -478,8 +478,8 @@
// C99 recommended floating point comparison macro
// Read: isLessThanOrGreaterThan(floatA, floatB)
if (/* deleteInterval != interval */ islessgreater(_deleteInterval, interval)) {
_deleteInterval = interval;
if (/* deleteInterval != interval */ islessgreater(self->_deleteInterval, interval)) {
self->_deleteInterval = interval;
// There are several cases we need to handle here.
//
@ -494,8 +494,8 @@
// 4. If the deleteInterval decreased, then we need to reset the timer so that it fires at an earlier date.
// (Plus we might need to do an immediate delete.)
if (_deleteInterval > 0.0) {
if (_deleteTimer == NULL) {
if (self->_deleteInterval > 0.0) {
if (self->_deleteTimer == NULL) {
// Handles #2
//
// Since the deleteTimer uses the lastDeleteTime to calculate it's first fireDate,
@ -511,7 +511,7 @@
[self updateDeleteTimer];
}
} else if (_deleteTimer) {
} else if (self->_deleteTimer) {
// Handles #1
[self destroyDeleteTimer];
@ -555,7 +555,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _deleteOnEverySave;
result = self->_deleteOnEverySave;
});
});
@ -564,7 +564,7 @@
- (void)setDeleteOnEverySave:(BOOL)flag {
dispatch_block_t block = ^{
_deleteOnEverySave = flag;
self->_deleteOnEverySave = flag;
};
// The design of the setter logic below is taken from the DDAbstractLogger implementation.

View File

@ -326,6 +326,11 @@ extern unsigned long long const kDDDefaultLogFilesDiskQuota;
*/
- (void)didLogMessage NS_REQUIRES_SUPER;
/**
* Writes all in-memory log data to the permanent storage. Call super before your implementation.
*/
- (void)flush NS_REQUIRES_SUPER;
/**
* Called when the logger checks archive or not current log file.
* Override this method to exdend standart behavior. By default returns NO.

View File

@ -612,7 +612,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
__block unsigned long long result;
dispatch_block_t block = ^{
result = _maximumFileSize;
result = self->_maximumFileSize;
};
// The design of this method is taken from the DDAbstractLogger implementation.
@ -640,7 +640,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
- (void)setMaximumFileSize:(unsigned long long)newMaximumFileSize {
dispatch_block_t block = ^{
@autoreleasepool {
_maximumFileSize = newMaximumFileSize;
self->_maximumFileSize = newMaximumFileSize;
[self maybeRollLogFileDueToSize];
}
};
@ -669,7 +669,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
__block NSTimeInterval result;
dispatch_block_t block = ^{
result = _rollingFrequency;
result = self->_rollingFrequency;
};
// The design of this method is taken from the DDAbstractLogger implementation.
@ -697,7 +697,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
- (void)setRollingFrequency:(NSTimeInterval)newRollingFrequency {
dispatch_block_t block = ^{
@autoreleasepool {
_rollingFrequency = newRollingFrequency;
self->_rollingFrequency = newRollingFrequency;
[self maybeRollLogFileDueToAge];
}
};
@ -1040,6 +1040,10 @@ static int exception_count = 0;
return @"cocoa.lumberjack.fileLogger";
}
- (void)flush {
[_currentLogFileHandle synchronizeFile];
}
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -177,7 +177,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @return the file name
*/
NSString * __nullable DDExtractFileNameWithoutExtension(const char *filePath, BOOL copy);
FOUNDATION_EXTERN NSString * __nullable DDExtractFileNameWithoutExtension(const char *filePath, BOOL copy);
/**
* The THIS_FILE macro gives you an NSString of the file name.

View File

@ -629,6 +629,7 @@ static NSUInteger _numProcessors;
if (numClasses > bufferSize || numClasses == 0) {
//apparently more classes added between calls (or a problem); try again
free(classes);
classes = NULL;
numClasses = 0;
}
}
@ -1312,8 +1313,8 @@ static __inline__ __attribute__((__always_inline__)) void _dispatch_queue_label_
__block id <DDLogFormatter> result;
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(_loggerQueue, ^{
result = _logFormatter;
dispatch_sync(self->_loggerQueue, ^{
result = self->_logFormatter;
});
});
@ -1328,17 +1329,17 @@ static __inline__ __attribute__((__always_inline__)) void _dispatch_queue_label_
dispatch_block_t block = ^{
@autoreleasepool {
if (_logFormatter != logFormatter) {
if ([_logFormatter respondsToSelector:@selector(willRemoveFromLogger:)]) {
[_logFormatter willRemoveFromLogger:self];
if (self->_logFormatter != logFormatter) {
if ([self->_logFormatter respondsToSelector:@selector(willRemoveFromLogger:)]) {
[self->_logFormatter willRemoveFromLogger:self];
}
_logFormatter = logFormatter;
self->_logFormatter = logFormatter;
if ([_logFormatter respondsToSelector:@selector(didAddToLogger:inQueue:)]) {
[_logFormatter didAddToLogger:self inQueue:_loggerQueue];
} else if ([_logFormatter respondsToSelector:@selector(didAddToLogger:)]) {
[_logFormatter didAddToLogger:self];
if ([self->_logFormatter respondsToSelector:@selector(didAddToLogger:inQueue:)]) {
[self->_logFormatter didAddToLogger:self inQueue:self->_loggerQueue];
} else if ([self->_logFormatter respondsToSelector:@selector(didAddToLogger:)]) {
[self->_logFormatter didAddToLogger:self];
}
}
}
@ -1347,7 +1348,7 @@ static __inline__ __attribute__((__always_inline__)) void _dispatch_queue_label_
dispatch_queue_t globalLoggingQueue = [DDLog loggingQueue];
dispatch_async(globalLoggingQueue, ^{
dispatch_async(_loggerQueue, block);
dispatch_async(self->_loggerQueue, block);
});
}

View File

@ -900,7 +900,7 @@ static DDTTYLogger *sharedInstance;
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _colorsEnabled;
result = self->_colorsEnabled;
});
});
@ -910,9 +910,9 @@ static DDTTYLogger *sharedInstance;
- (void)setColorsEnabled:(BOOL)newColorsEnabled {
dispatch_block_t block = ^{
@autoreleasepool {
_colorsEnabled = newColorsEnabled;
self->_colorsEnabled = newColorsEnabled;
if ([_colorProfilesArray count] == 0) {
if ([self->_colorProfilesArray count] == 0) {
[self loadDefaultColorProfiles];
}
}
@ -955,7 +955,7 @@ static DDTTYLogger *sharedInstance;
NSUInteger i = 0;
for (DDTTYLoggerColorProfile *colorProfile in _colorProfilesArray) {
for (DDTTYLoggerColorProfile *colorProfile in self->_colorProfilesArray) {
if ((colorProfile->mask == mask) && (colorProfile->context == ctxt)) {
break;
}
@ -963,10 +963,10 @@ static DDTTYLogger *sharedInstance;
i++;
}
if (i < [_colorProfilesArray count]) {
_colorProfilesArray[i] = newColorProfile;
if (i < [self->_colorProfilesArray count]) {
self->_colorProfilesArray[i] = newColorProfile;
} else {
[_colorProfilesArray addObject:newColorProfile];
[self->_colorProfilesArray addObject:newColorProfile];
}
}
};
@ -999,7 +999,7 @@ static DDTTYLogger *sharedInstance;
NSLogInfo(@"DDTTYLogger: newColorProfile: %@", newColorProfile);
_colorProfilesDict[tag] = newColorProfile;
self->_colorProfilesDict[tag] = newColorProfile;
}
};
@ -1027,7 +1027,7 @@ static DDTTYLogger *sharedInstance;
@autoreleasepool {
NSUInteger i = 0;
for (DDTTYLoggerColorProfile *colorProfile in _colorProfilesArray) {
for (DDTTYLoggerColorProfile *colorProfile in self->_colorProfilesArray) {
if ((colorProfile->mask == mask) && (colorProfile->context == context)) {
break;
}
@ -1035,8 +1035,8 @@ static DDTTYLogger *sharedInstance;
i++;
}
if (i < [_colorProfilesArray count]) {
[_colorProfilesArray removeObjectAtIndex:i];
if (i < [self->_colorProfilesArray count]) {
[self->_colorProfilesArray removeObjectAtIndex:i];
}
}
};
@ -1061,7 +1061,7 @@ static DDTTYLogger *sharedInstance;
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesDict removeObjectForKey:tag];
[self->_colorProfilesDict removeObjectForKey:tag];
}
};
@ -1083,7 +1083,7 @@ static DDTTYLogger *sharedInstance;
- (void)clearColorsForAllFlags {
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesArray removeAllObjects];
[self->_colorProfilesArray removeAllObjects];
}
};
@ -1105,7 +1105,7 @@ static DDTTYLogger *sharedInstance;
- (void)clearColorsForAllTags {
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesDict removeAllObjects];
[self->_colorProfilesDict removeAllObjects];
}
};
@ -1127,8 +1127,8 @@ static DDTTYLogger *sharedInstance;
- (void)clearAllColors {
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesArray removeAllObjects];
[_colorProfilesDict removeAllObjects];
[self->_colorProfilesArray removeAllObjects];
[self->_colorProfilesDict removeAllObjects];
}
};

View File

@ -81,7 +81,7 @@
__block NSString *line = logMessage->_message;
dispatch_sync(_queue, ^{
for (id<DDLogFormatter> formatter in _formatters) {
for (id<DDLogFormatter> formatter in self->_formatters) {
DDLogMessage *message = [self logMessageForLine:line originalMessage:logMessage];
line = [formatter formatLogMessage:message];
@ -107,7 +107,7 @@
__block NSArray *formatters;
dispatch_sync(_queue, ^{
formatters = [_formatters copy];
formatters = [self->_formatters copy];
});
return formatters;
@ -115,19 +115,19 @@
- (void)addFormatter:(id<DDLogFormatter>)formatter {
dispatch_barrier_async(_queue, ^{
[_formatters addObject:formatter];
[self->_formatters addObject:formatter];
});
}
- (void)removeFormatter:(id<DDLogFormatter>)formatter {
dispatch_barrier_async(_queue, ^{
[_formatters removeObject:formatter];
[self->_formatters removeObject:formatter];
});
}
- (void)removeAllFormatters {
dispatch_barrier_async(_queue, ^{
[_formatters removeAllObjects];
[self->_formatters removeAllObjects];
});
}
@ -135,7 +135,7 @@
__block BOOL hasFormatter;
dispatch_sync(_queue, ^{
hasFormatter = [_formatters containsObject:formatter];
hasFormatter = [self->_formatters containsObject:formatter];
});
return hasFormatter;

View File

@ -48,11 +48,11 @@ DDLog.add(fileLogger)
...
DDLogVerbose("Verbose");
DDLogDebug("Debug");
DDLogInfo("Info");
DDLogWarn("Warn");
DDLogError("Error");
DDLogVerbose("Verbose")
DDLogDebug("Debug")
DDLogInfo("Info")
DDLogWarn("Warn")
DDLogError("Error")
```
##### Obj-C version via CocoaPods

View File

@ -0,0 +1,194 @@
module YapDatabase {
header "YapDatabase.h"
header "YapDatabaseConnection.h"
header "YapDatabaseTransaction.h"
header "YapDatabaseOptions.h"
header "YapDatabaseExtension.h"
header "YapDatabaseExtensionConnection.h"
header "YapDatabaseExtensionTransaction.h"
header "YapDatabaseExtensionTypes.h"
module Utilities {
header "YapBidirectionalCache.h"
header "YapCache.h"
header "YapCollectionKey.h"
header "YapDatabaseConnectionConfig.h"
header "YapDatabaseQuery.h"
header "YapMurmurHash.h"
header "YapProxyObject.h"
header "YapSet.h"
header "YapWhitelistBlacklist.h"
header "YapMutationStack.h"
}
explicit module YapDatabaseExtensionPrivate {
header "YapDatabaseExtensionPrivate.h"
}
// Extension: View
explicit module YapDatabaseView {
header "YapDatabaseView.h"
header "YapDatabaseViewOptions.h"
header "YapDatabaseViewConnection.h"
header "YapDatabaseViewTransaction.h"
header "YapDatabaseViewMappings.h"
header "YapDatabaseViewChange.h"
header "YapDatabaseViewRangeOptions.h"
}
// Extension: AutoView
explicit module YapDatabaseAutoView {
header "YapDatabaseViewTypes.h"
header "YapDatabaseAutoView.h"
header "YapDatabaseAutoViewConnection.h"
header "YapDatabaseAutoViewTransaction.h"
export YapDatabaseView
}
// Extension: FilteredView
explicit module YapDatabaseFilteredView {
header "YapDatabaseFilteredView.h"
header "YapDatabaseFilteredViewTypes.h"
header "YapDatabaseFilteredViewConnection.h"
header "YapDatabaseFilteredViewTransaction.h"
export YapDatabaseView
}
// Extension: Relationship
explicit module YapDatabaseRelationship {
header "YapDatabaseRelationship.h"
header "YapDatabaseRelationshipNode.h"
header "YapDatabaseRelationshipEdge.h"
header "YapDatabaseRelationshipOptions.h"
header "YapDatabaseRelationshipConnection.h"
header "YapDatabaseRelationshipTransaction.h"
}
// Extension: SecondaryIndex
explicit module YapDatabaseSecondaryIndex {
header "YapDatabaseSecondaryIndex.h"
header "YapDatabaseSecondaryIndexSetup.h"
header "YapDatabaseSecondaryIndexHandler.h"
header "YapDatabaseSecondaryIndexOptions.h"
header "YapDatabaseSecondaryIndexConnection.h"
header "YapDatabaseSecondaryIndexTransaction.h"
}
// Extension: FullTextSearch
explicit module YapDatabaseFullTextSearch {
header "YapDatabaseFullTextSearch.h"
header "YapDatabaseFullTextSearchHandler.h"
header "YapDatabaseFullTextSearchConnection.h"
header "YapDatabaseFullTextSearchTransaction.h"
header "YapDatabaseFullTextSearchSnippetOptions.h"
}
// Extension: SearchResultsView
explicit module YapDatabaseSearchResultsView {
header "YapDatabaseSearchResultsView.h"
header "YapDatabaseSearchResultsViewOptions.h"
header "YapDatabaseSearchResultsViewConnection.h"
header "YapDatabaseSearchResultsViewTransaction.h"
header "YapDatabaseSearchQueue.h"
export YapDatabaseView
export YapDatabaseFullTextSearch
}
// Extension: Hooks
explicit module YapDatabaseHooks {
header "YapDatabaseHooks.h"
header "YapDatabaseHooksConnection.h"
header "YapDatabaseHooksTransaction.h"
}
// Extension: CloudKit
explicit module YapDatabaseCloudKit {
header "YapDatabaseCloudKit.h"
header "YapDatabaseCloudKitTypes.h"
header "YapDatabaseCloudKitOptions.h"
header "YapDatabaseCloudKitConnection.h"
header "YapDatabaseCloudKitTransaction.h"
header "YDBCKChangeSet.h"
header "YDBCKMergeInfo.h"
header "YDBCKRecordInfo.h"
header "YDBCKRecord.h"
}
// Extension: RTree
explicit module YapDatabaseRTreeIndex {
header "YapDatabaseRTreeIndex.h"
header "YapDatabaseRTreeIndexSetup.h"
header "YapDatabaseRTreeIndexHandler.h"
header "YapDatabaseRTreeIndexOptions.h"
header "YapDatabaseRTreeIndexConnection.h"
header "YapDatabaseRTreeIndexTransaction.h"
}
// Extension: ConnectionProxy
explicit module YapDatabaseConnectionProxy {
header "YapDatabaseConnectionProxy.h"
}
// Extension: ConnectionPool
explicit module YapDatabaseConnectionPool {
header "YapDatabaseConnectionPool.h"
}
// Extension: ActionManager
explicit module YapDatabaseActionManager {
header "YapActionable.h"
header "YapActionItem.h"
header "YapDatabaseActionManager.h"
header "YapDatabaseActionManagerConnection.h"
header "YapDatabaseActionManagerTransaction.h"
header "YapReachability.h"
}
// Extension: CrossProcessNotification
explicit module YapDatabaseCrossProcessNotification {
header "YapDatabaseCrossProcessNotification.h"
header "YapDatabaseCrossProcessNotificationConnection.h"
header "YapDatabaseCrossProcessNotificationTransaction.h"
}
// Extension: CloudCore
explicit module YapDatabaseCloudCore {
header "YapDatabaseCloudCore.h"
header "YapDatabaseCloudCoreOptions.h"
header "YapDatabaseCloudCoreConnection.h"
header "YapDatabaseCloudCoreTransaction.h"
header "YapManyToManyCache.h"
header "YapDatabaseCloudCoreOperation.h"
header "YapDatabaseCloudCorePipelineDelegate.h"
header "YapDatabaseCloudCorePipeline.h"
header "YapDatabaseCloudCoreGraph.h"
}
explicit module YapDatabaseCloudCorePrivate {
header "YapDatabaseCloudCorePrivate.h"
header "YapDatabaseCloudCoreOperationPrivate.h"
header "YapDatabaseCloudCorePipelinePrivate.h"
header "YapDatabaseCloudCoreGraphPrivate.h"
export YapDatabaseExtensionPrivate
}
}

View File

@ -1 +1 @@
../../../../../../YapDatabase/Internal/YapDatabaseAtomic.h
../../../../../../YapDatabase/Utilities/YapDatabaseAtomic.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCoreGraphPrivate.h

View File

@ -0,0 +1,31 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "CocoaLumberjack.h"
#import "DDAbstractDatabaseLogger.h"
#import "DDASLLogCapture.h"
#import "DDASLLogger.h"
#import "DDAssertMacros.h"
#import "DDFileLogger.h"
#import "DDLegacyMacros.h"
#import "DDLog+LOGV.h"
#import "DDLog.h"
#import "DDLogMacros.h"
#import "DDOSLogger.h"
#import "DDTTYLogger.h"
#import "DDContextFilterLogFormatter.h"
#import "DDDispatchQueueLogFormatter.h"
#import "DDMultiFormatter.h"
FOUNDATION_EXPORT double CocoaLumberjackVersionNumber;
FOUNDATION_EXPORT const unsigned char CocoaLumberjackVersionString[];

View File

@ -0,0 +1,6 @@
module CocoaLumberjack {
umbrella header "CocoaLumberjack-umbrella.h"
export *
module * { export * }
}

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Utilities/YapDatabaseAtomic.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCoreGraphPrivate.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCoreOperationPrivate.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCorePipelinePrivate.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/CloudCore/Internal/YapDatabaseCloudCorePrivate.h

View File

@ -0,0 +1 @@
../../../../../../YapDatabase/Extensions/Protocol/Internal/YapDatabaseExtensionPrivate.h

View File

@ -1,6 +1,6 @@
{
"name": "YapDatabase",
"version": "3.0.2",
"version": "3.1.1",
"summary": "A key/value store built atop sqlite for iOS & Mac.",
"homepage": "https://github.com/yapstudios/YapDatabase",
"license": "MIT",
@ -9,7 +9,7 @@
},
"source": {
"git": "https://github.com/yapstudios/YapDatabase.git",
"tag": "3.0.2"
"tag": "3.1.1"
},
"platforms": {
"osx": "10.10",
@ -19,6 +19,18 @@
},
"libraries": "c++",
"default_subspecs": "Standard",
"osx": {
"module_map": "Framework/Mac/module.modulemap"
},
"ios": {
"module_map": "Framework/iOS/module.modulemap"
},
"tvos": {
"module_map": "Framework/tvOS/module.modulemap"
},
"watchos": {
"module_map": "Framework/watchOS/module.modulemap"
},
"subspecs": [
{
"name": "Standard",
@ -39,10 +51,7 @@
"YapDatabase/{Internal,Utilities}/*.{h,m,mm,c}",
"YapDatabase/Extensions/Protocol/**/*.{h,m,mm,c}"
],
"private_header_files": [
"YapDatabase/Internal/*.h",
"YapDatabase/Extensions/Protocol/Internal/*.h"
]
"private_header_files": "YapDatabase/Internal/*.h"
},
{
"name": "Extensions",
@ -164,8 +173,7 @@
},
{
"name": "CloudCore",
"source_files": "YapDatabase/Extensions/CloudCore/**/*.{h,m,mm,c}",
"private_header_files": "YapDatabase/Extensions/CloudCore/Internal/*.h"
"source_files": "YapDatabase/Extensions/CloudCore/**/*.{h,m,mm,c}"
}
]
}
@ -192,10 +200,7 @@
"YapDatabase/{Internal,Utilities}/*.{h,m,mm,c}",
"YapDatabase/Extensions/Protocol/**/*.{h,m,mm,c}"
],
"private_header_files": [
"YapDatabase/Internal/*.h",
"YapDatabase/Extensions/Protocol/Internal/*.h"
]
"private_header_files": "YapDatabase/Internal/*.h"
},
{
"name": "Extensions",
@ -317,8 +322,7 @@
},
{
"name": "CloudCore",
"source_files": "YapDatabase/Extensions/CloudCore/**/*.{h,m,mm,c}",
"private_header_files": "YapDatabase/Extensions/CloudCore/Internal/*.h"
"source_files": "YapDatabase/Extensions/CloudCore/**/*.{h,m,mm,c}"
}
]
}

View File

@ -1,85 +1,89 @@
PODS:
- CocoaLumberjack (3.4.1):
- CocoaLumberjack/Default (= 3.4.1)
- CocoaLumberjack/Extensions (= 3.4.1)
- CocoaLumberjack/Default (3.4.1)
- CocoaLumberjack/Extensions (3.4.1):
- CocoaLumberjack (3.4.2):
- CocoaLumberjack/Default (= 3.4.2)
- CocoaLumberjack/Extensions (= 3.4.2)
- CocoaLumberjack/Default (3.4.2)
- CocoaLumberjack/Extensions (3.4.2):
- CocoaLumberjack/Default
- YapDatabase (3.0.2):
- YapDatabase/Standard (= 3.0.2)
- YapDatabase/Standard (3.0.2):
- YapDatabase/Standard/Core (= 3.0.2)
- YapDatabase/Standard/Extensions (= 3.0.2)
- YapDatabase/Standard/Core (3.0.2):
- YapDatabase (3.1.1):
- YapDatabase/Standard (= 3.1.1)
- YapDatabase/Standard (3.1.1):
- YapDatabase/Standard/Core (= 3.1.1)
- YapDatabase/Standard/Extensions (= 3.1.1)
- YapDatabase/Standard/Core (3.1.1):
- CocoaLumberjack
- YapDatabase/Standard/Extensions (3.0.2):
- YapDatabase/Standard/Extensions (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ActionManager (= 3.0.2)
- YapDatabase/Standard/Extensions/AutoView (= 3.0.2)
- YapDatabase/Standard/Extensions/CloudCore (= 3.0.2)
- YapDatabase/Standard/Extensions/CloudKit (= 3.0.2)
- YapDatabase/Standard/Extensions/ConnectionPool (= 3.0.2)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.0.2)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.0.2)
- YapDatabase/Standard/Extensions/FilteredView (= 3.0.2)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.0.2)
- YapDatabase/Standard/Extensions/Hooks (= 3.0.2)
- YapDatabase/Standard/Extensions/ManualView (= 3.0.2)
- YapDatabase/Standard/Extensions/Relationships (= 3.0.2)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.0.2)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.0.2)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.0.2)
- YapDatabase/Standard/Extensions/View (= 3.0.2)
- YapDatabase/Standard/Extensions/ActionManager (3.0.2):
- YapDatabase/Standard/Extensions/ActionManager (= 3.1.1)
- YapDatabase/Standard/Extensions/AutoView (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudCore (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudKit (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionPool (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.1.1)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.1.1)
- YapDatabase/Standard/Extensions/FilteredView (= 3.1.1)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.1.1)
- YapDatabase/Standard/Extensions/Hooks (= 3.1.1)
- YapDatabase/Standard/Extensions/ManualView (= 3.1.1)
- YapDatabase/Standard/Extensions/Relationships (= 3.1.1)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.1.1)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/View (= 3.1.1)
- YapDatabase/Standard/Extensions/ActionManager (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/AutoView (3.0.2):
- YapDatabase/Standard/Extensions/AutoView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/CloudCore (3.0.2):
- YapDatabase/Standard/Extensions/CloudCore (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CloudKit (3.0.2):
- YapDatabase/Standard/Extensions/CloudKit (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ConnectionPool (3.0.2):
- YapDatabase/Standard/Extensions/ConnectionPool (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ConnectionProxy (3.0.2):
- YapDatabase/Standard/Extensions/ConnectionProxy (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.0.2):
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/FilteredView (3.0.2):
- YapDatabase/Standard/Extensions/FilteredView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/FullTextSearch (3.0.2):
- YapDatabase/Standard/Extensions/FullTextSearch (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/Hooks (3.0.2):
- YapDatabase/Standard/Extensions/Hooks (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ManualView (3.0.2):
- YapDatabase/Standard/Extensions/ManualView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/Relationships (3.0.2):
- YapDatabase/Standard/Extensions/Relationships (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/RTreeIndex (3.0.2):
- YapDatabase/Standard/Extensions/RTreeIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/SearchResultsView (3.0.2):
- YapDatabase/Standard/Extensions/SearchResultsView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/FullTextSearch
- YapDatabase/Standard/Extensions/SecondaryIndex (3.0.2):
- YapDatabase/Standard/Extensions/SecondaryIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View (3.0.2):
- YapDatabase/Standard/Extensions/View (3.1.1):
- YapDatabase/Standard/Core
DEPENDENCIES:
- YapDatabase (from `../../`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- CocoaLumberjack
EXTERNAL SOURCES:
YapDatabase:
:path: ../../
:path: "../../"
SPEC CHECKSUMS:
CocoaLumberjack: 2e258a064cacc8eb9a2aca318e24d02a0a7fd56d
YapDatabase: 972eccb0c997d0dafe8192dccf7f58351914baf1
CocoaLumberjack: db7cc9e464771f12054c22ff6947c5a58d43a0fd
YapDatabase: 68188358039b289e962ddf55ffea39a336efd0e1
PODFILE CHECKSUM: 56e0faf7e85fac2003da53b861394c2731e637d4
PODFILE CHECKSUM: a3d25f1bb5723f2682be762798ccdb8bb5b4eb81
COCOAPODS: 1.4.0
COCOAPODS: 1.6.0.beta.2

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,31 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "CocoaLumberjack.h"
#import "DDAbstractDatabaseLogger.h"
#import "DDASLLogCapture.h"
#import "DDASLLogger.h"
#import "DDAssertMacros.h"
#import "DDFileLogger.h"
#import "DDLegacyMacros.h"
#import "DDLog+LOGV.h"
#import "DDLog.h"
#import "DDLogMacros.h"
#import "DDOSLogger.h"
#import "DDTTYLogger.h"
#import "DDContextFilterLogFormatter.h"
#import "DDDispatchQueueLogFormatter.h"
#import "DDMultiFormatter.h"
FOUNDATION_EXPORT double CocoaLumberjackVersionNumber;
FOUNDATION_EXPORT const unsigned char CocoaLumberjackVersionString[];

View File

@ -0,0 +1,6 @@
module CocoaLumberjack {
umbrella header "CocoaLumberjack-umbrella.h"
export *
module * { export * }
}

View File

@ -1,6 +1,6 @@
CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/CocoaLumberjack" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/CocoaLumberjack" "${PODS_ROOT}/Headers/Public"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_ROOT = ${SRCROOT}

View File

@ -1,9 +1,18 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the script phase was successful).
exit 0
fi
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
# Used as a return value for each invocation of `strip_invalid_archs` function.
@ -92,10 +101,10 @@ install_dsym() {
# Signs a framework with the provided identity
code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'"
if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
code_sign_cmd="$code_sign_cmd &"

View File

@ -1,5 +1,13 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then
# If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy
# resources to, so exit 0 (signalling the script phase was successful).
exit 0
fi
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
@ -12,7 +20,7 @@ XCASSET_FILES=()
# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
case "${TARGETED_DEVICE_FAMILY}" in
case "${TARGETED_DEVICE_FAMILY:-}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
@ -92,7 +100,7 @@ if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
fi
rm -f "$RESOURCES_TO_COPY"
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ]
then
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
@ -102,5 +110,9 @@ then
fi
done <<<"$OTHER_XCASSETS"
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
else
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist"
fi
fi

View File

@ -1,8 +1,9 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -fmodule-map-file="${PODS_ROOT}/Headers/Private/YapDatabase/YapDatabase.modulemap" -fmodule-map-file="${PODS_ROOT}/Headers/Public/CocoaLumberjack/CocoaLumberjack.modulemap" $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -Xcc -fmodule-map-file="${PODS_ROOT}/Headers/Private/YapDatabase/YapDatabase.modulemap" -Xcc -fmodule-map-file="${PODS_ROOT}/Headers/Public/CocoaLumberjack/CocoaLumberjack.modulemap"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/.

View File

@ -1,8 +1,9 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -fmodule-map-file="${PODS_ROOT}/Headers/Private/YapDatabase/YapDatabase.modulemap" -fmodule-map-file="${PODS_ROOT}/Headers/Public/CocoaLumberjack/CocoaLumberjack.modulemap" $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -Xcc -fmodule-map-file="${PODS_ROOT}/Headers/Private/YapDatabase/YapDatabase.modulemap" -Xcc -fmodule-map-file="${PODS_ROOT}/Headers/Public/CocoaLumberjack/CocoaLumberjack.modulemap"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/.

View File

@ -1,9 +1,18 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the script phase was successful).
exit 0
fi
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
# Used as a return value for each invocation of `strip_invalid_archs` function.
@ -92,10 +101,10 @@ install_dsym() {
# Signs a framework with the provided identity
code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'"
if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
code_sign_cmd="$code_sign_cmd &"

View File

@ -1,5 +1,13 @@
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then
# If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy
# resources to, so exit 0 (signalling the script phase was successful).
exit 0
fi
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
@ -12,7 +20,7 @@ XCASSET_FILES=()
# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
case "${TARGETED_DEVICE_FAMILY}" in
case "${TARGETED_DEVICE_FAMILY:-}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
@ -92,7 +100,7 @@ if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
fi
rm -f "$RESOURCES_TO_COPY"
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ]
then
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
@ -102,5 +110,9 @@ then
fi
done <<<"$OTHER_XCASSETS"
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
else
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist"
fi
fi

View File

@ -1,8 +1,9 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -fmodule-map-file="${PODS_ROOT}/Headers/Private/YapDatabase/YapDatabase.modulemap" -fmodule-map-file="${PODS_ROOT}/Headers/Public/CocoaLumberjack/CocoaLumberjack.modulemap" $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -Xcc -fmodule-map-file="${PODS_ROOT}/Headers/Private/YapDatabase/YapDatabase.modulemap" -Xcc -fmodule-map-file="${PODS_ROOT}/Headers/Public/CocoaLumberjack/CocoaLumberjack.modulemap"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/.

View File

@ -1,8 +1,9 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack" "${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase"
OTHER_CFLAGS = $(inherited) -fmodule-map-file="${PODS_ROOT}/Headers/Private/YapDatabase/YapDatabase.modulemap" -fmodule-map-file="${PODS_ROOT}/Headers/Public/CocoaLumberjack/CocoaLumberjack.modulemap" $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = $(inherited) -ObjC -l"CocoaLumberjack" -l"YapDatabase" -l"c++" -l"sqlite3" -framework "SystemConfiguration"
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -Xcc -fmodule-map-file="${PODS_ROOT}/Headers/Private/YapDatabase/YapDatabase.modulemap" -Xcc -fmodule-map-file="${PODS_ROOT}/Headers/Public/CocoaLumberjack/CocoaLumberjack.modulemap"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/.

View File

@ -0,0 +1,195 @@
module YapDatabase {
header "YapDatabase.h"
header "YapDatabaseConnection.h"
header "YapDatabaseTransaction.h"
header "YapDatabaseOptions.h"
header "YapDatabaseExtension.h"
header "YapDatabaseExtensionConnection.h"
header "YapDatabaseExtensionTransaction.h"
header "YapDatabaseExtensionTypes.h"
module Utilities {
header "YapBidirectionalCache.h"
header "YapCache.h"
header "YapCollectionKey.h"
header "YapDatabaseAtomic.h"
header "YapDatabaseConnectionConfig.h"
header "YapDatabaseQuery.h"
header "YapMurmurHash.h"
header "YapProxyObject.h"
header "YapSet.h"
header "YapWhitelistBlacklist.h"
header "YapMutationStack.h"
}
explicit module YapDatabaseExtensionPrivate {
header "YapDatabaseExtensionPrivate.h"
}
// Extension: View
explicit module YapDatabaseView {
header "YapDatabaseView.h"
header "YapDatabaseViewOptions.h"
header "YapDatabaseViewConnection.h"
header "YapDatabaseViewTransaction.h"
header "YapDatabaseViewMappings.h"
header "YapDatabaseViewChange.h"
header "YapDatabaseViewRangeOptions.h"
}
// Extension: AutoView
explicit module YapDatabaseAutoView {
header "YapDatabaseViewTypes.h"
header "YapDatabaseAutoView.h"
header "YapDatabaseAutoViewConnection.h"
header "YapDatabaseAutoViewTransaction.h"
export YapDatabaseView
}
// Extension: FilteredView
explicit module YapDatabaseFilteredView {
header "YapDatabaseFilteredView.h"
header "YapDatabaseFilteredViewTypes.h"
header "YapDatabaseFilteredViewConnection.h"
header "YapDatabaseFilteredViewTransaction.h"
export YapDatabaseView
}
// Extension: Relationship
explicit module YapDatabaseRelationship {
header "YapDatabaseRelationship.h"
header "YapDatabaseRelationshipNode.h"
header "YapDatabaseRelationshipEdge.h"
header "YapDatabaseRelationshipOptions.h"
header "YapDatabaseRelationshipConnection.h"
header "YapDatabaseRelationshipTransaction.h"
}
// Extension: SecondaryIndex
explicit module YapDatabaseSecondaryIndex {
header "YapDatabaseSecondaryIndex.h"
header "YapDatabaseSecondaryIndexSetup.h"
header "YapDatabaseSecondaryIndexHandler.h"
header "YapDatabaseSecondaryIndexOptions.h"
header "YapDatabaseSecondaryIndexConnection.h"
header "YapDatabaseSecondaryIndexTransaction.h"
}
// Extension: FullTextSearch
explicit module YapDatabaseFullTextSearch {
header "YapDatabaseFullTextSearch.h"
header "YapDatabaseFullTextSearchHandler.h"
header "YapDatabaseFullTextSearchConnection.h"
header "YapDatabaseFullTextSearchTransaction.h"
header "YapDatabaseFullTextSearchSnippetOptions.h"
}
// Extension: SearchResultsView
explicit module YapDatabaseSearchResultsView {
header "YapDatabaseSearchResultsView.h"
header "YapDatabaseSearchResultsViewOptions.h"
header "YapDatabaseSearchResultsViewConnection.h"
header "YapDatabaseSearchResultsViewTransaction.h"
header "YapDatabaseSearchQueue.h"
export YapDatabaseView
export YapDatabaseFullTextSearch
}
// Extension: Hooks
explicit module YapDatabaseHooks {
header "YapDatabaseHooks.h"
header "YapDatabaseHooksConnection.h"
header "YapDatabaseHooksTransaction.h"
}
// Extension: CloudKit
explicit module YapDatabaseCloudKit {
header "YapDatabaseCloudKit.h"
header "YapDatabaseCloudKitTypes.h"
header "YapDatabaseCloudKitOptions.h"
header "YapDatabaseCloudKitConnection.h"
header "YapDatabaseCloudKitTransaction.h"
header "YDBCKChangeSet.h"
header "YDBCKMergeInfo.h"
header "YDBCKRecordInfo.h"
header "YDBCKRecord.h"
}
// Extension: RTree
explicit module YapDatabaseRTreeIndex {
header "YapDatabaseRTreeIndex.h"
header "YapDatabaseRTreeIndexSetup.h"
header "YapDatabaseRTreeIndexHandler.h"
header "YapDatabaseRTreeIndexOptions.h"
header "YapDatabaseRTreeIndexConnection.h"
header "YapDatabaseRTreeIndexTransaction.h"
}
// Extension: ConnectionProxy
explicit module YapDatabaseConnectionProxy {
header "YapDatabaseConnectionProxy.h"
}
// Extension: ConnectionPool
explicit module YapDatabaseConnectionPool {
header "YapDatabaseConnectionPool.h"
}
// Extension: ActionManager
explicit module YapDatabaseActionManager {
header "YapActionable.h"
header "YapActionItem.h"
header "YapDatabaseActionManager.h"
header "YapDatabaseActionManagerConnection.h"
header "YapDatabaseActionManagerTransaction.h"
header "YapReachability.h"
}
// Extension: CrossProcessNotification
explicit module YapDatabaseCrossProcessNotification {
header "YapDatabaseCrossProcessNotification.h"
header "YapDatabaseCrossProcessNotificationConnection.h"
header "YapDatabaseCrossProcessNotificationTransaction.h"
}
// Extension: CloudCore
explicit module YapDatabaseCloudCore {
header "YapDatabaseCloudCore.h"
header "YapDatabaseCloudCoreOptions.h"
header "YapDatabaseCloudCoreConnection.h"
header "YapDatabaseCloudCoreTransaction.h"
header "YapManyToManyCache.h"
header "YapDatabaseCloudCoreOperation.h"
header "YapDatabaseCloudCorePipelineDelegate.h"
header "YapDatabaseCloudCorePipeline.h"
header "YapDatabaseCloudCoreGraph.h"
}
explicit module YapDatabaseCloudCorePrivate {
header "YapDatabaseCloudCorePrivate.h"
header "YapDatabaseCloudCoreOperationPrivate.h"
header "YapDatabaseCloudCorePipelinePrivate.h"
header "YapDatabaseCloudCoreGraphPrivate.h"
export YapDatabaseExtensionPrivate
}
}

View File

@ -1,9 +1,7 @@
CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/YapDatabase
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/YapDatabase" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/YapDatabase"
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaLumberjack"
OTHER_CFLAGS = $(inherited) -DYAP_STANDARD_SQLITE
OTHER_LDFLAGS = -l"c++" -l"sqlite3" -framework "SystemConfiguration"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/YapDatabase" "${PODS_ROOT}/Headers/Public"
OTHER_CFLAGS = $(inherited) -fmodule-map-file="${PODS_ROOT}/Headers/Public/CocoaLumberjack/CocoaLumberjack.modulemap" $(inherited) -DYAP_STANDARD_SQLITE
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_ROOT = ${SRCROOT}

View File

@ -134,11 +134,11 @@
DC3D2F2F1674001600DFAFAA /* BenchmarkYapCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BenchmarkYapCache.m; path = ../Benchmarking/BenchmarkYapCache.m; sourceTree = "<group>"; };
DC3D2F3D1675657100DFAFAA /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = usr/lib/libsqlite3.dylib; sourceTree = SDKROOT; };
DC49735317E90C2F00489267 /* TestYapDatabaseFullTextSearch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TestYapDatabaseFullTextSearch.m; path = ../../UnitTesting/TestYapDatabaseFullTextSearch.m; sourceTree = "<group>"; };
DC5BE2691AE61817007E77FD /* LumberjackUser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = LumberjackUser.h; path = Logging/LumberjackUser.h; sourceTree = SOURCE_ROOT; };
DC60889B18CFE699009AA946 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
DC717A1A1816ED9B00D6E6C8 /* TestYapDatabaseSecondaryIndex.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TestYapDatabaseSecondaryIndex.m; path = ../../UnitTesting/TestYapDatabaseSecondaryIndex.m; sourceTree = "<group>"; };
DC8E6042183F0A3D0091633D /* TestYapDatabaseFilteredView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TestYapDatabaseFilteredView.m; path = ../../UnitTesting/TestYapDatabaseFilteredView.m; sourceTree = "<group>"; };
DC96D1BC1BA1FE28001B4B08 /* TestYapDatabaseHooks.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TestYapDatabaseHooks.m; path = ../../UnitTesting/TestYapDatabaseHooks.m; sourceTree = "<group>"; };
DCAD7D2621C6C05900004CD3 /* LumberjackUser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LumberjackUser.h; sourceTree = "<group>"; };
DCAE51E71673FE2600395076 /* YapDatabase.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YapDatabase.app; sourceTree = BUILT_PRODUCTS_DIR; };
DCAE51EA1673FE2600395076 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
DCAE51EC1673FE2600395076 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
@ -228,15 +228,6 @@
name = Relationships;
sourceTree = "<group>";
};
DC3D2EA91673FF6800DFAFAA /* Logging */ = {
isa = PBXGroup;
children = (
DC5BE2681AE617EE007E77FD /* PerUserLogLevels */,
);
name = Logging;
path = ../../Vendor/CocoaLumberjack;
sourceTree = "<group>";
};
DC3D2F311674002200DFAFAA /* Benchmarking */ = {
isa = PBXGroup;
children = (
@ -274,14 +265,6 @@
name = Views;
sourceTree = "<group>";
};
DC5BE2681AE617EE007E77FD /* PerUserLogLevels */ = {
isa = PBXGroup;
children = (
DC5BE2691AE61817007E77FD /* LumberjackUser.h */,
);
name = PerUserLogLevels;
sourceTree = "<group>";
};
DC717A0C1815DF9500D6E6C8 /* SecondaryIndexes */ = {
isa = PBXGroup;
children = (
@ -306,10 +289,18 @@
name = Hooks;
sourceTree = "<group>";
};
DCAD7D2521C6C05900004CD3 /* Logging */ = {
isa = PBXGroup;
children = (
DCAD7D2621C6C05900004CD3 /* LumberjackUser.h */,
);
path = Logging;
sourceTree = "<group>";
};
DCAE51DE1673FE2600395076 = {
isa = PBXGroup;
children = (
DC3D2EA91673FF6800DFAFAA /* Logging */,
DCAD7D2521C6C05900004CD3 /* Logging */,
DCAE52171673FE2600395076 /* UnitTests */,
DC3D2F311674002200DFAFAA /* Benchmarking */,
DCAE51F01673FE2600395076 /* App */,
@ -430,8 +421,6 @@
DCAE51E31673FE2600395076 /* Sources */,
DCAE51E41673FE2600395076 /* Frameworks */,
DCAE51E51673FE2600395076 /* Resources */,
00DD5F12CD2A7253C34BA712 /* [CP] Embed Pods Frameworks */,
402E4718587750E5D76209CF /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@ -450,8 +439,6 @@
DCAE520B1673FE2600395076 /* Sources */,
DCAE520C1673FE2600395076 /* Frameworks */,
DCAE520D1673FE2600395076 /* Resources */,
B60F46CD6C06846382E0E84E /* [CP] Embed Pods Frameworks */,
3397BBC53BC83C63A5C6FE2F /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@ -482,9 +469,11 @@
ORGANIZATIONNAME = "Robbie Hanson";
TargetAttributes = {
DCAE51E61673FE2600395076 = {
DevelopmentTeam = 4D98PK6HWS;
DevelopmentTeam = T7839KRU5H;
ProvisioningStyle = Automatic;
};
DCAE520F1673FE2600395076 = {
DevelopmentTeam = T7839KRU5H;
TestTargetID = DCAE51E61673FE2600395076;
};
};
@ -532,21 +521,6 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
00DD5F12CD2A7253C34BA712 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YapDatabase/Pods-YapDatabase-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
0C85CB082FD551666567B39E /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@ -565,51 +539,6 @@
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";
showEnvVarsInLog = 0;
};
3397BBC53BC83C63A5C6FE2F /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YapDatabaseTests/Pods-YapDatabaseTests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
402E4718587750E5D76209CF /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YapDatabase/Pods-YapDatabase-resources.sh\"\n";
showEnvVarsInLog = 0;
};
B60F46CD6C06846382E0E84E /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YapDatabaseTests/Pods-YapDatabaseTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
DC5BE2611AE61607007E77FD /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@ -621,7 +550,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
shellScript = "${PROJECT_DIR}/Logging/LumberjackUser.bash";
shellScript = "${PROJECT_DIR}/Logging/LumberjackUser.bash\n";
};
FA6394D124023E9A4D4AE454 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
@ -800,7 +729,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
@ -835,7 +764,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
@ -849,6 +778,8 @@
buildSettings = {
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = T7839KRU5H;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "YapDatabase/YapDatabase-Prefix.pch";
HEADER_SEARCH_PATHS = (
@ -859,9 +790,10 @@
"\"${PODS_ROOT}/Headers/Private/YapDatabase\"",
);
INFOPLIST_FILE = "YapDatabase/YapDatabase-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = com.deusty.YapDatabase;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.deusty.YapDatabaseTesting-mobile";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "e676a7e8-4553-44e0-a416-5414d0b152eb";
PROVISIONING_PROFILE_SPECIFIER = "";
WRAPPER_EXTENSION = app;
};
name = Debug;
@ -872,6 +804,8 @@
buildSettings = {
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = T7839KRU5H;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "YapDatabase/YapDatabase-Prefix.pch";
HEADER_SEARCH_PATHS = (
@ -882,9 +816,10 @@
"\"${PODS_ROOT}/Headers/Private/YapDatabase\"",
);
INFOPLIST_FILE = "YapDatabase/YapDatabase-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = com.deusty.YapDatabase;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.deusty.YapDatabaseTesting-mobile";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "e676a7e8-4553-44e0-a416-5414d0b152eb";
PROVISIONING_PROFILE_SPECIFIER = "";
WRAPPER_EXTENSION = app;
};
name = Release;
@ -894,6 +829,7 @@
baseConfigurationReference = 32BD8D48D2094D556DB85673 /* Pods-YapDatabaseTests.debug.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
DEVELOPMENT_TEAM = T7839KRU5H;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
@ -919,6 +855,7 @@
baseConfigurationReference = E0F9A76F890917F8D82EBE09 /* Pods-YapDatabaseTests.release.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
DEVELOPMENT_TEAM = T7839KRU5H;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -8,3 +8,12 @@ end
target 'YapDatabaseTests' do
pod "YapDatabase", path: '../../'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings.delete 'MACOSX_DEPLOYMENT_TARGET'
end
end
end

View File

@ -1,82 +1,89 @@
PODS:
- CocoaLumberjack (3.2.0):
- CocoaLumberjack/Default (= 3.2.0)
- CocoaLumberjack/Extensions (= 3.2.0)
- CocoaLumberjack/Default (3.2.0)
- CocoaLumberjack/Extensions (3.2.0):
- CocoaLumberjack (3.4.2):
- CocoaLumberjack/Default (= 3.4.2)
- CocoaLumberjack/Extensions (= 3.4.2)
- CocoaLumberjack/Default (3.4.2)
- CocoaLumberjack/Extensions (3.4.2):
- CocoaLumberjack/Default
- YapDatabase (3.0):
- YapDatabase/Standard (= 3.0)
- YapDatabase/Standard (3.0):
- YapDatabase/Standard/Core (= 3.0)
- YapDatabase/Standard/Extensions (= 3.0)
- YapDatabase/Standard/Core (3.0):
- YapDatabase (3.1.1):
- YapDatabase/Standard (= 3.1.1)
- YapDatabase/Standard (3.1.1):
- YapDatabase/Standard/Core (= 3.1.1)
- YapDatabase/Standard/Extensions (= 3.1.1)
- YapDatabase/Standard/Core (3.1.1):
- CocoaLumberjack
- YapDatabase/Standard/Extensions (3.0):
- YapDatabase/Standard/Extensions (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ActionManager (= 3.0)
- YapDatabase/Standard/Extensions/AutoView (= 3.0)
- YapDatabase/Standard/Extensions/CloudCore (= 3.0)
- YapDatabase/Standard/Extensions/CloudKit (= 3.0)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.0)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.0)
- YapDatabase/Standard/Extensions/FilteredView (= 3.0)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.0)
- YapDatabase/Standard/Extensions/Hooks (= 3.0)
- YapDatabase/Standard/Extensions/ManualView (= 3.0)
- YapDatabase/Standard/Extensions/Relationships (= 3.0)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.0)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.0)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.0)
- YapDatabase/Standard/Extensions/View (= 3.0)
- YapDatabase/Standard/Extensions/ActionManager (3.0):
- YapDatabase/Standard/Extensions/ActionManager (= 3.1.1)
- YapDatabase/Standard/Extensions/AutoView (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudCore (= 3.1.1)
- YapDatabase/Standard/Extensions/CloudKit (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionPool (= 3.1.1)
- YapDatabase/Standard/Extensions/ConnectionProxy (= 3.1.1)
- YapDatabase/Standard/Extensions/CrossProcessNotification (= 3.1.1)
- YapDatabase/Standard/Extensions/FilteredView (= 3.1.1)
- YapDatabase/Standard/Extensions/FullTextSearch (= 3.1.1)
- YapDatabase/Standard/Extensions/Hooks (= 3.1.1)
- YapDatabase/Standard/Extensions/ManualView (= 3.1.1)
- YapDatabase/Standard/Extensions/Relationships (= 3.1.1)
- YapDatabase/Standard/Extensions/RTreeIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/SearchResultsView (= 3.1.1)
- YapDatabase/Standard/Extensions/SecondaryIndex (= 3.1.1)
- YapDatabase/Standard/Extensions/View (= 3.1.1)
- YapDatabase/Standard/Extensions/ActionManager (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/AutoView (3.0):
- YapDatabase/Standard/Extensions/AutoView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/CloudCore (3.0):
- YapDatabase/Standard/Extensions/CloudCore (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CloudKit (3.0):
- YapDatabase/Standard/Extensions/CloudKit (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ConnectionProxy (3.0):
- YapDatabase/Standard/Extensions/ConnectionPool (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.0):
- YapDatabase/Standard/Extensions/ConnectionProxy (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/FilteredView (3.0):
- YapDatabase/Standard/Extensions/CrossProcessNotification (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/FilteredView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/FullTextSearch (3.0):
- YapDatabase/Standard/Extensions/FullTextSearch (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/Hooks (3.0):
- YapDatabase/Standard/Extensions/Hooks (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/ManualView (3.0):
- YapDatabase/Standard/Extensions/ManualView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View
- YapDatabase/Standard/Extensions/Relationships (3.0):
- YapDatabase/Standard/Extensions/Relationships (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/RTreeIndex (3.0):
- YapDatabase/Standard/Extensions/RTreeIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/SearchResultsView (3.0):
- YapDatabase/Standard/Extensions/SearchResultsView (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/AutoView
- YapDatabase/Standard/Extensions/FullTextSearch
- YapDatabase/Standard/Extensions/SecondaryIndex (3.0):
- YapDatabase/Standard/Extensions/SecondaryIndex (3.1.1):
- YapDatabase/Standard/Core
- YapDatabase/Standard/Extensions/View (3.0):
- YapDatabase/Standard/Extensions/View (3.1.1):
- YapDatabase/Standard/Core
DEPENDENCIES:
- YapDatabase (from `../../`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- CocoaLumberjack
EXTERNAL SOURCES:
YapDatabase:
:path: ../../
:path: "../../"
SPEC CHECKSUMS:
CocoaLumberjack: 9b4aed7073d242f29cc2f62068d995faf67f703a
YapDatabase: 0cef6c79948169c924ae325d430ffcfa8a5231c2
CocoaLumberjack: db7cc9e464771f12054c22ff6947c5a58d43a0fd
YapDatabase: 68188358039b289e962ddf55ffea39a336efd0e1
PODFILE CHECKSUM: 71df37363599703c9cfb839d4cad1a2639a6d675
PODFILE CHECKSUM: 112c50ab02a55bcd6bb49c1d66d6292c93f901d0
COCOAPODS: 1.2.1
COCOAPODS: 1.6.0.beta.2

View File

@ -86,10 +86,10 @@ public func DDLogError(_ message: @autoclosure () -> String, level: DDLogLevel =
public func CurrentFileName(_ fileName: StaticString = #file) -> String {
var str = String(describing: fileName)
if let idx = str.range(of: "/", options: .backwards)?.upperBound {
str = str.substring(from: idx)
str = String(str[idx...])
}
if let idx = str.range(of: ".", options: .backwards)?.lowerBound {
str = str.substring(to: idx)
str = String(str[..<idx])
}
return str
}

View File

@ -217,7 +217,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _saveThreshold;
result = self->_saveThreshold;
});
});
@ -227,15 +227,15 @@
- (void)setSaveThreshold:(NSUInteger)threshold {
dispatch_block_t block = ^{
@autoreleasepool {
if (_saveThreshold != threshold) {
_saveThreshold = threshold;
if (self->_saveThreshold != threshold) {
self->_saveThreshold = threshold;
// Since the saveThreshold has changed,
// we check to see if the current unsavedCount has surpassed the new threshold.
//
// If it has, we immediately save the log.
if ((_unsavedCount >= _saveThreshold) && (_saveThreshold > 0)) {
if ((self->_unsavedCount >= self->_saveThreshold) && (self->_saveThreshold > 0)) {
[self performSaveAndSuspendSaveTimer];
}
}
@ -277,7 +277,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _saveInterval;
result = self->_saveInterval;
});
});
@ -290,8 +290,8 @@
// C99 recommended floating point comparison macro
// Read: isLessThanOrGreaterThan(floatA, floatB)
if (/* saveInterval != interval */ islessgreater(_saveInterval, interval)) {
_saveInterval = interval;
if (/* saveInterval != interval */ islessgreater(self->_saveInterval, interval)) {
self->_saveInterval = interval;
// There are several cases we need to handle here.
//
@ -306,8 +306,8 @@
// 4. If the saveInterval decreased, then we need to reset the timer so that it fires at an earlier date.
// (Plus we might need to do an immediate save.)
if (_saveInterval > 0.0) {
if (_saveTimer == NULL) {
if (self->_saveInterval > 0.0) {
if (self->_saveTimer == NULL) {
// Handles #2
//
// Since the saveTimer uses the unsavedTime to calculate it's first fireDate,
@ -324,7 +324,7 @@
[self updateAndResumeSaveTimer];
}
} else if (_saveTimer) {
} else if (self->_saveTimer) {
// Handles #1
[self destroySaveTimer];
@ -368,7 +368,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _maxAge;
result = self->_maxAge;
});
});
@ -381,11 +381,11 @@
// C99 recommended floating point comparison macro
// Read: isLessThanOrGreaterThan(floatA, floatB)
if (/* maxAge != interval */ islessgreater(_maxAge, interval)) {
NSTimeInterval oldMaxAge = _maxAge;
if (/* maxAge != interval */ islessgreater(self->_maxAge, interval)) {
NSTimeInterval oldMaxAge = self->_maxAge;
NSTimeInterval newMaxAge = interval;
_maxAge = interval;
self->_maxAge = interval;
// There are several cases we need to handle here.
//
@ -420,7 +420,7 @@
if (shouldDeleteNow) {
[self performDelete];
if (_deleteTimer) {
if (self->_deleteTimer) {
[self updateDeleteTimer];
} else {
[self createAndStartDeleteTimer];
@ -465,7 +465,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _deleteInterval;
result = self->_deleteInterval;
});
});
@ -478,8 +478,8 @@
// C99 recommended floating point comparison macro
// Read: isLessThanOrGreaterThan(floatA, floatB)
if (/* deleteInterval != interval */ islessgreater(_deleteInterval, interval)) {
_deleteInterval = interval;
if (/* deleteInterval != interval */ islessgreater(self->_deleteInterval, interval)) {
self->_deleteInterval = interval;
// There are several cases we need to handle here.
//
@ -494,8 +494,8 @@
// 4. If the deleteInterval decreased, then we need to reset the timer so that it fires at an earlier date.
// (Plus we might need to do an immediate delete.)
if (_deleteInterval > 0.0) {
if (_deleteTimer == NULL) {
if (self->_deleteInterval > 0.0) {
if (self->_deleteTimer == NULL) {
// Handles #2
//
// Since the deleteTimer uses the lastDeleteTime to calculate it's first fireDate,
@ -511,7 +511,7 @@
[self updateDeleteTimer];
}
} else if (_deleteTimer) {
} else if (self->_deleteTimer) {
// Handles #1
[self destroyDeleteTimer];
@ -555,7 +555,7 @@
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _deleteOnEverySave;
result = self->_deleteOnEverySave;
});
});
@ -564,7 +564,7 @@
- (void)setDeleteOnEverySave:(BOOL)flag {
dispatch_block_t block = ^{
_deleteOnEverySave = flag;
self->_deleteOnEverySave = flag;
};
// The design of the setter logic below is taken from the DDAbstractLogger implementation.

View File

@ -326,6 +326,11 @@ extern unsigned long long const kDDDefaultLogFilesDiskQuota;
*/
- (void)didLogMessage NS_REQUIRES_SUPER;
/**
* Writes all in-memory log data to the permanent storage. Call super before your implementation.
*/
- (void)flush NS_REQUIRES_SUPER;
/**
* Called when the logger checks archive or not current log file.
* Override this method to exdend standart behavior. By default returns NO.
@ -397,7 +402,7 @@ extern unsigned long long const kDDDefaultLogFilesDiskQuota;
* You can optionally force the current log file to be rolled with this method.
* CompletionBlock will be called on main queue.
*/
- (void)rollLogFileWithCompletionBlock:(void (^)())completionBlock NS_SWIFT_NAME(rollLogFile(withCompletion:));
- (void)rollLogFileWithCompletionBlock:(void (^)(void))completionBlock NS_SWIFT_NAME(rollLogFile(withCompletion:));
/**
* Method is deprecated.

View File

@ -279,47 +279,18 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
- (BOOL)isLogFile:(NSString *)fileName {
NSString *appName = [self applicationName];
BOOL hasProperPrefix = [fileName hasPrefix:appName];
// We need to add a space to the name as otherwise we could match applications that have the name prefix.
BOOL hasProperPrefix = [fileName hasPrefix:[appName stringByAppendingString:@" "]];
BOOL hasProperSuffix = [fileName hasSuffix:@".log"];
BOOL hasProperDate = NO;
if (hasProperPrefix && hasProperSuffix) {
NSUInteger lengthOfMiddle = fileName.length - appName.length - @".log".length;
// Date string should have at least 16 characters - " 2013-12-03 17-14"
if (lengthOfMiddle >= 17) {
NSRange range = NSMakeRange(appName.length, lengthOfMiddle);
NSString *middle = [fileName substringWithRange:range];
NSArray *components = [middle componentsSeparatedByString:@" "];
// When creating logfile if there is existing file with the same name, we append attemp number at the end.
// Thats why here we can have three or four components. For details see createNewLogFile method.
//
// Components:
// "", "2013-12-03", "17-14"
// or
// "", "2013-12-03", "17-14", "1"
if (components.count == 3 || components.count == 4) {
NSString *dateString = [NSString stringWithFormat:@"%@ %@", components[1], components[2]];
NSDateFormatter *dateFormatter = [self logFileDateFormatter];
NSDate *date = [dateFormatter dateFromString:dateString];
if (date) {
hasProperDate = YES;
}
}
}
}
return (hasProperPrefix && hasProperDate && hasProperSuffix);
return (hasProperPrefix && hasProperSuffix);
}
// if you change formatter, then change sortedLogFileInfos method also accordingly
- (NSDateFormatter *)logFileDateFormatter {
NSMutableDictionary *dictionary = [[NSThread currentThread]
threadDictionary];
NSString *dateFormat = @"yyyy'-'MM'-'dd' 'HH'-'mm'";
NSString *dateFormat = @"yyyy'-'MM'-'dd'--'HH'-'mm'-'ss'-'SSS'";
NSString *key = [NSString stringWithFormat:@"logFileDateFormatter.%@", dateFormat];
NSDateFormatter *dateFormatter = dictionary[key];
@ -417,13 +388,35 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
}
- (NSArray *)sortedLogFileInfos {
return [[self unsortedLogFileInfos] sortedArrayUsingSelector:@selector(reverseCompareByCreationDate:)];
return [[self unsortedLogFileInfos] sortedArrayUsingComparator:^NSComparisonResult(DDLogFileInfo * _Nonnull obj1, DDLogFileInfo * _Nonnull obj2) {
NSDate *date1 = [NSDate new];
NSDate *date2 = [NSDate new];
NSArray<NSString *> *arrayComponent = [[obj1 fileName] componentsSeparatedByString:@" "];
if (arrayComponent.count > 0) {
NSString *stringDate = arrayComponent.lastObject;
stringDate = [stringDate stringByReplacingOccurrencesOfString:@".log" withString:@""];
stringDate = [stringDate stringByReplacingOccurrencesOfString:@".archived" withString:@""];
date1 = [[self logFileDateFormatter] dateFromString:stringDate] ?: [obj1 creationDate];
}
arrayComponent = [[obj2 fileName] componentsSeparatedByString:@" "];
if (arrayComponent.count > 0) {
NSString *stringDate = arrayComponent.lastObject;
stringDate = [stringDate stringByReplacingOccurrencesOfString:@".log" withString:@""];
stringDate = [stringDate stringByReplacingOccurrencesOfString:@".archived" withString:@""];
date2 = [[self logFileDateFormatter] dateFromString:stringDate] ?: [obj2 creationDate];
}
return [date2 compare:date1 ?: [NSDate new]];
}];
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark Creation
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//if you change newLogFileName , then change isLogFile method also accordingly
- (NSString *)newLogFileName {
NSString *appName = [self applicationName];
@ -619,7 +612,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
__block unsigned long long result;
dispatch_block_t block = ^{
result = _maximumFileSize;
result = self->_maximumFileSize;
};
// The design of this method is taken from the DDAbstractLogger implementation.
@ -647,7 +640,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
- (void)setMaximumFileSize:(unsigned long long)newMaximumFileSize {
dispatch_block_t block = ^{
@autoreleasepool {
_maximumFileSize = newMaximumFileSize;
self->_maximumFileSize = newMaximumFileSize;
[self maybeRollLogFileDueToSize];
}
};
@ -676,7 +669,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
__block NSTimeInterval result;
dispatch_block_t block = ^{
result = _rollingFrequency;
result = self->_rollingFrequency;
};
// The design of this method is taken from the DDAbstractLogger implementation.
@ -704,7 +697,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
- (void)setRollingFrequency:(NSTimeInterval)newRollingFrequency {
dispatch_block_t block = ^{
@autoreleasepool {
_rollingFrequency = newRollingFrequency;
self->_rollingFrequency = newRollingFrequency;
[self maybeRollLogFileDueToAge];
}
};
@ -779,7 +772,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
[self rollLogFileWithCompletionBlock:nil];
}
- (void)rollLogFileWithCompletionBlock:(void (^)())completionBlock {
- (void)rollLogFileWithCompletionBlock:(void (^)(void))completionBlock {
// This method is public.
// We need to execute the rolling on our logging thread/queue.
@ -1047,6 +1040,10 @@ static int exception_count = 0;
return @"cocoa.lumberjack.fileLogger";
}
- (void)flush {
[_currentLogFileHandle synchronizeFile];
}
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -177,7 +177,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @return the file name
*/
NSString * __nullable DDExtractFileNameWithoutExtension(const char *filePath, BOOL copy);
FOUNDATION_EXTERN NSString * __nullable DDExtractFileNameWithoutExtension(const char *filePath, BOOL copy);
/**
* The THIS_FILE macro gives you an NSString of the file name.

View File

@ -351,17 +351,16 @@ static NSUInteger _numProcessors;
// Dispatch semaphores call down to the kernel only when the calling thread needs to be blocked.
// If the calling semaphore does not need to block, no kernel call is made.
dispatch_semaphore_wait(_queueSemaphore, DISPATCH_TIME_FOREVER);
// We've now sure we won't overflow the queue.
// It is time to queue our log message.
dispatch_block_t logBlock = ^{
dispatch_semaphore_wait(_queueSemaphore, DISPATCH_TIME_FOREVER);
@autoreleasepool {
[self lt_log:logMessage];
}
};
// We've now sure we won't overflow the queue.
// It is time to queue our log message.
if (asyncFlag) {
dispatch_async(_loggingQueue, logBlock);
} else {
@ -630,6 +629,7 @@ static NSUInteger _numProcessors;
if (numClasses > bufferSize || numClasses == 0) {
//apparently more classes added between calls (or a problem); try again
free(classes);
classes = NULL;
numClasses = 0;
}
}
@ -1313,8 +1313,8 @@ static __inline__ __attribute__((__always_inline__)) void _dispatch_queue_label_
__block id <DDLogFormatter> result;
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(_loggerQueue, ^{
result = _logFormatter;
dispatch_sync(self->_loggerQueue, ^{
result = self->_logFormatter;
});
});
@ -1329,17 +1329,17 @@ static __inline__ __attribute__((__always_inline__)) void _dispatch_queue_label_
dispatch_block_t block = ^{
@autoreleasepool {
if (_logFormatter != logFormatter) {
if ([_logFormatter respondsToSelector:@selector(willRemoveFromLogger:)]) {
[_logFormatter willRemoveFromLogger:self];
if (self->_logFormatter != logFormatter) {
if ([self->_logFormatter respondsToSelector:@selector(willRemoveFromLogger:)]) {
[self->_logFormatter willRemoveFromLogger:self];
}
_logFormatter = logFormatter;
self->_logFormatter = logFormatter;
if ([_logFormatter respondsToSelector:@selector(didAddToLogger:inQueue:)]) {
[_logFormatter didAddToLogger:self inQueue:_loggerQueue];
} else if ([_logFormatter respondsToSelector:@selector(didAddToLogger:)]) {
[_logFormatter didAddToLogger:self];
if ([self->_logFormatter respondsToSelector:@selector(didAddToLogger:inQueue:)]) {
[self->_logFormatter didAddToLogger:self inQueue:self->_loggerQueue];
} else if ([self->_logFormatter respondsToSelector:@selector(didAddToLogger:)]) {
[self->_logFormatter didAddToLogger:self];
}
}
}
@ -1348,7 +1348,7 @@ static __inline__ __attribute__((__always_inline__)) void _dispatch_queue_label_
dispatch_queue_t globalLoggingQueue = [DDLog loggingQueue];
dispatch_async(globalLoggingQueue, ^{
dispatch_async(_loggerQueue, block);
dispatch_async(self->_loggerQueue, block);
});
}

View File

@ -25,7 +25,6 @@
/**
* This class provides a logger for the Apple os_log facility.
**/
API_AVAILABLE(ios(10.0), macos(10.12), tvos(10.0), watchos(3.0))
@interface DDOSLogger : DDAbstractLogger <DDLogger>
/**

View File

@ -48,26 +48,30 @@ static DDOSLogger *sharedInstance;
return;
}
NSString * message = _logFormatter ? [_logFormatter formatLogMessage:logMessage] : logMessage->_message;
if (message) {
const char *msg = [message UTF8String];
if(@available(iOS 10.0, macOS 10.12, tvOS 10.0, watchOS 3.0, *)) {
switch (logMessage->_flag) {
case DDLogFlagError :
os_log_error(OS_LOG_DEFAULT, msg);
break;
case DDLogFlagWarning :
case DDLogFlagInfo :
os_log_info(OS_LOG_DEFAULT, msg);
break;
case DDLogFlagDebug :
case DDLogFlagVerbose :
default :
os_log_debug(OS_LOG_DEFAULT, msg);
break;
NSString * message = _logFormatter ? [_logFormatter formatLogMessage:logMessage] : logMessage->_message;
if (message) {
const char *msg = [message UTF8String];
switch (logMessage->_flag) {
case DDLogFlagError :
os_log_error(OS_LOG_DEFAULT, "%{public}s", msg);
break;
case DDLogFlagWarning :
case DDLogFlagInfo :
os_log_info(OS_LOG_DEFAULT, "%{public}s", msg);
break;
case DDLogFlagDebug :
case DDLogFlagVerbose :
default :
os_log_debug(OS_LOG_DEFAULT, "%{public}s", msg);
break;
}
}
}
}
- (NSString *)loggerName {

View File

@ -900,7 +900,7 @@ static DDTTYLogger *sharedInstance;
dispatch_sync(globalLoggingQueue, ^{
dispatch_sync(self.loggerQueue, ^{
result = _colorsEnabled;
result = self->_colorsEnabled;
});
});
@ -910,9 +910,9 @@ static DDTTYLogger *sharedInstance;
- (void)setColorsEnabled:(BOOL)newColorsEnabled {
dispatch_block_t block = ^{
@autoreleasepool {
_colorsEnabled = newColorsEnabled;
self->_colorsEnabled = newColorsEnabled;
if ([_colorProfilesArray count] == 0) {
if ([self->_colorProfilesArray count] == 0) {
[self loadDefaultColorProfiles];
}
}
@ -955,7 +955,7 @@ static DDTTYLogger *sharedInstance;
NSUInteger i = 0;
for (DDTTYLoggerColorProfile *colorProfile in _colorProfilesArray) {
for (DDTTYLoggerColorProfile *colorProfile in self->_colorProfilesArray) {
if ((colorProfile->mask == mask) && (colorProfile->context == ctxt)) {
break;
}
@ -963,10 +963,10 @@ static DDTTYLogger *sharedInstance;
i++;
}
if (i < [_colorProfilesArray count]) {
_colorProfilesArray[i] = newColorProfile;
if (i < [self->_colorProfilesArray count]) {
self->_colorProfilesArray[i] = newColorProfile;
} else {
[_colorProfilesArray addObject:newColorProfile];
[self->_colorProfilesArray addObject:newColorProfile];
}
}
};
@ -999,7 +999,7 @@ static DDTTYLogger *sharedInstance;
NSLogInfo(@"DDTTYLogger: newColorProfile: %@", newColorProfile);
_colorProfilesDict[tag] = newColorProfile;
self->_colorProfilesDict[tag] = newColorProfile;
}
};
@ -1027,7 +1027,7 @@ static DDTTYLogger *sharedInstance;
@autoreleasepool {
NSUInteger i = 0;
for (DDTTYLoggerColorProfile *colorProfile in _colorProfilesArray) {
for (DDTTYLoggerColorProfile *colorProfile in self->_colorProfilesArray) {
if ((colorProfile->mask == mask) && (colorProfile->context == context)) {
break;
}
@ -1035,8 +1035,8 @@ static DDTTYLogger *sharedInstance;
i++;
}
if (i < [_colorProfilesArray count]) {
[_colorProfilesArray removeObjectAtIndex:i];
if (i < [self->_colorProfilesArray count]) {
[self->_colorProfilesArray removeObjectAtIndex:i];
}
}
};
@ -1061,7 +1061,7 @@ static DDTTYLogger *sharedInstance;
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesDict removeObjectForKey:tag];
[self->_colorProfilesDict removeObjectForKey:tag];
}
};
@ -1083,7 +1083,7 @@ static DDTTYLogger *sharedInstance;
- (void)clearColorsForAllFlags {
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesArray removeAllObjects];
[self->_colorProfilesArray removeAllObjects];
}
};
@ -1105,7 +1105,7 @@ static DDTTYLogger *sharedInstance;
- (void)clearColorsForAllTags {
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesDict removeAllObjects];
[self->_colorProfilesDict removeAllObjects];
}
};
@ -1127,8 +1127,8 @@ static DDTTYLogger *sharedInstance;
- (void)clearAllColors {
dispatch_block_t block = ^{
@autoreleasepool {
[_colorProfilesArray removeAllObjects];
[_colorProfilesDict removeAllObjects];
[self->_colorProfilesArray removeAllObjects];
[self->_colorProfilesDict removeAllObjects];
}
};

View File

@ -14,7 +14,7 @@
// prior written permission of Deusty, LLC.
#import "DDContextFilterLogFormatter.h"
#import <libkern/OSAtomic.h>
#import <pthread/pthread.h>
#if !__has_feature(objc_arc)
#error This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
@ -131,7 +131,7 @@
@interface DDLoggingContextSet () {
OSSpinLock _lock;
pthread_mutex_t _mutex;
NSMutableSet *_set;
}
@ -143,36 +143,40 @@
- (instancetype)init {
if ((self = [super init])) {
_set = [[NSMutableSet alloc] init];
_lock = OS_SPINLOCK_INIT;
pthread_mutex_init(&_mutex, NULL);
}
return self;
}
- (void)dealloc {
pthread_mutex_destroy(&_mutex);
}
- (void)addToSet:(NSUInteger)loggingContext {
OSSpinLockLock(&_lock);
pthread_mutex_lock(&_mutex);
{
[_set addObject:@(loggingContext)];
}
OSSpinLockUnlock(&_lock);
pthread_mutex_unlock(&_mutex);
}
- (void)removeFromSet:(NSUInteger)loggingContext {
OSSpinLockLock(&_lock);
pthread_mutex_lock(&_mutex);
{
[_set removeObject:@(loggingContext)];
}
OSSpinLockUnlock(&_lock);
pthread_mutex_unlock(&_mutex);
}
- (NSArray *)currentSet {
NSArray *result = nil;
OSSpinLockLock(&_lock);
pthread_mutex_lock(&_mutex);
{
result = [_set allObjects];
}
OSSpinLockUnlock(&_lock);
pthread_mutex_unlock(&_mutex);
return result;
}
@ -180,11 +184,11 @@
- (BOOL)isInSet:(NSUInteger)loggingContext {
BOOL result = NO;
OSSpinLockLock(&_lock);
pthread_mutex_lock(&_mutex);
{
result = [_set containsObject:@(loggingContext)];
}
OSSpinLockUnlock(&_lock);
pthread_mutex_unlock(&_mutex);
return result;
}

View File

@ -14,10 +14,9 @@
// prior written permission of Deusty, LLC.
#import "DDDispatchQueueLogFormatter.h"
#import <libkern/OSAtomic.h>
#import <pthread/pthread.h>
#import <objc/runtime.h>
#if !__has_feature(objc_arc)
#error This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
#endif
@ -29,7 +28,7 @@
int32_t _atomicLoggerCount;
NSDateFormatter *_threadUnsafeDateFormatter; // Use [self stringFromDate]
OSSpinLock _lock;
pthread_mutex_t _mutex;
NSUInteger _minQueueLength; // _prefix == Only access via atomic property
NSUInteger _maxQueueLength; // _prefix == Only access via atomic property
@ -63,7 +62,7 @@
_minQueueLength = 0;
_maxQueueLength = 0;
_lock = OS_SPINLOCK_INIT;
pthread_mutex_init(&_mutex, NULL);
_replacements = [[NSMutableDictionary alloc] init];
// Set default replacements:
@ -81,6 +80,10 @@
return self;
}
- (void)dealloc {
pthread_mutex_destroy(&_mutex);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark Configuration
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -91,17 +94,17 @@
- (NSString *)replacementStringForQueueLabel:(NSString *)longLabel {
NSString *result = nil;
OSSpinLockLock(&_lock);
pthread_mutex_lock(&_mutex);
{
result = _replacements[longLabel];
}
OSSpinLockUnlock(&_lock);
pthread_mutex_unlock(&_mutex);
return result;
}
- (void)setReplacementString:(NSString *)shortLabel forQueueLabel:(NSString *)longLabel {
OSSpinLockLock(&_lock);
pthread_mutex_lock(&_mutex);
{
if (shortLabel) {
_replacements[longLabel] = shortLabel;
@ -109,7 +112,7 @@
[_replacements removeObjectForKey:longLabel];
}
}
OSSpinLockUnlock(&_lock);
pthread_mutex_unlock(&_mutex);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -214,11 +217,11 @@
fullLabel = logMessage->_threadName;
}
OSSpinLockLock(&_lock);
pthread_mutex_lock(&_mutex);
{
abrvLabel = _replacements[fullLabel];
}
OSSpinLockUnlock(&_lock);
pthread_mutex_unlock(&_mutex);
if (abrvLabel) {
queueThreadLabel = abrvLabel;

View File

@ -81,7 +81,7 @@
__block NSString *line = logMessage->_message;
dispatch_sync(_queue, ^{
for (id<DDLogFormatter> formatter in _formatters) {
for (id<DDLogFormatter> formatter in self->_formatters) {
DDLogMessage *message = [self logMessageForLine:line originalMessage:logMessage];
line = [formatter formatLogMessage:message];
@ -107,7 +107,7 @@
__block NSArray *formatters;
dispatch_sync(_queue, ^{
formatters = [_formatters copy];
formatters = [self->_formatters copy];
});
return formatters;
@ -115,19 +115,19 @@
- (void)addFormatter:(id<DDLogFormatter>)formatter {
dispatch_barrier_async(_queue, ^{
[_formatters addObject:formatter];
[self->_formatters addObject:formatter];
});
}
- (void)removeFormatter:(id<DDLogFormatter>)formatter {
dispatch_barrier_async(_queue, ^{
[_formatters removeObject:formatter];
[self->_formatters removeObject:formatter];
});
}
- (void)removeAllFormatters {
dispatch_barrier_async(_queue, ^{
[_formatters removeAllObjects];
[self->_formatters removeAllObjects];
});
}
@ -135,7 +135,7 @@
__block BOOL hasFormatter;
dispatch_sync(_queue, ^{
hasFormatter = [_formatters containsObject:formatter];
hasFormatter = [self->_formatters containsObject:formatter];
});
return hasFormatter;

View File

@ -48,11 +48,11 @@ DDLog.add(fileLogger)
...
DDLogVerbose("Verbose");
DDLogDebug("Debug");
DDLogInfo("Info");
DDLogWarn("Warn");
DDLogError("Error");
DDLogVerbose("Verbose")
DDLogDebug("Debug")
DDLogInfo("Info")
DDLogWarn("Warn")
DDLogError("Error")
```
##### Obj-C version via CocoaPods
@ -151,14 +151,16 @@ Configure your logging however you want. Change log levels per file (perfect for
### Requirements
The current version of Lumberjack requires:
- Xcode 8 or later
- Swift 3.0 or later
- iOS 5 or later
- OS X 10.7 or later
- Xcode 9 or later
- Swift 4.0 or later
- iOS 6 or later
- OS X 10.8 or later
- WatchOS 2 or later
- TVOS 9 or later
#### Backwards compability
- for iOS 5 and OS X 10.7, use the 3.3 version
- for Xcode 8 and Swift 3, use the 3.2 version
- for Xcode 7.3 and Swift 2.3, use the 2.4.0 version
- for Xcode 7.3 and Swift 2.2, use the 2.3.0 version
- for Xcode 7.2 and 7.1, use the 2.2.0 version

View File

@ -1 +1 @@
../../../../../../YapDatabase/Internal/YapDatabaseAtomic.h
../../../../../../YapDatabase/Utilities/YapDatabaseAtomic.h

Some files were not shown because too many files have changed in this diff Show More