Packt Publishing, 2017. — 506 p. — ISBN13: 9781786460165.
Become a developer superhero and build stunning cross-platform apps with Delphi
Delphi is the most powerful Object Pascal IDE and component library for cross-platform native app development. It enables building natively compiled, blazingly fast apps for all major platforms including Android, iOS, Windows, Mac, and Linux.
If you want to build server-side applications, create web services, and have clear GUIs for your project, then this book is for you.
The book begins with a basic primer on Delphi helping you get accustomed to the IDE and the Object Pascal language and will then quickly move on to advanced-level concepts. Through this book, we’ll help you understand the architecture of applications and will teach you the important concepts of the FireMonkey library, show you how to build server-side services, and enable you to interact with the Internet of Things. Towards the end, you will learn to integrate your app with various web services and deploy them.
By the end of the book, you will be able to build powerful, cross-platform, native apps for iOS and Android with a single code base.
: Fasten Your Seat BeltsDelphi installation
Delphi versions
Running the Delphi installer
Installing custom components
IDE options
Riding the Integrated Development Environment
Delphi compilers and toolchains
Hello World app
Deploying to mobile devices
Deploying to Android
Deploying to iOS
: Mind Your LanguageDo you speak Object Pascal
Program structure
Console application
Forms applications
Object Pascal Phrase Book
Tokens
Constants
Types
Sets and arrays
Helpers
Generics
Anonymous code
Operator overloading
Custom attributes
Runtime Type Information
: Packing Up Your ToolboxParallel Programming Library
Parallel loops
Tasks
Futures
Working with files
JSON
Writing JSON
Reading JSON
XML
: Playing with FireMonkeyDrawing in code
Get moving with timers
Precise timing
The power of parenting
Shapes
Animations
Programmable effects
Touch me
Touch
Gestures
Multitouch
Game of Memory
Designing the game
Working with images
Designing a user interface
Aligning, anchoring, and margins
Layouts
Building the games main form
Storing the game's configuration
The game's settings form
: FireMonkey in 3DCross-platform 3D rendering
Using Context3D
Custom Wireframe component
Objects 3D
Moving Earth
Building an interactive 3D scene
Using 3D models
Starfield simulation
Mixing 3D and 2D
: Building User Interfaces with StyleWorking with built-in styles
Using custom styles
Embedding styles as resources
Customizing styles
Using frames
Working with inherited views
Previewing forms on devices
: Working with Mobile Operating SystemJames Bond's toy
What I'm running on
The life of an app
Sensing the world
Taking photos
Using share sheets
Camera, light, action
Working with address book
Notify me
Navigating the web
Working with maps
Creating and consuming Android services
Delphi language bridges
Vibrating on Android
Vibrations on iOS
: Extending to the Internet of ThingsCommunication protocols
Understanding BLE
Connecting to things with ThingConnect
Getting close with beacons
Beacons in a museum
Emulating beacons with TBeaconDevice
Proximity solutions with BeaconFence
App tethering
: Embedding DatabasesArchitecting data-driven apps
Modeling data
Choosing a database
Accessing databases with FireDAC
Building data-driven user interface
Using visual live bindings
Fast user interface prototyping
: Integrating with Web ServicesUnderstanding web services
Native HTTP client
Consuming XML SOAP web services
Integrating with REST services
Backend as a service client
Integrating with the cloud
Moving ToDo List to Amazon S
: Building Mobile BackendsDelphi and multi-tier architectures
Getting low-level with WebBroker
Organizing your WebBroker projects
Do it yourself with DataSnap
Implementing DataSnap server functionality
Easy REST API publishing with RAD Server
RAD Server setup
Building resources
: App DeploymentDeploying to App Stores
Publishing your apps to Apple iOS App Store
Publishing your Android apps to Google Play Store
Monetizing with adds and in-app purchases
Enhancing your apps
Practical version control
Planning a release
Development and refactorings
Sleeping well with unit testing
Continuous integration and deployment
The Road Ahead
What we have learned
Staying on top of everything
Apps everywhere
Serverless backends and NoSQL
Internet of all kinds of things
Your next Delphi mobile app