BuildSettings: Integrate Bug report

This commit is contained in:
manuroe
2020-07-31 08:37:27 +02:00
parent 8225d7f4d0
commit 2eb255469e
3 changed files with 8 additions and 7 deletions

View File

@@ -282,11 +282,10 @@
_sendingContainer.hidden = NO;
// Setup data to send
NSString *url = [[NSUserDefaults standardUserDefaults] objectForKey:@"bugReportEndpointUrl"];
bugReportRestClient = [[MXBugReportRestClient alloc] initWithBugReportEndpoint:url];
bugReportRestClient = [[MXBugReportRestClient alloc] initWithBugReportEndpoint:BuildSettings.bugReportEndpointUrlString];
// App info
bugReportRestClient.appName = [[NSUserDefaults standardUserDefaults] objectForKey:@"bugReportApp"]; // Use the name allocated by the bug report server
bugReportRestClient.appName = BuildSettings.bugReportApplicationId;
bugReportRestClient.version = [AppDelegate theDelegate].appVersion;
bugReportRestClient.build = [AppDelegate theDelegate].build;