Bumped the version to 2.0.0 - Added more Contributors to README.md

This commit is contained in:
pwlin 2015-09-23 20:02:24 +02:00
parent 6946144296
commit 15f69c085c
3 changed files with 159 additions and 109 deletions

View File

@ -1,3 +1,14 @@
Contributors
------------
[@Gillardo](https://github.com/Gillardo/)
[@TankOs](https://github.com/TankOs)
[@Rovi23](https://github.com/Rovi23)
[@josemanuelbd](https://github.com/josemanuelbd)
A File Opener Plugin for Cordova (The Original Version)
==========================
This plugin will open a file on your device file system with its default application.
@ -9,17 +20,21 @@ Requirements
Installation
-------------
cordova plugin add https://github.com/pwlin/cordova-plugin-file-opener2
PhoneGap Build
---------------
This Plugin is also available in PhoneGap Build Repository. Go to [https://build.phonegap.com/](https://build.phonegap.com/)
And search for `io.github.pwlin.cordova.plugins.fileopener2`
(There are a couple of other forks out there which are mostly out of date. Make sure to download the one with the exact same id as mentioned above)
cordova plugin add cordova-plugin-file-opener2
Usage
------
cordova.plugins.fileOpener2.open(
filePath,
fileType,
{
error : function(){ },
success : function(){ }
}
);
Examples
--------
Open an APK install dialog:
cordova.plugins.fileOpener2.open(
@ -45,7 +60,7 @@ Open a PDF document with the default PDF reader and optional callback object:
Notes
------
- For properly opening a PDF file, you must already have a PDF reader (Acrobat Reader, Foxit Mobile PDF, etc. ) installed on your mobile device. Otherwise this will not work
- For properly opening a any file, you must already have an suitable reader for that particular file type already installed on your device. Otherwise this will not work.
- [It is reported](https://github.com/pwlin/cordova-plugin-file-opener2/issues/2#issuecomment-41295793) that in iOS, you might need to remove `<preference name="iosPersistentFileLocation" value="Library" />` from your `config.xml`
@ -80,10 +95,6 @@ Check if an app is already installed.
}
});
Contributors
------------
[@Gillardo:](https://github.com/Gillardo/) Support for WP8
LICENSE
--------
The MIT License (MIT)

39
package.json Normal file
View File

@ -0,0 +1,39 @@
{
"name": "cordova-plugin-file-opener2",
"version": "2.0.0",
"description": "A File Opener Plugin for Cordova. (The Original Version)",
"cordova": {
"id": "cordova-plugin-file-opener2",
"platforms": [
"android",
"ios",
"wp8",
"windows"
]
},
"repository": {
"type": "git",
"url": "https://github.com/pwlin/cordova-plugin-file-opener2.git"
},
"keywords": [
"ecosystem:cordova",
"cordova-android",
"cordova-ios",
"cordova-wp8",
"cordova-windows"
],
"engines": [
{
"name": "cordova",
"version": ">=3.0.0"
}
],
"author": {
"name": "pwlin05@gmail.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/pwlin/cordova-plugin-file-opener2/issues"
},
"homepage": "https://github.com/pwlin/cordova-plugin-file-opener2#readme"
}

View File

@ -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="1.0.11">
<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.0">
<name>File Opener2</name>
<description>A File Opener Plugin for Cordova. (The Original Version)</description>