Skip to content

Instantly share code, notes, and snippets.

View xsveda's full-sized avatar

Pavel Sveda xsveda

View GitHub Profile
@xsveda
xsveda / apk-change-version-number.md
Created May 21, 2019 09:31 — forked from benvium/apk-change-version-number.md
How to change the version number on an existing APK without re-building

This requires the latest version of apktool.

apktool d $APK_PATH -o $OUTPUT_FOLDER

# Open the apktool.yml text file
# Alter the versionCode and versionName entries

# now rebuild!
apktool build $OUTPUT_FOLDER 
@xsveda
xsveda / simple-git-workflow.md
Created February 4, 2019 20:02 — forked from leesmith/simple-git-workflow.md
Simple Git Workflow For Continuous Delivery

Simple Git Workflow For Continuous Delivery

Workflow guidelines:

  • master branch is always production-ready, deployable, 100% green test suite
  • New development is done on feature branches, with frequent rebasing onto master
  • Clean commit history by preferring to rebase instead of merge (git pull is configured to automatically rebase)

rebase workflow

Workflow

c:\Users\psveda\AppData\Roaming\npm\node_modules\appium>appium
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"app":"c:\\data\\my-app.apk","appPackage":"com.my.app","noReset":true,"noSign":true,"appWaitActivity":"com.my.app.MainActivity","disableAndroidWatchers":true,"version":"","deviceName":"__IGNORED__","platform":"ANDROID","avd":"Appium_71","appActivity":"com.my.app.MainActivity","chromedriverExecutable":"C:\\data\\chromedriver\\2_24\\chromedriver.exe","newCommandTimeout":60,"platformVersion":"7.1","automationName":"UIAutomator2","browserName":"android","unicodeKeyboard":true,"platformName":"Android","resetKeyboard":true},"requiredCapabilities":{}},"desiredCapabilities":{"app":"c:\\data\\my-app.apk","appPackage":"com.my.app","noReset":true,"noSign":true,"appW
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"c:\\data\\my-app.apk","appPackage":"com.my.app"
/**
* Relay that buffers values when no Observer subscribed and replays them to Observer as requested. Such values are not replayed
* to any other Observer.
* <p>
* This relay holds an unbounded internal buffer.
* <p>
* This relay allows only a single Observer at a time to be subscribed to it.
* <p>
* If more than one Observer attempts to subscribe to this Relay at the same time, they
* will receive an IllegalStateException.
@xsveda
xsveda / OptionalMatcher.java
Created March 17, 2016 08:42
Hamcrest matchers for Optional class
public class OptionalMatcher {
public static IsPresentMatcher isPresent() {
return new IsPresentMatcher();
}
public static IsEmptyMatcher isEmpty() {
return new IsEmptyMatcher();
}