Skip to content

Commit f93e9ab

Browse files
authored
moving methods from internal headers (#440)
1 parent e4398e5 commit f93e9ab

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Leanplum-SDK/Classes/Features/Actions/LPActionContext-Internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ NS_ASSUME_NONNULL_BEGIN
3535
@property (nonatomic, strong) LPContextualValues *contextualValues;
3636

3737
- (void)maybeDownloadFiles;
38-
- (id)objectNamed:(NSString *)name;
3938
- (void)preventRealtimeUpdating;
4039
+ (void)sortByPriority:(NSMutableArray *)actionContexts;
4140

Leanplum-SDK/Classes/Features/Variables/LPVar-Internal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
1919
@property (readonly) BOOL isInternal;
2020
@property (readonly, strong) NSString *name;
2121
@property (readonly, strong) NSArray *nameComponents;
22-
@property (readonly, strong, nullable) NSString *stringValue;
23-
@property (readonly, strong, nullable) NSNumber *numberValue;
2422
@property (readonly) BOOL hadStarted;
25-
@property (readonly, strong, nullable) id value;
26-
@property (readonly, strong, nullable) id defaultValue;
2723
@property (readonly, strong) NSString *kind;
2824
@property (readonly, strong) NSMutableArray *fileReadyBlocks;
2925
@property (readonly, strong) NSMutableArray *valueChangedBlocks;

Leanplum-SDK/Classes/LPActionContext.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ NS_SWIFT_NAME(ActionContext)
4141
*/
4242
@property (readonly, strong, nullable) NSDictionary *args;
4343

44+
- (id)objectNamed:(NSString *)name
45+
NS_SWIFT_NAME(object(name:));
46+
4447
- (NSString *)actionName
4548
NS_SWIFT_NAME(action());
4649

Leanplum-SDK/Classes/LPVar.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,16 @@ NS_SWIFT_NAME(VarDelegate)
5252
*/
5353
NS_SWIFT_NAME(Var)
5454
@interface LPVar : NSObject
55+
56+
@property (readonly, strong, nullable) NSString *stringValue;
57+
@property (readonly, strong, nullable) NSNumber *numberValue;
58+
@property (readonly, strong, nullable) id value;
59+
@property (readonly, strong, nullable) id defaultValue;
60+
5561
/**
5662
* @{
5763
* Defines a {@link LPVar}
5864
*/
59-
6065
- (instancetype)init NS_UNAVAILABLE;
6166

6267
+ (LPVar *)define:(NSString *)name

0 commit comments

Comments
 (0)