Skip to content

Instantly share code, notes, and snippets.

Avatar

Sebastián Lopez sebalopez

View GitHub Profile
@sebalopez
sebalopez / android-workflow.yml
Created Nov 17, 2020
GitHub Actions workflow for dev android
View android-workflow.yml
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 Jul 2, 2021
Android Fastfile main lanes
View Fastfile
# 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 Sep 14, 2020
Android Fastfile release lane
View Fastfile
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 Jul 2, 2021
Android Fastfile build lane
View Fastfile
lane :build do |options|
# clean
gradle(
task: "clean"
)
# dependencies
gradle(
task: 'androidDependencies'
)
# build