Book Image

Continuous Delivery for Mobile with fastlane

By : Doron Katz
Book Image

Continuous Delivery for Mobile with fastlane

By: Doron Katz

Overview of this book

Competitive mobile apps depend strongly on the development team’s ability to deliver successful releases, consistently and often. Although continuous integration took a more mainstream priority among the development industry, companies are starting to realize the importance of continuity beyond integration and testing. This book starts off with a brief introduction to fastlane—a robust command-line tool that enables iOS and Android developers to automate their releasing workflow. The book then explores and guides you through all of its features and utilities; it provides the reader a comprehensive understanding of the tool and how to implement them. Themes include setting up and managing your certificates and provisioning and push notification profiles; automating the creation of apps and managing the app metadata on iTunes Connect and the Apple Developer Portal; and building, distributing and publishing your apps to the App Store. You will also learn how to automate the generation of localized screenshots and mesh your continuous delivery workflow into a continuous integration workflow for a more robust setup. By the end of the book, you will gain substantial knowledge on delivering bug free, developer-independent, and stable application release cycle.
Table of Contents (27 chapters)
Title Page
Dedication
www.PacktPub.com
Foreword
Contributors
Preface
Index

Private lanes and lane contexts


You will have already seen some examples of private lanes in your educational journey through this book, and in fact, we already have a private lane, Slack. While you should already be able to work out what private lanes are, it is worth discussing when and why you would create private lanes.

Private lanes are akin to private functions/methods in modern programming languages, allowing you to protect a specific block of code from being accessed externally. In the case of fastlane, you will want to create private lanes for bits of code that you just want to call within your Fastfile and not from Command Prompt or anywhere else outside. In our case, we put our nominated method as a private lane because we don’t want to expose the ability for people to call these methods from the command line, as we simply want to restrict its usability to those predefined lanes that are calling it.

Lane contexts allow you to share values in between lanes, providing you with the...