Skip to content

Instantly share code, notes, and snippets.

@xavarius
xavarius / assetlinks.json
Last active June 3, 2022 07:19
One package many certificate fingerprints
@xavarius
xavarius / Bitrise.yml
Last active July 10, 2020 12:08
targeted unit tests for 3 flavours
_TargetedUnitTestForAllFlavours:
steps:
- gradle-unit-test@1.0.5:
inputs:
- gradlew_file_path: "./gradlew"
- unit_test_task: ":app:testFlavourAUatDebugUnitTest"
- gradle_file: "./build.gradle"
title: "FlavourA App unit testing"
- gradle-unit-test@1.0.5:
inputs:
@xavarius
xavarius / Bitrise.yml
Last active April 1, 2020 15:21
Bitrise CI Android Unit Test Step Configuration
_UnitTestsPerFlavour:
steps:
- android-unit-test:
inputs:
- module: app
- variant: ${FLAVOUR_NAME}UatDebug
title: "Flavour unit tests"
before_run:
- _UnitTests_Flavour_Agnostic_Modules
@xavarius
xavarius / Bitrise.yml
Last active April 1, 2020 15:16
Bitrise CI configuration for Android Unit Testing
_UnitTests_Flavour_Agnostic_Modules:
steps:
- gradle-unit-test@1.0.5:
inputs:
- gradlew_file_path: "./gradlew"
- unit_test_task: ":data:testDebugUnitTest"
- gradle_file: "./build.gradle"
title: "Data module unit testing"
- gradle-unit-test@1.0.5:
inputs:
@xavarius
xavarius / prepare-commit-msg
Last active December 18, 2019 10:23 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# Script provides effortless way of prepending Jira ticket number
# into a commit message.
# It is compatible with "git flow" naming approach for branches :: f.ex feature/AVENGERS-667.
# Installation
# Put this file into rootProject/.git/hooks dir.
# Make it executable. (with chmod)