A variety of developer tools, frameworks and libraries exist to simplify the goal of supporting multiple types of device from a single codebase. One of the latest is Embarcadero FireDAC which supports a wide variety of databases and platforms.