forked from github/cordova-android
Move registration of App plugin from config.xml -> code
Less fragile this way.
This commit is contained in:
parent
caeb86843d
commit
e86c2e5970
@ -23,9 +23,4 @@
|
|||||||
|
|
||||||
<!-- Preferences for Android -->
|
<!-- Preferences for Android -->
|
||||||
<preference name="loglevel" value="DEBUG" />
|
<preference name="loglevel" value="DEBUG" />
|
||||||
|
|
||||||
<!-- This is required for native Android hooks -->
|
|
||||||
<feature name="App">
|
|
||||||
<param name="android-package" value="org.apache.cordova.App" />
|
|
||||||
</feature>
|
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -43,8 +43,4 @@
|
|||||||
<preference name="InAppBrowserStorageEnabled" value="true" />
|
<preference name="InAppBrowserStorageEnabled" value="true" />
|
||||||
<preference name="disallowOverscroll" value="true" />
|
<preference name="disallowOverscroll" value="true" />
|
||||||
-->
|
-->
|
||||||
<!-- This is required for native Android hooks -->
|
|
||||||
<feature name="App">
|
|
||||||
<param name="android-package" value="org.apache.cordova.App" />
|
|
||||||
</feature>
|
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -157,6 +157,7 @@ public class CordovaWebView extends WebView {
|
|||||||
exposedJsApi = new ExposedJsApi(pluginManager, jsMessageQueue);
|
exposedJsApi = new ExposedJsApi(pluginManager, jsMessageQueue);
|
||||||
resourceApi = new CordovaResourceApi(this.getContext(), pluginManager);
|
resourceApi = new CordovaResourceApi(this.getContext(), pluginManager);
|
||||||
|
|
||||||
|
pluginManager.addService("App", "org.apache.cordova.App");
|
||||||
initWebViewSettings();
|
initWebViewSettings();
|
||||||
exposeJsInterface();
|
exposeJsInterface();
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,4 @@
|
|||||||
<feature name="PluginStub">
|
<feature name="PluginStub">
|
||||||
<param name="android-package" value="org.apache.cordova.pluginApi.pluginStub" />
|
<param name="android-package" value="org.apache.cordova.pluginApi.pluginStub" />
|
||||||
</feature>
|
</feature>
|
||||||
<feature name="App">
|
|
||||||
<param name="android-package" value="org.apache.cordova.App" />
|
|
||||||
</feature>
|
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user