[
https://issues.apache.org/jira/browse/CB-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836619#comment-13836619
]
Andrew Grieve commented on CB-5481:
-----------------------------------
This was broken by CB-5080 so that it would work with `aapt's
--rename-manifest-package`.
https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=blobdiff;f=framework/src/org/apache/cordova/PluginManager.java;h=5249f5041d1cd1cd10f4f235a32fc4c0d1140504;hp=2db9d56e7d278e27124d21e11f961fc1adc35417;hb=93b9b53;hpb=edb35b5a6d13159c69e1fc75ddbf8a149df6498e
I don't really understand what's going on with these tools, but maybe the thing
to do is to try both paths?
> 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)