Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
buu700 committed Aug 21, 2018
1 parent 8415174 commit 1135cc1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions README.md
Expand Up @@ -41,3 +41,21 @@ Supported Platforms:
const file = await chooser.getFile();
console.log(file ? file.name : 'canceled');
})();


## Platform-Specific Notes

The following must be added to config.xml to prevent crashing when selecting large files
on Android:

```
<platform name="android">
<edit-config
file="app/src/main/AndroidManifest.xml"
mode="merge"
target="/manifest/application"
>
<application android:largeHeap="true" />
</edit-config>
</platform>
```
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-chooser",
"version": "1.2.2",
"version": "1.2.3",
"description": "Cordova file chooser plugin",
"main": "index.js",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Expand Up @@ -3,7 +3,7 @@
xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-chooser"
version="1.2.2"
version="1.2.3"
>
<name>Chooser</name>
<author>Cyph, Inc.</author>
Expand All @@ -13,7 +13,7 @@
</js-module>

<platform name="android">
<source-file src="src/android/Chooser.java" target-dir="src/com/cyph/cordova"/>
<source-file src="src/android/Chooser.java" target-dir="src/com/cyph/cordova" />

<config-file target="config.xml" parent="/*">
<feature name="Chooser">
Expand Down

0 comments on commit 1135cc1

Please sign in to comment.