of which (surprisingly to me) many are also APIs rather than downloads. But there are lots of downloads like XML and text files. One that I found of the King James Version translation has lines like
Gen|4|26| And to Seth, to him also there was born a son; and he called his name Enos: then began men to call upon the name of the LORD.~
i.e. book of Genesis, chapter 4, verse 26, followed by an ASCII string of that verse.
The Quran download mentioned in the grandparent comment at
i.e. surah 2, ayah 150, followed by a Unicode string of the text of that ayah. (There's no "book" field because of the sufficiency of the surah numbers.) This file is about 1.3 megabytes uncompressed, although of course it doesn't include additional data that a user might want to have presented (the transliterations or translations mentioned elsewhere in this thread, for example).
There are probably lots of mobile apps that have graphics files alone that are larger than this 1.3 megabyte Quran text file. (Not that mobile apps are the only application for the APIs or anything.)
There's some kind of Unicode issue where the letters in the second version seem to be connecting better (e.g. مَا rather than ﻡَﺍ), but my knowledge of Arabic isn't enough to make it obvious to me whether the second one is a more correct encoding or the first one is just making more assumptions about the rendering or something.
I have a bit of minor frustration with how many different XML formats there are for scripture. We have OSIS and USX/USFX, both supposedly universal but really just used for the Bible and Torah.
I cannot access the tanzil XML file right now due to MobileSafari layout issues (boo). https://github.com/ceefour/qurandatabase has its own consistent DTD, but I doubt this is the only format I will find.
I hope my question isn't seen as rude, but have you worked on a non-web app before? Its been the natural thing to bundle all data needed offline and locally along with the app throughout history. I emphasize I don't mean to sound rude, your question just felt surprising to me. (It seems you are been downvoted and I gave you an up personally.)
No offence taken and I appreciate the upvote. I am a macOS/iOS developer. I expected the Qur'an to be bundled with the app but I wondered about the technical nature. How it is actually done? It could be a database file or a text file etc. There are many ways to accomplish this.