slack-digest/2020-08-18.md
Tue, 18 Aug 2020 08:21:41 GMT
Join the conversation at slack.cordova.io
Mon, 17 Aug 2020 14:39:08 GMT
@rahadur.rahman says
Hello everyone, How are you? I am new member in this community. I have an issue with recently developed cordova plugin.
The problem is that plugin
preference&variableis not copying value from appconfig.xmlorpackage.jsonfiles after build.Example 1:
<preference<config-file target="app/src/main/res/values/strings.xml" parent="/*"> <string name="publicKey">$SDK_KEY</string> </config-file>``` Example 2: ```<preference name="SDK_KEY" default="Required" /> <edit-config file="app/src/main/res/values/strings.xml" target="/*" mode="merge"> <string name="publicKey">$SDK_KEY</string> </edit-config>```
Mon, 17 Aug 2020 17:37:26 GMT
@norman137 says
I'd raise an issue with that, I think I reproduced it the other day trying to reproduce a completely different problem.
I think the variables work if supplied via
--variablebut I noticed variables wasn't being taken frompackage.jsonorconfig.xml, at least with the cordova-android platform.