From 394fa150161ba8f918fd1fe3b6679680edc01b69 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sun, 28 Dec 2025 20:35:23 +0100 Subject: [PATCH] Allow old package too --- .../mikephil/charting/charts/BarChart.kt | 20 ++++++++++++++++ .../mikephil/charting/charts/BubbleChart.kt | 20 ++++++++++++++++ .../charting/charts/CandleStickChart.kt | 20 ++++++++++++++++ .../mikephil/charting/charts/CombinedChart.kt | 23 +++++++++++++++++++ .../charting/charts/HorizontalBarChart.kt | 20 ++++++++++++++++ .../mikephil/charting/charts/LineChart.kt | 18 +++++++++++++++ .../mikephil/charting/charts/PieChart.kt | 20 ++++++++++++++++ .../mikephil/charting/charts/RadarChart.kt | 21 +++++++++++++++++ .../mikephil/charting/charts/ScatterChart.kt | 20 ++++++++++++++++ .../appdev/charting/charts/BubbleChart.kt | 2 +- .../charting/charts/CandleStickChart.kt | 2 +- .../info/appdev/charting/charts/PieChart.kt | 2 +- .../appdev/charting/charts/ScatterChart.kt | 2 +- 13 files changed, 186 insertions(+), 4 deletions(-) create mode 100644 chartLib/src/main/kotlin/com/github/mikephil/charting/charts/BarChart.kt create mode 100644 chartLib/src/main/kotlin/com/github/mikephil/charting/charts/BubbleChart.kt create mode 100644 chartLib/src/main/kotlin/com/github/mikephil/charting/charts/CandleStickChart.kt create mode 100644 chartLib/src/main/kotlin/com/github/mikephil/charting/charts/CombinedChart.kt create mode 100644 chartLib/src/main/kotlin/com/github/mikephil/charting/charts/HorizontalBarChart.kt create mode 100644 chartLib/src/main/kotlin/com/github/mikephil/charting/charts/LineChart.kt create mode 100644 chartLib/src/main/kotlin/com/github/mikephil/charting/charts/PieChart.kt create mode 100644 chartLib/src/main/kotlin/com/github/mikephil/charting/charts/RadarChart.kt create mode 100644 chartLib/src/main/kotlin/com/github/mikephil/charting/charts/ScatterChart.kt diff --git a/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/BarChart.kt b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/BarChart.kt new file mode 100644 index 000000000..b52f5e0d4 --- /dev/null +++ b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/BarChart.kt @@ -0,0 +1,20 @@ +package com.github.mikephil.charting.charts + +import android.content.Context +import android.util.Log + +@Deprecated("Use same class from package info.appdev.charting.charts instead") +open class BarChart : info.appdev.charting.charts.BarChart { + @Deprecated("Use same class from package info.appdev.charting.charts instead") + constructor(context: Context?) : super(context) + @Deprecated("Use same class from package info.appdev.charting.charts instead") + constructor(context: Context?, attrs: android.util.AttributeSet?) : super(context, attrs) + @Deprecated("Use same class from package info.appdev.charting.charts instead") + constructor(context: Context?, attrs: android.util.AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) + + + override fun init() { + super.init() + Log.e("BarChart", "This class is deprecated. Please use info.appdev.charting.charts.BarChart instead.") + } +} diff --git a/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/BubbleChart.kt b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/BubbleChart.kt new file mode 100644 index 000000000..8eb60baff --- /dev/null +++ b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/BubbleChart.kt @@ -0,0 +1,20 @@ +package com.github.mikephil.charting.charts + +import android.content.Context +import android.util.AttributeSet +import android.util.Log +import info.appdev.charting.charts.BubbleChart + +@Deprecated("Use same class from package info.appdev.charting.charts instead") +class BubbleChart : BubbleChart { + constructor(context: Context?) : super(context) + + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + + constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) + + override fun init() { + super.init() + Log.e("BubbleChart", "This class is deprecated. Please use info.appdev.charting.charts.BubbleChart instead.") + } +} diff --git a/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/CandleStickChart.kt b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/CandleStickChart.kt new file mode 100644 index 000000000..3ea2d8891 --- /dev/null +++ b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/CandleStickChart.kt @@ -0,0 +1,20 @@ +package com.github.mikephil.charting.charts + +import android.content.Context +import android.util.AttributeSet +import android.util.Log +import info.appdev.charting.charts.CandleStickChart + +@Deprecated("Use same class from package info.appdev.charting.charts instead") +class CandleStickChart : CandleStickChart { + constructor(context: Context?) : super(context) + + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + + constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) + + override fun init() { + super.init() + Log.e("CandleStickChart", "This class is deprecated. Please use info.appdev.charting.charts.CandleStickChart instead.") + } +} diff --git a/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/CombinedChart.kt b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/CombinedChart.kt new file mode 100644 index 000000000..ca31dc98c --- /dev/null +++ b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/CombinedChart.kt @@ -0,0 +1,23 @@ +package com.github.mikephil.charting.charts + +import android.content.Context +import android.util.AttributeSet +import android.util.Log +import info.appdev.charting.charts.CombinedChart + +@Deprecated("Use same class from package info.appdev.charting.charts instead") +open class CombinedChart : CombinedChart { + @Deprecated("Use same class from package info.appdev.charting.charts instead") + constructor(context: Context?) : super(context) + + @Deprecated("Use same class from package info.appdev.charting.charts instead") + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + + @Deprecated("Use same class from package info.appdev.charting.charts instead") + constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) + + override fun init() { + super.init() + Log.e("CombinedChart", "This class is deprecated. Please use info.appdev.charting.charts.CombinedChart instead.") + } +} diff --git a/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/HorizontalBarChart.kt b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/HorizontalBarChart.kt new file mode 100644 index 000000000..983432f4a --- /dev/null +++ b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/HorizontalBarChart.kt @@ -0,0 +1,20 @@ +package com.github.mikephil.charting.charts + +import android.content.Context +import android.util.AttributeSet +import android.util.Log +import info.appdev.charting.charts.HorizontalBarChart + +@Deprecated("Use same class from package info.appdev.charting.charts instead") +open class HorizontalBarChart : HorizontalBarChart { + constructor(context: Context?) : super(context) + + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + + constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) + + override fun init() { + super.init() + Log.e("HorizontalBarChart", "This class is deprecated. Please use info.appdev.charting.charts.HorizontalBarChart instead.") + } +} diff --git a/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/LineChart.kt b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/LineChart.kt new file mode 100644 index 000000000..76037a156 --- /dev/null +++ b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/LineChart.kt @@ -0,0 +1,18 @@ +package com.github.mikephil.charting.charts + +import android.content.Context +import android.util.AttributeSet +import android.util.Log +import info.appdev.charting.charts.LineChart + +@Deprecated("Use same class from package info.appdev.charting.charts instead") +open class LineChart : LineChart { + constructor(context: Context?) : super(context) + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) + + override fun init() { + super.init() + Log.e("LineChart", "This class is deprecated. Please use info.appdev.charting.charts.LineChart instead.") + } +} diff --git a/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/PieChart.kt b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/PieChart.kt new file mode 100644 index 000000000..119941bec --- /dev/null +++ b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/PieChart.kt @@ -0,0 +1,20 @@ +package com.github.mikephil.charting.charts + +import android.content.Context +import android.util.AttributeSet +import android.util.Log +import info.appdev.charting.charts.PieChart + +@Deprecated("Use same class from package info.appdev.charting.charts instead") +class PieChart : PieChart { + constructor(context: Context?) : super(context) + + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + + constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) + + override fun init() { + super.init() + Log.e("PieChart", "This class is deprecated. Please use info.appdev.charting.charts.PieChart instead.") + } +} diff --git a/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/RadarChart.kt b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/RadarChart.kt new file mode 100644 index 000000000..133020416 --- /dev/null +++ b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/RadarChart.kt @@ -0,0 +1,21 @@ +package com.github.mikephil.charting.charts + +import android.content.Context +import android.util.AttributeSet +import android.util.Log +import info.appdev.charting.charts.RadarChart + +@Deprecated("Use same class from package info.appdev.charting.charts instead") +open class RadarChart : RadarChart { + constructor(context: Context?) : super(context) + + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + + constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) + + override fun init() { + super.init() + Log.e("RadarChart", "This class is deprecated. Please use info.appdev.charting.charts.RadarChart instead.") + } +} + diff --git a/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/ScatterChart.kt b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/ScatterChart.kt new file mode 100644 index 000000000..8a8247ede --- /dev/null +++ b/chartLib/src/main/kotlin/com/github/mikephil/charting/charts/ScatterChart.kt @@ -0,0 +1,20 @@ +package com.github.mikephil.charting.charts + +import android.content.Context +import android.util.AttributeSet +import android.util.Log +import info.appdev.charting.charts.ScatterChart + +@Deprecated("Use same class from package info.appdev.charting.charts instead") +class ScatterChart : ScatterChart { + constructor(context: Context?) : super(context) + + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + + constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) + + override fun init() { + super.init() + Log.e("ScatterChart", "This class is deprecated. Please use info.appdev.charting.charts.ScatterChart instead.") + } +} diff --git a/chartLib/src/main/kotlin/info/appdev/charting/charts/BubbleChart.kt b/chartLib/src/main/kotlin/info/appdev/charting/charts/BubbleChart.kt index 928a637ed..1701a5425 100644 --- a/chartLib/src/main/kotlin/info/appdev/charting/charts/BubbleChart.kt +++ b/chartLib/src/main/kotlin/info/appdev/charting/charts/BubbleChart.kt @@ -12,7 +12,7 @@ import info.appdev.charting.renderer.BubbleChartRenderer * is the area of the bubble, not the radius or diameter of the bubble that * conveys the data. */ -class BubbleChart : BarLineChartBase, BubbleDataProvider { +open class BubbleChart : BarLineChartBase, BubbleDataProvider { constructor(context: Context?) : super(context) constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) diff --git a/chartLib/src/main/kotlin/info/appdev/charting/charts/CandleStickChart.kt b/chartLib/src/main/kotlin/info/appdev/charting/charts/CandleStickChart.kt index 54fb52687..2bddd506b 100644 --- a/chartLib/src/main/kotlin/info/appdev/charting/charts/CandleStickChart.kt +++ b/chartLib/src/main/kotlin/info/appdev/charting/charts/CandleStickChart.kt @@ -9,7 +9,7 @@ import info.appdev.charting.renderer.CandleStickChartRenderer /** * Financial chart type that draws candle-sticks (OHCL chart). */ -class CandleStickChart : BarLineChartBase, CandleDataProvider { +open class CandleStickChart : BarLineChartBase, CandleDataProvider { constructor(context: Context?) : super(context) constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) diff --git a/chartLib/src/main/kotlin/info/appdev/charting/charts/PieChart.kt b/chartLib/src/main/kotlin/info/appdev/charting/charts/PieChart.kt index 9635d3129..820a6e458 100644 --- a/chartLib/src/main/kotlin/info/appdev/charting/charts/PieChart.kt +++ b/chartLib/src/main/kotlin/info/appdev/charting/charts/PieChart.kt @@ -27,7 +27,7 @@ import kotlin.math.sin * View that represents a pie chart. Draws cake like slices. */ @Suppress("unused") -class PieChart : PieRadarChartBase { +open class PieChart : PieRadarChartBase { /** * rect object that represents the bounds of the piechart, needed for * drawing the circle diff --git a/chartLib/src/main/kotlin/info/appdev/charting/charts/ScatterChart.kt b/chartLib/src/main/kotlin/info/appdev/charting/charts/ScatterChart.kt index f27c67880..754213fc0 100644 --- a/chartLib/src/main/kotlin/info/appdev/charting/charts/ScatterChart.kt +++ b/chartLib/src/main/kotlin/info/appdev/charting/charts/ScatterChart.kt @@ -11,7 +11,7 @@ import info.appdev.charting.renderer.ScatterChartRenderer * Chart-View. CIRCLE and SCQUARE offer the best performance, TRIANGLE has the * worst performance. */ -class ScatterChart : BarLineChartBase, ScatterDataProvider { +open class ScatterChart : BarLineChartBase, ScatterDataProvider { constructor(context: Context?) : super(context) constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)