Backup misc collections.

pull/1/head
Matthew Chen 6 years ago
parent 7e39bf97e5
commit 95e1f840c1

@ -8,6 +8,7 @@
#import "OWSBackupImportJob.h"
#import "Signal-Swift.h"
#import <SignalCoreKit/Randomness.h>
#import <SignalServiceKit/OWSIdentityManager.h>
#import <SignalServiceKit/YapDatabaseConnection+OWS.h>
NS_ASSUME_NONNULL_BEGIN
@ -53,34 +54,13 @@ NSString *NSStringForBackupImportState(OWSBackupState state)
NSArray<NSString *> *MiscCollectionsToBackup(void)
{
// IncrementingIdCollection
// OWSContactsManagerCollection
// OWSOrphanDataCleaner_Collection
// OWSPrimaryStorage_OWSBackupCollection
// OWSReadReceiptManagerCollection
// OWSRecipientIdentity
// Signal.ExperienceUpgrade
// SignalAccount
// SignalPreferences
// SignalRecipient
// TSStorageInternalSettingsCollection
// TSStorageManagerIdentityKeyStoreCollection
// TSStorageManagerPreKeyStoreCollection
// TSStorageManagerSessionStoreCollection
// TSStorageManagerSignedPreKeyMetadataCollection
// TSStorageManagerSignedPreKeyStoreCollection
// TSStorageManagerTrustedKeysCollection
// TSStorageUserAccountCollection
// UserProfile
// kOWSProfileManager_UserWhitelistCollection
// kProfileView_Collection
// kTSStorageManagerOWSSyncManagerCollection
// kTSStorageManager_OWSDeviceCollection
// kUDCollection
// kUnidentifiedAccessCollection
return @[
OWSPreferencesSignalDatabaseCollection,
kOWSBlockingManager_BlockListCollection,
OWSUserProfile.collection,
SSKIncrementingIdFinder.collectionName,
OWSPreferencesSignalDatabaseCollection,
OWSPrimaryStorageIdentityKeyStoreCollection,
OWSPrimaryStorageTrustedKeysCollection,
];
}

@ -10,6 +10,8 @@ NS_ASSUME_NONNULL_BEGIN
extern NSString *const kNSNotificationName_BlockListDidChange;
extern NSString *const kOWSBlockingManager_BlockListCollection;
// This class can be safely accessed and used from any thread.
@interface OWSBlockingManager : NSObject

@ -7,6 +7,8 @@
NS_ASSUME_NONNULL_BEGIN
extern NSString *const OWSPrimaryStorageIdentityKeyStoreCollection;
extern NSString *const OWSPrimaryStorageTrustedKeysCollection;
// This notification will be fired whenever identities are created

@ -7,7 +7,8 @@ import Foundation
@objc
public class SSKIncrementingIdFinder: NSObject {
private static let collectionName = "IncrementingIdCollection"
@objc
public static let collectionName = "IncrementingIdCollection"
@objc
public class func previousId(key: String, transaction: YapDatabaseReadTransaction) -> UInt64 {

Loading…
Cancel
Save