Created
May 18, 2019 20:01
-
-
Save JavyMB/d82cee82c556a67724e5dc513b3b6042 to your computer and use it in GitHub Desktop.
Complete all lanes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| 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 | |
| desc 'Ship to Testflight.' | |
| lane :beta do | |
| build | |
| pilot | |
| commit_version_bump(message: 'Bump build', xcodeproj: './ios/name.xcodeproj') | |
| push_to_git_remote | |
| end | |
| end | |
| platform :android do | |
| # Android Lanes | |
| 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 | |
| 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 | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment