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
public class MainThreadBus extends Bus { | |
private final Bus mBus; | |
private final Handler mHandler = new Handler(Looper.getMainLooper()); | |
public MainThreadBus(final Bus bus) { | |
if (bus == null) { | |
throw new NullPointerException("bus must not be null"); | |
} | |
mBus = bus; | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>my-awesome-app</artifactId> | |
<version>1.0.0</version> | |
<packaging>apk</packaging> | |
<name>My Awesome Android Application</name> | |
<dependencies> |
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
# Create a release branch | |
RELEASE_VERSION=`mvn help:evaluate -Dexpression=project.version | grep -v INFO | grep SNAPSHOT | cut -d '-' -f 1` | |
git checkout -b release/$RELEASE_VERSION | |
# Prepare a release (Note we do not push any tags just yet) | |
mvn -B release:prepare -DpushChanges=false -DremoteTagging=false -DscmCommentPrefix= -P release | |
# The project has been built and now we want to deploy | |
# but we need to ensure our manifest stays in line with our releases | |
git reset HEAD~1 |
NewerOlder