Skip to content

Commit 5affa75

Browse files
committed
Remove nslog statements
1 parent 709cb73 commit 5affa75

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

ios/ASHealthKit.swift

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ class RNHealthKit: NSObject {
1818

1919
@objc func authorize(callback:RCTResponseSenderBlock) {
2020
checkAuthorization(){ authorized, error in
21-
NSLog(authorized ? "Authorized: Yes" : "Authorized: No");
21+
// NSLog(authorized ? "Authorized: Yes" : "Authorized: No");
2222
callback([NSNull(), authorized]);
2323
}
2424
}
2525

2626

2727
@objc func getSteps(startDate:NSDate, endDate:NSDate, callback:RCTResponseSenderBlock) {
2828
recentSteps(startDate, endDate: endDate) { steps, error in
29-
NSLog("retrieved steps");
29+
//NSLog("retrieved steps");
3030
callback([NSNull(), steps]);
3131
}
3232
}
3333

3434
@objc func getWeeklySteps(startDate:NSDate, endDate:NSDate, anchorDate:NSDate, callback:RCTResponseSenderBlock){
3535
weeklySteps(startDate, endDate: endDate, anchorDate: anchorDate) { steps, error in
36-
NSLog("retrieved weeklysteps");
36+
//NSLog("retrieved weeklysteps");
3737
callback([NSNull(), steps]);
3838
}
3939
}
@@ -140,19 +140,17 @@ class RNHealthKit: NSObject {
140140
if error != nil {
141141

142142
// Perform Proper Error Handling Here...
143-
print("*** An error occured while setting up the stepCount observer. \(error!.localizedDescription) ***")
143+
//print("*** An error occured while setting up the stepCount observer. \(error!.localizedDescription) ***")
144144
abort()
145145
} else {
146-
NSLog("Observed Steps")
146+
// NSLog("Observed Steps")
147147
// If you have subscribed for background updates you must call the completion handler here.
148148
// completionHandler();
149149
let startDate = self.beginningOfDay()
150150
let endDate = NSDate()
151151

152152
self.recentSteps(startDate, endDate: endDate) { steps, error in
153-
NSLog("Observed steps changed");
154-
// callback([NSNull(), steps]);
155-
//NSLog("Bridge: %@", self.bridge);
153+
//NSLog("Observed steps changed");
156154

157155
self.bridge.eventDispatcher.sendAppEventWithName("StepChangedEvent", body: steps)
158156
}

ios/AwesimSteps.xcodeproj/project.pbxproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@
813813
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
814814
CLANG_ENABLE_MODULES = YES;
815815
CODE_SIGN_ENTITLEMENTS = AwesimSteps/AwesimSteps.entitlements;
816+
CODE_SIGN_IDENTITY = "iPhone Developer";
816817
DEAD_CODE_STRIPPING = NO;
817818
HEADER_SEARCH_PATHS = (
818819
"$(inherited)",
@@ -826,6 +827,7 @@
826827
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
827828
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
828829
OTHER_LDFLAGS = "-ObjC";
830+
PRODUCT_BUNDLE_IDENTIFIER = com.am.app.awesimsteps;
829831
PRODUCT_NAME = AwesimSteps;
830832
SWIFT_OBJC_BRIDGING_HEADER = ASBridgingHeader.h;
831833
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -838,6 +840,8 @@
838840
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
839841
CLANG_ENABLE_MODULES = YES;
840842
CODE_SIGN_ENTITLEMENTS = AwesimSteps/AwesimSteps.entitlements;
843+
CODE_SIGN_IDENTITY = "iPhone Distribution";
844+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
841845
DEAD_CODE_STRIPPING = NO;
842846
HEADER_SEARCH_PATHS = (
843847
"$(inherited)",
@@ -851,6 +855,7 @@
851855
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
852856
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
853857
OTHER_LDFLAGS = "-ObjC";
858+
PRODUCT_BUNDLE_IDENTIFIER = com.am.app.awesimsteps;
854859
PRODUCT_NAME = AwesimSteps;
855860
SWIFT_OBJC_BRIDGING_HEADER = ASBridgingHeader.h;
856861
};

ios/AwesimSteps/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>$(EXECUTABLE_NAME)</string>
99
<key>CFBundleIdentifier</key>
10-
<string>com.am.$(PRODUCT_NAME:rfc1034identifier)</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>

0 commit comments

Comments
 (0)