Martin Schuerrer created CB-5481:
------------------------------------
Summary: When embedding the Cordova WebView in an Android
application using packageNameSuffix in build.gradle breaks PluginManager
Key: CB-5481
URL: https://issues.apache.org/jira/browse/CB-5481
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 3.2.0
Environment: Android application that uses the Google-recommended
gradle build system and embeds the Cordova WebView
Reporter: Martin Schuerrer
{{org.apache.cordova.PluginManager#loadPlugins()}} should use
{{int id = this.getActivity().getResources().getIdentifier("config", "xml",
this.getActivity().getPackageName());}}
instead of
{{int id = this.ctx.getActivity().getResources().getIdentifier("config", "xml",
this.ctx.getActivity().getClass().getPackage().getName());}}
in order to get the correct package name to find config.xml even if
{{packageNameSuffix}} is used in {{build.gradle}}
--
This message was sent by Atlassian JIRA
(v6.1#6144)