Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhvh committed Jul 6, 2015
1 parent af24d5c commit a51dbd7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 29 deletions.
24 changes: 12 additions & 12 deletions ios/PhyWeb.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
BDBFD6731A2D125700A0B5E0 /* UIScrollView+SVInfiniteScrolling.m in Sources */ = {isa = PBXBuildFile; fileRef = BDBFD6701A2D125700A0B5E0 /* UIScrollView+SVInfiniteScrolling.m */; };
BDBFD6741A2D125700A0B5E0 /* UIScrollView+SVPullToRefresh.m in Sources */ = {isa = PBXBuildFile; fileRef = BDBFD6721A2D125700A0B5E0 /* UIScrollView+SVPullToRefresh.m */; };
BDC5A9AC1B3B3A90008D9A0B /* PWBeaconDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BDC5A9AB1B3B3A90008D9A0B /* PWBeaconDetailViewController.m */; };
BDC5A9B61B3B3D53008D9A0B /* JBChartView.m in Sources */ = {isa = PBXBuildFile; fileRef = BDC5A9B31B3B3D53008D9A0B /* JBChartView.m */; };
BDC5A9B71B3B3D53008D9A0B /* JBLineChartView.m in Sources */ = {isa = PBXBuildFile; fileRef = BDC5A9B51B3B3D53008D9A0B /* JBLineChartView.m */; };
BDDC71081B4B20C20000581C /* JBChartView.m in Sources */ = {isa = PBXBuildFile; fileRef = BDDC71051B4B20C20000581C /* JBChartView.m */; };
BDDC71091B4B20C20000581C /* JBLineChartView.m in Sources */ = {isa = PBXBuildFile; fileRef = BDDC71071B4B20C20000581C /* JBLineChartView.m */; };
BDE4D8A619DE0242007938F0 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = BDE4D8A519DE0242007938F0 /* LaunchScreen.xib */; };
BDE4D8A819DE03F1007938F0 /* LaunchIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = BDE4D8A719DE03F1007938F0 /* LaunchIcon.png */; };
BDE4D8B419DE154B007938F0 /* PWPlaceholderView.m in Sources */ = {isa = PBXBuildFile; fileRef = BDE4D8B319DE154B007938F0 /* PWPlaceholderView.m */; };
Expand Down Expand Up @@ -181,10 +181,10 @@
BDBFD6721A2D125700A0B5E0 /* UIScrollView+SVPullToRefresh.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIScrollView+SVPullToRefresh.m"; sourceTree = "<group>"; };
BDC5A9AA1B3B3A90008D9A0B /* PWBeaconDetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PWBeaconDetailViewController.h; sourceTree = "<group>"; };
BDC5A9AB1B3B3A90008D9A0B /* PWBeaconDetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PWBeaconDetailViewController.m; sourceTree = "<group>"; };
BDC5A9B21B3B3D53008D9A0B /* JBChartView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JBChartView.h; path = "third-party/JBChartView/Classes/JBChartView.h"; sourceTree = "<group>"; };
BDC5A9B31B3B3D53008D9A0B /* JBChartView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = JBChartView.m; path = "third-party/JBChartView/Classes/JBChartView.m"; sourceTree = "<group>"; };
BDC5A9B41B3B3D53008D9A0B /* JBLineChartView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JBLineChartView.h; path = "third-party/JBChartView/Classes/JBLineChartView.h"; sourceTree = "<group>"; };
BDC5A9B51B3B3D53008D9A0B /* JBLineChartView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = JBLineChartView.m; path = "third-party/JBChartView/Classes/JBLineChartView.m"; sourceTree = "<group>"; };
BDDC71041B4B20C20000581C /* JBChartView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JBChartView.h; path = "third-party/JBChartView/JBChartView.h"; sourceTree = "<group>"; };
BDDC71051B4B20C20000581C /* JBChartView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = JBChartView.m; path = "third-party/JBChartView/JBChartView.m"; sourceTree = "<group>"; };
BDDC71061B4B20C20000581C /* JBLineChartView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JBLineChartView.h; path = "third-party/JBChartView/JBLineChartView.h"; sourceTree = "<group>"; };
BDDC71071B4B20C20000581C /* JBLineChartView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = JBLineChartView.m; path = "third-party/JBChartView/JBLineChartView.m"; sourceTree = "<group>"; };
BDDFE6ED1A0069B700A76255 /* PhyWeb.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PhyWeb.entitlements; sourceTree = "<group>"; };
BDDFE6EE1A0069F000A76255 /* today.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = today.entitlements; sourceTree = "<group>"; };
BDE4D88519DDF678007938F0 /* icon-29.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon-29.png"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -341,10 +341,10 @@
BDC5A9B81B3B3D60008D9A0B /* JBChartView */ = {
isa = PBXGroup;
children = (
BDC5A9B21B3B3D53008D9A0B /* JBChartView.h */,
BDC5A9B31B3B3D53008D9A0B /* JBChartView.m */,
BDC5A9B41B3B3D53008D9A0B /* JBLineChartView.h */,
BDC5A9B51B3B3D53008D9A0B /* JBLineChartView.m */,
BDDC71041B4B20C20000581C /* JBChartView.h */,
BDDC71051B4B20C20000581C /* JBChartView.m */,
BDDC71061B4B20C20000581C /* JBLineChartView.h */,
BDDC71071B4B20C20000581C /* JBLineChartView.m */,
);
name = JBChartView;
sourceTree = "<group>";
Expand Down Expand Up @@ -753,7 +753,7 @@
BDE9F1C719A7E46D00AA8DFB /* PWBeaconCell.m in Sources */,
BDE9F19119A7CDF100AA8DFB /* AppDelegate.m in Sources */,
BDFC4DD819E60C5200DC381C /* PWSimpleWebViewController.m in Sources */,
BDC5A9B71B3B3D53008D9A0B /* JBLineChartView.m in Sources */,
BDDC71091B4B20C20000581C /* JBLineChartView.m in Sources */,
BDE9F1C819A7E46D00AA8DFB /* PWBeaconsViewController.m in Sources */,
BDE9F2A019AD551500AA8DFB /* PWConfigureViewController.m in Sources */,
BDE9F1C919A7E46D00AA8DFB /* PWGradientView.m in Sources */,
Expand All @@ -763,7 +763,7 @@
BDE9F2A119AD551500AA8DFB /* PWSettingsViewController.m in Sources */,
BDE9F18E19A7CDF100AA8DFB /* main.m in Sources */,
BDBFD6731A2D125700A0B5E0 /* UIScrollView+SVInfiniteScrolling.m in Sources */,
BDC5A9B61B3B3D53008D9A0B /* JBChartView.m in Sources */,
BDDC71081B4B20C20000581C /* JBChartView.m in Sources */,
BDE9F1DA19A7EAFC00AA8DFB /* PWBeaconManager.m in Sources */,
BDBFD6741A2D125700A0B5E0 /* UIScrollView+SVPullToRefresh.m in Sources */,
BDE9F1CC19A7E46D00AA8DFB /* PWSignalStrengthView.m in Sources */,
Expand Down
3 changes: 1 addition & 2 deletions ios/PhyWeb/Backend/PWBeacon.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ @implementation PWBeacon {

- (id)initWithUriBeacon:(UBUriBeacon *)beacon info:(NSDictionary *)info {
self = [self init];

_rssiHistory = [[NSMutableArray alloc] init];

NSString *title = info[@"title"];
if (title == (NSString *)[NSNull null]) {
title = nil;
Expand Down
11 changes: 5 additions & 6 deletions ios/PhyWeb/Backend/PWBeaconManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@

#define DISCOVERY_DELAY_KEY @"discoveryDelay"

@interface PWBeaconManager () <PWMetadataRequestDelegate,
NSNetServiceBrowserDelegate,
NSNetServiceDelegate>
@interface PWBeaconManager ()<PWMetadataRequestDelegate,
NSNetServiceBrowserDelegate, NSNetServiceDelegate>

@end

Expand Down Expand Up @@ -326,7 +325,8 @@ - (void)metadataRequest_done:(PWMetadataRequest*)request {
NSUInteger idx = [_requests indexOfObject:request];
if (idx != NSNotFound) {
NSDictionary* beaconInfo = [_pendingBeaconsInfos objectAtIndex:idx];
NSTimeInterval discoveryDelay = [beaconInfo[DISCOVERY_DELAY_KEY] doubleValue];
NSTimeInterval discoveryDelay =
[beaconInfo[DISCOVERY_DELAY_KEY] doubleValue];
NSTimeInterval requestDelay = [request delay];
[beacon setDiscoveryDelay:discoveryDelay];
[beacon setRequestDelay:requestDelay];
Expand Down Expand Up @@ -415,8 +415,7 @@ - (NSArray*)unserializedBeacons {
return beacons;
}

- (NSTimeInterval) startTime
{
- (NSTimeInterval)startTime {
return _startTime;
}

Expand Down
2 changes: 0 additions & 2 deletions ios/PhyWeb/UI/PWBeaconDetailViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@

@interface PWBeaconDetailViewController : UIViewController

@property (nonatomic, retain) PWBeacon * beacon;

@end
14 changes: 7 additions & 7 deletions ios/PhyWeb/UI/PWBeaconDetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#import "PWBeacon.h"
#import "PWBeaconManager.h"

@interface PWBeaconDetailViewController () <
@interface PWBeaconDetailViewController ()<
JBLineChartViewDataSource, JBLineChartViewDelegate, UITableViewDataSource,
UITableViewDelegate>

Expand Down Expand Up @@ -243,7 +243,7 @@ - (CGFloat)lineChartView:(JBLineChartView *)lineChartView
}

- (UIColor *)lineChartView:(JBLineChartView *)lineChartView
colorForLineAtLineIndex:(NSUInteger)lineIndex {
colorForLineAtLineIndex:(NSUInteger)lineIndex {
static NSArray *colors = nil;
if (colors == nil) {
colors = @[
Expand All @@ -260,7 +260,7 @@ - (UIColor *)lineChartView:(JBLineChartView *)lineChartView
}

- (CGFloat)lineChartView:(JBLineChartView *)lineChartView
widthForLineAtLineIndex:(NSUInteger)lineIndex {
widthForLineAtLineIndex:(NSUInteger)lineIndex {
return lineIndex >= 2 ? 3 : 1;
}

Expand All @@ -271,9 +271,9 @@ - (JBLineChartViewLineStyle)lineChartView:(JBLineChartView *)lineChartView
}

- (void)lineChartView:(JBLineChartView *)lineChartView
didSelectLineAtIndex:(NSUInteger)lineIndex
horizontalIndex:(NSUInteger)horizontalIndex
touchPoint:(CGPoint)touchPoint {
didSelectLineAtIndex:(NSUInteger)lineIndex
horizontalIndex:(NSUInteger)horizontalIndex
touchPoint:(CGPoint)touchPoint {
if (horizontalIndex >= _maxTime) {
} else {
if (_maxTime >= 20) {
Expand All @@ -286,7 +286,7 @@ - (void)lineChartView:(JBLineChartView *)lineChartView
}

- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section {
numberOfRowsInSection:(NSInteger)section {
return _beaconsCount - 2;
}

Expand Down

0 comments on commit a51dbd7

Please sign in to comment.