Skip to content

Commit 94676fc

Browse files
committed
0.4.0-rc.0
1 parent c9f4ff9 commit 94676fc

File tree

6 files changed

+17
-23
lines changed

6 files changed

+17
-23
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [unreleased]
8+
## [0.4.0]
99

1010
### Added
1111

@@ -16,11 +16,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- The `data-confirm` attribute can be added to elements to show a confirmation dialog before sending an event
1717

1818
### Changed
19+
1920
- Swift 6 is now required to build LiveView Native applications
2021
- `Section` now uses the `isExpanded` and `phx-change` attributes to enable collapsing in sidebar-styled `List` views
2122
- `liveview-native-core` has been updated to v0.4.0, and is now used for all internal networking
2223
- `LiveConnectionError` was removed, use error types from `LiveViewNativeCore` instead
2324

25+
### Removed
26+
27+
- `sigil_SWIFTUI`
28+
2429
### Fixed
2530
- Views will now update properly when the server changes the value of a form field (#1483)
2631

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ by adding `live_view_native_swiftui` to your list of dependencies in `mix.exs`:
2121
```elixir
2222
def deps do
2323
[
24-
{:live_view_native_swiftui, "~> 0.3.0"}
24+
{:live_view_native_swiftui, "~> 0.4.0-rc.0"}
2525
]
2626
end
2727
```

lib/live_view_native/swiftui/component.ex

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,8 @@ defmodule LiveViewNative.SwiftUI.Component do
88
use LiveViewNative.Component
99

1010
defmacro __using__(_) do
11-
quote do
11+
quote location: :keep do
1212
import LiveViewNative.Component, only: [sigil_LVN: 2]
13-
import LiveViewNative.SwiftUI.Component, only: [sigil_SWIFTUI: 2]
14-
end
15-
end
16-
17-
18-
@doc false
19-
defmacro sigil_SWIFTUI(doc, modifiers) do
20-
IO.warn("~SWIFTUI is deprecated and will be removed for v0.4.0 Please change to ~LVN")
21-
22-
quote do
23-
sigil_LVN(unquote(doc), unquote(modifiers))
2413
end
2514
end
2615

mix.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule LiveViewNative.SwiftUI.MixProject do
22
use Mix.Project
3-
@version "0.3.1"
3+
@version "0.4.0-rc.0"
44
@source_url "https://github.com/liveview-native/liveview-client-swiftui"
55

66
def project do
@@ -54,8 +54,8 @@ defmodule LiveViewNative.SwiftUI.MixProject do
5454
{:makeup_json, "~> 0.1.0", only: [:docs, :test]},
5555
{:makeup_eex, ">= 0.1.1"},
5656
{:floki, ">= 0.30.0", only: :test},
57-
{:live_view_native, github: "liveview-native/live_view_native", override: true},
58-
{:live_view_native_stylesheet, "~> 0.3.1", only: :test},
57+
{:live_view_native, "~> 0.4.0-rc.0"},
58+
{:live_view_native_stylesheet, "~> 0.3.2", only: :test},
5959
{:live_view_native_live_form, github: "liveview-native/liveview-native-live-form", only: :test},
6060
{:gettext, "~> 0.20", only: :test},
6161
{:live_view_native_test_endpoint, github: "liveview-native/live_view_native_test_endpoint", branch: "main", only: :test},
@@ -73,7 +73,7 @@ defmodule LiveViewNative.SwiftUI.MixProject do
7373
groups_for_extras: groups_for_extras(),
7474
main: "readme",
7575
source_url: @source_url,
76-
source_ref: "v#{@version}",
76+
source_ref: @version,
7777
before_closing_body_tag: %{
7878
html: """
7979
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js"></script>

mix.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"},
55
"cowlib": {:hex, :cowlib, "2.13.0", "db8f7505d8332d98ef50a3ef34b34c1afddec7506e4ee4dd4a3a266285d282ca", [:make, :rebar3], [], "hexpm", "e1e1284dc3fc030a64b1ad0d8382ae7e99da46c3246b815318a4b848873800a4"},
66
"earmark_parser": {:hex, :earmark_parser, "1.4.42", "f23d856f41919f17cd06a493923a722d87a2d684f143a1e663c04a2b93100682", [:mix], [], "hexpm", "6915b6ca369b5f7346636a2f41c6a6d78b5af419d61a611079189233358b8b8b"},
7-
"ex_doc": {:hex, :ex_doc, "0.35.1", "de804c590d3df2d9d5b8aec77d758b00c814b356119b3d4455e4b8a8687aecaf", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "2121c6402c8d44b05622677b761371a759143b958c6c19f6558ff64d0aed40df"},
7+
"ex_doc": {:hex, :ex_doc, "0.36.1", "4197d034f93e0b89ec79fac56e226107824adcce8d2dd0a26f5ed3a95efc36b1", [:mix], [{:earmark_parser, "~> 1.4.42", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "d7d26a7cf965dacadcd48f9fa7b5953d7d0cfa3b44fa7a65514427da44eafd89"},
88
"expo": {:hex, :expo, "1.1.0", "f7b9ed7fb5745ebe1eeedf3d6f29226c5dd52897ac67c0f8af62a07e661e5c75", [:mix], [], "hexpm", "fbadf93f4700fb44c331362177bdca9eeb8097e8b0ef525c9cc501cb9917c960"},
99
"floki": {:hex, :floki, "0.37.0", "b83e0280bbc6372f2a403b2848013650b16640cd2470aea6701f0632223d719e", [:mix], [], "hexpm", "516a0c15a69f78c47dc8e0b9b3724b29608aa6619379f91b1ffa47109b5d0dd3"},
1010
"gettext": {:hex, :gettext, "0.26.2", "5978aa7b21fada6deabf1f6341ddba50bc69c999e812211903b169799208f2a8", [:mix], [{:expo, "~> 0.5.1 or ~> 1.0", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "aa978504bcf76511efdc22d580ba08e2279caab1066b76bb9aa81c4a1e0a32a5"},
1111
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
12-
"live_view_native": {:git, "https://github.com/liveview-native/live_view_native.git", "3d20a8e6b4494ac6ee7aa64a8ddb349a5e341041", []},
13-
"live_view_native_live_form": {:git, "https://github.com/liveview-native/liveview-native-live-form.git", "33bce0879fa0604113cb22109795f183ff0f36e4", []},
14-
"live_view_native_stylesheet": {:hex, :live_view_native_stylesheet, "0.3.1", "71a1cee29ec3fe0003949250035ec905e6e7c706928e94ff8823be8108267e1b", [:mix], [{:live_view_native, "~> 0.3.1", [hex: :live_view_native, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "ca2a9a47b34be56099d6c1523a2cb69274ba2a5ecff441cacb4b885483fb39b3"},
12+
"live_view_native": {:hex, :live_view_native, "0.4.0-rc.0", "a04edaf52f583e1282080c4f6d4b6da82d563ee325db6b2c6aa12a1f10c77d8c", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.7.0", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 3.3 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 1.0.1", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0.4", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: false]}, {:plug, "~> 1.15", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.5", [hex: :plug_cowboy, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.5", [hex: :sourceror, repo: "hexpm", optional: false]}, {:text_diff, "~> 0.1", [hex: :text_diff, repo: "hexpm", optional: false]}], "hexpm", "f2d9398d9bea5b0390175d199999d97bc727398c724e647915c05f283844664f"},
13+
"live_view_native_live_form": {:git, "https://github.com/liveview-native/liveview-native-live-form.git", "83c38252a10e2ea23882f29db513f71beb90d7ec", []},
14+
"live_view_native_stylesheet": {:hex, :live_view_native_stylesheet, "0.3.2", "b0d48b07ab5cceb3229ec729a8dba54e59b47cc7179ee002d5eaa7e3571920f3", [:mix], [{:live_view_native, "~> 0.3", [hex: :live_view_native, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "a2afeeecc95f8434b85e78c495047846e5a8ed2b3ade3995fb744530724aac29"},
1515
"live_view_native_test_endpoint": {:git, "https://github.com/liveview-native/live_view_native_test_endpoint.git", "be09319cc2def0e93a2aba79d8db7ba989560afa", [branch: "main"]},
1616
"makeup": {:hex, :makeup, "1.2.1", "e90ac1c65589ef354378def3ba19d401e739ee7ee06fb47f94c687016e3713d1", [:mix], [{:nimble_parsec, "~> 1.4", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "d36484867b0bae0fea568d10131197a4c2e47056a6fbe84922bf6ba71c8d17ce"},
1717
"makeup_eex": {:hex, :makeup_eex, "1.0.0", "436d4c00204c250b17a775d64e197798aaf374627e6a4f2d3fd3074a8db61db4", [:mix], [{:makeup, "~> 1.2.1 or ~> 1.3", [hex: :makeup, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_html, "~> 0.1.0 or ~> 1.0", [hex: :makeup_html, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "3bb699bc519e4f509f1bf8a2e0ba0e08429edf3580053cd31a4f9c1bc5da86c8"},

priv/templates/lvn.swiftui.gen/xcodegen/base_spec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ packages:
1313
from: "<%= @version %>"<%= if @live_form? do %>
1414
LiveViewNativeLiveForm:
1515
url: https://github.com/liveview-native/liveview-native-live-form
16-
from: "0.3.1"<% end %>
16+
from: "0.4.0-rc.0"<% end %>
1717
settings:
1818
CURRENT_PROJECT_VERSION: 1.0
1919
INFOPLIST_KEY_CFBundleDisplayName: ${LVN_APP_NAME}

0 commit comments

Comments
 (0)