liveview-native / liveview-native/liveview-client-jetpack

Compilation error for Jetpack components with arity 2

Open
#485 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
139
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hi, I am just playing around with LiveView Native to try it and I just can't compile the `core_component.jetpack.ex` file, because Phoenix LiveView only allows arity 1 for Components (for the `assigns` attribute) and liveview_client_jetpack creates components with 2 attributes (`assigns` and `interface`).

As using Linux, I can't try the SwiftUI client but I quickly looked at the `core_component.swiftui.ex` file to compare and these components are of arity 1.

I guess it could be a compatibility problem, as I am running phoenix_live_view 1.0.2 as shown in the screenshot below, but I don't know which version of Phoenix LiveView could solve the problem.

![Image](https://github.com/user-attachments/assets/0bfb6cd2-ab18-480b-91d1-921366066f14)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with core_component.jetpack.ex and compare its component definitions with core_component.swiftui.ex. Reproduce the compilation failure using the reported Phoenix LiveView 1.0.2 setup, then determine which component arity is supported and verify that the Jetpack components compile without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, elixir, kotlin
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.