-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change email and fix main threading (again, oops)
- Loading branch information
1 parent
1bfff03
commit 598e3d7
Showing
5 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.49 KB
(110%)
...proj/project.xcworkspace/xcuserdata/samgardner.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,7 +150,7 @@ -(NSString *)getRFSKey{ | |
|
||
} else { | ||
// If the iOS version isn't in the dict above, then :rip: | ||
[self errorAlert:[NSString stringWithFormat:@"Couldn't get codename for your iOS %@\nPlease email me [email protected] or dm me on reddit u/Samg_is_a_Ninja", _deviceBuild]]; | ||
[self errorAlert:[NSString stringWithFormat:@"Couldn't get codename for your iOS %@\nPlease email me [email protected] or dm me on reddit u/Samg_is_a_Ninja", _deviceBuild]]; | ||
return @"Failed."; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -316,7 +316,7 @@ -(NSString *)getRFSKey{ | |
|
||
} else { | ||
// If the iOS version isn't in the dict above, then :rip: | ||
[self errorAlert:[NSString stringWithFormat:@"Couldn't get codename for your iOS %@\nPlease email me [email protected] or dm me on reddit u/Samg_is_a_Ninja", deviceBuild]]; | ||
[self errorAlert:[NSString stringWithFormat:@"Couldn't get codename for your iOS %@\nPlease email me [email protected] or dm me on reddit u/Samg_is_a_Ninja", deviceBuild]]; | ||
return @"Failed."; | ||
} | ||
} | ||
|
@@ -378,15 +378,15 @@ - (void) URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTa | |
[task resume]; | ||
} else { | ||
// if the device's model isn't in the beta list, then present an alert with an action to send an email to me requesting beta support | ||
UIAlertController *requestBetaSupportAlert = [UIAlertController alertControllerWithTitle:@"Your device is not currently supported" message:@"Please send an email with your device model and iOS build number to [email protected] request support" preferredStyle:UIAlertControllerStyleAlert]; | ||
UIAlertController *requestBetaSupportAlert = [UIAlertController alertControllerWithTitle:@"Your device is not currently supported" message:@"Please send an email with your device model and iOS build number to [email protected] request support" preferredStyle:UIAlertControllerStyleAlert]; | ||
UIAlertAction *dismissAction = [UIAlertAction actionWithTitle:@"Dismiss" style:UIAlertActionStyleCancel handler:nil]; | ||
[requestBetaSupportAlert addAction:dismissAction]; | ||
// check to see if the device can send email using the stock mail app | ||
if ([MFMailComposeViewController canSendMail]) { | ||
UIAlertAction *sendMailAction = [UIAlertAction actionWithTitle:@"Send email" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
MFMailComposeViewController* composeVC = [[MFMailComposeViewController alloc] init]; | ||
composeVC.mailComposeDelegate = self; | ||
[composeVC setToRecipients:@[@"[email protected]"]]; | ||
[composeVC setToRecipients:@[@"[email protected]"]]; | ||
[composeVC setSubject:@"Succession: Add beta support request"]; | ||
[composeVC setMessageBody:[NSString stringWithFormat:@"%@\n%@", self->deviceBuild, self->deviceModel] isHTML:NO]; | ||
[self presentViewController:composeVC animated:YES completion:nil]; | ||
|
@@ -396,14 +396,14 @@ - (void) URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTa | |
[self presentViewController:requestBetaSupportAlert animated:TRUE completion:nil]; | ||
} | ||
} else { | ||
UIAlertController *requestBetaSupportAlert = [UIAlertController alertControllerWithTitle:@"Your device is not currently supported" message:@"Please send an email with your device model and iOS build number to [email protected] request support" preferredStyle:UIAlertControllerStyleAlert]; | ||
UIAlertController *requestBetaSupportAlert = [UIAlertController alertControllerWithTitle:@"Your device is not currently supported" message:@"Please send an email with your device model and iOS build number to [email protected] request support" preferredStyle:UIAlertControllerStyleAlert]; | ||
UIAlertAction *dismissAction = [UIAlertAction actionWithTitle:@"Dismiss" style:UIAlertActionStyleCancel handler:nil]; | ||
[requestBetaSupportAlert addAction:dismissAction]; | ||
if ([MFMailComposeViewController canSendMail]) { | ||
UIAlertAction *sendMailAction = [UIAlertAction actionWithTitle:@"Send email" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
MFMailComposeViewController* composeVC = [[MFMailComposeViewController alloc] init]; | ||
composeVC.mailComposeDelegate = self; | ||
[composeVC setToRecipients:@[@"[email protected]"]]; | ||
[composeVC setToRecipients:@[@"[email protected]"]]; | ||
[composeVC setSubject:@"Succession: Add beta support request"]; | ||
[composeVC setMessageBody:[NSString stringWithFormat:@"%@\n%@", self->deviceBuild, self->deviceModel] isHTML:NO]; | ||
[self presentViewController:composeVC animated:YES completion:nil]; | ||
|
@@ -535,7 +535,9 @@ - (void) postDownload { | |
}]; | ||
[ipswDoesntMatch addAction:overrideAction]; | ||
[ipswDoesntMatch addAction:cancelAction]; | ||
[self presentViewController:ipswDoesntMatch animated:TRUE completion:nil]; | ||
dispatch_async(dispatch_get_main_queue(), ^{ | ||
[self presentViewController:ipswDoesntMatch animated:TRUE completion:nil]; | ||
}); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters