Skip to content

Instantly share code, notes, and snippets.

@shafayathossain
Last active December 1, 2021 17:02
Show Gist options
  • Save shafayathossain/096c12a25fb89f2bf6859bf8bf8f3508 to your computer and use it in GitHub Desktop.
Save shafayathossain/096c12a25fb89f2bf6859bf8bf8f3508 to your computer and use it in GitHub Desktop.
`before_all` block of fastfile
fastlane_require "dotenv"
PACKAGE_NAME = "<package name here>"
FIREBASE_APP_ID = "<firebase app id here>"
KEYSTORE_PATH = nil
FIREBASE_KEY_PATH = nil
PLAYSTORE_KEY_PATH = nil
BUNDLE_FILE_PATH = nil
UPDATED_VERSION_CODE = nil
before_all do
Dotenv.overload ".env.secret"
KEYSTORE_PATH = Dir.pwd + "/../certificates/<keystore_name>.jks"
FIREBASE_KEY_PATH = Dir.pwd + "/../certificates/firebase-app-distribution-key.json"
PLAYSTORE_KEY_PATH = Dir.pwd + "/../certificates/playstore-app-distribution-key.json"
BUNDLE_FILE_PATH = Dir.pwd + "/../app/outputs/bundle/release/app-release.aab"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment