This repository was archived by the owner on Aug 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +24
-6
lines changed
lazarkit-website/src/routes/docs/changelog
src/main/java/com/bylazar/ftcontrol/panels Expand file tree Collapse file tree 7 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## v0.4.5
4+ - Fixed plugin pages not updating after register
5+
36## v0.4.4
47- Fixed a bug that prevented plugins from loading
58
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ publishing {
112112 maven(MavenPublication ) {
113113 groupId = " com.bylazar"
114114 artifactId = " ftcontrol"
115- version = " 0.4.4 "
115+ version = " 0.4.5 "
116116
117117 pom {
118118 description = " All in one toolbox for FTC."
Original file line number Diff line number Diff line change @@ -58,14 +58,23 @@ class CorePanels {
5858
5959 try {
6060 PluginManager .loadPlugins(context)
61- PluginManager .onRegister(this )
6261 }catch (e: Exception ){
6362 println (" DASH: Failed to load plugins: ${e.message} " )
6463 e.printStackTrace()
6564 } catch (t: Throwable ) {
6665 println (" DASH: Plugins Throwable caught: ${t::class .simpleName} - ${t.message} " )
6766 t.printStackTrace()
6867 }
68+
69+ try {
70+ PluginManager .onRegister(this )
71+ }catch (e: Exception ){
72+ println (" DASH: Failed to register plugins: ${e.message} " )
73+ e.printStackTrace()
74+ } catch (t: Throwable ) {
75+ println (" DASH: Plugins Register Throwable caught: ${t::class .simpleName} - ${t.message} " )
76+ t.printStackTrace()
77+ }
6978 }
7079
7180 private var opModeManager: OpModeManagerImpl ? = null
Original file line number Diff line number Diff line change @@ -83,9 +83,7 @@ abstract class PanelsPlugin<T : BasePluginConfig>(baseConfig: T) {
8383 pages.add(page)
8484 }
8585
86- val cachedPages: List <PageJson > by lazy {
87- pages.map { it.toJson }
88- }
86+ var cachedPages: List <PageJson > = emptyList()
8987
9088 val toJson: PluginJson
9189 get() = PluginJson (
Original file line number Diff line number Diff line change @@ -13,8 +13,11 @@ object PluginManager {
1313 fun onRegister (corePanels : CorePanels ) {
1414 val modContext = ModContext ()
1515 plugins.forEach { (id, plugin) ->
16+ println (" DASH: Plugin pages count: ${plugin.pages.size} " )
1617 try {
1718 plugin.onRegister(modContext)
19+ plugin.cachedPages = plugin.pages.map { it.toJson }
20+ println (" DASH: Registered plugin $id " )
1821 } catch (e: Exception ) {
1922 println (" DASH: Failed to register plugin $id , ${e.message} " )
2023 e.printStackTrace()
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ apply from: '../build.dependencies.gradle'
1919apply plugin : ' org.jetbrains.kotlin.android'
2020//
2121
22+
2223android {
2324 namespace = ' org.firstinspires.ftc.teamcode'
2425 kotlinOptions {
@@ -48,5 +49,9 @@ dependencies {
4849 implementation (" com.acmerobotics.roadrunner:ftc:0.1.16" )
4950 implementation (" com.acmerobotics.roadrunner:core:1.0.1" )
5051 implementation(" com.acmerobotics.roadrunner:actions:1.0.1" )
51- implementation ' com.acmerobotics.dashboard:dashboard:0.4.16'
52+ // implementation 'com.acmerobotics.dashboard:dashboard:0.4.16'
53+
54+ implementation ' com.squareup.okhttp3:okhttp:4.10.0'
55+
56+ implementation fileTree(include : [' *.jar' ], dir : ' libs' )
5257}
You can’t perform that action at this time.
0 commit comments