feat: switch rnd env

xiaoyi 2021-08-04 11:12:15 +08:00
parent c23c23f98f
commit b928df7e14
11 changed files with 28 additions and 19 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,17 +0,0 @@
//
// TDSCommonEnvironment.h
// TDSCommon
//
// Created by Bottle K on 2021/1/7.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface TDSCommonEnvironment : NSObject
+ (bool)isCurrentRND;
@end
NS_ASSUME_NONNULL_END

View File

@ -21,6 +21,8 @@ NS_ASSUME_NONNULL_BEGIN
+ (void)preferredLanguage:(NSNumber *)language; + (void)preferredLanguage:(NSNumber *)language;
+ (void)hostToBeReplaced:(NSString*)host replacedHost:(NSString*) replaceHost;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,24 @@
//
// TDSHostReplaceUtil.h
// TapCommonSDK
//
// Created by Bottle K on 2021/8/3.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface TDSHostReplaceUtil : NSObject
+ (instancetype)shareInstance;
- (void)addReplacedHostPair:(NSString *)hostToBeReplaced replacedHost:(NSString *)replacedHost;
- (void)clearReplacedHostPair:(NSString *)hostToBeReplaced;
- (void)clear;
- (NSString *)getReplacedHost:(NSString *)originalHost;
@end
NS_ASSUME_NONNULL_END

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 59ad97b1f2e2f4bda9157eca6acec44c guid: f6c2a857336574e7caaac61273fff4e6
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}
userData: userData:

View File

@ -31,7 +31,6 @@ FOUNDATION_EXPORT const unsigned char TapCommonSDKVersionString[];
#import <TapCommonSDK/TDSAutoLayout.h> #import <TapCommonSDK/TDSAutoLayout.h>
#import <TapCommonSDK/TDSButton.h> #import <TapCommonSDK/TDSButton.h>
#import <TapCommonSDK/TDSCommonDialogView.h> #import <TapCommonSDK/TDSCommonDialogView.h>
#import <TapCommonSDK/TDSCommonEnvironment.h>
#import <TapCommonSDK/EngineBridgeError.h> #import <TapCommonSDK/EngineBridgeError.h>
#import <TapCommonSDK/TDSBridge.h> #import <TapCommonSDK/TDSBridge.h>
@ -112,3 +111,4 @@ FOUNDATION_EXPORT const unsigned char TapCommonSDKVersionString[];
#import <TapCommonSDK/TapLoginLogManager.h> #import <TapCommonSDK/TapLoginLogManager.h>
#import <TapCommonSDK/TapPropertiesHolder.h> #import <TapCommonSDK/TapPropertiesHolder.h>
#import <TapCommonSDK/TDSHostReplaceUtil.h>

Binary file not shown.

Binary file not shown.