community-cordova-plugin-social-sharing 6.1.0 → 6.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <paths>
3
- <external-path
4
- name="Android/data/${applicationId}/socialsharing_downloads"
5
- path="./socialsharing-downloads"/>
6
-
7
- <root-path
8
- name="root"
9
- path="/"/>
10
-
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <paths>
3
+ <external-path
4
+ name="Android/data/${applicationId}/socialsharing_downloads"
5
+ path="./socialsharing-downloads"/>
6
+
7
+ <root-path
8
+ name="root"
9
+ path="/"/>
10
+
11
11
  </paths>
@@ -1,5 +1,5 @@
1
- #import <Foundation/Foundation.h>
2
-
3
- @interface NSString (SSURLEncoding)
4
- @property (readonly) NSString *SSURLEncodedString;
5
- @end
1
+ #import <Foundation/Foundation.h>
2
+
3
+ @interface NSString (SSURLEncoding)
4
+ @property (readonly) NSString *SSURLEncodedString;
5
+ @end
@@ -1,30 +1,30 @@
1
- #import "NSString+SSURLEncoding.h"
2
-
3
- @implementation NSString (SSURLEncoding)
4
- - (NSString*)SSURLEncodedString
5
- {
6
- NSString* result = (NSString *)CFBridgingRelease(
7
- CFURLCreateStringByAddingPercentEscapes(
8
- kCFAllocatorDefault,
9
- (CFStringRef)self,
10
- CFSTR("#%"), // don't escape these
11
- NULL, // allow escaping these
12
- kCFStringEncodingUTF8
13
- )
14
- );
15
-
16
- // we may have a URL with more than one '#' now - which iOS doesn't allow, so escape all but the first one
17
- NSArray *parts = [result componentsSeparatedByString:@"#"];
18
- NSString *finalResult = parts[0];
19
- for (int i=1; i<parts.count; i++) {
20
- NSString *part = [parts objectAtIndex:i];
21
- if (i==1) {
22
- finalResult = [finalResult stringByAppendingString:@"#"];
23
- } else {
24
- finalResult = [finalResult stringByAppendingString:@"%23"];
25
- }
26
- finalResult = [finalResult stringByAppendingString:part];
27
- }
28
- return finalResult;
29
- }
30
- @end
1
+ #import "NSString+SSURLEncoding.h"
2
+
3
+ @implementation NSString (SSURLEncoding)
4
+ - (NSString*)SSURLEncodedString
5
+ {
6
+ NSString* result = (NSString *)CFBridgingRelease(
7
+ CFURLCreateStringByAddingPercentEscapes(
8
+ kCFAllocatorDefault,
9
+ (CFStringRef)self,
10
+ CFSTR("#%"), // don't escape these
11
+ NULL, // allow escaping these
12
+ kCFStringEncodingUTF8
13
+ )
14
+ );
15
+
16
+ // we may have a URL with more than one '#' now - which iOS doesn't allow, so escape all but the first one
17
+ NSArray *parts = [result componentsSeparatedByString:@"#"];
18
+ NSString *finalResult = parts[0];
19
+ for (int i=1; i<parts.count; i++) {
20
+ NSString *part = [parts objectAtIndex:i];
21
+ if (i==1) {
22
+ finalResult = [finalResult stringByAppendingString:@"#"];
23
+ } else {
24
+ finalResult = [finalResult stringByAppendingString:@"%23"];
25
+ }
26
+ finalResult = [finalResult stringByAppendingString:part];
27
+ }
28
+ return finalResult;
29
+ }
30
+ @end
@@ -1,28 +1,28 @@
1
- #import <Cordova/CDV.h>
2
- #import <MessageUI/MFMailComposeViewController.h>
3
-
4
- @interface SocialSharing : CDVPlugin <UIPopoverControllerDelegate, MFMailComposeViewControllerDelegate, UIDocumentInteractionControllerDelegate>
5
-
6
- @property (nonatomic, strong) MFMailComposeViewController *globalMailComposer;
7
- @property (nonatomic, strong) UIDocumentInteractionController * documentInteractionController;
8
- @property (retain) NSString * tempStoredFile;
9
- @property (retain) CDVInvokedUrlCommand * command;
10
-
11
- - (void)available:(CDVInvokedUrlCommand*)command;
12
- - (void)setIPadPopupCoordinates:(CDVInvokedUrlCommand*)command;
13
- - (void)share:(CDVInvokedUrlCommand*)command;
14
- - (void)shareWithOptions:(CDVInvokedUrlCommand*)command;
15
- - (void)canShareVia:(CDVInvokedUrlCommand*)command;
16
- - (void)canShareViaEmail:(CDVInvokedUrlCommand*)command;
17
- - (void)shareVia:(CDVInvokedUrlCommand*)command;
18
- - (void)shareViaTwitter:(CDVInvokedUrlCommand*)command;
19
- - (void)shareViaFacebook:(CDVInvokedUrlCommand*)command;
20
- - (void)shareViaFacebookWithPasteMessageHint:(CDVInvokedUrlCommand*)command;
21
- - (void)shareViaWhatsApp:(CDVInvokedUrlCommand*)command;
22
- - (void)shareViaSMS:(CDVInvokedUrlCommand*)command;
23
- - (void)shareViaEmail:(CDVInvokedUrlCommand*)command;
24
- - (void)shareViaInstagram:(CDVInvokedUrlCommand*)command;
25
-
26
- - (void)saveToPhotoAlbum:(CDVInvokedUrlCommand*)command;
27
-
28
- @end
1
+ #import <Cordova/CDV.h>
2
+ #import <MessageUI/MFMailComposeViewController.h>
3
+
4
+ @interface SocialSharing : CDVPlugin <UIPopoverControllerDelegate, MFMailComposeViewControllerDelegate, UIDocumentInteractionControllerDelegate>
5
+
6
+ @property (nonatomic, strong) MFMailComposeViewController *globalMailComposer;
7
+ @property (nonatomic, strong) UIDocumentInteractionController * documentInteractionController;
8
+ @property (retain) NSString * tempStoredFile;
9
+ @property (retain) CDVInvokedUrlCommand * command;
10
+
11
+ - (void)available:(CDVInvokedUrlCommand*)command;
12
+ - (void)setIPadPopupCoordinates:(CDVInvokedUrlCommand*)command;
13
+ - (void)share:(CDVInvokedUrlCommand*)command;
14
+ - (void)shareWithOptions:(CDVInvokedUrlCommand*)command;
15
+ - (void)canShareVia:(CDVInvokedUrlCommand*)command;
16
+ - (void)canShareViaEmail:(CDVInvokedUrlCommand*)command;
17
+ - (void)shareVia:(CDVInvokedUrlCommand*)command;
18
+ - (void)shareViaTwitter:(CDVInvokedUrlCommand*)command;
19
+ - (void)shareViaFacebook:(CDVInvokedUrlCommand*)command;
20
+ - (void)shareViaFacebookWithPasteMessageHint:(CDVInvokedUrlCommand*)command;
21
+ - (void)shareViaWhatsApp:(CDVInvokedUrlCommand*)command;
22
+ - (void)shareViaSMS:(CDVInvokedUrlCommand*)command;
23
+ - (void)shareViaEmail:(CDVInvokedUrlCommand*)command;
24
+ - (void)shareViaInstagram:(CDVInvokedUrlCommand*)command;
25
+
26
+ - (void)saveToPhotoAlbum:(CDVInvokedUrlCommand*)command;
27
+
28
+ @end