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 +1 -1
- package/plugin.xml +1 -1
- package/src/android/IntentShim.java +16 -15
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin version="4.4.
|
|
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
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}
|
|
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)) {
|