Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Get rid of testflight
Browse files Browse the repository at this point in the history
Apple will no longer accept binaries with the Testflight SDK in them so I am
being forced to remove this.
  • Loading branch information
BaseInfinity committed Mar 18, 2015
1 parent 93e0cac commit ca8db70
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 135 deletions.
3 changes: 0 additions & 3 deletions Classes/BookmarksViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#import "CategoryTabBarViewController.h"
#import "GAI.h"
#import "GAIDictionaryBuilder.h"
#import "TestFlight.h"

@implementation BookmarksViewController

Expand Down Expand Up @@ -229,8 +228,6 @@ - (void)viewDidUnload
}

- (void)viewWillAppear:(BOOL)animated {
[TestFlight passCheckpoint:@"Bookmarks View"];

// Show login view if needed.
if (![iFixitAPI sharedInstance].user) {
lvc.view.frame = self.view.frame;
Expand Down
2 changes: 0 additions & 2 deletions Classes/DozukiSelectSiteViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
else
sitesArray = sites;

[TestFlight passCheckpoint:@"Dozuki Site Select"];

if (!searching && simple && indexPath.row == [sitesArray count]) {
DozukiSelectSiteViewController *vc = [[DozukiSelectSiteViewController alloc] initWithSimple:NO];
[self.navigationController pushViewController:vc animated:YES];
Expand Down
2 changes: 0 additions & 2 deletions Classes/GuideImageViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ - (id)initWithUIImage:(UIImage *)i delegate:(id)d {
}

+ (id)zoomWithUIImage:(UIImage *)image delegate:(id)delegate {
[TestFlight passCheckpoint:@"Image Zoom"];

GuideImageViewController *vc = [[GuideImageViewController alloc] initWithUIImage:image delegate:delegate];
vc.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
vc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
Expand Down
2 changes: 0 additions & 2 deletions Classes/GuideViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#import "Guide.h"
#import "GAI.h"
#import "GAIDictionaryBuilder.h"
#import "TestFlight.h"

@implementation GuideViewController

Expand Down Expand Up @@ -46,7 +45,6 @@ - (id)initWithGuideid:(NSNumber *)iGuideid guide:(Guide *)guide {

[UIApplication sharedApplication].idleTimerDisabled = YES;

[TestFlight passCheckpoint:@"Guide View"];

// Analytics
[[[GAI sharedInstance] defaultTracker] send:[[GAIDictionaryBuilder createEventWithCategory:@"Guide"
Expand Down
6 changes: 0 additions & 6 deletions Classes/iFixitAPI.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#import "BookmarksViewController.h"
#import "LoginViewController.h"
#import "Utility.h"
#import "TestFlight.h"

@implementation iFixitAPI

Expand Down Expand Up @@ -311,7 +310,6 @@ - (void)checkSession:(NSDictionary *)results {
}

- (void)loginWithSessionId:(NSString *)sessionId forObject:(id)object withSelector:(SEL)selector {
[TestFlight passCheckpoint:@"OpenID Login"];

// .dozuki.com hosts force SSL, so we match that here. Otherwise, for SSO sites with custom domains,
// SSL doesn't exist so we just use HTTP.
Expand Down Expand Up @@ -341,7 +339,6 @@ - (void)loginWithSessionId:(NSString *)sessionId forObject:(id)object withSelect
}

- (void)loginWithLogin:(NSString *)login andPassword:(NSString *)password forObject:(id)object withSelector:(SEL)selector {
[TestFlight passCheckpoint:@"Login"];

NSString *url = [NSString stringWithFormat:@"https://%@/api/2.0/user/token", [Config currentConfig].host];
NSString *json = [@{@"email" : login, @"password" : password} JSONRepresentation];
Expand Down Expand Up @@ -373,7 +370,6 @@ - (void)loginWithLogin:(NSString *)login andPassword:(NSString *)password forObj
}

- (void)registerWithLogin:(NSString *)login andPassword:(NSString *)password andName:(NSString *)name forObject:(id)object withSelector:(SEL)selector {
[TestFlight passCheckpoint:@"Register"];
NSString *url = [NSString stringWithFormat:@"https://%@/api/2.0/users", [Config currentConfig].host];
NSString *json = [@{@"email" : login, @"username" : name, @"password" : password} JSONRepresentation];

Expand Down Expand Up @@ -461,7 +457,6 @@ - (void)getUserFavoritesForObject:(id)object withSelector:(SEL)selector {
}

- (void)like:(NSNumber *)iGuideid forObject:(id)object withSelector:(SEL)selector {
[TestFlight passCheckpoint:@"Like"];

NSString *url = [NSString stringWithFormat:@"https://%@/api/2.0/user/favorites/guides/%@", [Config currentConfig].host, iGuideid];

Expand Down Expand Up @@ -491,7 +486,6 @@ - (void)like:(NSNumber *)iGuideid forObject:(id)object withSelector:(SEL)selecto
}

- (void)unlike:(NSNumber *)iGuideid forObject:(id)object withSelector:(SEL)selector {
[TestFlight passCheckpoint:@"Unlike"];

NSString *url = [NSString stringWithFormat:@"https://%@/api/2.0/user/favorites/guides/%@", [Config currentConfig].host, iGuideid];

Expand Down
10 changes: 0 additions & 10 deletions Classes/iFixitAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#import "GAI.h"
#import "CategoryTabBarViewController.h"
#import "iFixitSplashScreenViewController.h"
#import "TestFlight.h"
#import "MGSplitViewController.h"
#import <Crashlytics/Crashlytics.h>

Expand Down Expand Up @@ -88,7 +87,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[Config currentConfig].site = ConfigIFixit;

/* Track. */
[self setupTestflight];
[self setupAnalytics];

/* iOS appearance */
Expand Down Expand Up @@ -124,14 +122,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
return YES;
}

- (void)setupTestflight {
if ([Config currentConfig].site == ConfigIFixit) {
[TestFlight takeOff:@"ee879878-6696-470b-af65-61548b796d9f"];
} else if ([Config currentConfig].site == ConfigDozuki) {
[TestFlight takeOff:@"42858e8b-ec98-4e21-9bb7-c49f27732608"];
}
}

- (void)configureAppearance {
if ([UITabBar respondsToSelector:@selector(appearance)]) {
[[UITabBar appearance] setBackgroundImage:[UIImage imageNamed:@"customTabBarBackground.png"]];
Expand Down
1 change: 0 additions & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ platform :ios, '6.0'

pod 'ZBarSDK', '~> 1.3'
pod 'GoogleAnalytics-iOS-SDK', '~> 3.0'
pod 'TestFlightSDK', '~> 3.0'
pod 'CrashlyticsFramework', '~> 2.2'
114 changes: 6 additions & 108 deletions iFixit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1724,43 +1724,9 @@
"$(PROJECT_DIR)",
);
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"-ObjC",
"-l\"GoogleAnalyticsServices\"",
"-l\"Pods-CrashlyticsFramework\"",
"-l\"Pods-GoogleAnalytics-iOS-SDK\"",
"-l\"Pods-TestFlightSDK\"",
"-l\"Pods-ZBarSDK\"",
"-l\"TestFlight\"",
"-l\"iconv\"",
"-l\"sqlite3\"",
"-l\"z\"",
"-framework",
"\"AVFoundation\"",
"-framework",
"\"CFNetwork\"",
"-framework",
"\"CoreData\"",
"-framework",
"\"CoreGraphics\"",
"-framework",
"\"CoreMedia\"",
"-framework",
"\"CoreVideo\"",
"-framework",
"\"Crashlytics\"",
"-framework",
"\"Foundation\"",
"-framework",
"\"QuartzCore\"",
"-framework",
"\"SystemConfiguration\"",
"-framework",
"\"UIKit\"",
"$(inherited)",
);
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = iFixit;
PROVISIONING_PROFILE = "5c65c83d-9936-4a62-9dda-9c8196bdb654";
PROVISIONING_PROFILE = "";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = NO;
VALID_ARCHS = "arm64 armv7 armv7s";
Expand Down Expand Up @@ -1798,43 +1764,9 @@
"$(PROJECT_DIR)",
);
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"-ObjC",
"-l\"GoogleAnalyticsServices\"",
"-l\"Pods-CrashlyticsFramework\"",
"-l\"Pods-GoogleAnalytics-iOS-SDK\"",
"-l\"Pods-TestFlightSDK\"",
"-l\"Pods-ZBarSDK\"",
"-l\"TestFlight\"",
"-l\"iconv\"",
"-l\"sqlite3\"",
"-l\"z\"",
"-framework",
"\"AVFoundation\"",
"-framework",
"\"CFNetwork\"",
"-framework",
"\"CoreData\"",
"-framework",
"\"CoreGraphics\"",
"-framework",
"\"CoreMedia\"",
"-framework",
"\"CoreVideo\"",
"-framework",
"\"Crashlytics\"",
"-framework",
"\"Foundation\"",
"-framework",
"\"QuartzCore\"",
"-framework",
"\"SystemConfiguration\"",
"-framework",
"\"UIKit\"",
"$(inherited)",
);
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = iFixit;
PROVISIONING_PROFILE = "5c65c83d-9936-4a62-9dda-9c8196bdb654";
PROVISIONING_PROFILE = "";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VALID_ARCHS = "arm64 armv7 armv7s";
Expand Down Expand Up @@ -1968,43 +1900,9 @@
"$(PROJECT_DIR)",
);
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"-ObjC",
"-l\"GoogleAnalyticsServices\"",
"-l\"Pods-CrashlyticsFramework\"",
"-l\"Pods-GoogleAnalytics-iOS-SDK\"",
"-l\"Pods-TestFlightSDK\"",
"-l\"Pods-ZBarSDK\"",
"-l\"TestFlight\"",
"-l\"iconv\"",
"-l\"sqlite3\"",
"-l\"z\"",
"-framework",
"\"AVFoundation\"",
"-framework",
"\"CFNetwork\"",
"-framework",
"\"CoreData\"",
"-framework",
"\"CoreGraphics\"",
"-framework",
"\"CoreMedia\"",
"-framework",
"\"CoreVideo\"",
"-framework",
"\"Crashlytics\"",
"-framework",
"\"Foundation\"",
"-framework",
"\"QuartzCore\"",
"-framework",
"\"SystemConfiguration\"",
"-framework",
"\"UIKit\"",
"$(inherited)",
);
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = iFixit;
PROVISIONING_PROFILE = "5c65c83d-9936-4a62-9dda-9c8196bdb654";
PROVISIONING_PROFILE = "";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = NO;
VALID_ARCHS = "arm64 armv7 armv7s";
Expand Down
1 change: 0 additions & 1 deletion iFixit_Prefix.pch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "TestFlight.h"
#endif


Expand Down

0 comments on commit ca8db70

Please sign in to comment.