You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
PluginGroupConfiguration,PluginGroup,Plugin missed in no.op
To Reproduce
Steps to reproduce the behavior:
Setup no.op for prod build variant
"prodApi"(libs.plutolib.plugins.bundle.core.no.op)
"prodApi"(libs.plutolib.pluto.no.op)
Create class with plugins
class DataSourcePluginGroup : PluginGroup("datasource-group") {
override fun getConfig() = PluginGroupConfiguration(
name = "DataSource Group"
)
override fun getPlugins(): List {
return listOf(
PlutoSharePreferencesPlugin(),
PlutoDatastorePreferencesPlugin(),
PlutoRoomsDatabasePlugin()
)
}
}
Add plugin groupe in Pluto
Pluto.Installer(this)
.addPlugin(PlutoLoggerPlugin())
.addPlugin(PlutoNetworkPlugin())
.addPlugin(PlutoExceptionsPlugin())
//.addPlugin(PlutoLayoutInspectorPlugin())
.addPluginGroup(DataSourcePluginGroup())
.install()
Expected behavior
build variant with no.op should works
The text was updated successfully, but these errors were encountered:
this is happening coz plugin module does not have no-op version, as it did not need it.
the fix for the above issue is to keep your PluginGroup file in variant folder (can refer to the sample app).
Describe the bug
PluginGroupConfiguration,PluginGroup,Plugin missed in no.op
To Reproduce
Steps to reproduce the behavior:
Setup no.op for prod build variant
"prodApi"(libs.plutolib.plugins.bundle.core.no.op)
"prodApi"(libs.plutolib.pluto.no.op)
Create class with plugins
class DataSourcePluginGroup : PluginGroup("datasource-group") {
override fun getConfig() = PluginGroupConfiguration(
name = "DataSource Group"
)
override fun getPlugins(): List {
return listOf(
PlutoSharePreferencesPlugin(),
PlutoDatastorePreferencesPlugin(),
PlutoRoomsDatabasePlugin()
)
}
}
Add plugin groupe in Pluto
Pluto.Installer(this)
.addPlugin(PlutoLoggerPlugin())
.addPlugin(PlutoNetworkPlugin())
.addPlugin(PlutoExceptionsPlugin())
//.addPlugin(PlutoLayoutInspectorPlugin())
.addPluginGroup(DataSourcePluginGroup())
.install()
Expected behavior
build variant with no.op should works
The text was updated successfully, but these errors were encountered: