Skip to content

Instantly share code, notes, and snippets.

Kai Winter kaiwinter

Block or report user

Report or block kaiwinter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:bbdc1f4b5a93d1e0b1b80a12076a38e7
@Deployment
public static WebArchive createDeployment() {
WebArchive webArchive = (WebArchive) EmbeddedMaven.forProject(new File("pom.xml")) //
.useMaven3Version("3.3.9") //
.setGoals("package") //
.setQuiet() //
.skipTests(true) //
.setDebugLoggerLevel() //
.build() //
.getDefaultBuiltArchive();
@kaiwinter
kaiwinter / .gitlab-ci.yml
Created May 15, 2016
Building an Android app on GitLab CI
View .gitlab-ci.yml
before_script:
- apt-get --quiet update --yes
- apt-get --quiet install --yes wget tar unzip openjdk-7-jdk lib32stdc++6 lib32z1
- wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
- tar --extract --gzip --file=android-sdk.tgz
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-23
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-23.0.3
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
@kaiwinter
kaiwinter / TouchDelegateComposite.java
Created Mar 9, 2016
Having multiple TouchDelegates for one parent
View TouchDelegateComposite.java
public final class TouchDelegateComposite extends TouchDelegate {
private final List<TouchDelegate> delegates = new ArrayList<>();
private static final Rect EMPTY_RECT = new Rect();
public TouchDelegateComposite(View view) {
super(EMPTY_RECT, view);
}
public void addDelegate(TouchDelegate delegate) {
You can’t perform that action at this time.