Skip to content

Commit

Permalink
Merge pull request #9 from MFB-Technologies-Inc/v24.7.1
Browse files Browse the repository at this point in the history
v24.7.1
  • Loading branch information
roanutil authored Aug 8, 2024
2 parents 4484f22 + ce28415 commit 85142ed
Show file tree
Hide file tree
Showing 17 changed files with 258 additions and 26 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//
// CTXMAMFeaturesV2ServiceManager.h
// CTXMAMCore
//
// Created by Kun Ma on 2024/5/31.
// Copyright © 2024 Cloud Software Group, Inc. All rights reserved.
//

#ifndef CTXMAMFeaturesV2ServiceManager_h
#define CTXMAMFeaturesV2ServiceManager_h

#import <Foundation/Foundation.h>

@protocol CTXMAMFeaturesV2ServiceManagerDelegate;

@interface CTXMAMFeaturesV2ServiceManager : NSObject

@property (nonatomic, strong) id<CTXMAMFeaturesV2ServiceManagerDelegate> delegate;

-(instancetype) init NS_UNAVAILABLE;
+(instancetype) new NS_UNAVAILABLE;

+(instancetype) instanceForAppName:(NSString *)appName frontendToken:(NSString *)token;

-(void)setDefaultFeatureFlags:(NSDictionary<NSString *, NSNumber *> *)featureFlagsDict;
-(void)updateCustomerId:(NSString *)customerId;
-(void)setCustomAttribute:(NSString *)attribute forKey:(NSString *)key;

-(void)start;

-(BOOL)isFeatureFlagOn:(NSString *)featureFlag;
-(BOOL)isFeatureFlagOn:(NSString *)featureFlag defaultValue:(BOOL)defaultValue;
-(NSDictionary<NSString *, NSNumber *>*)getAllFeatureFlagsAndValues;

// For LaunchDarkly feature flag refresh callback use
-(void)launchDarklyFeatureFlagsRefreshed:(NSDictionary<NSString *, NSNumber *> *)featureFlags;

@end

@protocol CTXMAMFeaturesV2ServiceManagerDelegate <NSObject>

-(void)featureDownloadedSuccess:(CTXMAMFeaturesV2ServiceManager *)serviceManager;
-(void)featureDownloadFailed:(CTXMAMFeaturesV2ServiceManager *)serviceManager;

@end

#endif /* CTXMAMFeaturesV2ServiceManager_h */
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<data>
d3mShnHvYT22T4qBcySVAx89G8s=
</data>
<key>Headers/CTXMAMFeaturesV2ServiceManager.h</key>
<data>
ZIbTdwiRfIXXb4jvJYo38Uxiiw0=
</data>
<key>Headers/CTXMAMLogger.h</key>
<data>
X4Ed3+VjbUL5mHWTt5AM84WQX5I=
Expand All @@ -30,7 +34,7 @@
</data>
<key>Info.plist</key>
<data>
vE44qTIuG9ISkA7qLViE6hwkGNc=
OihbMGKnwp3tpraNYpSQrKQSZRU=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -98,7 +102,7 @@
</data>
<key>PrivateHeaders/CTXMAMConfigManagerConstants.h</key>
<data>
BpUYQKQk/26V+eQ1cbRuIypLQ/Q=
uaEunvEPIashz3Zn/eaLpSVALZE=
</data>
<key>PrivateHeaders/CTXMAMConfigManagerPrivate.h</key>
<data>
Expand All @@ -114,7 +118,7 @@
</data>
<key>PrivateHeaders/CTXMAMCore-PrefixHeader.pch</key>
<data>
cyrLw0BpoIJ4GRm7/iKXKILeXKs=
T2m0lqPnf4O6sN7np+UXg9ORd+A=
</data>
<key>PrivateHeaders/CTXMAMCoreConstants.h</key>
<data>
Expand All @@ -126,7 +130,7 @@
</data>
<key>PrivateHeaders/CTXMAMCoreUtility.h</key>
<data>
gbTfSzW7NHPqdgMUDz8mzJK1+q8=
dwJRs9IUUcMVySLb/FAt85b/TeY=
</data>
<key>PrivateHeaders/CTXMAMDataStorage.h</key>
<data>
Expand All @@ -142,7 +146,7 @@
</data>
<key>PrivateHeaders/CTXMAMFeatureMgrConfig.h</key>
<data>
rxqxaz6WIfexKZlI8owJP5nL7oQ=
sz8jzFi77cgBTU+7AykypHY97qg=
</data>
<key>PrivateHeaders/CTXMAMFeatureMgrPrivate.h</key>
<data>
Expand Down Expand Up @@ -542,6 +546,13 @@
bBsw0UR4w9JP2aiDSpbHY1s53Mxv9icfV1CeUBFECo4=
</data>
</dict>
<key>Headers/CTXMAMFeaturesV2ServiceManager.h</key>
<dict>
<key>hash2</key>
<data>
1kx21JlfQs9c/M+Ejpr2/EmI2PkvQiybvaMek5UQRe4=
</data>
</dict>
<key>Headers/CTXMAMLogger.h</key>
<dict>
<key>hash2</key>
Expand Down Expand Up @@ -679,7 +690,7 @@
<dict>
<key>hash2</key>
<data>
IKBxk6RBKc8tH/sXqBDbz07jgccWKhmCmCymPvaUp0s=
Mk68+7skYHJGpshHeI2mjVzW/KtQJv3UqOgwLshP+r0=
</data>
</dict>
<key>PrivateHeaders/CTXMAMConfigManagerPrivate.h</key>
Expand Down Expand Up @@ -707,7 +718,7 @@
<dict>
<key>hash2</key>
<data>
A3Sk3VVpWWJBAuhWhR37RtpEoGJSzTjCakqOLxuKcX4=
DeoTlb43v41J1rvzONRKupLmE6N3loDc2FV0LqIwEnI=
</data>
</dict>
<key>PrivateHeaders/CTXMAMCoreConstants.h</key>
Expand All @@ -728,7 +739,7 @@
<dict>
<key>hash2</key>
<data>
SmfCVuf5BTVfV0KripaKcbd59CATpuLCVFsmYrqKM9w=
Fk87b3mA2UMqEcffOgw2mnp80zz4jBIQVYY4HH1KkW4=
</data>
</dict>
<key>PrivateHeaders/CTXMAMDataStorage.h</key>
Expand Down Expand Up @@ -756,7 +767,7 @@
<dict>
<key>hash2</key>
<data>
EuNqqrSSG1limmrOYdws2kudzACG7stsHj3Qt86F/eA=
cMUplYU7rUCqBAQwb7dXc1JLkQ+SYDROLcxZUNkQZ7Q=
</data>
</dict>
<key>PrivateHeaders/CTXMAMFeatureMgrPrivate.h</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//
// CTXMAMFeaturesV2ServiceManager.h
// CTXMAMCore
//
// Created by Kun Ma on 2024/5/31.
// Copyright © 2024 Cloud Software Group, Inc. All rights reserved.
//

#ifndef CTXMAMFeaturesV2ServiceManager_h
#define CTXMAMFeaturesV2ServiceManager_h

#import <Foundation/Foundation.h>

@protocol CTXMAMFeaturesV2ServiceManagerDelegate;

@interface CTXMAMFeaturesV2ServiceManager : NSObject

@property (nonatomic, strong) id<CTXMAMFeaturesV2ServiceManagerDelegate> delegate;

-(instancetype) init NS_UNAVAILABLE;
+(instancetype) new NS_UNAVAILABLE;

+(instancetype) instanceForAppName:(NSString *)appName frontendToken:(NSString *)token;

-(void)setDefaultFeatureFlags:(NSDictionary<NSString *, NSNumber *> *)featureFlagsDict;
-(void)updateCustomerId:(NSString *)customerId;
-(void)setCustomAttribute:(NSString *)attribute forKey:(NSString *)key;

-(void)start;

-(BOOL)isFeatureFlagOn:(NSString *)featureFlag;
-(BOOL)isFeatureFlagOn:(NSString *)featureFlag defaultValue:(BOOL)defaultValue;
-(NSDictionary<NSString *, NSNumber *>*)getAllFeatureFlagsAndValues;

// For LaunchDarkly feature flag refresh callback use
-(void)launchDarklyFeatureFlagsRefreshed:(NSDictionary<NSString *, NSNumber *> *)featureFlags;

@end

@protocol CTXMAMFeaturesV2ServiceManagerDelegate <NSObject>

-(void)featureDownloadedSuccess:(CTXMAMFeaturesV2ServiceManager *)serviceManager;
-(void)featureDownloadFailed:(CTXMAMFeaturesV2ServiceManager *)serviceManager;

@end

#endif /* CTXMAMFeaturesV2ServiceManager_h */
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<data>
d3mShnHvYT22T4qBcySVAx89G8s=
</data>
<key>Headers/CTXMAMFeaturesV2ServiceManager.h</key>
<data>
ZIbTdwiRfIXXb4jvJYo38Uxiiw0=
</data>
<key>Headers/CTXMAMLogger.h</key>
<data>
X4Ed3+VjbUL5mHWTt5AM84WQX5I=
Expand All @@ -30,7 +34,7 @@
</data>
<key>Info.plist</key>
<data>
bXAhGVPwiAs71qdCgWmAmIZ6WXo=
dCtqy4XIxjxdzqU/s5obiPUCnEI=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -98,7 +102,7 @@
</data>
<key>PrivateHeaders/CTXMAMConfigManagerConstants.h</key>
<data>
BpUYQKQk/26V+eQ1cbRuIypLQ/Q=
uaEunvEPIashz3Zn/eaLpSVALZE=
</data>
<key>PrivateHeaders/CTXMAMConfigManagerPrivate.h</key>
<data>
Expand All @@ -114,7 +118,7 @@
</data>
<key>PrivateHeaders/CTXMAMCore-PrefixHeader.pch</key>
<data>
cyrLw0BpoIJ4GRm7/iKXKILeXKs=
T2m0lqPnf4O6sN7np+UXg9ORd+A=
</data>
<key>PrivateHeaders/CTXMAMCoreConstants.h</key>
<data>
Expand All @@ -126,7 +130,7 @@
</data>
<key>PrivateHeaders/CTXMAMCoreUtility.h</key>
<data>
gbTfSzW7NHPqdgMUDz8mzJK1+q8=
dwJRs9IUUcMVySLb/FAt85b/TeY=
</data>
<key>PrivateHeaders/CTXMAMDataStorage.h</key>
<data>
Expand All @@ -142,7 +146,7 @@
</data>
<key>PrivateHeaders/CTXMAMFeatureMgrConfig.h</key>
<data>
rxqxaz6WIfexKZlI8owJP5nL7oQ=
sz8jzFi77cgBTU+7AykypHY97qg=
</data>
<key>PrivateHeaders/CTXMAMFeatureMgrPrivate.h</key>
<data>
Expand Down Expand Up @@ -542,6 +546,13 @@
bBsw0UR4w9JP2aiDSpbHY1s53Mxv9icfV1CeUBFECo4=
</data>
</dict>
<key>Headers/CTXMAMFeaturesV2ServiceManager.h</key>
<dict>
<key>hash2</key>
<data>
1kx21JlfQs9c/M+Ejpr2/EmI2PkvQiybvaMek5UQRe4=
</data>
</dict>
<key>Headers/CTXMAMLogger.h</key>
<dict>
<key>hash2</key>
Expand Down Expand Up @@ -679,7 +690,7 @@
<dict>
<key>hash2</key>
<data>
IKBxk6RBKc8tH/sXqBDbz07jgccWKhmCmCymPvaUp0s=
Mk68+7skYHJGpshHeI2mjVzW/KtQJv3UqOgwLshP+r0=
</data>
</dict>
<key>PrivateHeaders/CTXMAMConfigManagerPrivate.h</key>
Expand Down Expand Up @@ -707,7 +718,7 @@
<dict>
<key>hash2</key>
<data>
A3Sk3VVpWWJBAuhWhR37RtpEoGJSzTjCakqOLxuKcX4=
DeoTlb43v41J1rvzONRKupLmE6N3loDc2FV0LqIwEnI=
</data>
</dict>
<key>PrivateHeaders/CTXMAMCoreConstants.h</key>
Expand All @@ -728,7 +739,7 @@
<dict>
<key>hash2</key>
<data>
SmfCVuf5BTVfV0KripaKcbd59CATpuLCVFsmYrqKM9w=
Fk87b3mA2UMqEcffOgw2mnp80zz4jBIQVYY4HH1KkW4=
</data>
</dict>
<key>PrivateHeaders/CTXMAMDataStorage.h</key>
Expand Down Expand Up @@ -756,7 +767,7 @@
<dict>
<key>hash2</key>
<data>
EuNqqrSSG1limmrOYdws2kudzACG7stsHj3Qt86F/eA=
cMUplYU7rUCqBAQwb7dXc1JLkQ+SYDROLcxZUNkQZ7Q=
</data>
</dict>
<key>PrivateHeaders/CTXMAMFeatureMgrPrivate.h</key>
Expand Down
12 changes: 6 additions & 6 deletions Sources/CTXMAMNetwork.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-x86_64-simulator</string>
<key>LibraryPath</key>
<string>CTXMAMNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>CTXMAMNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>x86_64</string>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Loading

0 comments on commit 85142ed

Please sign in to comment.