Lines Matching refs:components
109 NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:YES];
110 if (components) {
111 return ([components.scheme isEqualToString:@"exp"] ||
112 [components.scheme isEqualToString:@"exps"] ||
113 [[self class] _isExpoHostedUrlComponents:components]
129 NSURLComponents *components = [NSURLComponents componentsWithURL:uri resolvingAgainstBaseURL:YES];
134 …nment].isDetached && [[EXEnvironment sharedEnvironment] isStandaloneUrlScheme:components.scheme]) {
136 … return [NSString stringWithFormat:@"%@://%@", components.scheme, kEXExpoLegacyDeepLinkSeparator];
138 return [NSString stringWithFormat:@"%@://", components.scheme];
142 NSMutableString* path = [NSMutableString stringWithString:components.path];
153 } else if ([[self class] _isExpoHostedUrlComponents:components]) {
156 components.path = path;
158 components.query = nil;
160 return [components string];
231 NSURLComponents *components = [NSURLComponents componentsWithURL:uri resolvingAgainstBaseURL:YES];
233 …nment].isDetached && [[EXEnvironment sharedEnvironment] isStandaloneUrlScheme:components.scheme]) {
236 … if ([components.scheme isEqualToString:@"https"] || [components.scheme isEqualToString:@"exps"]) {
237 components.scheme = @"exps";
239 components.scheme = @"exp";
243 if ([components.scheme isEqualToString:@"exp"] && [components.port integerValue] == 80) {
244 components.port = nil;
245 } else if ([components.scheme isEqualToString:@"exps"] && [components.port integerValue] == 443) {
246 components.port = nil;
249 return [components URL];
269 + (BOOL)_isExpoHostedUrlComponents: (NSURLComponents *)components
271 if (components.host) {
272 return [components.host isEqualToString:@"exp.host"] ||
273 [components.host isEqualToString:@"expo.io"] ||
274 [components.host isEqualToString:@"exp.direct"] ||
275 [components.host isEqualToString:@"expo.test"] ||
276 [components.host hasSuffix:@".exp.host"] ||
277 [components.host hasSuffix:@".exp.direct"] ||
278 [components.host hasSuffix:@".expo.test"];