Update gradle to 3.4.1, pmd to 5.5.5

This commit is contained in:
cpfeiffer 2017-04-08 23:59:00 +02:00
parent 39c7c1aae3
commit bb98910e1c
3 changed files with 18 additions and 7 deletions

View File

@ -53,7 +53,7 @@ android {
}
pmd {
toolVersion = '5.5.1'
toolVersion = '5.5.5'
}
dependencies {

View File

@ -37,13 +37,24 @@ public class LanguageUtilsTest extends TestBase {
@Test
public void testTransliterateOption() throws Exception {
setDefaultTransliteration();
assertFalse("Transliteration option fail! Expected 'Off' by default, but result is 'On'", LanguageUtils.transliterate());
SharedPreferences settings = GBApplication.getPrefs().getPreferences();
SharedPreferences.Editor editor = settings.edit();
editor.putBoolean("transliteration", true);
editor.apply();
enableTransliteration(true);
assertTrue("Transliteration option fail! Expected 'On', but result is 'Off'", LanguageUtils.transliterate());
}
private void setDefaultTransliteration() {
SharedPreferences settings = GBApplication.getPrefs().getPreferences();
SharedPreferences.Editor editor = settings.edit();
editor.remove("transliteration");
editor.apply();
}
private void enableTransliteration(boolean enable) {
SharedPreferences settings = GBApplication.getPrefs().getPreferences();
SharedPreferences.Editor editor = settings.edit();
editor.putBoolean("transliteration", enable);
editor.apply();
}
}

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip