-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathplugin.xml
65 lines (57 loc) · 3.96 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-flutter" version="2.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-flutter</name>
<description>支持在cordova项目里flutter混合开发,支持cordova-android与cordova-ios平台</description>
<author>[email protected]</author>
<license>Apache License Version 2.0</license>
<keywords>cordova,cordova-plugin-flutter</keywords>
<engines>
<engine name="cordova-android" version=">=9.0.0" />
</engines>
<js-module name="CordovaFlutter" src="www/cordova-plugin-flutter.js">
<clobbers target="flutter" />
</js-module>
<platform name="android">
<config-file target="config.xml" parent="/*">
<preference name="AndroidXEnabled" value="true" />
</config-file>
<config-file parent="/*" target="res/xml/config.xml">
<feature name="CordovaFlutter">
<param name="android-package" value="com.flutter.android.FlutterCordovaPlugin" />
</feature>
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<activity android:theme="@android:style/Theme.NoTitleBar" android:name="io.flutter.embedding.android.FlutterActivity" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize" />
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:name="com.flutter.android.CordovaFlutterActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="adjustResize" />
</config-file>
<config-file parent="/manifest" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
</config-file>
<source-file src="src/android/com/flutter/android/FlutterCordovaPlugin.java" target-dir="src/com/flutter/android" />
<source-file src="src/android/com/flutter/android/CordovaFlutterActivity.java" target-dir="src/com/flutter/android" />
<source-file src="src/android/android/support/v4/content/FileProvider.java" target-dir="src/android/support/v4/content" />
<framework src="src/android/compile.gradle" custom="true" type="gradleReference" />
<hook type="before_plugin_install" src="scripts/android/before_plugin_install.js" />
<hook type="before_plugin_uninstall" src="scripts/android/before_plugin_uninstall.js" />
<hook type="after_plugin_add" src="scripts/android/after_plugin_add.js" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="CordovaFlutter">
<param name="ios-package" value="CDVFlutter" />
</feature>
</config-file>
<header-file src="src/ios/CDVFlutter.h" />
<source-file src="src/ios/CDVFlutter.m" />
<header-file src="src/ios/GeneratedPluginRegistrant.h" />
<source-file src="src/ios/GeneratedPluginRegistrant.m" />
<framework src="src/ios/lib/App.framework" custom="true" embed="true" />
<framework src="src/ios/lib/Flutter.framework" custom="true" embed="true" />
<hook type="before_plugin_install" src="scripts/ios/before_plugin_install.js" />
<hook type="before_plugin_uninstall" src="scripts/ios/before_plugin_uninstall.js" />
<hook type="after_plugin_add" src="scripts/ios/after_plugin_add.js" />
<hook type="before_prepare" src="scripts/ios/before_prepare.js" />
</platform>
<hook type="before_plugin_install" src="scripts/before_plugin_install.js" />
</plugin>