Mastering Swift Package Manager: Build and Test Modular Apps Using... - Librairie Eyrolles
Tous nos rayons

Déjà client ? Identifiez-vous

Mot de passe oublié ?

Nouveau client ?

CRÉER VOTRE COMPTE
Mastering Swift Package Manager: Build and Test Modular Apps Using Xcode
Ajouter à une liste

Librairie Eyrolles - Paris 5e
Indisponible

Mastering Swift Package Manager: Build and Test Modular Apps Using Xcode

Mastering Swift Package Manager: Build and Test Modular Apps Using Xcode

Avi Tsadok

211 pages, parution le 27/05/2021

Résumé

Maintaining an iOS project often results in thousands of code files scattered around your folders. Did you ever wanted to reuse those files with other projects but found yourself making copies of Swift files? You are not alone! Many iOS developers struggle with this issue as well-unorganized projects, duplicated files, difficulty in testing, and long complication times. This book will show how Swift Package Manager can help you handle these problems by restructuring your project to make it efficient and straightforward.
Swift Package Manager isn't magic, but you'll likely need a little guidance in using this nifty tool. You'll see how to reorganize projects smartly and efficiently, create your first Swift package, and learn what libraries are in this context. Then share your package with the rest of your projects. Next test your library's quality. And then take your library to the next level of power by including files that go beyond just code.

By going over the methodology of big project organization, you will have the ability to extend your project into the future as Apple sees it. Make no mistake-the path for a modular and flexible project is not easy. With the help of Swift Package Manager, it becomes possible and worth it.
What You'll Learn
  • Create a Swift package both from the command line and from Xcode
  • Manage Swift packages in public and private Git repositories
  • Build test suites to test integrations between packages

Who This Book Is For
Senior iOS developers and team leaders who already have professional experience with Swift.
Chapter 1 - Introduction - Clean Your Room

Introduction

Personal View

Modularity is not a slogan - it's a way of living

The Future by Apple

How to read this book

Summary

Chapter 2 - Organized Mess

Introduction

Our Weather App

The Project Navigator

Modular Apps

Principles

Design a modular app.

Frameworks and Bundles

Cocoapods and Carthage

Static and Dynamic Libraries

Summary

Chapter 3 - Swift Package to the Rescue

Introduction

Create our first package

Command Line Tool

Or from Xcode

Document your package with Readme.md file

Meet the package brain - the manifest file

Integrate our package within the app

Summary

Chapter 4 - Manage Dependencies

Introduction

Dependencies' Methodologic

Reorganize our project.

Remote Dependency

Manifest File

Version Lock

Local Dependency

Swift Build command

Summary

Chapter 5 - Move to GIT

Integrate

Upload our first package to git

Integrate our package to Xcode

Integrate our package to another package

Dealing with private repositories

The importance of Integration Tests

Summary

Chapter 6 - Stay Local with Mono Repo

Introduction

Code Sharing is Not Simple

Meet Mono Repo

Mono Repo Best Practices

Summary

Chapter 7 - Unit and Integration Tests

Introduction

Testing is carrying

Writing the package unit test

Test a package from the command line

Build an integration test project

Summary

Chapter 8 - Add Some Spice with Resources

Introduction

Adding Files to a swift package

Types of resources

Images

Localization files

UI files (Xib, storyboards)

SwifttUI

Use Cases

Summary

Avi Tsadok is an accomplished iOS Developer with almost a decade of experience. He currently heads mobile developemnt at Any.do, a leading productivity app. He's also a regular contributor to "Better Programming" and has an active presence on Medium. He uses writing to combine his passion for helping educate the development community while working on refining his own skills in developing.

Caractéristiques techniques

  PAPIER
Éditeur(s) Apress
Auteur(s) Avi Tsadok
Parution 27/05/2021
Nb. de pages 211
EAN13 9781484270486

Avantages Eyrolles.com

Livraison à partir de 0,01 en France métropolitaine
Paiement en ligne SÉCURISÉ
Livraison dans le monde
Retour sous 15 jours
+ d'un million et demi de livres disponibles
satisfait ou remboursé
Satisfait ou remboursé
Paiement sécurisé
modes de paiement
Paiement à l'expédition
partout dans le monde
Livraison partout dans le monde
Service clients sav@commande.eyrolles.com
librairie française
Librairie française depuis 1925
Recevez nos newsletters
Vous serez régulièrement informé(e) de toutes nos actualités.
Inscription