[
https://issues.apache.org/jira/browse/CB-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13840341#comment-13840341
]
Andrew Grieve commented on CB-5481:
-----------------------------------
Cherry picked into the 3.3.x branch.
> 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
> Assignee: Andrew Grieve
> Fix For: 3.3.0
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> {{org.apache.cordova.PluginManager#loadPlugins()}} should use
> {{int id = this.ctx.getActivity().getResources().getIdentifier("config",
> "xml", this.ctx.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)