You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/11/16 09:45:11 UTC
[GitHub] [cordova-common] premji012 commented on issue #154: Problem with edit-config attribute in plugin.xml
premji012 commented on issue #154:
URL: https://github.com/apache/cordova-common/issues/154#issuecomment-727863804
I tried doing this in order to use my custom MainActivity. For selecting a already declared MainActivity i used **/manifest/application/activity[@android:name='MainActivity']** as target. And i used mode=merge to only change the required attribute and leave others.
Initially i thought i could use template for that, but unfortunately templates cannot be used for platform specific files.
So i am looking for a suitable solution. For now as a last resort i thought about using hooks to overwrite the MainActivity when the corresponding plugin which requires a custom MainActivity is installed. And using a hook to revert it when the corresponding plugin is uninstalled.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org