The first thing to do is to install Git on the remote server.
Once you do that the rest of the process is split into three sections:
- Server set-up
- Local set-up (push commits)
- Server (pull commits)
| /* | |
| * Copyright (C) 2013 Tomáš Procházka | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| public class CheckableFrameLayout extends FrameLayout implements Checkable { | |
| private static final int[] CHECKED_STATE_SET = { | |
| android.R.attr.state_activated, | |
| android.R.attr.state_checked, | |
| }; | |
| private boolean mChecked; | |
| public CheckableFrameLayout(Context context) { | |
| super(context); |
| package some.awesome.package; | |
| import it.sephiroth.android.library.imagezoom.ImageViewTouch; | |
| import android.content.Context; | |
| import android.support.v4.view.ViewPager; | |
| import android.util.AttributeSet; | |
| import android.util.Log; | |
| import android.view.View; | |
| public class ImageViewTouchViewPager extends ViewPager { |
| /* | |
| * Copyright (c) 2013 Alex Curran | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| // Copyright 2012 Square, Inc. | |
| package com.squareup.widgets; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| /** Maintains an aspect ratio based on either width or height. Disabled by default. */ | |
| public class AspectRatioImageView extends ImageView { |
| import android.content.Context; | |
| import android.support.v4.view.ViewPager; | |
| import android.util.AttributeSet; | |
| import android.view.GestureDetector; | |
| import android.view.GestureDetector.SimpleOnGestureListener; | |
| import android.view.MotionEvent; | |
| /** | |
| * Custom {@link ViewPager} implementation that will handle horizontal scroll events by himself. Default ViewPager | |
| * becomes hardly usable when it's nested into ScrollView based containers (such as ScrollView, ListView, etc.). It is |
| STORE_FILE=/path/to/your.keystore | |
| STORE_PASSWORD=yourkeystorepass | |
| KEY_ALIAS=projectkeyalias | |
| KEY_PASSWORD=keyaliaspassword |
| #!/bin/bash | |
| function device() | |
| { | |
| devIndex=`expr "$1" + 1` | |
| adb devices | head -$devIndex | tail -n 1 | awk '{print $1}' | |
| } | |
| function monkey(package,loops) | |
| { |