Pendrush Well-Known Member Licensed User Longtime User Mar 19, 2019 #1 In version before B4A v9.0 I have deleted file \assets\consentform.html inside GoogleConsent.aar and provide my own translated html, in French language for example. In B4A v9.0 (Beta 1) if I delete file consentform.html, I'm getting this error on project loading: I have multiple project where I need to provide different consentform.html file with different language. I need solution for this issue. Thank you in advance.
In version before B4A v9.0 I have deleted file \assets\consentform.html inside GoogleConsent.aar and provide my own translated html, in French language for example. In B4A v9.0 (Beta 1) if I delete file consentform.html, I'm getting this error on project loading: I have multiple project where I need to provide different consentform.html file with different language. I need solution for this issue. Thank you in advance.
Pendrush Well-Known Member Licensed User Longtime User Mar 19, 2019 #2 There is no need to remove file from the lib anymore. If someone need it, this is more then enough to make it work: Code: Copy #CustomBuildAction: 1, c:\windows\system32\cmd.exe, /c copy ..\FileCopy\consentform.html ..\files\consentform.html In previous version of B4A this file will be overwritten with file inside GoogleConsent.aar, so I need to remove it from the lib, but in B4A v9.0 file from CustomBuildAction will be file copied and use by app. Upvote 0
There is no need to remove file from the lib anymore. If someone need it, this is more then enough to make it work: Code: Copy #CustomBuildAction: 1, c:\windows\system32\cmd.exe, /c copy ..\FileCopy\consentform.html ..\files\consentform.html In previous version of B4A this file will be overwritten with file inside GoogleConsent.aar, so I need to remove it from the lib, but in B4A v9.0 file from CustomBuildAction will be file copied and use by app.
Erel B4X founder Staff member Licensed User Longtime User Mar 20, 2019 #3 Is is fixed for beta #2. Upvote 0
Pendrush Well-Known Member Licensed User Longtime User Mar 20, 2019 #4 Please make it as it is. This is a nice feature to be able to overwrite file inside lib with CustomBuildAction. Upvote 0
Please make it as it is. This is a nice feature to be able to overwrite file inside lib with CustomBuildAction.
Erel B4X founder Staff member Licensed User Longtime User Mar 20, 2019 #5 Pendrush said: Please make it as it is. This is a nice feature to be able to overwrite file inside lib with CustomBuildAction. Click to expand... The only change I made is related to the error. It shouldn't happen. The behavior you rely on here depends on the behavior of AAPT tool. At this point it is better to delete the file from the AAR and provide your own file. Upvote 0
Pendrush said: Please make it as it is. This is a nice feature to be able to overwrite file inside lib with CustomBuildAction. Click to expand... The only change I made is related to the error. It shouldn't happen. The behavior you rely on here depends on the behavior of AAPT tool. At this point it is better to delete the file from the AAR and provide your own file.