itgirl Active Member Licensed User Longtime User Jan 25, 2017 #1 why CreateResourceFromFile does not update the values ? in the Firebase messaging tut it was my first use of Code: CreateResourceFromFile("google-services", "google-services.json") but I've noticed that after changing the google-services.json the values of googleservices.xml file does not change!! I know it's the default behavior since it's marked as read-only but is there a work around this issue?? so i don't have delete the file every time i update the google-services.json. I figured out this issue in the hard way, i copied project resources from one to another and my FireBase token always wrong so after alooooot of research i found out this issue
why CreateResourceFromFile does not update the values ? in the Firebase messaging tut it was my first use of Code: CreateResourceFromFile("google-services", "google-services.json") but I've noticed that after changing the google-services.json the values of googleservices.xml file does not change!! I know it's the default behavior since it's marked as read-only but is there a work around this issue?? so i don't have delete the file every time i update the google-services.json. I figured out this issue in the hard way, i copied project resources from one to another and my FireBase token always wrong so after alooooot of research i found out this issue
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2017 #2 It shouldn't be marked as read-only. The IDE will never set it to be read-only. Upvote 0
itgirl Active Member Licensed User Longtime User Jan 26, 2017 #3 Erel said: It shouldn't be marked as read-only. The IDE will never set it to be read-only. Click to expand... I double checked my CustomBuildAction just to make sure nothing was setting the file to read-only. I ended up using CustomBuildAction to set it to writable before compiling, can we use CreateResourceFromFile with a path variable ? like Code: CreateResourceFromFile("..\ExRes\google-services", "google-services.json") so we can create external resources ? Upvote 0
Erel said: It shouldn't be marked as read-only. The IDE will never set it to be read-only. Click to expand... I double checked my CustomBuildAction just to make sure nothing was setting the file to read-only. I ended up using CustomBuildAction to set it to writable before compiling, can we use CreateResourceFromFile with a path variable ? like Code: CreateResourceFromFile("..\ExRes\google-services", "google-services.json") so we can create external resources ?
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2017 #4 My guess is that you are using a different CustomBuildAction that caused it to be read-only. itgirl said: can we use CreateResourceFromFile with a path variable ? Click to expand... No. The file should be in the project folder. Upvote 0
My guess is that you are using a different CustomBuildAction that caused it to be read-only. itgirl said: can we use CreateResourceFromFile with a path variable ? Click to expand... No. The file should be in the project folder.