import_from_gem
Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.
Supported Platforms: ios, android, mac
Import Fastfiles from an installed gem to use their lanes
Details
Like import_from_git, this is useful if you share lanes across multiple apps, here by packaging the Fastfiles in a gem. The project’s Gemfile.lock then pins the version of the shared lanes and of what they depend on, and the fastlane plugins the gem depends on are loaded when its Fastfiles are imported.
The gem must be in the project’s Gemfile. By default every fastlane/Fastfile* in the gem is imported, so lanes can be split into files by purpose; an actions folder next to them is imported too.
Parameters & Options
Total options available: 2
| Key | Type | Env Variable | Default | Required | Description |
|---|---|---|---|---|---|
gem_name |
String |
- |
- |
Yes | The gem to import the Fastfiles and actions from |
paths |
Array |
- |
["fastlane/Fastfile*"] |
No | The path(s) of the Fastfiles in the gem, as glob patterns |
Examples
import_from_gem( gem_name: "my_company_lanes" # The gem to import the Fastfiles from, listed in your Gemfile)import_from_gem( gem_name: "my_company_lanes", paths: ["fastlane/Fastfile", "fastlane/Fastfile.release"] # The Fastfiles to import, relative to the gem)Source & Upstream
- Gem Action:
import_from_gem.rb - Upstream Source: Inspect Ruby Implementation on GitHub
- Authors:
lacostej