Skip to content

Commit 79c1b67

Browse files
authored
Merge pull request #609 from AppDevNext/AllowOldPackage
Allow old package
2 parents 6edd301 + 394fa15 commit 79c1b67

13 files changed

Lines changed: 186 additions & 4 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.github.mikephil.charting.charts
2+
3+
import android.content.Context
4+
import android.util.Log
5+
6+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
7+
open class BarChart : info.appdev.charting.charts.BarChart {
8+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
9+
constructor(context: Context?) : super(context)
10+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
11+
constructor(context: Context?, attrs: android.util.AttributeSet?) : super(context, attrs)
12+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
13+
constructor(context: Context?, attrs: android.util.AttributeSet?, defStyle: Int) : super(context, attrs, defStyle)
14+
15+
16+
override fun init() {
17+
super.init()
18+
Log.e("BarChart", "This class is deprecated. Please use info.appdev.charting.charts.BarChart instead.")
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.github.mikephil.charting.charts
2+
3+
import android.content.Context
4+
import android.util.AttributeSet
5+
import android.util.Log
6+
import info.appdev.charting.charts.BubbleChart
7+
8+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
9+
class BubbleChart : BubbleChart {
10+
constructor(context: Context?) : super(context)
11+
12+
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
13+
14+
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle)
15+
16+
override fun init() {
17+
super.init()
18+
Log.e("BubbleChart", "This class is deprecated. Please use info.appdev.charting.charts.BubbleChart instead.")
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.github.mikephil.charting.charts
2+
3+
import android.content.Context
4+
import android.util.AttributeSet
5+
import android.util.Log
6+
import info.appdev.charting.charts.CandleStickChart
7+
8+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
9+
class CandleStickChart : CandleStickChart {
10+
constructor(context: Context?) : super(context)
11+
12+
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
13+
14+
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle)
15+
16+
override fun init() {
17+
super.init()
18+
Log.e("CandleStickChart", "This class is deprecated. Please use info.appdev.charting.charts.CandleStickChart instead.")
19+
}
20+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.github.mikephil.charting.charts
2+
3+
import android.content.Context
4+
import android.util.AttributeSet
5+
import android.util.Log
6+
import info.appdev.charting.charts.CombinedChart
7+
8+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
9+
open class CombinedChart : CombinedChart {
10+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
11+
constructor(context: Context?) : super(context)
12+
13+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
14+
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
15+
16+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
17+
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle)
18+
19+
override fun init() {
20+
super.init()
21+
Log.e("CombinedChart", "This class is deprecated. Please use info.appdev.charting.charts.CombinedChart instead.")
22+
}
23+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.github.mikephil.charting.charts
2+
3+
import android.content.Context
4+
import android.util.AttributeSet
5+
import android.util.Log
6+
import info.appdev.charting.charts.HorizontalBarChart
7+
8+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
9+
open class HorizontalBarChart : HorizontalBarChart {
10+
constructor(context: Context?) : super(context)
11+
12+
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
13+
14+
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle)
15+
16+
override fun init() {
17+
super.init()
18+
Log.e("HorizontalBarChart", "This class is deprecated. Please use info.appdev.charting.charts.HorizontalBarChart instead.")
19+
}
20+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.github.mikephil.charting.charts
2+
3+
import android.content.Context
4+
import android.util.AttributeSet
5+
import android.util.Log
6+
import info.appdev.charting.charts.LineChart
7+
8+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
9+
open class LineChart : LineChart {
10+
constructor(context: Context?) : super(context)
11+
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
12+
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle)
13+
14+
override fun init() {
15+
super.init()
16+
Log.e("LineChart", "This class is deprecated. Please use info.appdev.charting.charts.LineChart instead.")
17+
}
18+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.github.mikephil.charting.charts
2+
3+
import android.content.Context
4+
import android.util.AttributeSet
5+
import android.util.Log
6+
import info.appdev.charting.charts.PieChart
7+
8+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
9+
class PieChart : PieChart {
10+
constructor(context: Context?) : super(context)
11+
12+
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
13+
14+
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle)
15+
16+
override fun init() {
17+
super.init()
18+
Log.e("PieChart", "This class is deprecated. Please use info.appdev.charting.charts.PieChart instead.")
19+
}
20+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.github.mikephil.charting.charts
2+
3+
import android.content.Context
4+
import android.util.AttributeSet
5+
import android.util.Log
6+
import info.appdev.charting.charts.RadarChart
7+
8+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
9+
open class RadarChart : RadarChart {
10+
constructor(context: Context?) : super(context)
11+
12+
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
13+
14+
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle)
15+
16+
override fun init() {
17+
super.init()
18+
Log.e("RadarChart", "This class is deprecated. Please use info.appdev.charting.charts.RadarChart instead.")
19+
}
20+
}
21+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.github.mikephil.charting.charts
2+
3+
import android.content.Context
4+
import android.util.AttributeSet
5+
import android.util.Log
6+
import info.appdev.charting.charts.ScatterChart
7+
8+
@Deprecated("Use same class from package info.appdev.charting.charts instead")
9+
class ScatterChart : ScatterChart {
10+
constructor(context: Context?) : super(context)
11+
12+
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
13+
14+
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle)
15+
16+
override fun init() {
17+
super.init()
18+
Log.e("ScatterChart", "This class is deprecated. Please use info.appdev.charting.charts.ScatterChart instead.")
19+
}
20+
}

chartLib/src/main/kotlin/info/appdev/charting/charts/BubbleChart.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import info.appdev.charting.renderer.BubbleChartRenderer
1212
* is the area of the bubble, not the radius or diameter of the bubble that
1313
* conveys the data.
1414
*/
15-
class BubbleChart : BarLineChartBase<BubbleData>, BubbleDataProvider {
15+
open class BubbleChart : BarLineChartBase<BubbleData>, BubbleDataProvider {
1616
constructor(context: Context?) : super(context)
1717

1818
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)

0 commit comments

Comments
 (0)