Skip to content

Commit

Permalink
Add "predicateArguments" parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Apr 21, 2018
1 parent f20f117 commit 07455a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ios/TiLivequeryQueryProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ - (id)_initWithPageContext:(id<TiEvaluator>)context args:(NSArray *)args
NSDictionary *params = [args objectAtIndex:0];
NSString *className = [params objectForKey:@"className"];
NSString *predicate = [params objectForKey:@"predicate"];
NSString *predicateArguments = [params objectForKey:@"predicateArguments"];

NSString *predicateFormat = [NSString stringWithFormat:predicate, predicateArguments];

_query = [PFQuery queryWithClassName:className predicate:predicate ? [NSPredicate predicateWithFormat:predicate] : nil];
_query = [PFQuery queryWithClassName:className predicate:predicate ? [NSPredicate predicateWithFormat:predicateFormat] : nil];
}

return self;
Expand Down
2 changes: 1 addition & 1 deletion ios/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.0.0
version: 1.0.1
apiversion: 2
architectures: armv7 arm64 i386 x86_64
description: titanium-parse-live-query
Expand Down

0 comments on commit 07455a8

Please sign in to comment.