I have the following remote config_default.xml file
<?xml version="1.0" encoding="utf-8"?> <defaultsMap> <entry> <key>LOCAL_JSON</key> <value>[{"title":"TitleA","path":"pathA","image_url":" Some URL A"},{"title":"TitleB","path":"pathB","image_url":" Some URL B"}]</value> </entry> </defaultsMap>
Now when I try to access it using the Firebase remote method getString() , I always get the string without quotes
"[{title:TitleA,path:pathA,image_url: Some URL A},{title:TitleB,path:pathB,image_url: Some URL B}]"ยง
as the picture below

I put the same line in the Firebase remote console console and after the application retrieves it from it, it puts double quotes in the line as I expect.
I double checked this and it seems to work fine when I use the following gradle file project
apply plugin: 'com.github.ben-manes.versions' buildscript { repositories { maven { url "http://dl.bintray.com/populov/maven" } jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3' classpath 'me.tatarka:gradle-retrolambda:3.6.1' classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0' classpath 'com.stanfy.spoon:spoon-gradle-plugin:1.2.1' classpath 'com.google.gms:google-services:3.1.0' classpath 'com.google.firebase:firebase-plugins:1.0.5' } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "http://oss.sonatype.org/content/repositories/snapshots" } maven { url "https://jitpack.io" } jcenter() flatDir { dirs 'libs' } } }
But when I update gradle to use new versions for all libraries, the quotes seemed to be ignored only then. My new gradle file project
apply plugin: 'com.github.ben-manes.versions' buildscript { repositories { maven { url "http://dl.bintray.com/populov/maven" } jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0' classpath 'com.stanfy.spoon:spoon-gradle-plugin:1.2.1' classpath 'com.google.gms:google-services:3.1.2' classpath ('com.google.firebase:firebase-plugins:1.0.5') } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "http://oss.sonatype.org/content/repositories/snapshots" } maven { url "https://jitpack.io" } jcenter() google() flatDir { dirs 'libs' } } }
I donโt know which library is causing this, but it would be great if anyone could point this out.
Sheraz ahmad khilji
source share