Add Extra Attachment

It's possible to manually add an extra attachment to the report by passing a file URL to this method.

let url = URL(fileURLWithPath: "filePath")
Instabug.addFileAttachment(with: url)
//OR
Instabug.addFileAttachment(with: data, andName: "attachment_1.log")
//Name field is optional
NSURL *url = [NSURL fileURLWithPath:@"filePath"];
[Instabug addFileAttachmentWithURL:url];
//OR
NSData *data = [[NSData alloc] init];
[Instabug addFileAttachmentWithData:data andName:@"attachment_1.log"];
//Name field is optional
Instabug.addFileAttachment(Uri.fromFile(file), "file_name.txt");
Instabug.addFileAttachment(Uri.fromFile(file), "file_name.txt")
//iOS
Instabug.addFileAttachment(filePath)

//Android
Instabug.addFileAttachment(filePath, fileName)
Instabug.addFileAttachment(filePath, fileName)
Instabug.addFile('FILE_PATH');
//iOS
NSUrl url = new NSUrl(“url”);
Instabug.AddFileAttachmentWithURL(url);

//Android
Instabug.AddFileAttachment(Android.Net.Uri.Parse("sample text attachment"), "extra_text_attachment");