mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 03:52:51 +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.
|
||||
|
||||
Current Version: 2.0.9
|
||||
Current Version: 2.0.10
|
||||
----------------
|
||||
|
||||
Requirements
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cordova-plugin-file-opener2",
|
||||
"version": "2.0.9",
|
||||
"version": "2.0.10",
|
||||
"description": "A File Opener Plugin for Cordova. (The Original Version)",
|
||||
"cordova": {
|
||||
"id": "cordova-plugin-file-opener2",
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?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>
|
||||
<description>A File Opener Plugin for Cordova. (The Original Version)</description>
|
||||
|
@ -43,8 +43,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
// 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;
|
||||
|
||||
NSLog(@"looking for file at %@", fileURL);
|
||||
|
Loading…
Reference in New Issue
Block a user