Skip to content

Commit d0691f4

Browse files
Added a wrapper class OPTLYDataStore that owns the file manager and database. Moved all the tests to OPTLYDataStoreTest.
1 parent 982e904 commit d0691f4

File tree

5 files changed

+7
-153
lines changed

5 files changed

+7
-153
lines changed

OptimizelySDKShared/OptimizelySDKShared.xcodeproj/project.pbxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,6 @@
441441
2D08FBA01DCA5FA8006CA063 /* OPTLYClientBuilder.h in Headers */,
442442
EA52499A1DC7D8B800AF6685 /* OptimizelySDKShared.h in Headers */,
443443
2DB3D1801DC8181100ECF72E /* OPTLYManagerBuilder.h in Headers */,
444-
EA064BD31DD4030700DF7537 /* OPTLYDataStore.h in Headers */,
445444
2D08FB6C1DCA5A99006CA063 /* OPTLYClient.h in Headers */,
446445
EA5247861DC7226400AF6685 /* OPTLYManager.h in Headers */,
447446
EA5247971DC724AF00AF6685 /* OPTLYHTTPRequestManager.h in Headers */,

OptimizelySDKShared/OptimizelySDKShared/OPTLYDataStore.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< ce6f3747e73962c7c281bf400714e00bdf7e32d6
21
/****************************************************************************
32
* Copyright 2016, Optimizely, Inc. and contributors *
43
* *

OptimizelySDKShared/OptimizelySDKShared/OPTLYDataStore.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< ce6f3747e73962c7c281bf400714e00bdf7e32d6
21
/****************************************************************************
32
* Copyright 2016, Optimizely, Inc. and contributors *
43
* *

OptimizelySDKShared/OptimizelySDKShared/OPTLYDatabase.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
#import <Foundation/Foundation.h>
2828

2929
@interface OPTLYDatabase : NSObject
30+
/**
31+
* File manager initializer.
32+
*
33+
* @param baseDir The base directory where the database will be stored.
34+
* @return an instance of OPTLYDatabase.
35+
**/
36+
- (nullable instancetype)initWithBaseDir:(nonnull NSString *)baseDir;
3037

3138
/**
3239
* Creates a new table.

OptimizelySDKShared/OptimizelySDKSharedTests/OPTLYFileManagerTest.m

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

0 commit comments

Comments
 (0)