appjam 0.1.8.9 → 0.1.8.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/lib/appjam/generators/templates/blank/EiffelApplication.xcodeproj/project.pbxproj +114 -0
  2. data/lib/appjam/generators/templates/blank/EiffelApplication.xcodeproj/project.xcworkspace/xcuserdata/eiffel.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  3. data/lib/appjam/generators/templates/blank/EiffelApplication/AppDelegate.m.tt +13 -1
  4. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/CustomBadge.h +52 -0
  5. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/CustomBadge.m +241 -0
  6. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherItem.h +58 -0
  7. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherItem.m +227 -0
  8. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherPageControl.h +37 -0
  9. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherPageControl.m +117 -0
  10. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherScrollView.h +23 -0
  11. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherScrollView.m +42 -0
  12. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherView.h +70 -0
  13. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherView.m +830 -0
  14. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherViewController.h +38 -0
  15. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherViewController.m +302 -0
  16. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/AESCrypt.h +37 -0
  17. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/AESCrypt.m +50 -0
  18. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSData+Base64.h +17 -0
  19. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSData+Base64.m +110 -0
  20. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSData+CommonCrypto.h +112 -0
  21. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSData+CommonCrypto.m +546 -0
  22. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSString+Base64.h +15 -0
  23. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSString+Base64.m +82 -0
  24. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCCrossHairView.h +16 -0
  25. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCCrossHairView.m +43 -0
  26. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCFrameView.h +55 -0
  27. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCFrameView.m +234 -0
  28. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCIntrospect.h +155 -0
  29. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCIntrospect.m +1654 -0
  30. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCIntrospectSettings.h +56 -0
  31. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCStatusBarOverlay.h +34 -0
  32. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCStatusBarOverlay.m +107 -0
  33. data/lib/appjam/version.rb +1 -1
  34. metadata +32 -3
@@ -0,0 +1,56 @@
1
+ //////////////
2
+ // Settings //
3
+ //////////////
4
+
5
+ #define kDCIntrospectFlashOnRedrawColor [UIColor colorWithRed:1.0f green:0.0f blue:0.0f alpha:0.4f] // UIColor
6
+ #define kDCIntrospectFlashOnRedrawFlashLength 0.03f // NSTimeInterval
7
+ #define kDCIntrospectOpaqueColor [UIColor redColor] // UIColor
8
+ #define kDCIntrospectTemporaryDisableDuration 10. // Seconds
9
+
10
+ //////////////////
11
+ // Key Bindings //
12
+ //////////////////
13
+
14
+ // '' is equivalent to page up (copy and paste this character to use)
15
+ // '' is equivalent to page down (copy and paste this character to use)
16
+
17
+ // Global //
18
+ #define kDCIntrospectKeysInvoke @" " // starts introspector
19
+ #define kDCIntrospectKeysToggleViewOutlines @"o" // shows outlines for all views
20
+ #define kDCIntrospectKeysToggleNonOpaqueViews @"O" // changes all non-opaque view background colours to red (destructive)
21
+ #define kDCIntrospectKeysToggleHelp @"?" // shows help
22
+ #define kDCIntrospectKeysToggleFlashViewRedraws @"f" // toggle flashing on redraw for all views that implement [[DCIntrospect sharedIntrospector] flashRect:inView:] in drawRect:
23
+ #define kDCIntrospectKeysToggleShowCoordinates @"c" // toggles the coordinates display
24
+ #define kDCIntrospectKeysEnterBlockMode @"b" // enters block action mode
25
+
26
+ // When introspector is invoked and a view is selected //
27
+ #define kDCIntrospectKeysNudgeViewLeft @"4" // nudges the selected view in given direction
28
+ #define kDCIntrospectKeysNudgeViewRight @"6" //
29
+ #define kDCIntrospectKeysNudgeViewUp @"8" //
30
+ #define kDCIntrospectKeysNudgeViewDown @"2" //
31
+ #define kDCIntrospectKeysCenterInSuperview @"5" // centers the selected view in it's superview
32
+ #define kDCIntrospectKeysIncreaseWidth @"9" // increases/decreases the width/height of selected view
33
+ #define kDCIntrospectKeysDecreaseWidth @"7" //
34
+ #define kDCIntrospectKeysIncreaseHeight @"3" //
35
+ #define kDCIntrospectKeysDecreaseHeight @"1" //
36
+ #define kDCIntrospectKeysLogCodeForCurrentViewChanges @"0" // prints code to the console of the changes to the current view. If the view has not been changed nothing will be printed. For example, if you nudge a view or change it's rect with the nudge keys, this will log '<#view#>.frame = CGRectMake(50.0, ..etc);'. Or if you set it's name using setName:forObject:accessedWithSelf: it will use the name provided, for example 'myView.frame = CGRectMake(...);'. Setting accessedWithSelf to YES would output 'self.myView.frame = CGRectMake(...);'.
37
+
38
+ #define kDCIntrospectKeysIncreaseViewAlpha @"+" // increases/decreases the selected views alpha value
39
+ #define kDCIntrospectKeysDecreaseViewAlpha @"-" //
40
+
41
+ #define kDCIntrospectKeysSetNeedsDisplay @"d" // calls setNeedsDisplay on selected view
42
+ #define kDCIntrospectKeysSetNeedsLayout @"l" // calls setNeedsLayout on selected view
43
+ #define kDCIntrospectKeysReloadData @"r" // calls reloadData on selected view if it's a UITableView
44
+ #define kDCIntrospectKeysLogProperties @"p" // logs all properties of the selected view
45
+ #define kDCIntrospectKeysLogAccessibilityProperties @"a" // logs accessibility info (useful for automated view tests - thanks to @samsoffes for the idea)
46
+ #define kDCIntrospectKeysLogViewRecursive @"v" // calls private method recursiveDescription which logs selected view heirachy
47
+
48
+ #define kDCIntrospectKeysMoveUpInViewHierarchy @"y" // changes the selected view to it's superview
49
+ #define kDCIntrospectKeysMoveBackInViewHierarchy @"t" // changes the selected view back to the previous view selected (after using the above command)
50
+
51
+ #define kDCIntrospectKeysMoveDownToFirstSubview @"h"
52
+ #define kDCIntrospectKeysMoveToNextSiblingView @"j"
53
+ #define kDCIntrospectKeysMoveToPrevSiblingView @"g"
54
+
55
+ #define kDCIntrospectKeysEnterGDB @"`" // enters GDB
56
+ #define kDCIntrospectKeysDisableForPeriod @"~" // disables DCIntrospect for a given period (see kDCIntrospectTemporaryDisableDuration)
@@ -0,0 +1,34 @@
1
+ //
2
+ // DCStatusBarOverlay.h
3
+ //
4
+ // Copyright 2011 Domestic Cat. All rights reserved.
5
+ //
6
+
7
+ // Based mainly on @myellow's excellent MTStatusBarOverlay: https://github.com/myell0w/MTStatusBarOverlay
8
+
9
+
10
+ #import "DCIntrospectSettings.h"
11
+
12
+ #define kDCIntrospectNotificationStatusBarTapped @"kDCIntrospectNotificationStatusBarTapped"
13
+
14
+ @interface DCStatusBarOverlay : UIWindow
15
+ {
16
+ }
17
+
18
+ @property (nonatomic, retain) UILabel *leftLabel;
19
+ @property (nonatomic, retain) UILabel *rightLabel;
20
+
21
+ ///////////
22
+ // Setup //
23
+ ///////////
24
+
25
+ - (id)init;
26
+ - (void)updateBarFrame;
27
+
28
+ /////////////
29
+ // Actions //
30
+ /////////////
31
+
32
+ - (void)tapped;
33
+
34
+ @end
@@ -0,0 +1,107 @@
1
+ //
2
+ // DCStatusBarOverlay.m
3
+ //
4
+ // Copyright 2011 Domestic Cat. All rights reserved.
5
+ //
6
+
7
+ #import "DCStatusBarOverlay.h"
8
+
9
+ @implementation DCStatusBarOverlay
10
+ @synthesize leftLabel, rightLabel;
11
+
12
+ - (void)dealloc
13
+ {
14
+ [[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil];
15
+
16
+ [leftLabel release];
17
+ [rightLabel release];
18
+
19
+ [super dealloc];
20
+ }
21
+
22
+ #pragma mark Setup
23
+
24
+ - (id)init
25
+ {
26
+ if ((self = [super initWithFrame:CGRectZero]))
27
+ {
28
+ self.windowLevel = UIWindowLevelStatusBar + 1.0f;
29
+ UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
30
+ CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
31
+ CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
32
+ const CGFloat bar_size = 20;
33
+ if (UIInterfaceOrientationIsLandscape(orientation))
34
+ self.frame = CGRectMake(0, 0, screenHeight, bar_size);
35
+ else
36
+ self.frame = CGRectMake(0, 0, screenWidth, bar_size);
37
+ self.backgroundColor = [UIColor blackColor];
38
+
39
+ UIImageView *backgroundImageView = [[UIImageView alloc] initWithFrame:self.frame];
40
+ backgroundImageView.image = [[UIImage imageNamed:@"statusBarBackground.png"] stretchableImageWithLeftCapWidth:2.0f topCapHeight:0.0f];
41
+ [self addSubview:backgroundImageView];
42
+ [backgroundImageView release];
43
+
44
+ self.leftLabel = [[[UILabel alloc] initWithFrame:CGRectOffset(self.frame, 2.0f, 0.0f)] autorelease];
45
+ self.leftLabel.backgroundColor = [UIColor clearColor];
46
+ self.leftLabel.textAlignment = UITextAlignmentLeft;
47
+ self.leftLabel.font = [UIFont boldSystemFontOfSize:12.0f];
48
+ self.leftLabel.textColor = [UIColor colorWithWhite:0.97f alpha:1.0f];
49
+ self.leftLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
50
+ [self addSubview:self.leftLabel];
51
+
52
+ self.rightLabel = [[[UILabel alloc] initWithFrame:CGRectOffset(self.frame, -2.0f, 0.0f)] autorelease];
53
+ self.rightLabel.backgroundColor = [UIColor clearColor];
54
+ self.rightLabel.font = [UIFont boldSystemFontOfSize:12.0f];
55
+ self.rightLabel.textAlignment = UITextAlignmentRight;
56
+ self.rightLabel.textColor = [UIColor colorWithWhite:0.9f alpha:1.0f];
57
+ self.rightLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
58
+ [self addSubview:self.rightLabel];
59
+
60
+ UITapGestureRecognizer *gestureRecognizer = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapped)] autorelease];
61
+ [self addGestureRecognizer:gestureRecognizer];
62
+
63
+ [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
64
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateBarFrame) name:UIDeviceOrientationDidChangeNotification object:nil];
65
+ }
66
+
67
+ return self;
68
+ }
69
+
70
+ - (void)updateBarFrame
71
+ {
72
+ // current interface orientation
73
+ UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
74
+ CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
75
+ CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
76
+
77
+ CGFloat pi = (CGFloat)M_PI;
78
+ if (orientation == UIDeviceOrientationPortrait)
79
+ {
80
+ self.transform = CGAffineTransformIdentity;
81
+ self.frame = CGRectMake(0, 0, screenWidth, self.frame.size.height);
82
+ }
83
+ else if (orientation == UIDeviceOrientationLandscapeLeft)
84
+ {
85
+ self.transform = CGAffineTransformMakeRotation(pi * (90) / 180.0f);
86
+ self.frame = CGRectMake(screenWidth - self.frame.size.width, 0, self.frame.size.width, screenHeight);
87
+ }
88
+ else if (orientation == UIDeviceOrientationLandscapeRight)
89
+ {
90
+ self.transform = CGAffineTransformMakeRotation(pi * (-90) / 180.0f);
91
+ self.frame = CGRectMake(0, 0, self.frame.size.width, screenHeight);
92
+ }
93
+ else if (orientation == UIDeviceOrientationPortraitUpsideDown)
94
+ {
95
+ self.transform = CGAffineTransformMakeRotation(pi);
96
+ self.frame = CGRectMake(0, screenHeight - self.frame.size.height, screenWidth, self.frame.size.height);
97
+ }
98
+ }
99
+
100
+ #pragma mark Actions
101
+
102
+ - (void)tapped
103
+ {
104
+ [[NSNotificationCenter defaultCenter] postNotificationName:kDCIntrospectNotificationStatusBarTapped object:nil];
105
+ }
106
+
107
+ @end
@@ -3,7 +3,7 @@ module Appjam
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
5
  PATCH = 8
6
- BUILD = '9'
6
+ BUILD = '10'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').chomp('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appjam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.9
4
+ version: 0.1.8.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-09 00:00:00.000000000 Z
12
+ date: 2013-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -579,6 +579,18 @@ files:
579
579
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/FXLabel/FXLabel.m
580
580
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MBProgressHUD/MBProgressHUD.h
581
581
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MBProgressHUD/MBProgressHUD.m
582
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/CustomBadge.h
583
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/CustomBadge.m
584
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherItem.h
585
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherItem.m
586
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherPageControl.h
587
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherPageControl.m
588
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherScrollView.h
589
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherScrollView.m
590
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherView.h
591
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherView.m
592
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherViewController.h
593
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MyLauncher/MyLauncherViewController.m
582
594
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FacingView.h
583
595
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FacingView.m
584
596
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FoldView.h
@@ -693,6 +705,14 @@ files:
693
705
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/fmdb/FMDatabaseQueue.m
694
706
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/fmdb/FMResultSet.h
695
707
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/fmdb/FMResultSet.m
708
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/AESCrypt.h
709
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/AESCrypt.m
710
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSData+Base64.h
711
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSData+Base64.m
712
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSData+CommonCrypto.h
713
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSData+CommonCrypto.m
714
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSString+Base64.h
715
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/AESCrypt-ObjC/NSString+Base64.m
696
716
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/CPAnimationProgram.h
697
717
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/CPAnimationSequence.h
698
718
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/CPAnimationStep.h
@@ -745,6 +765,15 @@ files:
745
765
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DELETEResponse.m
746
766
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/PUTResponse.h
747
767
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/PUTResponse.m
768
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCCrossHairView.h
769
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCCrossHairView.m
770
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCFrameView.h
771
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCFrameView.m
772
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCIntrospect.h
773
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCIntrospect.m
774
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCIntrospectSettings.h
775
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCStatusBarOverlay.h
776
+ - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/DCIntrospect/DCStatusBarOverlay.m
748
777
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/EGOCache/EGOCache.h
749
778
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/EGOCache/EGOCache.m
750
779
  - lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/Lumberjack/DDASLLogger.h
@@ -886,7 +915,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
886
915
  version: '0'
887
916
  segments:
888
917
  - 0
889
- hash: 3158814602425905562
918
+ hash: 1366033787270167971
890
919
  required_rubygems_version: !ruby/object:Gem::Requirement
891
920
  none: false
892
921
  requirements: