We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5838c2 commit 2db12f1Copy full SHA for 2db12f1
1 file changed
target/plugin-sdk/src/main/kotlin/com/squareup/stoic/plugin/StoicConfig.kt
@@ -19,10 +19,10 @@ import android.content.Context
19
*
20
* ```kotlin
21
* class MyStoicConfig : StoicConfig {
22
- * override fun getPlugins(context: Context): Map<String, StoicPlugin> {
+ * override fun getPlugins(context: Context): Map<String, Lazy<StoicPlugin>> {
23
* return mapOf(
24
- * "my-plugin" to MyPlugin(context),
25
- * "another-plugin" to AnotherPlugin()
+ * "my-plugin" to lazy { MyPlugin(context) },
+ * "another-plugin" to lazy { AnotherPlugin() }
26
* )
27
* }
28
0 commit comments