Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions redwood-gradle-plugin/api/redwood-gradle-plugin.api
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public final class app/cash/redwood/gradle/RedwoodGeneratorPlugin$Strategy : jav
public static final field ProtocolHost Lapp/cash/redwood/gradle/RedwoodGeneratorPlugin$Strategy;
public static final field Testing Lapp/cash/redwood/gradle/RedwoodGeneratorPlugin$Strategy;
public static final field Widget Lapp/cash/redwood/gradle/RedwoodGeneratorPlugin$Strategy;
public static final field WidgetComposeUi Lapp/cash/redwood/gradle/RedwoodGeneratorPlugin$Strategy;
public static fun getEntries ()Lkotlin/enums/EnumEntries;
public static fun valueOf (Ljava/lang/String;)Lapp/cash/redwood/gradle/RedwoodGeneratorPlugin$Strategy;
public static fun values ()[Lapp/cash/redwood/gradle/RedwoodGeneratorPlugin$Strategy;
Expand Down Expand Up @@ -66,6 +67,10 @@ public final class app/cash/redwood/gradle/RedwoodTestingGeneratorPlugin : app/c
public fun <init> ()V
}

public final class app/cash/redwood/gradle/RedwoodWidgetComposeUiGeneratorPlugin : app/cash/redwood/gradle/RedwoodGeneratorPlugin {
public fun <init> ()V
}

public final class app/cash/redwood/gradle/RedwoodWidgetGeneratorPlugin : app/cash/redwood/gradle/RedwoodGeneratorPlugin {
public fun <init> ()V
}
Expand Down
6 changes: 6 additions & 0 deletions redwood-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ gradlePlugin {
description = "Redwood schema widget code generation Gradle plugin"
implementationClass = "app.cash.redwood.gradle.RedwoodWidgetGeneratorPlugin"
}
redwoodWidgetComposeUiGenerator {
id = "app.cash.redwood.generator.widget.composeui"
displayName = "Redwood generator (Compose UI)"
description = "Redwood schema widget Compose UI code generation Gradle plugin"
implementationClass = "app.cash.redwood.gradle.RedwoodWidgetComposeUiGeneratorPlugin"
}
redwoodWidgetProtocolGenerator {
id = "app.cash.redwood.generator.widget.protocol"
displayName = "Redwood generator (widget protocol)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import app.cash.redwood.gradle.RedwoodGeneratorPlugin.Strategy.ProtocolGuest
import app.cash.redwood.gradle.RedwoodGeneratorPlugin.Strategy.ProtocolHost
import app.cash.redwood.gradle.RedwoodGeneratorPlugin.Strategy.Testing
import app.cash.redwood.gradle.RedwoodGeneratorPlugin.Strategy.Widget
import app.cash.redwood.gradle.RedwoodGeneratorPlugin.Strategy.WidgetComposeUi
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.logging.Logging
Expand Down Expand Up @@ -55,6 +56,9 @@ public class RedwoodTestingGeneratorPlugin : RedwoodGeneratorPlugin(Testing)
@Suppress("unused") // Invoked reflectively by Gradle.
public class RedwoodWidgetGeneratorPlugin : RedwoodGeneratorPlugin(Widget)

@Suppress("unused") // Invoked reflectively by Gradle.
public class RedwoodWidgetComposeUiGeneratorPlugin : RedwoodGeneratorPlugin(WidgetComposeUi)

@Suppress("unused") // Invoked reflectively by Gradle.
public class RedwoodWidgetProtocolGeneratorPlugin : RedwoodGeneratorPlugin(ProtocolHost) {
override fun apply(project: Project) {
Expand All @@ -78,6 +82,7 @@ public abstract class RedwoodGeneratorPlugin(
ProtocolHost("--protocol-host", "redwood-protocol-host", androidxCollectionCoordinates),
Testing("--testing", "redwood-testing"),
Widget("--widget", "redwood-widget"),
WidgetComposeUi("--widget-compose-ui", "redwood-widget-composeui"),
}

override fun apply(project: Project) {
Expand Down
6 changes: 6 additions & 0 deletions redwood-lazylayout-composeui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ redwoodBuild {
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
apply plugin: 'app.cash.burst'
apply plugin: 'app.cash.paparazzi'
apply plugin: 'app.cash.redwood.generator.widget.composeui'

kotlin {
sourceSets {
Expand All @@ -30,6 +31,11 @@ kotlin {
}
}

redwoodSchema {
source = projects.redwoodLazylayoutSchema
type = 'app.cash.redwood.lazylayout.RedwoodLazyLayout'
}

android {
namespace 'app.cash.redwood.lazylayout.composeui'

Expand Down

This file was deleted.

Loading
Loading