Skip to content

Instantly share code, notes, and snippets.

View JavyMB's full-sized avatar

Javi MB JavyMB

View GitHub Profile
@JavyMB
JavyMB / handler.py
Created June 11, 2018 15:40
Facebook webhook
import json
import os
import sys
here = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(here, "./vendored"))
VERIFY_TOKEN = os.environ['VERIFY_TOKEN'] #reemplace
from utils.facebookhandler import FacebookHandler
service: fbWebhook
provider:
name: aws
runtime: python3.6
brew cask install fastlane;
fastlane_version '2.53.1'
before_all do
ensure_git_branch
ensure_git_status_clean
git_pull
end
platform :ios do
# iOS Lanes
desc 'Fetch certificates and provisioning profiles'
lane :certificates do
match(app_identifier: 'com.app.bundle', type: 'development', readonly: true)
match(app_identifier: 'com.app.bundle', type: 'appstore', readonly: true)
End
fastlane_version '2.53.1'
before_all do
ensure_git_branch
ensure_git_status_clean
git_pull
end
@JavyMB
JavyMB / Fastfile
Created May 18, 2019 19:36
Build the iOS application.
desc 'Build the iOS application.'
private_lane :build do
certificates
increment_build_number(xcodeproj: './ios/name.xcodeproj')
gym(scheme: 'name', project: './ios/name.xcodeproj')
end
@JavyMB
JavyMB / Fastfile
Created May 18, 2019 19:41
Build the Android application.
desc 'Build the Android application.'
private_lane :build do
gradle(task: 'clean', project_dir: 'android/')
gradle(task: 'assemble', build_type: 'Release', project_dir: 'android/')
end
@JavyMB
JavyMB / Fastfile
Created May 18, 2019 19:51
Ship to testflight
desc 'Ship to Testflight.'
lane :beta do
build
pilot
commit_version_bump(message: 'Bump build', xcodeproj: './ios/name.xcodeproj')
push_to_git_remote
end
@JavyMB
JavyMB / Fastfile
Created May 18, 2019 19:52
Ship to Playstore Beta.
desc 'Ship to Playstore Beta.'
lane :beta do
build
supply(track: 'beta', track_promote_to: 'beta')
git_commit(path: ['./android/gradle.properties'], message: 'Bump versionCode')
push_to_git_remote
end