Question - build.settings vs config.lua

Why separate configuration files? Aren’t they both basically project configurations?

config.lua is a lua file, and as such you can add if statements etc to it if you want to configure your display differently on different devices for some reason:

local hiresValue = 2 local fpsRate = 30 if system.getInfo( "environment" ) == "simulator" then hiresValue = 1 fpsRate = 60 end application = { content = { fps = fpsRate, width = 320, height = 480, scale = "letterbox", imageSuffix = { ["@2x"] = hiresValue, }, }, }

build.settings gets used to build AndroidManifest.xml and info.plist files for Android and iOS respectively (and possibly does some other stuff).

config.lua is a lua file, and as such you can add if statements etc to it if you want to configure your display differently on different devices for some reason:

local hiresValue = 2 local fpsRate = 30 if system.getInfo( "environment" ) == "simulator" then hiresValue = 1 fpsRate = 60 end application = { content = { fps = fpsRate, width = 320, height = 480, scale = "letterbox", imageSuffix = { ["@2x"] = hiresValue, }, }, }

build.settings gets used to build AndroidManifest.xml and info.plist files for Android and iOS respectively (and possibly does some other stuff).