Skip to content

Instantly share code, notes, and snippets.

View itcherry's full-sized avatar
👨‍💻

Andrii Chernysh itcherry

👨‍💻
View GitHub Profile

Ticket :

What's in this PR?

  • Added Feature 1
  • Added Feature 2
  • Added Feature 3

Steps to reproduce this feature or fix

  1. Step 1
@itcherry
itcherry / lane_publish_to_firebase
Created December 23, 2019 15:55
Publish to firebase lane
lane :publish_to_firebase do |options|
build_notes = "Environment: #{options[:flavor].capitalize}. Branch: #{options[:branch]}. Notes: #{options[:notes]}. Built by #{options[:author]}"
firebase_app_distribution(
app: "#{options[:app_id]}",
groups: "name-of-your-test-group",
release_notes: build_notes,
apk_path: "app/build/outputs/apk/#{options[:flavor].downcase}/release/app-#{options[:flavor].downcase}-release.apk",
firebase_cli_token: "#{options[:firebase_token]}"
)
@itcherry
itcherry / lane_stage
Last active December 23, 2019 15:54
Stage Fastlane lane that distributes build to Firebase
lane :stage do |options|
commit = last_git_commit
if options[:branch] != "develop" and commit[:message].downcase.include? "#upload" or options[:branch] == "master"
release_type = "Release"
commit_notes = ""
if(options[:branch] == "master")
commit_notes = "Release candidate. #{commit[:message]}"
else
commit_notes = commit[:message].sub("#upload ", "")
@itcherry
itcherry / alpha_stage
Created December 23, 2019 15:35
CircleCI config with alpha stage
alpha_stage:
<<: *container_config
steps:
- checkout
-
run:
command: bundle update fastlane && gem install bundler && bundle install
name: configure build
-
restore_cache: