mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
parent
0be8e27775
commit
69099524c5
@ -7,7 +7,7 @@ A File Opener Plugin for Cordova (The Original Version)
|
|||||||
==========================
|
==========================
|
||||||
This plugin will open a file on your device file system with its default application.
|
This plugin will open a file on your device file system with its default application.
|
||||||
|
|
||||||
Current Version: 2.0.9
|
Current Version: 2.0.10
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cordova-plugin-file-opener2",
|
"name": "cordova-plugin-file-opener2",
|
||||||
"version": "2.0.9",
|
"version": "2.0.10",
|
||||||
"description": "A File Opener Plugin for Cordova. (The Original Version)",
|
"description": "A File Opener Plugin for Cordova. (The Original Version)",
|
||||||
"cordova": {
|
"cordova": {
|
||||||
"id": "cordova-plugin-file-opener2",
|
"id": "cordova-plugin-file-opener2",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-file-opener2" version="2.0.9">
|
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-file-opener2" version="2.0.10">
|
||||||
|
|
||||||
<name>File Opener2</name>
|
<name>File Opener2</name>
|
||||||
<description>A File Opener Plugin for Cordova. (The Original Version)</description>
|
<description>A File Opener Plugin for Cordova. (The Original Version)</description>
|
||||||
|
@ -43,7 +43,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
// TODO: test if this is a URI or a path
|
// TODO: test if this is a URI or a path
|
||||||
NSURL *fileURL = [NSURL URLWithString:path];
|
// Use one of the following lines
|
||||||
|
//NSURL *fileURL = [NSURL URLWithString:path];
|
||||||
|
NSURL *fileURL = [NSURL fileURLWithPath:path];
|
||||||
|
|
||||||
localFile = fileURL.path;
|
localFile = fileURL.path;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user