mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 03:52:51 +08:00
66 lines
2.9 KiB
XML
66 lines
2.9 KiB
XML
<?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.1.0">
|
|
|
|
<name>File Opener2</name>
|
|
<description>A File Opener Plugin for Cordova. (The Original Version)</description>
|
|
<license>MIT</license>
|
|
|
|
<engines>
|
|
<engine name="cordova" version=">=3.0.0" />
|
|
</engines>
|
|
|
|
<js-module src="www/plugins.FileOpener2.js" name="FileOpener2">
|
|
<clobbers target="cordova.plugins.fileOpener2" />
|
|
</js-module>
|
|
|
|
<!-- Android -->
|
|
<platform name="android">
|
|
<source-file src="src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java" target-dir="src/io/github/pwlin/cordova/plugins/fileopener2" />
|
|
<source-file src="src/android/io/github/pwlin/cordova/plugins/fileopener2/FileProvider.java" target-dir="src/io/github/pwlin/cordova/plugins/fileopener2" />
|
|
<config-file target="res/xml/config.xml" parent="/*">
|
|
<feature name="FileOpener2">
|
|
<param name="android-package" value="io.github.pwlin.cordova.plugins.fileopener2.FileOpener2" />
|
|
</feature>
|
|
</config-file>
|
|
<config-file target="AndroidManifest.xml" parent="/*">
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
</config-file>
|
|
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
<provider android:name="io.github.pwlin.cordova.plugins.fileopener2.FileProvider" android:authorities="${applicationId}.opener.provider" android:exported="false" android:grantUriPermissions="true">
|
|
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/opener_paths" />
|
|
</provider>
|
|
</config-file>
|
|
<source-file src="src/android/res/xml/opener_paths.xml" target-dir="res/xml" />
|
|
<preference name="ANDROID_SUPPORT_V4_VERSION" default="27.+"/>
|
|
<framework src="com.android.support:support-v4:$ANDROID_SUPPORT_V4_VERSION"/>
|
|
</platform>
|
|
|
|
<!-- iOS -->
|
|
<platform name="ios">
|
|
<config-file target="config.xml" parent="/*">
|
|
<feature name="FileOpener2">
|
|
<param name="ios-package" value="FileOpener2" />
|
|
</feature>
|
|
</config-file>
|
|
<source-file src="src/ios/FileOpener2.m" />
|
|
<header-file src="src/ios/FileOpener2.h" />
|
|
</platform>
|
|
|
|
<!-- WP8 -->
|
|
<platform name="wp8">
|
|
<config-file target="config.xml" parent="/*">
|
|
<feature name="FileOpener2">
|
|
<param name="wp-package" value="FileOpener2" />
|
|
</feature>
|
|
</config-file>
|
|
<source-file src="src/wp8/FileOpener2.cs" />
|
|
</platform>
|
|
|
|
<!-- windows -->
|
|
<platform name="windows">
|
|
<js-module src="src/windows/fileOpener2Proxy.js" name="fileOpener2Proxy">
|
|
<merges target="" />
|
|
</js-module>
|
|
</platform>
|
|
</plugin>
|