summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-08-22 11:13:42 -0400
committerStarla Insigna <starla4444@gmail.com>2011-08-22 11:13:42 -0400
commit3caffadb393cada7d9bbc433e0c96e6650ed873a (patch)
tree1c2f89dfe20dc11dfe945683c8b1bc3190069fc1
parent6906cf0ce4f8266173d67a7b9fccc56747d5d618 (diff)
downloadcartcollect-3caffadb393cada7d9bbc433e0c96e6650ed873a.tar.gz
cartcollect-3caffadb393cada7d9bbc433e0c96e6650ed873a.tar.bz2
cartcollect-3caffadb393cada7d9bbc433e0c96e6650ed873a.zip
Integrated TestFlight SDK
See https://testflightapp.com/sdk/doc/
-rwxr-xr-xCartographic.xcodeproj/project.pbxproj118
-rwxr-xr-xClasses/Cart_CollectAppDelegate.m4
-rwxr-xr-xClasses/MainMenuLayer.h1
-rwxr-xr-xClasses/MainMenuLayer.m11
-rw-r--r--Resources/feedback.pngbin0 -> 2621 bytes
-rw-r--r--Resources/feedback2.pngbin0 -> 2924 bytes
-rw-r--r--TestFlight.h35
-rw-r--r--libTestFlight.abin0 -> 2413716 bytes
8 files changed, 164 insertions, 5 deletions
diff --git a/Cartographic.xcodeproj/project.pbxproj b/Cartographic.xcodeproj/project.pbxproj index efe08b2..945a239 100755 --- a/Cartographic.xcodeproj/project.pbxproj +++ b/Cartographic.xcodeproj/project.pbxproj
@@ -101,6 +101,9 @@
101 6C0C140E13F1C3EC003A31B2 /* ValuableObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C140D13F1C3EC003A31B2 /* ValuableObject.m */; }; 101 6C0C140E13F1C3EC003A31B2 /* ValuableObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C140D13F1C3EC003A31B2 /* ValuableObject.m */; };
102 6C0C141113F2099B003A31B2 /* Cart.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C141013F2099B003A31B2 /* Cart.m */; }; 102 6C0C141113F2099B003A31B2 /* Cart.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C141013F2099B003A31B2 /* Cart.m */; };
103 6C0C141413F20E98003A31B2 /* GameMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C141313F20E98003A31B2 /* GameMode.m */; }; 103 6C0C141413F20E98003A31B2 /* GameMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C141313F20E98003A31B2 /* GameMode.m */; };
104 6C19F15B14018EE900F9CCD3 /* libTestFlight.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6C19F15A14018EE900F9CCD3 /* libTestFlight.a */; };
105 6C19F1631401917500F9CCD3 /* feedback.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C19F1621401917500F9CCD3 /* feedback.png */; };
106 6C19F1651401917900F9CCD3 /* feedback2.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C19F1641401917900F9CCD3 /* feedback2.png */; };
104 6C29041013EAEB590032DA0F /* TutorialBubble.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C29040F13EAEB590032DA0F /* TutorialBubble.m */; }; 107 6C29041013EAEB590032DA0F /* TutorialBubble.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C29040F13EAEB590032DA0F /* TutorialBubble.m */; };
105 6C29041213EAEC8A0032DA0F /* framestuff.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C29041113EAEC8A0032DA0F /* framestuff.png */; }; 108 6C29041213EAEC8A0032DA0F /* framestuff.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C29041113EAEC8A0032DA0F /* framestuff.png */; };
106 6C39CFE013FC2708002B21AF /* tutorial.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C39CFDF13FC2708002B21AF /* tutorial.png */; }; 109 6C39CFE013FC2708002B21AF /* tutorial.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C39CFDF13FC2708002B21AF /* tutorial.png */; };
@@ -406,6 +409,10 @@
406 6C0C141013F2099B003A31B2 /* Cart.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Cart.m; sourceTree = "<group>"; }; 409 6C0C141013F2099B003A31B2 /* Cart.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Cart.m; sourceTree = "<group>"; };
407 6C0C141213F20E98003A31B2 /* GameMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GameMode.h; sourceTree = "<group>"; }; 410 6C0C141213F20E98003A31B2 /* GameMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GameMode.h; sourceTree = "<group>"; };
408 6C0C141313F20E98003A31B2 /* GameMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GameMode.m; sourceTree = "<group>"; }; 411 6C0C141313F20E98003A31B2 /* GameMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GameMode.m; sourceTree = "<group>"; };
412 6C19F15A14018EE900F9CCD3 /* libTestFlight.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libTestFlight.a; sourceTree = "<group>"; };
413 6C19F15D14018FDF00F9CCD3 /* TestFlight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestFlight.h; sourceTree = "<group>"; };
414 6C19F1621401917500F9CCD3 /* feedback.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = feedback.png; sourceTree = "<group>"; };
415 6C19F1641401917900F9CCD3 /* feedback2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = feedback2.png; sourceTree = "<group>"; };
409 6C29040E13EAEB590032DA0F /* TutorialBubble.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TutorialBubble.h; sourceTree = "<group>"; }; 416 6C29040E13EAEB590032DA0F /* TutorialBubble.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TutorialBubble.h; sourceTree = "<group>"; };
410 6C29040F13EAEB590032DA0F /* TutorialBubble.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TutorialBubble.m; sourceTree = "<group>"; }; 417 6C29040F13EAEB590032DA0F /* TutorialBubble.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TutorialBubble.m; sourceTree = "<group>"; };
411 6C29041113EAEC8A0032DA0F /* framestuff.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = framestuff.png; sourceTree = "<group>"; }; 418 6C29041113EAEC8A0032DA0F /* framestuff.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = framestuff.png; sourceTree = "<group>"; };
@@ -622,6 +629,7 @@
622 506EDBA5102F4C9F00A389B3 /* AVFoundation.framework in Frameworks */, 629 506EDBA5102F4C9F00A389B3 /* AVFoundation.framework in Frameworks */,
623 506EE1A91030508200A389B3 /* libcocos2d libraries.a in Frameworks */, 630 506EE1A91030508200A389B3 /* libcocos2d libraries.a in Frameworks */,
624 3F8395D113D746200059AEE8 /* libsqlite3.0.dylib in Frameworks */, 631 3F8395D113D746200059AEE8 /* libsqlite3.0.dylib in Frameworks */,
632 6C19F15B14018EE900F9CCD3 /* libTestFlight.a in Frameworks */,
625 ); 633 );
626 runOnlyForDeploymentPostprocessing = 0; 634 runOnlyForDeploymentPostprocessing = 0;
627 }; 635 };
@@ -656,7 +664,7 @@
656 children = ( 664 children = (
657 504DFC8A10AF177C006D82FE /* LICENSE.cocos2d */, 665 504DFC8A10AF177C006D82FE /* LICENSE.cocos2d */,
658 504DFC8B10AF177C006D82FE /* LICENSE.cocosdenshion */, 666 504DFC8B10AF177C006D82FE /* LICENSE.cocosdenshion */,
659 506EDAA3102F461B00A389B3 /* cocos2d Sources */, 667 506EDAA3102F461B00A389B3 /* Libraries */,
660 2D500B1D0D5A766B00DBA0E3 /* Classes */, 668 2D500B1D0D5A766B00DBA0E3 /* Classes */,
661 29B97315FDCFA39411CA2CEA /* Other Sources */, 669 29B97315FDCFA39411CA2CEA /* Other Sources */,
662 50F4144210692EE7002A0D5E /* Resources */, 670 50F4144210692EE7002A0D5E /* Resources */,
@@ -678,6 +686,7 @@
678 29B97323FDCFA39411CA2CEA /* Frameworks */ = { 686 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
679 isa = PBXGroup; 687 isa = PBXGroup;
680 children = ( 688 children = (
689 6C19F15A14018EE900F9CCD3 /* libTestFlight.a */,
681 3F8395D013D746200059AEE8 /* libsqlite3.0.dylib */, 690 3F8395D013D746200059AEE8 /* libsqlite3.0.dylib */,
682 DCCBF1B60F6022AE0040855A /* CoreGraphics.framework */, 691 DCCBF1B60F6022AE0040855A /* CoreGraphics.framework */,
683 DCCBF1B80F6022AE0040855A /* Foundation.framework */, 692 DCCBF1B80F6022AE0040855A /* Foundation.framework */,
@@ -765,6 +774,8 @@
765 3F7D0EC713D8E6B000B6CE14 /* Buttons */ = { 774 3F7D0EC713D8E6B000B6CE14 /* Buttons */ = {
766 isa = PBXGroup; 775 isa = PBXGroup;
767 children = ( 776 children = (
777 6C19F1641401917900F9CCD3 /* feedback2.png */,
778 6C19F1621401917500F9CCD3 /* feedback.png */,
768 6C39CFE113FC2713002B21AF /* tutorial2.png */, 779 6C39CFE113FC2713002B21AF /* tutorial2.png */,
769 6C39CFDF13FC2708002B21AF /* tutorial.png */, 780 6C39CFDF13FC2708002B21AF /* tutorial.png */,
770 3F7D0F4813D8F17C00B6CE14 /* highscores.png */, 781 3F7D0F4813D8F17C00B6CE14 /* highscores.png */,
@@ -793,16 +804,17 @@
793 path = libs/cocoslive; 804 path = libs/cocoslive;
794 sourceTree = "<group>"; 805 sourceTree = "<group>";
795 }; 806 };
796 506EDAA3102F461B00A389B3 /* cocos2d Sources */ = { 807 506EDAA3102F461B00A389B3 /* Libraries */ = {
797 isa = PBXGroup; 808 isa = PBXGroup;
798 children = ( 809 children = (
810 6C19F15D14018FDF00F9CCD3 /* TestFlight.h */,
799 E02BBB19126CC2F5006E46A2 /* cocos2d */, 811 E02BBB19126CC2F5006E46A2 /* cocos2d */,
800 507ED67411C63903002ED3FC /* CocosDenshion */, 812 507ED67411C63903002ED3FC /* CocosDenshion */,
801 504DFC4110AF1557006D82FE /* cocoslive */, 813 504DFC4110AF1557006D82FE /* cocoslive */,
802 50F41306106926B2002A0D5E /* FontLabel */, 814 50F41306106926B2002A0D5E /* FontLabel */,
803 E0ECA41F134E5F2B00E7A048 /* TouchJSON */, 815 E0ECA41F134E5F2B00E7A048 /* TouchJSON */,
804 ); 816 );
805 name = "cocos2d Sources"; 817 name = Libraries;
806 sourceTree = "<group>"; 818 sourceTree = "<group>";
807 }; 819 };
808 507ED67411C63903002ED3FC /* CocosDenshion */ = { 820 507ED67411C63903002ED3FC /* CocosDenshion */ = {
@@ -1363,6 +1375,8 @@
1363 6CC89DD913F2F4E6003704F7 /* Entitlements.plist in Resources */, 1375 6CC89DD913F2F4E6003704F7 /* Entitlements.plist in Resources */,
1364 6C39CFE013FC2708002B21AF /* tutorial.png in Resources */, 1376 6C39CFE013FC2708002B21AF /* tutorial.png in Resources */,
1365 6C39CFE213FC2713002B21AF /* tutorial2.png in Resources */, 1377 6C39CFE213FC2713002B21AF /* tutorial2.png in Resources */,
1378 6C19F1631401917500F9CCD3 /* feedback.png in Resources */,
1379 6C19F1651401917900F9CCD3 /* feedback2.png in Resources */,
1366 ); 1380 );
1367 runOnlyForDeploymentPostprocessing = 0; 1381 runOnlyForDeploymentPostprocessing = 0;
1368 }; 1382 };
@@ -1544,6 +1558,10 @@
1544 INFOPLIST_FILE = Resources/Info.plist; 1558 INFOPLIST_FILE = Resources/Info.plist;
1545 INFOPLIST_PREFIX_HEADER = Versioning.h; 1559 INFOPLIST_PREFIX_HEADER = Versioning.h;
1546 INFOPLIST_PREPROCESS = YES; 1560 INFOPLIST_PREPROCESS = YES;
1561 LIBRARY_SEARCH_PATHS = (
1562 "$(inherited)",
1563 "\"$(SRCROOT)\"",
1564 );
1547 OTHER_LDFLAGS = ( 1565 OTHER_LDFLAGS = (
1548 "-all_load", 1566 "-all_load",
1549 "-ObjC", 1567 "-ObjC",
@@ -1570,6 +1588,10 @@
1570 INFOPLIST_FILE = Resources/Info.plist; 1588 INFOPLIST_FILE = Resources/Info.plist;
1571 INFOPLIST_PREFIX_HEADER = Versioning.h; 1589 INFOPLIST_PREFIX_HEADER = Versioning.h;
1572 INFOPLIST_PREPROCESS = YES; 1590 INFOPLIST_PREPROCESS = YES;
1591 LIBRARY_SEARCH_PATHS = (
1592 "$(inherited)",
1593 "\"$(SRCROOT)\"",
1594 );
1573 OTHER_LDFLAGS = ( 1595 OTHER_LDFLAGS = (
1574 "-all_load", 1596 "-all_load",
1575 "-ObjC", 1597 "-ObjC",
@@ -1617,6 +1639,92 @@
1617 }; 1639 };
1618 name = Release; 1640 name = Release;
1619 }; 1641 };
1642 6C19F16C1401944500F9CCD3 /* Ad-Hoc */ = {
1643 isa = XCBuildConfiguration;
1644 buildSettings = {
1645 ALWAYS_SEARCH_USER_PATHS = NO;
1646 ARCHS = "$(ARCHS_STANDARD_32_BIT)";
1647 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1648 COPY_PHASE_STRIP = NO;
1649 GCC_C_LANGUAGE_STANDARD = c99;
1650 GCC_PREPROCESSOR_DEFINITIONS = (
1651 NS_BLOCK_ASSERTIONS,
1652 NDEBUG,
1653 );
1654 "GCC_THUMB_SUPPORT[arch=armv6]" = NO;
1655 "GCC_THUMB_SUPPORT[arch=armv7]" = YES;
1656 GCC_UNROLL_LOOPS = YES;
1657 GCC_VERSION = com.apple.compilers.llvmgcc42;
1658 GCC_WARN_ABOUT_RETURN_TYPE = YES;
1659 GCC_WARN_UNUSED_VARIABLE = YES;
1660 IPHONEOS_DEPLOYMENT_TARGET = 3.0;
1661 SDKROOT = iphoneos;
1662 STRIP_INSTALLED_PRODUCT = NO;
1663 TARGETED_DEVICE_FAMILY = "1,2";
1664 };
1665 name = "Ad-Hoc";
1666 };
1667 6C19F16D1401944500F9CCD3 /* Ad-Hoc */ = {
1668 isa = XCBuildConfiguration;
1669 buildSettings = {
1670 ALTERNATE_MODE = Entitlements.plist;
1671 ALWAYS_SEARCH_USER_PATHS = YES;
1672 CODE_SIGN_IDENTITY = "";
1673 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1674 COPY_PHASE_STRIP = NO;
1675 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1676 GCC_PRECOMPILE_PREFIX_HEADER = YES;
1677 GCC_PREFIX_HEADER = Cart_Collect_Prefix.pch;
1678 GCC_PREPROCESSOR_DEFINITIONS = (
1679 ADHOC,
1680 NS_BLOCK_ASSERTIONS,
1681 NDEBUG,
1682 );
1683 GCC_TREAT_WARNINGS_AS_ERRORS = NO;
1684 HEADER_SEARCH_PATHS = libs;
1685 INFOPLIST_FILE = Resources/Info.plist;
1686 INFOPLIST_PREFIX_HEADER = Versioning.h;
1687 INFOPLIST_PREPROCESS = YES;
1688 LIBRARY_SEARCH_PATHS = (
1689 "$(inherited)",
1690 "\"$(SRCROOT)\"",
1691 );
1692 OTHER_LDFLAGS = (
1693 "-all_load",
1694 "-ObjC",
1695 );
1696 PRODUCT_NAME = Cartographic;
1697 TARGETED_DEVICE_FAMILY = 1;
1698 WARNING_CFLAGS = "-Wall";
1699 };
1700 name = "Ad-Hoc";
1701 };
1702 6C19F16E1401944500F9CCD3 /* Ad-Hoc */ = {
1703 isa = XCBuildConfiguration;
1704 buildSettings = {
1705 ALWAYS_SEARCH_USER_PATHS = YES;
1706 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1707 COPY_PHASE_STRIP = YES;
1708 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1709 GCC_PREPROCESSOR_DEFINITIONS = "";
1710 GCC_TREAT_WARNINGS_AS_ERRORS = NO;
1711 HEADER_SEARCH_PATHS = (
1712 libs/Chipmunk/include/chipmunk,
1713 libs,
1714 );
1715 PRODUCT_NAME = "cocos2d libraries";
1716 SKIP_INSTALL = YES;
1717 ZERO_LINK = NO;
1718 };
1719 name = "Ad-Hoc";
1720 };
1721 6C19F16F1401944500F9CCD3 /* Ad-Hoc */ = {
1722 isa = XCBuildConfiguration;
1723 buildSettings = {
1724 PRODUCT_NAME = "$(TARGET_NAME)";
1725 };
1726 name = "Ad-Hoc";
1727 };
1620 6C263DDD13F6F4A000116746 /* Debug */ = { 1728 6C263DDD13F6F4A000116746 /* Debug */ = {
1621 isa = XCBuildConfiguration; 1729 isa = XCBuildConfiguration;
1622 buildSettings = { 1730 buildSettings = {
@@ -1688,6 +1796,7 @@
1688 buildConfigurations = ( 1796 buildConfigurations = (
1689 1D6058940D05DD3E006BFB54 /* Debug */, 1797 1D6058940D05DD3E006BFB54 /* Debug */,
1690 1D6058950D05DD3E006BFB54 /* Release */, 1798 1D6058950D05DD3E006BFB54 /* Release */,
1799 6C19F16D1401944500F9CCD3 /* Ad-Hoc */,
1691 ); 1800 );
1692 defaultConfigurationIsVisible = 0; 1801 defaultConfigurationIsVisible = 0;
1693 defaultConfigurationName = Release; 1802 defaultConfigurationName = Release;
@@ -1697,6 +1806,7 @@
1697 buildConfigurations = ( 1806 buildConfigurations = (
1698 506EE05F10304ED500A389B3 /* Debug */, 1807 506EE05F10304ED500A389B3 /* Debug */,
1699 506EE06010304ED500A389B3 /* Release */, 1808 506EE06010304ED500A389B3 /* Release */,
1809 6C19F16E1401944500F9CCD3 /* Ad-Hoc */,
1700 ); 1810 );
1701 defaultConfigurationIsVisible = 0; 1811 defaultConfigurationIsVisible = 0;
1702 defaultConfigurationName = Release; 1812 defaultConfigurationName = Release;
@@ -1706,6 +1816,7 @@
1706 buildConfigurations = ( 1816 buildConfigurations = (
1707 6C263DDD13F6F4A000116746 /* Debug */, 1817 6C263DDD13F6F4A000116746 /* Debug */,
1708 6C263DDE13F6F4A000116746 /* Release */, 1818 6C263DDE13F6F4A000116746 /* Release */,
1819 6C19F16F1401944500F9CCD3 /* Ad-Hoc */,
1709 ); 1820 );
1710 defaultConfigurationIsVisible = 0; 1821 defaultConfigurationIsVisible = 0;
1711 defaultConfigurationName = Release; 1822 defaultConfigurationName = Release;
@@ -1715,6 +1826,7 @@
1715 buildConfigurations = ( 1826 buildConfigurations = (
1716 C01FCF4F08A954540054247B /* Debug */, 1827 C01FCF4F08A954540054247B /* Debug */,
1717 C01FCF5008A954540054247B /* Release */, 1828 C01FCF5008A954540054247B /* Release */,
1829 6C19F16C1401944500F9CCD3 /* Ad-Hoc */,
1718 ); 1830 );
1719 defaultConfigurationIsVisible = 0; 1831 defaultConfigurationIsVisible = 0;
1720 defaultConfigurationName = Release; 1832 defaultConfigurationName = Release;
diff --git a/Classes/Cart_CollectAppDelegate.m b/Classes/Cart_CollectAppDelegate.m index 158f660..0af3ac0 100755 --- a/Classes/Cart_CollectAppDelegate.m +++ b/Classes/Cart_CollectAppDelegate.m
@@ -13,6 +13,7 @@
13#import "GameMode.h" 13#import "GameMode.h"
14#import "RootViewController.h" 14#import "RootViewController.h"
15#import "MainMenuLayer.h" 15#import "MainMenuLayer.h"
16#import "TestFlight.h"
16 17
17@implementation Cart_CollectAppDelegate 18@implementation Cart_CollectAppDelegate
18 19
@@ -42,6 +43,9 @@
42 43
43- (void) applicationDidFinishLaunching:(UIApplication*)application 44- (void) applicationDidFinishLaunching:(UIApplication*)application
44{ 45{
46 // REMOVE THIS LINE FOR RELEASE BUILDS
47 [TestFlight takeOff:@"66a3925c85c93e7628c14d167ff6c1b7_MjM4MTEyMDExLTA4LTE3IDEzOjEyOjQ4Ljg2NDE2OQ"];
48
45 [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; 49 [[UIApplication sharedApplication] setIdleTimerDisabled:YES];
46 50
47 NSMutableDictionary* registerDefaults = [NSMutableDictionary dictionaryWithObjectsAndKeys: 51 NSMutableDictionary* registerDefaults = [NSMutableDictionary dictionaryWithObjectsAndKeys:
diff --git a/Classes/MainMenuLayer.h b/Classes/MainMenuLayer.h index e43c5e1..4914b59 100755 --- a/Classes/MainMenuLayer.h +++ b/Classes/MainMenuLayer.h
@@ -18,5 +18,6 @@
18- (void)newgame; 18- (void)newgame;
19- (void)tutorial; 19- (void)tutorial;
20- (void)highscores; 20- (void)highscores;
21- (void)feedback;
21 22
22@end 23@end
diff --git a/Classes/MainMenuLayer.m b/Classes/MainMenuLayer.m index 8b21fab..32b85cb 100755 --- a/Classes/MainMenuLayer.m +++ b/Classes/MainMenuLayer.m
@@ -11,6 +11,7 @@
11#import "ClassicGameMode.h" 11#import "ClassicGameMode.h"
12#import "TutorialMode.h" 12#import "TutorialMode.h"
13#import "Cart_CollectAppDelegate.h" 13#import "Cart_CollectAppDelegate.h"
14#import "TestFlight.h"
14 15
15@implementation MainMenuLayer 16@implementation MainMenuLayer
16 17
@@ -47,8 +48,9 @@
47 CCMenuItemImage* newgameMenuItem = [CCMenuItemImage itemFromNormalImage:@"newgame.png" selectedImage:@"newgame2.png" target:self selector:@selector(newgame)]; 48 CCMenuItemImage* newgameMenuItem = [CCMenuItemImage itemFromNormalImage:@"newgame.png" selectedImage:@"newgame2.png" target:self selector:@selector(newgame)];
48 CCMenuItemImage* tutorialMenuItem = [CCMenuItemImage itemFromNormalImage:@"tutorial.png" selectedImage:@"tutorial2.png" target:self selector:@selector(tutorial)]; 49 CCMenuItemImage* tutorialMenuItem = [CCMenuItemImage itemFromNormalImage:@"tutorial.png" selectedImage:@"tutorial2.png" target:self selector:@selector(tutorial)];
49 CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)]; 50 CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)];
50 51 CCMenuItemImage* feedbackMenuItem = [CCMenuItemImage itemFromNormalImage:@"feedback.png" selectedImage:@"feedback2.png" target:self selector:@selector(feedback)];
51 CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, highscoresMenuItem, nil]; 52
53 CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, highscoresMenuItem, feedbackMenuItem, nil];
52 [menu alignItemsVertically]; 54 [menu alignItemsVertically];
53 menu.position = ccp(240, 100); 55 menu.position = ccp(240, 100);
54 [self addChild:menu]; 56 [self addChild:menu];
@@ -75,4 +77,9 @@
75 [listController release]; 77 [listController release];
76} 78}
77 79
80- (void)feedback
81{
82 [TestFlight openFeedbackView];
83}
84
78@end 85@end
diff --git a/Resources/feedback.png b/Resources/feedback.png new file mode 100644 index 0000000..83af574 --- /dev/null +++ b/Resources/feedback.png
Binary files differ
diff --git a/Resources/feedback2.png b/Resources/feedback2.png new file mode 100644 index 0000000..5954cab --- /dev/null +++ b/Resources/feedback2.png
Binary files differ
diff --git a/TestFlight.h b/TestFlight.h new file mode 100644 index 0000000..cd98c52 --- /dev/null +++ b/TestFlight.h
@@ -0,0 +1,35 @@
1//
2// TestFlight.h
3// libTestFlight
4//
5// Created by Colin Humber on 8/25/10.
6// Copyright 2010 23 Divide Apps. All rights reserved.
7
8#import <Foundation/Foundation.h>
9
10@interface TestFlight : NSObject {
11
12}
13
14/**
15 Add custom environment information
16 If you want to track a user name from your application you can add it here
17 */
18+ (void)addCustomEnvironmentInformation:(NSString *)information forKey:(NSString*)key;
19
20/**
21 Starts a TestFlight session
22 */
23+ (void)takeOff:(NSString *)teamToken;
24
25/**
26 Track when a user has passed a checkpoint after the flight has taken off. Eg. passed level 1, posted high score
27 */
28+ (void)passCheckpoint:(NSString *)checkpointName;
29
30/**
31 Opens a feeback window that is not attached to a checkpoint
32 */
33+ (void)openFeedbackView;
34
35@end
diff --git a/libTestFlight.a b/libTestFlight.a new file mode 100644 index 0000000..aacc245 --- /dev/null +++ b/libTestFlight.a
Binary files differ