com-easystep2-datawedge-plugin-intent-cordova 4.4.0 → 4.4.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com-easystep2-datawedge-plugin-intent-cordova",
3
- "version": "4.4.0",
3
+ "version": "4.4.2",
4
4
  "description": "Cordova plugin for Android Intents and Zebra DataWedge",
5
5
  "main": "www/IntentShim.js",
6
6
  "files": [
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin version="4.4.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <plugin id="com-easystep2-datawedge-plugin-intent-cordova" version="4.4.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
3
3
  <name>Intent Shim</name>
4
4
  <js-module name="IntentShim" src="www/IntentShim.js">
5
5
  <clobbers target="intentShim" />
@@ -657,21 +657,22 @@ public class IntentShim extends CordovaPlugin {
657
657
  //noinspection deprecation
658
658
  i.putExtra(key, Html.fromHtml(valueStr));
659
659
  }
660
- } else if (key.equals(Intent.EXTRA_STREAM)) {
661
- // allows sharing of images as attachments.
662
- // value in this case should be a URI of a file
663
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && valueStr.startsWith("file://"))
664
- {
665
- Uri uriOfStream = remapUriWithFileProvider(valueStr, callbackContext);
666
- if (uriOfStream != null)
667
- i.putExtra(key, uriOfStream);
668
- }
669
- else
670
- {
671
- //final CordovaResourceApi resourceApi = webView.getResourceApi();
672
- i.putExtra(key, resourceApi.remapUri(Uri.parse(valueStr)));
673
- }
674
- } else if (key.equals(Intent.EXTRA_EMAIL)) {
660
+ // } else if (key.equals(Intent.EXTRA_STREAM)) {
661
+ // // allows sharing of images as attachments.
662
+ // // value in this case should be a URI of a file
663
+ // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && valueStr.startsWith("file://"))
664
+ // {
665
+ // Uri uriOfStream = remapUriWithFileProvider(valueStr, callbackContext);
666
+ // if (uriOfStream != null)
667
+ // i.putExtra(key, uriOfStream);
668
+ // }
669
+ // else
670
+ // {
671
+ // //final CordovaResourceApi resourceApi = webView.getResourceApi();
672
+ // i.putExtra(key, resourceApi.remapUri(Uri.parse(valueStr)));
673
+ // }
674
+ }
675
+ else if (key.equals(Intent.EXTRA_EMAIL)) {
675
676
  // allows to add the email address of the receiver
676
677
  i.putExtra(Intent.EXTRA_EMAIL, new String[] { valueStr });
677
678
  } else if (key.equals(Intent.EXTRA_KEY_EVENT)) {