Skip to content

Commit

Permalink
Update gradle and libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydtorres committed May 3, 2020
1 parent 642960a commit bd335cc
Show file tree
Hide file tree
Showing 10 changed files with 147 additions and 46 deletions.
134 changes: 109 additions & 25 deletions Stately/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Stately/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 17 additions & 2 deletions Stately/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Stately/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Stately/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ repositories {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation('org.simpleframework:simple-xml:2.7.+') {
implementation('org.simpleframework:simple-xml:2.7.1') {
exclude module: 'stax'
exclude module: 'stax-api'
exclude module: 'xpp3'
}
implementation('com.crashlytics.sdk.android:crashlytics:2.9.5@aar') {
implementation('com.crashlytics.sdk.android:crashlytics:2.10.1@aar') {
transitive = true
}
implementation 'com.android.support:appcompat-v7:28.0.0'
Expand All @@ -55,10 +55,10 @@ dependencies {
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.github.satyan:sugar:1.5'
implementation 'com.github.omadahealth:swipy:1.2.3@aar'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
implementation 'org.atteo:evo-inflector:1.2.2'
implementation 'org.jsoup:jsoup:1.11.3'
implementation 'org.sufficientlysecure:html-textview:3.6'
implementation 'org.jsoup:jsoup:1.13.1'
implementation 'org.sufficientlysecure:html-textview:3.9'
implementation 'com.jpardogo.materialtabstrip:library:1.1.1'
implementation 'com.r0adkll:slidableactivity:2.0.6'
implementation 'pl.bclogic:pulsator4droid:1.0.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@

import android.content.Context;

import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.formatter.IAxisValueFormatter;
import com.github.mikephil.charting.formatter.ValueFormatter;

/**
* Created by Lloyd on 2016-10-31.
* Axis formatter for charts that deals with large numbers.
* Implemented because MPAndroidChart's own implementation breaks for REALLY large numbers.
*/
public class LargeNumberAxisFormatter implements IAxisValueFormatter {
public class LargeNumberAxisFormatter extends ValueFormatter {

private Context context;

Expand All @@ -35,7 +34,7 @@ public LargeNumberAxisFormatter(Context c) {
}

@Override
public String getFormattedValue(float value, AxisBase axis) {
public String getFormattedValue(float value) {
return SparkleHelper.getPrettifiedShortSuffixedNumber(context, value);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@

package com.lloydtorres.stately.helpers;

import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.formatter.IAxisValueFormatter;
import com.github.mikephil.charting.formatter.ValueFormatter;

import java.util.List;

/**
* Created by Lloyd on 2016-10-22.
* Provides labels to show in a chart's XAxis.
*/
public class XAxisLabelFormatter implements IAxisValueFormatter {
public class XAxisLabelFormatter extends ValueFormatter {

private List<String> labels;

Expand All @@ -34,7 +33,7 @@ public XAxisLabelFormatter(List<String> l) {
}

@Override
public String getFormattedValue(float value, AxisBase axis) {
public String getFormattedValue(float value) {
if (labels == null || value >= labels.size()) {
return "";
} else {
Expand Down
2 changes: 1 addition & 1 deletion Stately/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:3.6.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
4 changes: 3 additions & 1 deletion Stately/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true

android.useAndroidX=true
4 changes: 2 additions & 2 deletions Stately/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Oct 17 22:02:38 PDT 2018
#Sat May 02 18:58:54 PDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

0 comments on commit bd335cc

Please sign in to comment.