[ 
https://issues.apache.org/jira/browse/CB-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Schuerrer updated CB-5481:
---------------------------------

    Description: 
{{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}}

  was:
{{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}}


> 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
>   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)

Reply via email to