From 2ed84b1b71394e0231fd75b95cebd765cef2c996 Mon Sep 17 00:00:00 2001 From: Hoisel Date: Tue, 27 Sep 2016 15:00:01 -0300 Subject: [PATCH] fix(social-sharing): shareWithOptions method signature (#598) Fix shareWithOptions method signature, replacing 'options.file' property with 'options.files' to match social sharing plugin [method interface](https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/blob/master/src/android/nl/xservices/plugins/SocialSharing.java#L209) --- src/plugins/socialsharing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/socialsharing.ts b/src/plugins/socialsharing.ts index 058e968c5..78a1ad264 100644 --- a/src/plugins/socialsharing.ts +++ b/src/plugins/socialsharing.ts @@ -50,7 +50,7 @@ export class SocialSharing { @Cordova({ platforms: ['iOS', 'Android'] }) - static shareWithOptions(options: { message?: string, subject?: string, file?: string|string[], url?: string, chooserTitle?: string }): Promise { return; } + static shareWithOptions(options: { message?: string, subject?: string, files?: string|string[], url?: string, chooserTitle?: string }): Promise { return; } /** * Checks if you can share via a specific app.