How to automatically configure the capacitor plug-in key when adding a plug-in
Ryanccl opened this issue · 5 comments
Sorry I'm not following, can you clarify what this issue is describing? Thanks
Why would you want to modify the plugin project? The only setting that matters is the setting in your main app project. I suppose you could just configure the directory of the android project if you want to be specific though. https://trapeze.dev/docs/Operations/getting-started#usage
Why would you want to modify the plugin project? The only setting that matters is the setting in your main app project. I suppose you could just configure the directory of the android project if you want to be specific though. https://trapeze.dev/docs/Operations/getting-started#usage
My need is to achieve the same effect as the cordova plugin
cordova plugin add cordova-example-plugin --variable APP_KEY=your_appkey
There will be no actual APP_KEY in the developed third-party plug-in code. When using, the package name of each package is different, and the APP_KEY inside will also be different. APP_KEY needs to be updated when adding plugins
Yes, the way this is done is how I described it: plugins that require variables ultimately require you adding config values to your app's configuration files which then apply to the rest of the app. The way Trapeze does this is correct, this is working as expected. You wouldn't modify the actual plugin project which is probably in a node_modules
folder and going to be recreated every time the plugin is installed.