fastlane snapshot presentation

26
Fastlane Automation done right - Snapshot -

Upload: cocoaheads-france

Post on 06-Jan-2017

2.995 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Fastlane snapshot presentation

FastlaneAutomation done right

- Snapshot -

Page 2: Fastlane snapshot presentation

FastlaneConnecter tous les outils

de build entre euxDéploiement d’une app

en un "clic"

Page 3: Fastlane snapshot presentation

FastlaneConnecter tous les outils

de build entre euxDéploiement d’une app

en un "clic"

Page 4: Fastlane snapshot presentation

FastlaneConnecter tous les outils

de build entre eux

Uploader les métadatas et l’ipa

de l’app sur l’appStore

Automatiser les screenshots localisés

de l’app

Ajouter les device frames aux screenshots

Déploiement d’une app en un "clic"

Page 5: Fastlane snapshot presentation

- Pourquoi automatiser les screenshots ? -

Pour une app : - 5 screenshots / device - jusqu’à 6 tailles de device

=> 30 screenshots / langue

Page 6: Fastlane snapshot presentation

- Installation -

Intégré à Fastlane

Possibilité d’installation en stand alone

sudo gem install snapshot

⚠ Nécessite les command line tool Xcode

xcode-select --install

Page 7: Fastlane snapshot presentation

- Intégration au projet -

$ cd project_root $ snapshot init

Page 8: Fastlane snapshot presentation

- Intégration au projet -

$ cd project_root $ snapshot init

Page 9: Fastlane snapshot presentation

Dans XCode : → Créer un nouveau UI Test target

- Configuration du projet -

Page 10: Fastlane snapshot presentation

Dans XCode : → Ajouter au projet le fichier SnapshotHelper.swift

Objective-C: Ajouter l’import #import "SnapshotDemoUiTests-Swift.h" à la classe de test

- Configuration du projet -

Page 11: Fastlane snapshot presentation

Dans XCode : → Ajouter le code d’initialisation de l’app dans le setup()

Swiftlet app = XCUIApplication() setupSnapshot(app) app.launch()

Objective-CXCUIApplication *app = [[XCUIApplication alloc] init]; [Snapshot setupSnapshot:app]; [app launch];

- Configuration du projet -

Page 12: Fastlane snapshot presentation

Dans XCode : → Créer le scénario de test dans la méthode testExample(). 🔴

- Configuration du projet -

Page 13: Fastlane snapshot presentation

- Configuration du projet -

Dans XCode : → Ajouter la création de screenshots dans le scénario de test généré.

snapshot("screenshot_filename")

Page 14: Fastlane snapshot presentation

- Configuration -

Fichier Snapfile :

→ Workspace/Project → Scheme → Devices → Output_directory → Clear_previous_screenshots → Reinstall_app

Page 15: Fastlane snapshot presentation

- Exécution -

$ cd project_root $ snapshot

Page 16: Fastlane snapshot presentation

- Outputs -

- Sortie Console

Page 17: Fastlane snapshot presentation

- Outputs -

- Sortie Console - Dossiers localisés

Page 18: Fastlane snapshot presentation

- Outputs -

- Sortie Console - Dossiers localisés - Rapport HTML

Page 19: Fastlane snapshot presentation

- Installation -

Intégré à Fastlane

Possibilité d’installation en stand alone

sudo gem install frameit

⚠ Nécessite les command line tool Xcode

xcode-select --install

brew install imagemagick

Nécessite imagemagick

Page 20: Fastlane snapshot presentation

- Exécution -

frameit

Page 21: Fastlane snapshot presentation

- Exécution -

frameit

- Première exécution -

Téléchargement et installation des device frames manuelle… Mais guidée

Page 22: Fastlane snapshot presentation

- Résultat -

Ajout au répertoire screenshots

Page 23: Fastlane snapshot presentation

- Configuration -

Fichier : - FrameFile.json - title.strings - keyword.strings

Ajout de :- Background - Texte - Padding

Page 24: Fastlane snapshot presentation

- Fastfile -

Upload automatique

skip_screenshots: false, screenshots_path: "..."

Page 25: Fastlane snapshot presentation

FastlaneAutomation done right

- Questions ? -

Page 26: Fastlane snapshot presentation

FastlaneAutomation done right

- Merci -