mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
Added a README note on how to add AndroidX support
This commit is contained in:
parent
3eb2bc7380
commit
243873dda9
12
README.md
12
README.md
@ -40,6 +40,18 @@ The following platforms and versions are supported by the latest release:
|
|||||||
|
|
||||||
Cordova CLI 6.0 is supported by 2.0.19, but there are a number of issues, particularly with Android builds (see [232](https://github.com/pwlin/cordova-plugin-file-opener2/issues/232) [203](https://github.com/pwlin/cordova-plugin-file-opener2/issues/203) [207](https://github.com/pwlin/cordova-plugin-file-opener2/issues/207)). Using the [cordova-android-support-gradle-release](https://github.com/dpa99c/cordova-android-support-gradle-release) plugin may help.
|
Cordova CLI 6.0 is supported by 2.0.19, but there are a number of issues, particularly with Android builds (see [232](https://github.com/pwlin/cordova-plugin-file-opener2/issues/232) [203](https://github.com/pwlin/cordova-plugin-file-opener2/issues/203) [207](https://github.com/pwlin/cordova-plugin-file-opener2/issues/207)). Using the [cordova-android-support-gradle-release](https://github.com/dpa99c/cordova-android-support-gradle-release) plugin may help.
|
||||||
|
|
||||||
|
### AndroidX Support
|
||||||
|
|
||||||
|
Currently if your project requires AndroidX support, you need to add the following two plugins to your project:
|
||||||
|
|
||||||
|
- [cordova-plugin-androidx](https://github.com/dpa99c/cordova-plugin-androidx/) and [cordova-plugin-androidx-adapter](https://github.com/dpa99c/cordova-plugin-androidx-adapter/)
|
||||||
|
```shell
|
||||||
|
$ cordova plugin add cordova-plugin-androidx
|
||||||
|
$ cordova plugin add cordova-plugin-androidx-adapter
|
||||||
|
```
|
||||||
|
Just adding these plugins should be enough and no further changes are necessary.
|
||||||
|
|
||||||
|
|
||||||
## fileOpener2.open(filePath, mimeType, options)
|
## fileOpener2.open(filePath, mimeType, options)
|
||||||
|
|
||||||
Opens a file
|
Opens a file
|
||||||
|
Loading…
Reference in New Issue
Block a user