Skip to content

Commit

Permalink
Rename Dictionary into RNNDictionary (#7853)
Browse files Browse the repository at this point in the history
  • Loading branch information
lampapos authored Feb 21, 2024
1 parent 889c88f commit 2b309d4
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
5 changes: 0 additions & 5 deletions lib/ios/Dictionary.h

This file was deleted.

11 changes: 0 additions & 11 deletions lib/ios/Dictionary.m

This file was deleted.

4 changes: 2 additions & 2 deletions lib/ios/DictionaryParser.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#import "Dictionary.h"
#import "RNNDictionary.h"
#import <Foundation/Foundation.h>

@interface DictionaryParser : NSObject

+ (Dictionary *)parse:(NSDictionary *)json key:(NSString *)key;
+ (RNNDictionary *)parse:(NSDictionary *)json key:(NSString *)key;

@end
4 changes: 2 additions & 2 deletions lib/ios/DictionaryParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

@implementation DictionaryParser

+ (Dictionary *)parse:(NSDictionary *)json key:(NSString *)key {
return json[key] ? [[Dictionary alloc] initWithValue:json[key]] : [NullDictionary new];
+ (RNNDictionary *)parse:(NSDictionary *)json key:(NSString *)key {
return json[key] ? [[RNNDictionary alloc] initWithValue:json[key]] : [NullDictionary new];
}

@end
4 changes: 2 additions & 2 deletions lib/ios/NullDictionary.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Dictionary.h"
#import "RNNDictionary.h"

@interface NullDictionary : Dictionary
@interface NullDictionary : RNNDictionary

@end
2 changes: 1 addition & 1 deletion lib/ios/RNNBottomTabOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@property(nonatomic, strong) Color *iconColor;
@property(nonatomic, strong) Color *selectedIconColor;
@property(nonatomic, strong) Color *selectedTextColor;
@property(nonatomic, strong) Dictionary *iconInsets;
@property(nonatomic, strong) RNNDictionary *iconInsets;
@property(nonatomic, strong) Color *textColor;
@property(nonatomic, strong) Number *fontSize;
@property(nonatomic, strong) Bool *visible;
Expand Down
5 changes: 5 additions & 0 deletions lib/ios/RNNDictionary.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#import "Param.h"

@interface RNNDictionary : Param

@end
11 changes: 11 additions & 0 deletions lib/ios/RNNDictionary.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#import "RNNDictionary.h"

@interface RNNDictionary ()

@property(nonatomic, retain) NSDictionary *value;

@end

@implementation RNNDictionary

@end

0 comments on commit 2b309d4

Please sign in to comment.