Skip to content

Commit cffe2f8

Browse files
committed
Renaming 'CountlyExperimentInformation' class
1 parent 2a8ac9f commit cffe2f8

7 files changed

+20
-20
lines changed

Countly.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
1A3A576529ED47BD0041B7BE /* CountlyServerConfig.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A3A576429ED47B50041B7BE /* CountlyServerConfig.h */; };
1616
1A423E9E2A271E46008C4757 /* CountlyRCData.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A423E9D2A271E46008C4757 /* CountlyRCData.m */; };
1717
1A423EA02A271FE0008C4757 /* CountlyRCData.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A423E9F2A271E52008C4757 /* CountlyRCData.h */; settings = {ATTRIBUTES = (Public, ); }; };
18-
1A478D032AB314750056A5E7 /* CountlyExperimentInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A9027FF2AB197C00044EBCF /* CountlyExperimentInfo.h */; settings = {ATTRIBUTES = (Public, ); }; };
19-
1A9027FE2AB197B50044EBCF /* CountlyExperimentInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A9027FD2AB197B50044EBCF /* CountlyExperimentInfo.m */; };
18+
1A478D032AB314750056A5E7 /* CountlyExperimentInformation.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A9027FF2AB197C00044EBCF /* CountlyExperimentInformation.h */; settings = {ATTRIBUTES = (Public, ); }; };
19+
1A9027FE2AB197B50044EBCF /* CountlyExperimentInformation.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A9027FD2AB197B50044EBCF /* CountlyExperimentInformation.m */; };
2020
1ACA5DC12A309E7F001F770B /* CountlyRemoteConfigInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 1ACA5DBF2A309E7F001F770B /* CountlyRemoteConfigInternal.h */; };
2121
1ACA5DC22A309E7F001F770B /* CountlyRemoteConfigInternal.m in Sources */ = {isa = PBXBuildFile; fileRef = 1ACA5DC02A309E7F001F770B /* CountlyRemoteConfigInternal.m */; };
2222
3B20A9872245225A00E3D7AE /* Countly.h in Headers */ = {isa = PBXBuildFile; fileRef = 3B20A9852245225A00E3D7AE /* Countly.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -66,8 +66,8 @@
6666
1A3A576429ED47B50041B7BE /* CountlyServerConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CountlyServerConfig.h; sourceTree = "<group>"; };
6767
1A423E9D2A271E46008C4757 /* CountlyRCData.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CountlyRCData.m; sourceTree = "<group>"; };
6868
1A423E9F2A271E52008C4757 /* CountlyRCData.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CountlyRCData.h; sourceTree = "<group>"; };
69-
1A9027FD2AB197B50044EBCF /* CountlyExperimentInfo.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CountlyExperimentInfo.m; sourceTree = "<group>"; };
70-
1A9027FF2AB197C00044EBCF /* CountlyExperimentInfo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CountlyExperimentInfo.h; sourceTree = "<group>"; };
69+
1A9027FD2AB197B50044EBCF /* CountlyExperimentInformation.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CountlyExperimentInformation.m; sourceTree = "<group>"; };
70+
1A9027FF2AB197C00044EBCF /* CountlyExperimentInformation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CountlyExperimentInformation.h; sourceTree = "<group>"; };
7171
1ACA5DBF2A309E7F001F770B /* CountlyRemoteConfigInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CountlyRemoteConfigInternal.h; sourceTree = "<group>"; };
7272
1ACA5DC02A309E7F001F770B /* CountlyRemoteConfigInternal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CountlyRemoteConfigInternal.m; sourceTree = "<group>"; };
7373
3B20A9822245225A00E3D7AE /* Countly.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Countly.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -124,8 +124,8 @@
124124
3B20A9782245225A00E3D7AE = {
125125
isa = PBXGroup;
126126
children = (
127-
1A9027FF2AB197C00044EBCF /* CountlyExperimentInfo.h */,
128-
1A9027FD2AB197B50044EBCF /* CountlyExperimentInfo.m */,
127+
1A9027FF2AB197C00044EBCF /* CountlyExperimentInformation.h */,
128+
1A9027FD2AB197B50044EBCF /* CountlyExperimentInformation.m */,
129129
1A31106E2A7141AF001CB507 /* CountlyViewTracking.h */,
130130
1A31106F2A7141AF001CB507 /* CountlyViewTracking.m */,
131131
1A3110642A7128DC001CB507 /* CountlyViewData.h */,
@@ -192,7 +192,7 @@
192192
isa = PBXHeadersBuildPhase;
193193
buildActionMask = 2147483647;
194194
files = (
195-
1A478D032AB314750056A5E7 /* CountlyExperimentInfo.h in Headers */,
195+
1A478D032AB314750056A5E7 /* CountlyExperimentInformation.h in Headers */,
196196
3B20A9D32245228700E3D7AE /* CountlyPushNotifications.h in Headers */,
197197
3B20A9C42245228700E3D7AE /* CountlyUserDetails.h in Headers */,
198198
3B20A9CA2245228700E3D7AE /* CountlyConfig.h in Headers */,
@@ -308,7 +308,7 @@
308308
3B20A9B42245228700E3D7AE /* CountlyPushNotifications.m in Sources */,
309309
3B20A9C92245228700E3D7AE /* CountlyUserDetails.m in Sources */,
310310
3B20A9D12245228700E3D7AE /* CountlyConfig.m in Sources */,
311-
1A9027FE2AB197B50044EBCF /* CountlyExperimentInfo.m in Sources */,
311+
1A9027FE2AB197B50044EBCF /* CountlyExperimentInformation.m in Sources */,
312312
3B20A9C82245228700E3D7AE /* CountlyViewTrackingInternal.m in Sources */,
313313
3B20A9D22245228700E3D7AE /* CountlyLocationManager.m in Sources */,
314314
);

CountlyExperimentInfo.h renamed to CountlyExperimentInformation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#import <Foundation/Foundation.h>
88

9-
@interface CountlyExperimentInfo : NSObject
9+
@interface CountlyExperimentInformation : NSObject
1010

1111
@property (nonatomic, readonly) NSString* experimentID;
1212
@property (nonatomic, readonly) NSString* experimentName;

CountlyExperimentInfo.m renamed to CountlyExperimentInformation.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
//
55
// Please visit www.count.ly for more information.
66

7-
#import "CountlyExperimentInfo.h"
7+
#import "CountlyExperimentInformation.h"
88

9-
@interface CountlyExperimentInfo ()
9+
@interface CountlyExperimentInformation ()
1010
@property (nonatomic) NSString* experimentID;
1111
@property (nonatomic) NSString* experimentName;
1212
@property (nonatomic) NSString* experimentDescription;
@@ -15,7 +15,7 @@ @interface CountlyExperimentInfo ()
1515
@end
1616

1717

18-
@implementation CountlyExperimentInfo
18+
@implementation CountlyExperimentInformation
1919

2020
- (instancetype)init
2121
{

CountlyRemoteConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#import <Foundation/Foundation.h>
88
#import "CountlyRCData.h"
9-
#import "CountlyExperimentInfo.h"
9+
#import "CountlyExperimentInformation.h"
1010

1111
@interface CountlyRemoteConfig : NSObject
1212

@@ -40,7 +40,7 @@
4040
- (void)testingEnrollIntoVariant:(NSString *)key variantName:(NSString *)variantName completionHandler:(RCVariantCallback)completionHandler;
4141

4242
- (void) testingDownloadExperimentInformation:(RCVariantCallback)completionHandler;
43-
- (NSDictionary<NSString*, CountlyExperimentInfo*> *) testingGetAllExperimentInfo;
43+
- (NSDictionary<NSString*, CountlyExperimentInformation*> *) testingGetAllExperimentInfo;
4444

4545
- (void)clearAll;
4646

CountlyRemoteConfig.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ - (void) testingDownloadExperimentInformation:(RCVariantCallback)completionHandl
120120
[CountlyRemoteConfigInternal.sharedInstance testingDownloadExperimentInformation:completionHandler];
121121
}
122122

123-
- (NSDictionary<NSString*, CountlyExperimentInfo*> *) testingGetAllExperimentInfo
123+
- (NSDictionary<NSString*, CountlyExperimentInformation*> *) testingGetAllExperimentInfo
124124
{
125125
CLY_LOG_I(@"%s", __FUNCTION__);
126126
return [CountlyRemoteConfigInternal.sharedInstance testingGetAllExperimentInfo];

CountlyRemoteConfigInternal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- (void)testingEnrollIntoVariant:(NSString *)key variantName:(NSString *)variantName completionHandler:(RCVariantCallback)completionHandler;
3434

3535
- (void) testingDownloadExperimentInformation:(RCVariantCallback)completionHandler;
36-
- (NSDictionary<NSString*, CountlyExperimentInfo*> *) testingGetAllExperimentInfo;
36+
- (NSDictionary<NSString*, CountlyExperimentInformation*> *) testingGetAllExperimentInfo;
3737

3838
- (NSDictionary<NSString*, CountlyRCData *> *)getAllValues;
3939
- (void)enrollIntoABTestsForKeys:(NSArray *)keys;

CountlyRemoteConfigInternal.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@interface CountlyRemoteConfigInternal ()
2929
@property (nonatomic) NSDictionary* localCachedVariants;
3030
@property (nonatomic) NSDictionary<NSString *, CountlyRCData *>* cachedRemoteConfig;
31-
@property (nonatomic) NSDictionary<NSString*, CountlyExperimentInfo*> * localCachedExperiments;
31+
@property (nonatomic) NSDictionary<NSString*, CountlyExperimentInformation*> * localCachedExperiments;
3232
@end
3333

3434
@implementation CountlyRemoteConfigInternal
@@ -702,15 +702,15 @@ - (void)testingDownloaExperimentInfoInternal:(void (^)(CLYRequestResult response
702702
NSURLSessionTask* task = [NSURLSession.sharedSession dataTaskWithRequest:request completionHandler:^(NSData* data, NSURLResponse* response, NSError* error)
703703
{
704704

705-
NSMutableDictionary<NSString*, CountlyExperimentInfo*> * experiments = NSMutableDictionary.new;
705+
NSMutableDictionary<NSString*, CountlyExperimentInformation*> * experiments = NSMutableDictionary.new;
706706

707707
if (!error)
708708
{
709709

710710
NSArray* experimentsInfo = [NSJSONSerialization JSONObjectWithData:data options:0 error:&error];
711711
[experimentsInfo enumerateObjectsUsingBlock:^(NSDictionary* value, NSUInteger idx, BOOL * stop)
712712
{
713-
CountlyExperimentInfo* experimentInfo = [[CountlyExperimentInfo alloc] initWithID:value[@"id"] experimentName:value[@"name"] experimentDescription:value[@"description"] currentVariant:value[@"currentVariant"] variants:value[@"variants"]];
713+
CountlyExperimentInformation* experimentInfo = [[CountlyExperimentInformation alloc] initWithID:value[@"id"] experimentName:value[@"name"] experimentDescription:value[@"description"] currentVariant:value[@"currentVariant"] variants:value[@"variants"]];
714714
experiments[experimentInfo.experimentID] = experimentInfo;
715715

716716
}];
@@ -782,7 +782,7 @@ - (NSURLRequest *)downloadExperimentInfoRequest
782782
return request;
783783
}
784784
}
785-
- (NSDictionary<NSString*, CountlyExperimentInfo*> *) testingGetAllExperimentInfo
785+
- (NSDictionary<NSString*, CountlyExperimentInformation*> *) testingGetAllExperimentInfo
786786
{
787787
return self.localCachedExperiments;
788788
}

0 commit comments

Comments
 (0)