Skip to content

Instantly share code, notes, and snippets.

View sebalopez's full-sized avatar

Sebastián Lopez sebalopez

View GitHub Profile
@sebalopez
sebalopez / android-workflow.yml
Created November 17, 2020 16:41
GitHub Actions workflow for dev android
name: QA Builds
on:
push:
branches:
- feature/ui-refresh
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
@sebalopez
sebalopez / Fastfile
Last active July 2, 2021 23:02
Android Fastfile main lanes
# Initialization
default_platform(:android) # Set this to avoid having to specify the platform at runtime
app_name = 'ReactNativeBase' # Base application name used for .apk file
app_id_prefix = 'com.reactnativebase' # Base application identifier in Play Store
json_key = ENV["JSON_KEYFILE"] # Local path to keyfile used for authenticating with Play Store
slack_url = ENV["SLACK_URL"] # Slack webhook url and channel name for sending notifications upon completion
slack_channel = ENV["SLACK_CHANNEL"] #
# Release Lanes
lane :release_dev do
@sebalopez
sebalopez / Fastfile
Created September 14, 2020 14:47
Android Fastfile release lane
lane :publish_appstore do |options|
# get version number
version = android_get_version_name+"."+android_get_version_code
# push to play store
upload_to_play_store(
track: 'internal',
json_key: json_key,
package_name: app_id_prefix+options[:suffix]
)
# Slack
@sebalopez
sebalopez / Fastfile
Last active July 2, 2021 23:02
Android Fastfile build lane
lane :build do |options|
# clean
gradle(
task: "clean"
)
# dependencies
gradle(
task: 'androidDependencies'
)
# build