Skip to content

πŸ”πŸŸ Share Fastfile between projects

License

Notifications You must be signed in to change notification settings

artemnovichkov/fastfood

Repository files navigation

πŸ”πŸŸ Fastfood

Swift 4 Homebrew Swift Package Manager BuddyBuild PRs Welcome

Fastfood is a simple way to share lanes between multiple projects.

Features

  • Syncing with remote Fastfiles
  • Different Fastfile versions via tags and branches
  • Fastfile import updating in projects

Requirements

  • masOS 10.10+
  • Xcode 9.0+

Usage

Fastfood is useful if you have shared lanes across multiple projects and you want to store the Fastfile in a remote git repository with local caching. To use it run fastfood update in a project folder. That's all! Fastfood updates local saved Fastfiles if needed and creates a new Fastfile in current project or updates an existing file. By default Fastfood clones files from this repo.

Run fastfood help to see available options:

Usage: fastfood [options]
  update:
      Update fastlane in the project.
  clean:
      Clean all cached versions.
  help:
      Print this message.
  -u, --url:
      URL to a repo contains Fastfile.
  -v, --version:
      A tag or branch name.
  -f, --force:
      Update to last version.
  --no-cache:
      Update shared fastlane ignoring cached versions. Usually uses for fastlane in development stage.
  -mi, --manual-input:
	    Enable manual input for configurating env file.

Installation

Homebrew (recommended):

$ brew install artemnovichkov/projects/fastfood

Carthage:

Create a Cartfile that lists the framework and run carthage update. Follow the instructions to add the framework to your project.

github "artemnovichkov/Fastfood"

Swift Package Manager:

// swift-tools-version:4.0

import PackageDescription

let package = Package(
    name: "Project",
    dependencies: [
    .package(url: "https://github.com/artemnovichkov/fastfood.git", from: "1.0.0"),
        ],
    targets: [
        .target(
            name: "Project", dependencies: ["Fastfood"])
    ]
)

Manually:

Drag Sources folder from last release into your project.

Author

Artem Novichkov, novichkoff93@gmail.com

License

Fastfood is available under the MIT license. See the LICENSE file for more info.