You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
3.3 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. id="cordova-plugin-x-socialsharing"
  5. version="5.1.6">
  6. <name>SocialSharing</name>
  7. <description>
  8. Share text, images (and other files), or a link via the native sharing widget of your device.
  9. Android is fully supported, as well as iOS 6 and up. WP8 has somewhat limited support.
  10. </description>
  11. <author>Eddy Verbruggen</author>
  12. <license>MIT</license>
  13. <keywords>Social, Share, Twitter, Facebook, Email, SMS, WhatsApp, Tumblr, Pocket, LinkedIn</keywords>
  14. <repo>https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git</repo>
  15. <issue>https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues</issue>
  16. <engines>
  17. <engine name="cordova" version=">=3.0.0"/>
  18. </engines>
  19. <js-module src="www/SocialSharing.js" name="SocialSharing">
  20. <clobbers target="window.plugins.socialsharing" />
  21. </js-module>
  22. <!-- ios -->
  23. <platform name="ios">
  24. <config-file target="config.xml" parent="/*">
  25. <feature name="SocialSharing">
  26. <param name="ios-package" value="SocialSharing"/>
  27. <param name="onload" value="true" />
  28. </feature>
  29. </config-file>
  30. <header-file src="src/ios/NSString+URLEncoding.h"/>
  31. <source-file src="src/ios/NSString+URLEncoding.m"/>
  32. <header-file src="src/ios/SocialSharing.h"/>
  33. <source-file src="src/ios/SocialSharing.m"/>
  34. <framework src="Social.framework" weak="true" />
  35. <framework src="MessageUI.framework" weak="true" />
  36. </platform>
  37. <!-- android -->
  38. <platform name="android">
  39. <config-file target="res/xml/config.xml" parent="/*">
  40. <feature name="SocialSharing">
  41. <param name="android-package" value="nl.xservices.plugins.SocialSharing" />
  42. </feature>
  43. </config-file>
  44. <config-file target="AndroidManifest.xml" parent="/*">
  45. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  46. </config-file>
  47. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  48. <provider android:authorities="$PACKAGE_NAME.sharing.provider" android:exported="false" android:grantUriPermissions="true" android:name="nl.xservices.plugins.FileProvider">
  49. <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/sharing_paths" />
  50. </provider>
  51. </config-file>
  52. <source-file src="src/android/nl/xservices/plugins/SocialSharing.java" target-dir="src/nl/xservices/plugins"/>
  53. <source-file src="src/android/nl/xservices/plugins/FileProvider.java" target-dir="src/nl/xservices/plugins"/>
  54. <source-file src="src/android/res/xml/sharing_paths.xml" target-dir="res/xml"/>
  55. <framework src="com.android.support:support-v4:24.1.1+" />
  56. </platform>
  57. <!-- wp8 -->
  58. <platform name="wp8">
  59. <config-file target="config.xml" parent="/*">
  60. <feature name="SocialSharing">
  61. <param name="wp-package" value="SocialSharing"/>
  62. </feature>
  63. </config-file>
  64. <source-file src="src/wp8/SocialSharing.cs" />
  65. <framework src="src/wp8/Newtonsoft.Json.dll" custom="true"/>
  66. </platform>
  67. <!-- windows -->
  68. <platform name="windows">
  69. <js-module src="src/windows/SocialSharingProxy.js" name="SocialSharingProxy">
  70. <runs />
  71. </js-module>
  72. </platform>
  73. </plugin>