Sorry it took me so long to get back to you.
To clarify, we're using normal apks with expansion files, not android bundles. Our app is larger than 200MB so we're dependant on expansion files.
We're building all apps (android and iOS) on a Mac, if that makes any difference.
I'm running 3459 and the ResourceDirectory example I posted results in a runtime error: "bad argument #1 to 'open' (string expected, got nil)".
I've just been using the following method to prevent the issue.
local path = system.pathForFile( "ThisFileDoesntExist.json", system.ResourceDirectory )
local file, errorString
if path then
file, errorString = io.open( path, "r" )
end
I'm trying to load files, that are packed to the android expansion files (obb files). In this case, color descriptors and localization files. Preventing the crash would not help, as the files are required for the app to function.
This has worked in the past!
Does same code works on 3480 or something?
2019.3476 - works
2019.3480 - works
2019.3486 - Build Error 11
2019.3487 - Build Error 11
2019.3490 - Build Error 11
2019.3502 - does not work
2019.3504 - does not work
2019.3508 - does not work
I also retested, if 2019.3508 works, if I set usesExpansionFile to false. Yes, it does. The problem only happens, if an expansion file is created!