Skip to content

Commit

Permalink
playerui in packages
Browse files Browse the repository at this point in the history
  • Loading branch information
brocollie08 committed May 21, 2024
1 parent 8d19e33 commit f5ec475
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion docs/site/pages/assets/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct MyApp: View {
Alongside distributing the Android Player framework, there is a reference assets library used as an example of how Player APIs work for building assets. These are intended to serve as a reference, but can be used early on in development as a means of understanding how to work with Player. This asset set uses the shared TypeScript transform functions that the Web and Android players use for their reference assets, ensuring consistent behavior across platforms. These assets can be loaded into Player like so:

```kotlin
import com.intuit.player.android.reference.assets.ReferenceAssetsPlugin
import com.intuit.playerui.android.reference.assets.ReferenceAssetsPlugin

val player = AndroidPlayer(context, ReferenceAssetsPlugin())
```
Expand Down
4 changes: 2 additions & 2 deletions docs/site/pages/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ Configure the Android Player dependencies in your `build.gradle(.kts)` files.
```kotlin
dependencies {
// Android Player
implementation("com.intuit.player.android:player:$playerVersion")
implementation("com.intuit.playerui.android:player:$playerVersion")
// Optional - reference assets
implementation("com.intuit.player.android:assets:$playerVersion")
implementation("com.intuit.playerui.android:assets:$playerVersion")
}
```
</android>
Expand Down
4 changes: 2 additions & 2 deletions docs/site/pages/plugins/async-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ As a convenience to the user, the AsyncNodePlugin just takes a callback which ha

In build.gradle
```kotlin
implementation "com.intuit.player.plugins:async-node:$PLAYER_VERSION"
implementation "com.intuit.playerui.plugins:async-node:$PLAYER_VERSION"
```

In integration code
```kotlin
import com.intuit.player.plugins.asyncnode.AsyncNodePlugin
import com.intuit.playerui.plugins.asyncnode.AsyncNodePlugin

val asyncNodePlugin = AsyncNodePlugin(plugins: [AsyncNodePluginPlugin()])

Expand Down
4 changes: 2 additions & 2 deletions docs/site/pages/plugins/check-path.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ var body: some View {
In build.gradle

```kotlin
implementation "com.intuit.player.plugins:check-path:$PLAYER_VERSION"
implementation "com.intuit.playerui.plugins:check-path:$PLAYER_VERSION"
```

In Player constructor

```kotlin
import com.intuit.player.plugins.checkpath.CheckPathPlugin
import com.intuit.playerui.plugins.checkpath.CheckPathPlugin

val plugins = listOf(CheckPathPlugin())
AndroidPlayer(plugins)
Expand Down
8 changes: 4 additions & 4 deletions docs/site/pages/plugins/coroutines.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ Plugin using a `ReceiveChannel` to provide an updated asset whenever the Player
In build.gradle

```kotlin
implementation "com.intuit.player.plugins:coroutines:$PLAYER_VERSION"
implementation "com.intuit.playerui.plugins:coroutines:$PLAYER_VERSION"
```

In Player constructor
```kotlin
import com.intuit.player.plugins.coroutines.UpdatesPlugin
import com.intuit.playerui.plugins.coroutines.UpdatesPlugin

val plugins = listOf(UpdatesPlugin())
AndroidPlayer(plugins)
Expand Down Expand Up @@ -57,12 +57,12 @@ All operations launched using the scope will be cancelled when player changes st
In build.gradle

```kotlin
implementation "com.intuit.player.plugins:coroutines:$PLAYER_VERSION"
implementation "com.intuit.playerui.plugins:coroutines:$PLAYER_VERSION"
```

In Player constructor
```kotlin
import com.intuit.player.plugins.coroutines.FlowScopePlugin
import com.intuit.playerui.plugins.coroutines.FlowScopePlugin

val plugins = listOf(FlowScopePlugin())
AndroidPlayer(plugins)
Expand Down
4 changes: 2 additions & 2 deletions docs/site/pages/plugins/expression.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ The `ExpressionPlugin` enables consumers to register custom expressions in nativ
## Usage
In build.gradle
```kotlin
implementation "com.intuit.player.plugins:expression:$PLAYER_VERSION"
implementation "com.intuit.playerui.plugins:expression:$PLAYER_VERSION"
```

In Player constructor
```kotlin
import com.intuit.player.plugins.expression.ExpressionPlugin
import com.intuit.playerui.plugins.expression.ExpressionPlugin

val expressionPlugin = ExpressionPlugin(
"hello" to { args: List<Any?> ->
Expand Down
4 changes: 2 additions & 2 deletions docs/site/pages/plugins/external-action.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ The `ExternalActionPlugin` adds support for handling `EXTERNAL` navigation state
## Usage
In build.gradle
```kotlin
implementation "com.intuit.player.plugins:external-action:$PLAYER_VERSION"
implementation "com.intuit.playerui.plugins:external-action:$PLAYER_VERSION"
```

In Player constructor
```kotlin
import com.intuit.player.plugins.externalAction.ExternalActionPlugin
import com.intuit.playerui.plugins.externalAction.ExternalActionPlugin

val externalActionPlugin = ExternalActionPlugin { state, options, transition ->
// access external state node
Expand Down
4 changes: 2 additions & 2 deletions docs/site/pages/plugins/metrics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ The `JVM` Metrics plugin can track render time for views in a flow.

In build.gradle
```kotlin
implementation "com.intuit.player.plugins:metrics:$PLAYER_VERSION"
implementation "com.intuit.playerui.plugins:metrics:$PLAYER_VERSION"
```

In Player constructor
```kotlin
import com.intuit.player.plugins.expression.ExpressionPlugin
import com.intuit.playerui.plugins.expression.ExpressionPlugin

val metricsPlugin = MetricsPlugin { timing, renderMetrics, flowMetrics ->
...
Expand Down
2 changes: 1 addition & 1 deletion docs/site/pages/plugins/set-timeout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The only explicit runtime plugin in the core Android plugin set, the `SetTimeout

In build.gradle
```kotlin
implementation "com.intuit.player.plugins:set-time-out:$PLAYER_VERSION"
implementation "com.intuit.playerui.plugins:set-time-out:$PLAYER_VERSION"
```

In plugin implementation
Expand Down
2 changes: 1 addition & 1 deletion plugins/beacon/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ kt_player_plugin(
main_deps = main_deps,
main_exports = main_exports,
main_resources = main_resources,
test_package = "com.intuit.player.plugins.beacon",
test_package = "com.intuit.playerui.plugins.beacon",
)
2 changes: 1 addition & 1 deletion plugins/check-path/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ kt_player_plugin(
main_deps = main_deps,
main_exports = main_exports,
main_resources = main_resources,
test_package = "com.intuit.player.plugins.checkpath",
test_package = "com.intuit.playerui.plugins.checkpath",
)
2 changes: 1 addition & 1 deletion plugins/coroutines/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ kt_player_plugin(
name = "coroutines",
main_deps = main_deps,
main_exports = main_exports,
test_package = "com.intuit.player.plugins.coroutines",
test_package = "com.intuit.playerui.plugins.coroutines",
)
2 changes: 1 addition & 1 deletion plugins/expression/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ kt_player_plugin(
main_deps = main_deps,
main_exports = main_exports,
main_resources = main_resources,
test_package = "com.intuit.player.plugins.expression",
test_package = "com.intuit.playerui.plugins.expression",
)
2 changes: 1 addition & 1 deletion plugins/external-action/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ kt_player_plugin(
main_exports = main_exports,
main_resources = main_resources,
# TODO: Reformat package
test_package = "com.intuit.player.plugins.externalAction",
test_package = "com.intuit.playerui.plugins.externalAction",
)
2 changes: 1 addition & 1 deletion plugins/java-logger/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ kt_player_plugin(
name = "java-logger",
main_deps = main_deps,
main_exports = main_exports,
test_package = "com.intuit.player.plugins.logging.jul",
test_package = "com.intuit.playerui.plugins.logging.jul",
)
2 changes: 1 addition & 1 deletion plugins/metrics/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ kt_player_plugin(
main_deps = main_deps,
main_exports = main_exports,
main_resources = main_resources,
test_package = "com.intuit.player.jvm.plugins.metrics",
test_package = "com.intuit.playerui.jvm.plugins.metrics",
)
2 changes: 1 addition & 1 deletion plugins/pending-transaction/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ kt_player_plugin(
name = "pending-transaction",
main_deps = main_deps,
main_exports = main_exports,
test_package = "com.intuit.player.plugins.transactions",
test_package = "com.intuit.playerui.plugins.transactions",
)
2 changes: 1 addition & 1 deletion plugins/pubsub/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ kt_player_plugin(
main_deps = main_deps,
main_exports = main_exports,
main_resources = main_resources,
test_package = "com.intuit.player.plugins.pubsub",
test_package = "com.intuit.playerui.plugins.pubsub",
)
2 changes: 1 addition & 1 deletion plugins/set-time-out/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ kt_player_plugin(
name = "set-time-out",
main_deps = main_deps,
main_exports = main_exports,
test_package = "com.intuit.player.plugins.settimeout",
test_package = "com.intuit.playerui.plugins.settimeout",
)
2 changes: 1 addition & 1 deletion plugins/slf4j-logger/jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ kt_player_plugin(
main_deps = main_deps,
main_exports = main_exports,
test_deps = test_deps,
test_package = "com.intuit.player.jvm.plugins.logging.slf4j",
test_package = "com.intuit.playerui.jvm.plugins.logging.slf4j",
)

0 comments on commit f5ec475

Please sign in to comment.