Skip to content

Commit

Permalink
prep 8.0.2 with more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
roznet committed Oct 14, 2023
1 parent bf4fdca commit 1d6d0d9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ConnectStats.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6660,7 +6660,7 @@
CODE_SIGN_ENTITLEMENTS = ConnectStats/ConnectStats.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 55;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = M7QSSF3624;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
Expand All @@ -6683,7 +6683,7 @@
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
MARKETING_VERSION = 8.0.1;
MARKETING_VERSION = 8.0.2;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = (
Expand Down Expand Up @@ -6717,7 +6717,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 55;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = M7QSSF3624;
ENABLE_TESTABILITY = NO;
Expand All @@ -6740,7 +6740,7 @@
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
MARKETING_VERSION = 8.0.1;
MARKETING_VERSION = 8.0.2;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = (
"$(inherited)",
Expand Down
9 changes: 6 additions & 3 deletions ConnectStats/src/GCConnectStatsRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ -(void)checkToken{
self.tokenId = [[GCAppGlobal profile] configGetInt:CONFIG_CONNECTSTATS_TOKEN_ID defaultValue:0];

if ((self.oauthTokenSecret).length==0) {
RZLog(RZLogInfo,@"missing oauthTokenSecret %@", [self debugDescription]);
self.oauthTokenSecret = nil;
self.oauthToken = nil;
self.userId = 0;
self.tokenId = 0;
}else{
RZLog(RZLogInfo,@"valid oauthTokenSecret %@", [self debugDescription]);
}
}

Expand Down Expand Up @@ -216,7 +219,7 @@ -(void)signInConnectStatsStep{

-(void)buildOAuthController{
if( self.oauth1Controller == nil){
RZLog(RZLogInfo,@"building oauth controller");
RZLog(RZLogInfo,@"building oauth controller %@", [self debugDescription]);
NSError * error = nil;
NSData * credentials = [NSData dataWithContentsOfFile:[RZFileOrganizer bundleFilePath:@"credentials.json"] options:0 error:&error];
if( ! credentials ){
Expand All @@ -242,7 +245,7 @@ -(void)buildOAuthController{
}

-(void)signInGarminStep{
RZLog(RZLogInfo,@"Starting garmin step");
RZLog(RZLogInfo,@"starting garmin step %@", [self debugDescription]);
UIViewController * webCont = [[UIViewController alloc] initWithNibName:nil bundle:nil];
WKWebView * webView = [[WKWebView alloc] initWithFrame:self.navigationController.view.frame];
// keep hold so we can clear the delegate.
Expand Down Expand Up @@ -295,7 +298,7 @@ -(NSURLRequest*)preparedUrlRequest:(NSString*)path params:(NSDictionary*)paramet
if( self.oauth1Controller){
RZLog(RZLogInfo, @"Built oauth1Controller to prepare url %@", path);
}else{
RZLog(RZLogError, @"Failed to build oauth1Controller to prepare url %@", path);
RZLog(RZLogError, @"%@ Failed to build oauth1Controller to prepare url %@", self, path);
}
}else{
RZLog(RZLogError, @"no oauth1Controller built and not navigation controller to prepare url %@", path);
Expand Down
5 changes: 4 additions & 1 deletion ConnectStats/src/GCSettingsBugReport.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ -(void)configCheck{

NSString * ckey = [GCAppGlobal credentialsForService:@"garmin" andKey:@"consumer_key"];
NSString * cid = [GCAppGlobal credentialsForService:@"strava" andKey:@"client_id"];
RZLog(RZLogInfo, @"consumer_key=%@, client_id=%@", ckey, cid);
NSString * token = [[GCAppGlobal profile] currentPasswordForService:gcServiceConnectStats];
NSString * csStatus = token.length != 0 ? @"Has CS Token" : @"Missing CS Token";

RZLog(RZLogInfo, @"consumer_key=%@, client_id=%@, %@", ckey, cid, csStatus);


}
Expand Down

0 comments on commit 1d6d0d9

Please sign in to comment.