Skip to content

Commit a606637

Browse files
committed
change properties to readonly
1 parent 11b6552 commit a606637

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

OptimizelySDKDatafileManager/OptimizelySDKDatafileManager/OPTLYDatafileManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/// The project ID of the datafile this datafile manager will monitor
3232
@property (nonatomic, readonly, strong, nonnull) NSString *projectId;
3333
/// The error handler to be used for the manager, client, and all subcomponents
34-
@property (nonatomic, readwrite, strong, nullable) id<OPTLYErrorHandler> errorHandler;
34+
@property (nonatomic, readonly, strong, nullable) id<OPTLYErrorHandler> errorHandler;
3535
/// A logger for the OPTLYDatafileManager to log messages.
3636
@property (nonatomic, readonly, strong, nonnull) id<OPTLYLogger> logger;
3737

OptimizelySDKDatafileManager/OptimizelySDKDatafileManager/OPTLYDatafileManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ - (instancetype)initWithBuilder:(OPTLYDatafileManagerBuilder *)builder {
4343
_projectId = builder.projectId;
4444
_errorHandler = builder.errorHandler;
4545
_logger = builder.logger;
46-
_networkService = [[OPTLYNetworkService alloc] init];
46+
_networkService = [OPTLYNetworkService new];
4747
_dataStore = [OPTLYDataStore new];
4848

4949
// download datafile when we start the datafile manager

OptimizelySDKShared/OptimizelySDKShared/OPTLYManager.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
/// The default datafile to initialize an Optimizely Client with
2727
@property (nonatomic, readwrite, strong, nullable) NSData *datafile;
2828
/// The datafile manager that will download the datafile for the manager
29-
@property (nonatomic, readwrite, strong, nullable) id<OPTLYDatafileManager> datafileManager;
29+
@property (nonatomic, readonly, strong, nullable) id<OPTLYDatafileManager> datafileManager;
3030
/// The error handler to be used for the manager, client, and all subcomponents
31-
@property (nonatomic, readwrite, strong, nullable) id<OPTLYErrorHandler> errorHandler;
31+
@property (nonatomic, readonly, strong, nullable) id<OPTLYErrorHandler> errorHandler;
3232
/// The event dispatcher to initialize an Optimizely Client with
33-
@property (nonatomic, readwrite, strong, nullable) id<OPTLYEventDispatcher> eventDispatcher;
33+
@property (nonatomic, readonly, strong, nullable) id<OPTLYEventDispatcher> eventDispatcher;
3434
/// The logger to be used for the manager, client, and all subcomponents
35-
@property (nonatomic, readwrite, strong, nullable) id<OPTLYLogger> logger;
35+
@property (nonatomic, readonly, strong, nullable) id<OPTLYLogger> logger;
3636

3737
/**
3838
* Init with builder block

0 commit comments

Comments
 (0)