This file contains 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
#!/bin/bash | |
# | |
# testflightapp.com tokens | |
# This one is per user (and is August's) | |
API_TOKEN="XXX" | |
TEAM_TOKEN="XXX" | |
PRODUCT_NAME="myAppName" |
This file contains 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
-(void)enableAccessibilityForIdentifier:(NSString *)identifier { | |
//This is only used to help with KIF testing, so we don't need/want them in production | |
#ifdef DEBUG | |
[self setValue:identifier forKey:@"accessibilityIdentifier"]; | |
self.accessibilityLabel = identifier; | |
self.isAccessibilityElement = TRUE; | |
#endif | |
} |
This file contains 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
-(void)stuffText:(NSString*)text intoViewWithAccessibilityLabel:(NSString*)label { | |
UITextField *field = (UITextField*)[tester waitForViewWithAccessibilityLabel:label]; | |
field.text = text; | |
} | |
-(void)resetPersistentStore { | |
RKManagedObjectStore *objectStore = [[JSObjection defaultInjector] getObject:[RKManagedObjectStore class]]; | |
NSError *error = nil; | |
[objectStore resetPersistentStores:&error]; | |
if(error) { |
This file contains 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
- (BOOL)accessibilityElementExists:(NSString *)label { | |
/* OK, so KIF doesn't have a built in "optional" test, nor does it have a friendly "If element exists". | |
* It was possible to wait for an element to exist and catch the exception, however if the element didn't exist the test would fail. | |
* This code is almost a direct copy/paste from UIAccessibilityElement-KIFAdditions, however it doesn't use errors | |
* - Max Chuquimia | |
*/ | |
__block UIView *view = nil; | |
BOOL showing = TRUE; |
This file contains 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
// The CFStoryboard header just declares that CFStoryboard extends UIStoryboard | |
#import <UIKit/UIKit.h> | |
@interface CFStoryboard : UIStoryboard | |
@end |
This file contains 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 "Objection.h" | |
#import "CFStoryboard.h" | |
@implementation CFStoryboard | |
- (id)instantiateViewControllerWithIdentifier:(NSString *)identifier | |
{ | |
NSLog(@"Injecting objects into UIViewController with identifier %@", identifier); | |
UIViewController *controller = [super instantiateViewControllerWithIdentifier:identifier]; | |
[[JSObjection defaultInjector] injectDependencies:controller]; |
This file contains 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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
JSObjectionInjector *injector = [JSObjection createInjector]; | |
[JSObjection setDefaultInjector:injector]; | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
self.window.backgroundColor = [UIColor whiteColor]; | |
UIStoryboard *storyboard = [CFStoryboard storyboardWithName:@"Main" bundle:nil]; | |
self.window.rootViewController = [storyboard instantiateViewControllerWithIdentifier:@"Splash"]; | |
[self.window makeKeyAndVisible]; |
This file contains 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
# | |
# | |
# This is a sample newrelic_plugin.yml file. Please move this file | |
# to the following location if it is not already there: | |
# | |
# ./config/newrelic_plugin.yml | |
# | |
# Where the current directory is the directory where your main program resides and is your current | |
# directory when you run the main program. | |
# |
This file contains 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
# Please make sure to update the license_key information with the license key for your New Relic | |
# account. | |
# | |
# This configuration file holds examples for all plugins. You only need to uncomment | |
# the lines for the product you are using. | |
# | |
# Example configuration is shown below. Uncomment (remove #) the needed lines for | |
# your environment. | |
# | |
# |
This file contains 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
# | |
# This is provided as an example of a Ubuntu style upstart script | |
# You'll want to give it a more useful name | |
# | |
# pivotal_agent - myservice job file | |
description "Pivotal Monitoring Agent for New Relic" | |
author "Pivotal - https://github.com/gopivotal/newrelic_pivotal_agent/" | |
# Change this to the user running the agent |
NewerOlder