Setup
Last Updated - Platform 21.0 - SDK 16.0Our tooling is built using Fastlane and is pulled and consumed by client repos when running Fastlane commands. We follow semantic versioning for all of our releases.
Before you begin
Install Fastlane following their documentation if you don't already have it installed.
We recommend using rbenv (which is simple to set up) before installing Fastlane to avoid OS complications such as having to redo this set up after major OS updates.
Add PoqTooling to your repository
- Add a
Fastlanedirectory containing aFastfilewith the following code, replacingAppNamewith your own.
#!/usr/bin/env ruby
import_from_git( url: "https://github.com/poqcommerce/Poq.iOS.Tooling", path: "fastlane/fastfile.public", version: "~> 3")
override_lane :configure_environment do # ENV["POQ_WORKSPACE"] = "AppName.xcworkspace" # Uncomment if you use Cocoapods. ENV["POQ_PROJECT"] = "AppName.xcodeproj" ENV["POQ_SCHEME"] = "AppName-InHouseUAT" # Set the default target for PR validation.end- Add the
Fastlanedirectory, excluding theFastfile, to your.gitignoreto avoid committing generated resources.
Fastlane/*!Fastlane/Fastfile- Create a file named
GenerateProject.commandwith the following in your root directory to make it easy for devs to double tap to generate your project. Use terminal to make this executable usingchmod +x GenerateProject.command.
#!/bin/bash
BASEDIR=$(dirname "$0")cd "${BASEDIR}"
fastlane generate- Remember to commit and push these changes to your upstream.
You have set up your devs for success!
Next steps
- Make sure you have installed and set up the PoqSDK.