Skip to content

Instantly share code, notes, and snippets.

@obliviusm
Created October 2, 2017 20:26
Show Gist options
  • Save obliviusm/34a19f91c0a5e7a0828514e3d5d095c3 to your computer and use it in GitHub Desktop.
Save obliviusm/34a19f91c0a5e7a0828514e3d5d095c3 to your computer and use it in GitHub Desktop.
android/fastlane/Fastfile
desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
# need to use `react-native bundle` instead of bundleReleaseJsAndAssets from grdale
# because it causes 134 error (out of memory) on Circle CI
sh "cd ../.. && react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/"
gradle(
task: "assembleRelease",
flags: "-x bundleReleaseJsAndAssets"
)
crashlytics(
api_token: ENV['CRASHLYTICS_API_TOKEN'],
build_secret: ENV['CRASHLYTICS_BUILD_SECRET'],
groups: 'main'
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment