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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
