Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
54bbe72
Hiro's name in location screen
andrefontolan Jun 16, 2015
d94f886
Narrow in Wifi screen
andrefontolan Jun 16, 2015
1314622
fix Narrow in wifi screen
andrefontolan Jun 16, 2015
a114b28
fix Narrow in wifi screen
andrefontolan Jun 16, 2015
c0ee404
fix Narrow in wifi screen
andrefontolan Jun 16, 2015
fb1ffdb
Fix Hiro name changing issue with UITextFIeld
andrefontolan Jun 16, 2015
2206e60
Fix Hiro textfield length issue
andrefontolan Jun 16, 2015
4ab312d
Fix checkbox validation
andrefontolan Jun 16, 2015
cee32eb
fix swipe right hirotones
andrefontolan Jun 16, 2015
9b46d8f
fix swipe right hirotones
andrefontolan Jun 16, 2015
aa03c54
Fix Narrow in Wifi screen
andrefontolan Jun 17, 2015
9a4c4e1
fix hirotones lightTextColor
andrefontolan Jun 17, 2015
28c176a
no changes
andrefontolan Jun 18, 2015
6e9c4af
fix hirotone
andrefontolan Jun 18, 2015
dd3b7d6
fix delete without btl
andrefontolan Jun 18, 2015
aa417ba
fix narrow wifi screen
andrefontolan Jun 18, 2015
0fe3711
fix narrow wifi screen
andrefontolan Jun 18, 2015
efd3dc7
no changes
andrefontolan Jun 18, 2015
754e94b
fix phone beep while call
andrefontolan Jun 18, 2015
de9eb7f
fix phone beep while call
andrefontolan Jun 18, 2015
3139562
fix phone beep while call
andrefontolan Jun 18, 2015
fdcdf38
fixing cancel phone trhough phone
andrefontolan Jun 24, 2015
6b85ae0
fix location
andrefontolan Jun 25, 2015
5ec03c4
fix first capital letter
andrefontolan Jun 25, 2015
c6dac63
fix location
andrefontolan Jun 26, 2015
0f975e9
cancel phone beep though phone
andrefontolan Jun 26, 2015
a36e325
fixing bug
andrefontolan Jul 1, 2015
306d769
fix location
andrefontolan Jul 2, 2015
bb655e7
wifi info text
andrefontolan Jul 2, 2015
395939f
fix location
andrefontolan Jul 8, 2015
7b72bed
fix location
andrefontolan Jul 8, 2015
7ecc5db
fix location
andrefontolan Jul 8, 2015
391dfe8
fix notification
andrefontolan Jul 8, 2015
7fd683b
Fix Bluetooth Disconnection
andrefontolan Jul 14, 2015
dd7293a
fix hiro
andrefontolan Jul 14, 2015
4cf4feb
Fix cancel beep through phone
andrefontolan Jul 14, 2015
b6cc844
no changes
andrefontolan Jul 15, 2015
e1fc1a6
no changes
andrefontolan Jul 15, 2015
129956d
no changes
andrefontolan Jul 15, 2015
356fb95
no changes
andrefontolan Jul 15, 2015
7fcf4c7
Fix Hiro
andrefontolan Jul 15, 2015
60adf7b
Fix Hiro
andrefontolan Jul 15, 2015
c863e76
Fix Hiro
andrefontolan Jul 15, 2015
dfaffa7
Fix Hiro
andrefontolan Jul 15, 2015
48840c2
Fix Hiro
andrefontolan Jul 15, 2015
44d3b3f
Fix Hiro
andrefontolan Jul 15, 2015
3701f1c
Fix Hiro
andrefontolan Jul 15, 2015
dbd2266
Fix Hiro
andrefontolan Jul 16, 2015
9ceb54e
Bugs fixed
andrefontolan Aug 10, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions HeroApp/HeroApp/ASMapKit/JPSThumbnailAnnotationView.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ - (void)setupView {
[self setupImageView];
[self setupTitleLabel];
[self setupSubtitleLabel];
[self setupDisclosureButton];
//[self setupDisclosureButton];
[self setLayerProperties];
[self setDetailGroupAlpha:0.0f];
}
Expand All @@ -72,7 +72,7 @@ - (void)setupImageView {
}

- (void)setupTitleLabel {
_titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(-32.0f, 16.0f, 168.0f, 20.0f)];
_titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 16.0f, 130.0f, 20.0f)];
_titleLabel.textColor = [UIColor darkTextColor];
_titleLabel.font = [UIFont boldSystemFontOfSize:17];
_titleLabel.minimumScaleFactor = 0.8f;
Expand All @@ -81,9 +81,10 @@ - (void)setupTitleLabel {
}

- (void)setupSubtitleLabel {
_subtitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(-32.0f, 36.0f, 168.0f, 20.0f)];
_subtitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 36.0f, 100.0f, 20.0f)];
_subtitleLabel.textColor = [UIColor grayColor];
_subtitleLabel.font = [UIFont systemFontOfSize:12.0f];
_subtitleLabel.text = @"Last Location";
[self addSubview:_subtitleLabel];
}

Expand Down Expand Up @@ -222,7 +223,7 @@ - (void)animateBubbleWithDirection:(JPSThumbnailAnnotationViewAnimationDirection
BOOL growing = (animationDirection == JPSThumbnailAnnotationViewAnimationDirectionGrow);
// Image
[UIView animateWithDuration:kJPSThumbnailAnnotationViewAnimationDuration animations:^{
CGFloat xOffset = (growing ? -1 : 1) * kJPSThumbnailAnnotationViewExpandOffset/2.0f;
CGFloat xOffset = (growing ? -1 : 1) * kJPSThumbnailAnnotationViewExpandOffset/3.0f;
self.imageView.frame = CGRectOffset(self.imageView.frame, xOffset, 0.0f);
} completion:^(BOOL finished) {
if (animationDirection == JPSThumbnailAnnotationViewAnimationDirectionShrink) {
Expand All @@ -240,7 +241,7 @@ - (void)animateBubbleWithDirection:(JPSThumbnailAnnotationViewAnimationDirection
animation.duration = kJPSThumbnailAnnotationViewAnimationDuration;

// Stroke & Shadow From/To Values
CGRect largeRect = CGRectInset(self.bounds, -kJPSThumbnailAnnotationViewExpandOffset/2.0f, 0.0f);
CGRect largeRect = CGRectInset(self.bounds, -kJPSThumbnailAnnotationViewExpandOffset/3.0f, 0.0f);

CGPathRef fromPath = [self newBubbleWithRect:growing ? self.bounds : largeRect];
animation.fromValue = (__bridge id)fromPath;
Expand Down
41 changes: 30 additions & 11 deletions HeroApp/HeroApp/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
//

#import "AppDelegate.h"
#import <UIKit/UIUserNotificationSettings.h>
#import "ServerManager.h"

@interface AppDelegate ()

Expand Down Expand Up @@ -47,23 +49,28 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
if(!ReadValue(SOUND_FIND_PHONE_THUR_HIRO)){
StoreValue(SOUND_FIND_PHONE_THUR_HIRO,@"HiroTone1");
}

////////////////////////////
NSArray *centralManagerIdentifiers =
launchOptions[UIApplicationLaunchOptionsBluetoothCentralsKey];
////////////////////////////
[self registerForRemoteNotification];
return YES;
}


- (void)registerForRemoteNotification{
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
{
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
[[UIApplication sharedApplication] registerForRemoteNotifications];
}
else
{
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
}

// if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
// {
// [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
// [[UIApplication sharedApplication] registerForRemoteNotifications];
// }
// else
// {
// [[UIApplication sharedApplication] registerForRemoteNotificationTypes:
// (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
// }

}

- (void)peripheralFound:(NSNotification *)note{
Expand Down Expand Up @@ -155,8 +162,19 @@ - (void)applicationWillTerminate:(UIApplication *)application {

}


- (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forLocalNotification:(UILocalNotification *)notification completionHandler:(void(^)())completionHandler {
NSLog(@"-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+");
[[ServerManager sharedInstance]stopPlayingAlarmSound];


if(completionHandler != nil) //Finally call completion handler if its not nil
completionHandler();
}

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
{

if(notification.userInfo[@"shouldShowInApp"] && [notification.userInfo[@"shouldShowInApp"]boolValue]){
static UIAlertView *view;

Expand All @@ -172,6 +190,7 @@ - (void)application:(UIApplication *)application didReceiveLocalNotification:(UI

}


- (void)deviceDidUpdateProperty:(NSNotification *)note{
HeroActor *actor = note.object;
NSString *propertyName = note.userInfo[@"name"];
Expand Down
Loading