Skip to content

Commit 8acc87d

Browse files
committed
Update to realm 0.87.2 (issue PhilJay#1397)
1 parent 963bb2a commit 8acc87d

14 files changed

Lines changed: 15 additions & 23 deletions

File tree

MPChartExample/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ android {
2525
minifyEnabled false
2626
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2727
}
28-
2928
}
3029

3130
lintOptions {
@@ -55,6 +54,6 @@ dependencies {
5554
//compile fileTree(dir: 'libs', include: ['*.jar'])
5655
compile project(':MPChartLib') // remove this if you only imported the example project
5756
compile 'com.android.support:appcompat-v7:23.1.1'
58-
compile 'io.realm:realm-android:0.84.0-SNAPSHOT' // dependency for realm-database API (http://realm.io)
57+
compile 'io.realm:realm-android:0.87.2' // dependency for realm-database API (http://realm.io)
5958
//compile 'com.github.PhilJay:MPAndroidChart:v2.2.0'
6059
}

MPChartExample/src/com/xxmassdeveloper/mpchartexample/custom/RealmFloat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public float getFloatValue() {
2121
return floatValue;
2222
}
2323

24-
public void setFloatValue(float value) {
24+
public void setFloatValue(Float value) {
2525
this.floatValue = value;
2626
}
2727
}

MPChartLib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repositories {
4141
dependencies {
4242
//compile fileTree(dir: 'libs', include: ['*.jar'])
4343
//compile 'com.android.support:support-v4:19.+'
44-
provided 'io.realm:realm-android:0.84.1-SNAPSHOT' // "optional" dependency to realm-database API
44+
provided 'io.realm:realm-android:0.87.2' // "optional" dependency to realm-database API
4545
}
4646

4747
android.libraryVariants.all { variant ->

MPChartLib/src/com/github/mikephil/charting/data/realm/base/RealmBarLineScatterCandleBubbleDataSet.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public abstract class RealmBarLineScatterCandleBubbleDataSet<T extends RealmObje
1616
/** default highlight color */
1717
protected int mHighLightColor = Color.rgb(255, 187, 115);
1818

19-
2019
public RealmBarLineScatterCandleBubbleDataSet(RealmResults<T> results, String yValuesField) {
2120
super(results, yValuesField);
2221
}

MPChartLib/src/com/github/mikephil/charting/data/realm/base/RealmBaseDataSet.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import io.realm.RealmObject;
1111
import io.realm.RealmResults;
12+
import io.realm.Sort;
1213

1314
/**
1415
* Created by Philipp Jahoda on 06/11/15.
@@ -51,7 +52,7 @@ public RealmBaseDataSet(RealmResults<T> results, String yValuesField) {
5152
this.mValues = new ArrayList<S>();
5253

5354
if (mIndexField != null)
54-
this.results.sort(mIndexField, true);
55+
this.results.sort(mIndexField, Sort.ASCENDING);
5556
}
5657

5758
/**
@@ -68,7 +69,7 @@ public RealmBaseDataSet(RealmResults<T> results, String yValuesField, String xIn
6869
this.mValues = new ArrayList<S>();
6970

7071
if (mIndexField != null)
71-
this.results.sort(mIndexField, true);
72+
this.results.sort(mIndexField, Sort.ASCENDING);
7273
}
7374

7475
/**

MPChartLib/src/com/github/mikephil/charting/data/realm/base/RealmLineRadarDataSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import com.github.mikephil.charting.interfaces.datasets.ILineRadarDataSet;
77
import com.github.mikephil.charting.utils.Utils;
88

9+
import io.realm.DynamicRealmObject;
910
import io.realm.RealmObject;
1011
import io.realm.RealmResults;
11-
import io.realm.dynamic.DynamicRealmObject;
1212

1313
/**
1414
* Created by Philipp Jahoda on 08/11/15.

MPChartLib/src/com/github/mikephil/charting/data/realm/base/RealmUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
import java.util.ArrayList;
44
import java.util.List;
55

6+
import io.realm.DynamicRealmObject;
67
import io.realm.RealmObject;
78
import io.realm.RealmResults;
8-
import io.realm.dynamic.DynamicRealmObject;
9-
109
/**
1110
* Created by Philipp Jahoda on 19/12/15.
1211
*/

MPChartLib/src/com/github/mikephil/charting/data/realm/implementation/RealmBarDataSet.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import com.github.mikephil.charting.data.realm.base.RealmBarLineScatterCandleBubbleDataSet;
77
import com.github.mikephil.charting.interfaces.datasets.IBarDataSet;
88

9+
import io.realm.DynamicRealmObject;
10+
import io.realm.RealmList;
911
import io.realm.RealmObject;
1012
import io.realm.RealmResults;
11-
import io.realm.dynamic.DynamicRealmList;
12-
import io.realm.dynamic.DynamicRealmObject;
1313

1414
/**
1515
* Created by Philipp Jahoda on 07/11/15.
@@ -85,7 +85,7 @@ public void build(RealmResults<T> results) {
8585

8686
} catch (IllegalArgumentException e) {
8787

88-
DynamicRealmList list = dynamicObject.getList(mValuesField);
88+
RealmList<DynamicRealmObject> list = dynamicObject.getList(mValuesField);
8989
float[] values = new float[list.size()];
9090

9191
int i = 0;

MPChartLib/src/com/github/mikephil/charting/data/realm/implementation/RealmBubbleDataSet.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
package com.github.mikephil.charting.data.realm.implementation;
22

3-
import android.graphics.Color;
4-
53
import com.github.mikephil.charting.data.BubbleEntry;
64
import com.github.mikephil.charting.data.realm.base.RealmBarLineScatterCandleBubbleDataSet;
75
import com.github.mikephil.charting.interfaces.datasets.IBubbleDataSet;
86
import com.github.mikephil.charting.utils.Utils;
97

8+
import io.realm.DynamicRealmObject;
109
import io.realm.RealmObject;
1110
import io.realm.RealmResults;
12-
import io.realm.dynamic.DynamicRealmObject;
1311

1412
/**
1513
* Created by Philipp Jahoda on 07/11/15.

MPChartLib/src/com/github/mikephil/charting/data/realm/implementation/RealmCandleDataSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import com.github.mikephil.charting.utils.ColorTemplate;
99
import com.github.mikephil.charting.utils.Utils;
1010

11+
import io.realm.DynamicRealmObject;
1112
import io.realm.RealmObject;
1213
import io.realm.RealmResults;
13-
import io.realm.dynamic.DynamicRealmObject;
1414

1515
/**
1616
* Created by Philipp Jahoda on 07/11/15.

0 commit comments

Comments
 (0)