Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Cleanup takeOff and implement the other methods

  • Loading branch information...
commit ea69152ff8c82fe799f9d7caddf3c3f33587d80e 1 parent 434496e
Evan Borgstrom authored November 18, 2011
2  Classes/CaFatboxTestflightModule.h
@@ -10,6 +10,4 @@
10 10
 {
11 11
 }
12 12
 
13  
-//@property(nonatomic,readwrite,assign) NSString* exampleProp;
14  
-
15 13
 @end
23  Classes/CaFatboxTestflightModule.m
@@ -89,15 +89,24 @@ -(void)_listenerRemoved:(NSString *)type count:(int)count
89 89
 #pragma Public APIs
90 90
 
91 91
 -(void)takeOff:(id)args {
92  
-	// example method
93  
- //  NSString *value = [TiUtils stringValue:args];
94  
-  NSString *value = [args objectAtIndex:0];
95  
-  NSLog(@"[INFO] %@ ",value);
96  
-  [TestFlight takeOff:value];
  92
+    NSString *token = [args objectAtIndex:0];
  93
+    NSLog(@"[INFO] TestFlight takeOff (%@)", token);
  94
+    [TestFlight takeOff:token];
97 95
 }
98 96
 
99  
--(void)explode:(id)args {
100  
-  [NSException raise:@"Exploding on purpose" format:@"explodinator"];
  97
+-(void)testException:(id)args {
  98
+     [NSException raise:@"Test" format:@"Testing Exceptions with TestFlight"];
  99
+}
  100
+
  101
+-(void)passCheckpoint:(id)args {
  102
+    NSString *checkPoint = [args objectAtIndex:0];
  103
+    NSLog(@"[INFO] TestFlight Checkpoint: (%@)", checkPoint);
  104
+    [TestFlight passCheckpoint:checkPoint];
  105
+}
  106
+
  107
+-(void)launchFeedback:(id)args {
  108
+    NSLog(@"[INFO] TestFlight opening feedback view");
  109
+    [TestFlight openFeedbackView];
101 110
 }
102 111
 
103 112
 @end

0 notes on commit ea69152

Please sign in to comment.
Something went wrong with that request. Please try again.