{
"aps": {
"alert": {
"body": "Test message",
"title": "Optional title",
"subtitle": "Optional subtitle"
},
"content-available": 1
}
- WordPress-iOS project must build and run all targets correctly.
- All dependencies must be using the version specified in the original Podfile.
- All work must be based on WordPress-iOS repository version
72862f6651bf5dbe77235e836607bc74717f7d21
.
The WordPress-iOS app repository is: https://github.com/wordpress-mobile/WordPress-iOS
Fork or clone and create a branch for this work.
Go through the existing Podfile. For each pod listed:
See your friends!
The application should load the friends list from: http://www.radfaces.com/public/radfaces.json This JSON data has the following format:
[{
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
predicate = [NSPredicate predicateWithFormat:@"distanceToLocation:fromLocation:(%@, %@) =< %@", | |
toLocation, | |
fromLocation, | |
expectedDistance | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expression = [NSExpression expressionForFunction:@"distanceToLocation:fromLocation:" | |
arguments:@[ | |
[NSExpression expressionForConstantValue:to ], | |
[NSExpression expressionForConstantValue:from ] | |
] | |
]; | |
result = (NSNumber *)[expression expressionValueWithObject:nil context:nil]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (__dtrace_isenabled$http_cache$response_from_cache$v1() != 0){ | |
__dtrace_probe$http_cache$response_host_uri_status$v1$63686172202a$63686172202a$696e74(host.UTF8String, path.UTF8String, cached); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ProbedURLCache.h" | |
#import "http_cache.h" | |
@implementation ProbedURLCache | |
- (nullable NSCachedURLResponse *)cachedResponseForRequest:(NSURLRequest *)request { | |
NSCachedURLResponse *result = nil; | |
int cached = 0; | |
result = [super cachedResponseForRequest:request]; | |
if (result != nil){ | |
cached = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ProbedURLCache.h" | |
@implementation ProbedURLCache | |
- (nullable NSCachedURLResponse *)cachedResponseForRequest:(NSURLRequest *)request { | |
return [super cachedResponseForRequest:request]; | |
} | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider http_cache { | |
probe response_from_cache(char *, char *, int); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider http_cache { | |
}; |
NewerOlder