Remove double slashes in fileName from Companion to apk (SimpleSqlite)

Hi everyone!

I know that in Companion I need “//” before the name of a file in fileName.

Do I have to remove o change the “//” when i build my apk?

No, should work in both settings.

Why, or in what specific case, would "//" be needed? Post your relevant block(s).

Eg. in simpleSqLite extension @TIMAI2 - importDatabase there is a “fileName” field @Anke

For that you need to follow the documentation provided, which tells you to use a full path.

In companion I wrote “//filename.db

and it works.

I have to change to full path?

If you are importing a database to the default from assets then yes, use the //. Remember that this database will be read only. This is also shown in the documentation for the extension.

Hi @TIMAI2

Yes, in simple SQLite I import a database to the default… so if I have well understood, I can use “//” in fileName field.

I have a similar situation in spreadsheet component - credentialsJson field. Can I continue to use “//” for my apk? (in companion it works)

For other files in assets you can either use // or not.

It would make more sense to set the credentials file in the Designer settings for the spreadsheet component.

I put credentials in blocks because I used obfuscate text… is it correct?

It might help, but:

This could be one of the reasons that many do not use the native spreadsheet component for production apps.