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
# Warn when there is a big PR | |
warn("Big PR!") if git.lines_of_code > 500 | |
# Android lint | |
android_lint.severity = "Warning" | |
android_lint.skip_gradle_task = true | |
#lint only on modified lines | |
android_lint.filtering_lines = true |
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
import fileinput | |
def bump_version_code(): | |
with open('<path to file with version code>', 'r') as appConfigFile: | |
for line in appConfigFile.readlines(): | |
new_words = line.strip().split(' ') | |
words = line.strip().split(' ') | |
if '<version code variable identifier>' in words: | |
new_words[-1] = str(int(words[-1]) + 1) |
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
import sys | |
import fileinput | |
def bump_version_name(version_code): | |
with open('<path to file with version name>', 'r') as appConfigFile: | |
for line in appConfigFile.readlines(): | |
new_words = line.strip().split(' ') | |
words = line.strip().split(' ') | |
if '<version name variable identifier>' in words: |
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
pipeline { | |
agent { | |
label "<your node label>" | |
} | |
environment { | |
DANGER_GITHUB_API_TOKEN = credentials('Token') // token for using GitHub APIs create using - https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens | |
CREDENTIALS_ID = '<your credential id>' // the one you created in step 3 | |
BUCKET = '<your config files bucket>' // bucket name you added the files in cloud project | |
FOLDER = '<folder name>' // folder name where you added the files in cloud project | |
SDK_URL= 'https://dl.google.com/android/repository/commandlinetools-linux-9123335_latest.zip' // link to download latest cmd line tools |
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
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins |