1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-25 12:32:31 +01:00

try to fix failing CI

This commit is contained in:
Christian Schabesberger 2016-07-25 12:11:55 +02:00
parent 1fd6685b3b
commit 8fbee92255
3 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,7 @@ android:
- build-tools-23.0.2 - build-tools-23.0.2
# The SDK version used to compile NewPipe # The SDK version used to compile NewPipe
- android-23 - android-24
# Additional components # Additional components
- extra-android-support - extra-android-support
@ -22,7 +22,7 @@ env:
- ADB_INSTALL_TIMEOUT=8 # minutes (2 by default) - ADB_INSTALL_TIMEOUT=8 # minutes (2 by default)
- GRADLE_OPTS=-Xmx512m # give gradle more memory since it seem to fail otherwise - GRADLE_OPTS=-Xmx512m # give gradle more memory since it seem to fail otherwise
matrix: matrix:
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a - ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
before_script: before_script:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI

View File

@ -41,13 +41,15 @@ public class App extends Application {
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this).build(); ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this).build();
ImageLoader.getInstance().init(config); ImageLoader.getInstance().init(config);
/*
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
if(prefs.getBoolean(getString(R.string.use_tor_key), false)) { if(prefs.getBoolean(getString(R.string.use_tor_key), false)) {
OrbotHelper.requestStartTor(this); OrbotHelper.requestStartTor(this);
configureTor(true); configureTor(true);
} else { } else {
configureTor(false); configureTor(false);
} }*/
configureTor(false);
// DO NOT REMOVE THIS FUNCTION!!! // DO NOT REMOVE THIS FUNCTION!!!
// Otherwise downloadPathPreference has invalid value. // Otherwise downloadPathPreference has invalid value.

View File

@ -5,7 +5,7 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:2.1.0' classpath 'com.android.tools.build:gradle:2.1.2'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files