add code for testing crashlytics

This commit is contained in:
Danmei Chen 2020-05-28 11:24:31 +02:00
parent 8b54fb0f6c
commit 6b39af2b00

View file

@ -41,6 +41,14 @@
LinphoneProxyConfig *cfg = linphone_core_get_default_proxy_config(LC);
_addGroupChatButton.hidden = !(cfg && linphone_proxy_config_get_conference_factory_uri(cfg));
[_toggleSelectionButton setImage:[UIImage imageNamed:@"select_all_default.png"] forState:UIControlStateSelected];
// For testing crashlytics
/*UIButton* button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
button.frame = CGRectMake(20, 50, 100, 30);
[button setTitle:@"Crash" forState:UIControlStateNormal];
[button addTarget:self action:@selector(crashButtonTapped:)
forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:button];*/
}
- (void)viewWillDisappear:(BOOL)animated {
@ -134,4 +142,8 @@ static UICompositeViewDescription *compositeDescription = nil;
}];
}
- (IBAction)crashButtonTapped:(id)sender {
assert(NO);
}
@end