Skip to content

Commit 9e5a57e

Browse files
committed
Fix bugs related to the calculation metric
1 parent 269bd40 commit 9e5a57e

File tree

4 files changed

+33
-31
lines changed

4 files changed

+33
-31
lines changed

app/build.gradle

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ buildscript {
44
repositories {
55
jcenter()
66
mavenCentral()
7+
google()
78
}
89
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.0.1'
10+
classpath 'com.android.tools.build:gradle:3.1.0'
1011
classpath 'com.google.gms:google-services:3.1.1'
1112
}
1213
}
@@ -21,12 +22,12 @@ allprojects {
2122

2223
android {
2324
compileSdkVersion 27
24-
buildToolsVersion "27.0.2"
25+
buildToolsVersion "27.0.3"
2526
defaultConfig {
2627
applicationId "com.cpjd.roblu"
2728
minSdkVersion 19
2829
targetSdkVersion 27
29-
versionCode 60
30+
versionCode 61
3031
versionName "4.4.6"
3132
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
3233

@@ -79,34 +80,34 @@ android {
7980
}
8081

8182
dependencies {
82-
compile fileTree(dir: 'libs', include: ['*.jar'])
83-
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
83+
implementation fileTree(dir: 'libs', include: ['*.jar'])
84+
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
8485
exclude group: 'com.android.support', module: 'support-annotations'
8586
})
86-
testCompile 'junit:junit:4.12'
87-
compile('com.mikepenz:aboutlibraries:5.9.6@aar') { transitive = true }
88-
compile('com.mikepenz:materialdrawer:5.9.0@aar') {
87+
androidTestImplementation 'junit:junit:4.12'
88+
implementation('com.mikepenz:aboutlibraries:5.9.6@aar') { transitive = true }
89+
implementation('com.mikepenz:materialdrawer:5.9.0@aar') {
8990
transitive = true
9091
}
91-
compile "com.googlecode.json-simple:json-simple:1.1"
92-
compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.3'
93-
compile 'com.roughike:bottom-bar:2.1.1'
94-
compile 'com.miguelcatalan:materialsearchview:1.4.0'
95-
compile 'pub.devrel:easypermissions:0.2.1'
96-
compile 'com.google.guava:guava:22.0-android'
97-
compile 'com.jrummyapps:colorpicker:2.1.6'
98-
compile 'com.github.infotech-group:CanvasView:release'
99-
compile 'com.android.support:appcompat-v7:27.0.2'
100-
compile 'com.android.support:recyclerview-v7:27.0.2'
101-
compile 'com.android.support:preference-v7:27.0.2'
102-
compile 'com.android.support:cardview-v7:27.0.2'
103-
compile 'com.android.support:design:27.0.2'
104-
compile 'pub.devrel:easypermissions:0.2.1'
105-
compile 'com.squareup.picasso:picasso:2.5.2'
106-
compile('com.mikepenz:aboutlibraries:5.9.5@aar') { transitive = true }
107-
compile 'com.android.support:appcompat-v7:27.0.2'
92+
implementation "com.googlecode.json-simple:json-simple:1.1"
93+
implementation 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.3'
94+
implementation 'com.roughike:bottom-bar:2.1.1'
95+
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
96+
implementation 'pub.devrel:easypermissions:0.2.1'
97+
implementation 'com.google.guava:guava:22.0-android'
98+
implementation 'com.jrummyapps:colorpicker:2.1.6'
99+
implementation 'com.github.infotech-group:CanvasView:release'
100+
implementation 'com.android.support:appcompat-v7:27.0.2'
101+
implementation 'com.android.support:recyclerview-v7:27.0.2'
102+
implementation 'com.android.support:preference-v7:27.0.2'
103+
implementation 'com.android.support:cardview-v7:27.0.2'
104+
implementation 'com.android.support:design:27.0.2'
105+
implementation 'pub.devrel:easypermissions:0.2.1'
106+
implementation 'com.squareup.picasso:picasso:2.5.2'
107+
implementation('com.mikepenz:aboutlibraries:5.9.5@aar') { transitive = true }
108+
implementation 'com.android.support:appcompat-v7:27.0.2'
108109
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
109-
compile "org.projectlombok:lombok:1.16.16"
110+
implementation "org.projectlombok:lombok:1.16.16"
110111
annotationProcessor 'org.projectlombok:lombok:1.16.16'
111-
compile 'javax.annotation:jsr250-api:1.0'
112+
implementation 'javax.annotation:jsr250-api:1.0'
112113
}

app/src/main/java/com/cpjd/roblu/ui/team/fragments/Overview.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.cpjd.roblu.models.RTab;
2020
import com.cpjd.roblu.models.RTeam;
2121
import com.cpjd.roblu.models.metrics.RBoolean;
22+
import com.cpjd.roblu.models.metrics.RCalculation;
2223
import com.cpjd.roblu.models.metrics.RCheckbox;
2324
import com.cpjd.roblu.models.metrics.RChooser;
2425
import com.cpjd.roblu.models.metrics.RCounter;
@@ -115,7 +116,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
115116
pieValues.put(metric.getTitle(), temp);
116117
}
117118
// Line chart metrics
118-
else if(metric instanceof RCounter || metric instanceof RSlider || metric instanceof RStopwatch) {
119+
else if(metric instanceof RCounter || metric instanceof RSlider || metric instanceof RStopwatch || metric instanceof RCalculation) {
119120
LinkedHashMap<String, Double> temp = lineValues.get(metric.getTitle());
120121
if(temp == null) temp = new LinkedHashMap<>();
121122
temp.put(tab.getTitle(), Double.parseDouble(metric.toString()));

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.0.1'
9+
classpath 'com.android.tools.build:gradle:3.1.0'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sun Jan 07 20:25:48 CST 2018
1+
#Mon Apr 02 11:04:47 CDT 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

0 commit comments

Comments
 (0)