Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
ship it
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Apr 3, 2014
1 parent 3f7bd43 commit 841f51f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion HBLOLinkOpenerHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ - (NSURL *)openURL:(NSURL *)url sender:(NSString *)sender {
} else if ([url.host isEqualToString:@"www.facebook.com"] && url.pathComponents.count == 2 && [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fb://"]]) {
return [NSURL URLWithString:[@"fb://profileForLinkOpener/" stringByAppendingString:url.pathComponents[1]]];
} else if (([url.host isEqualToString:@"imdb.com"] || [url.host isEqualToString:@"www.imdb.com"]) && url.pathComponents.count == 3 && [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"imdb://"]]) {
// Edited by bensge to add imdb app support
return [NSURL URLWithString:[@"imdb:///title/" stringByAppendingString:url.pathComponents[2]]];
} else if (([url.host hasPrefix:@"ebay.co"] || [url.host hasPrefix:@"www.ebay.co"]) && url.pathComponents.count == 4 && [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"ebay://"]]) {
return [NSURL URLWithString:[@"ebay://launch?itm=" stringByAppendingString:url.pathComponents[3]]];
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
TARGET = iphone:clang
ARCHS = armv7 arm64

include theos/makefiles/common.mk

Expand Down
2 changes: 1 addition & 1 deletion Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
return NO;
}

NSDictionary *json = [output objectFromJSONData];
NSDictionary *json = output.objectFromJSONData;

if (json && [json objectForKey:@"id"]) {
return %orig(application, [NSURL URLWithString:[@"fb://profile/" stringByAppendingString:[json objectForKey:@"id"]]], sourceApp, annotation);
Expand Down
8 changes: 4 additions & 4 deletions control
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Package: org.thebigboss.linkopener
Name: LinkOpener
Pre-Depends: firmware (>= 4.3)
Pre-Depends: firmware (>= 5.0)
Depends: mobilesubstrate, ws.hbang.libopener (>= 2.0)
Version: 1.2.3
Version: 1.3
Architecture: iphoneos-arm
Description: Open web pages in their apps
Maintainer: HASHBANG Productions <linkopener@hbang.ws>
Author: HASHBANG Productions <linkopener@hbang.ws>
Maintainer: HASHBANG Productions <support@hbang.ws>
Author: HASHBANG Productions <support@hbang.ws>
Section: Tweaks

0 comments on commit 841f51f

Please sign in to comment.