Skip to content

Commit

Permalink
Fixed Gradle(w) build and Travis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
smarek authored and Chris Banes committed Apr 29, 2015
1 parent f901a0c commit e365829
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
31 changes: 30 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,33 @@ script:
branches:
only:
- master
- dev
language:
- java
jdk:
- openjdk6
before_install:
# environment info
- mvn -version
- gradle -v
- uname -a
# required libs for android build tools
- if [ `uname -m` = x86_64 ]; then sudo apt-get update; fi
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi
# for gradle output style
- export TERM=dumb
# newer version of gradle
- wget http://services.gradle.org/distributions/gradle-1.11-bin.zip
- unzip -qq gradle-1.11-bin.zip
- export GRADLE_HOME=$PWD/gradle-1.11
- export PATH=$GRADLE_HOME/bin:$PATH
# just to test gradle version, against our provided one
- gradle -v
# newest android SDK 22.6.1
- wget http://dl.google.com/android/android-sdk_r22.6.1-linux.tgz
- tar -zxf android-sdk_r22.6.1-linux.tgz
- export ANDROID_HOME=`pwd`/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# manually set sdk.dir variable, according to local paths
- echo "sdk.dir=$ANDROID_HOME" > local.properties
- echo yes | android update sdk -a -t tools,platform-tools,extra-android-support,extra-android-m2repository,android-19,build-tools-19.0.3 --force --no-ui
>>>>>>> Fixed Gradle(w) build and Travis errors
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public interface IPhotoView {

/**
* Return the current scale type in use by the ImageView.
*   *
*
* @return current ImageView.ScaleType
*/
Expand Down
8 changes: 3 additions & 5 deletions sample/src/main/res/menu/viewpager_menu.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<menu xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android" >
<menu xmlns:android="http://schemas.android.com/apk/res/android" >

<item
android:id="@+id/menu_lock"
android:showAsAction="always"
android:title="@string/menu_lock"
tools:ignore="UnusedAttribute"/>
android:title="@string/menu_lock"/>

</menu>
</menu>

0 comments on commit e365829

Please sign in to comment.