This commit is contained in:
2019-10-12 18:19:24 +08:00
parent 6bdccd96db
commit 8fa6d40890
5 changed files with 254 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="crash-log-cordova-plugin" version="1.0.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>CrashLog</name>
<!-- js-module name="CrashLog" src="www/crash-log.js">
<clobbers target="CrashLog" />
</js-module -->
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="CrashLog">
<param name="android-package" value="cn.shuto.crash.CrashLogPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<source-file src="src/android/cn/shuto/crash/CrashLogPlugin.java" target-dir="src/cn/shuto/crash" />
<source-file src="src/android/cn/shuto/crash/CrashHandler.java" target-dir="src/cn/shuto/crash" />
</platform>
</plugin>