Current section

14 Versions

Jump to

Compare versions

32 files changed
+467 additions
-277 deletions
  @@ -1,5 +1,27 @@
1 1 # Changelog
2 2
3 + ## 0.12.0-rc.0
4 +
5 + **Note: as of v0.12.0 we'll be requiring at least Elixir 1.16**
6 +
7 + This is a major update that adds fixes and support for new operations:
8 +
9 + * CI improvements - @axelson
10 + * Formatting updates - @axelson
11 + * Support for Elixir 1.16 - @axelson
12 + * Update getting started guide for Scenic in supervision tree - @amclain
13 + * Fix `already_started` error propogation failure - @seb3s
14 + * Add development Nix flake - @crertel
15 + * Reduce makefile compilation spam - @jjcartsens
16 + * Simplify `default_pin` and `centroid` code - @seb3s
17 + * Add new input events (`:btn_pressed`, `:btn_released`, `:dropdown_opened`, `:dropdown_closed`, `:dropdown_item_hover`, `:focus`, `:blur`) - @GPrimola
18 + * Add warning for missing `handle_input/3` on `request_input/2` - @BinaryNoggin
19 + * Add alpha channel to sprites - @seb3s
20 + * Add script arc functions - @GPrimola
21 + * Add extended rounded rectangle drawing - @GPrimola
22 + * Assorted updates for deprecations and warnings
23 +
24 +
3 25 ## 0.11.2
4 26
5 27 * Variety of minor updates, bug fixes, and doc updates
  @@ -113,7 +135,7 @@ continue to work, but will log a warning when used.
113 135
114 136 | Asset Class | Module |
115 137 | ------------- | -----|
116 - | Fonts | `Scenic.Cache.Static.Font` |
138 + | Fonts | `Scenic.Cache.Static.Font` |
117 139 | Font Metrics | `Scenic.Cache.Static.FontMetrics` |
118 140 | Textures (images in a fill) | `Scenic.Cache.Static.Texture` |
119 141 | Raw Pixel Maps | `Scenic.Cache.Dynamic.Texture` |
  @@ -53,16 +53,12 @@ docs_report:
53 53 MIX_ENV=docs mix inch.report
54 54
55 55 $(BUILD)/%.o: c_src/%.c
56 + @echo " CC $(notdir $@)"
56 57 $(CC) -c $(ERL_CFLAGS) $(CFLAGS) -o $@ $<
57 58
58 - $(PREFIX)/line.so: $(BUILD)/line.o
59 - $(CC) $^ $(ERL_LDFLAGS) $(LDFLAGS) -o $@
60 -
61 - $(PREFIX)/matrix.so: $(BUILD)/matrix.o
62 - $(CC) $^ $(ERL_LDFLAGS) $(LDFLAGS) -o $@
63 -
64 - $(PREFIX)/bitmap.so: $(BUILD)/bitmap.o
65 - $(CC) $^ $(ERL_LDFLAGS) $(LDFLAGS) -o $@
59 + $(PREFIX)/%.so: $(BUILD)/%.o
60 + @echo " LD $(notdir $@)"
61 + $(CC) $< $(ERL_LDFLAGS) $(LDFLAGS) -o $@
66 62
67 63 $(PREFIX) $(BUILD):
68 64 mkdir -p $@
  @@ -70,3 +66,5 @@ $(PREFIX) $(BUILD):
70 66 clean:
71 67 $(RM) $(NIF) c_src/*.o
72 68
69 + # Don't echo commands unless the caller exports "V=1"
70 + ${V}.SILENT:
  @@ -1,7 +1,5 @@
1 1 # Core Scenic Library
2 2
3 - [![Codecov](https://codecov.io/gh/boydm/scenic/branch/master/graph/badge.svg)](https://codecov.io/gh/boydm/scenic)
4 -
5 3 Scenic is a client application library written directly on the
6 4 Elixir/Erlang/OTP stack. With it you can build applications that operate
7 5 identically across all supported operating systems, including MacOS, Ubuntu,
  @@ -76,15 +76,13 @@ defmodule MyApp do
76 76 # ...
77 77
78 78 def start(_type, _args) do
79 - import Supervisor.Spec, warn: false
80 -
81 79 # 1. Load the viewport configuration from config
82 80 main_viewport_config = Application.get_env(:my_app, :viewport)
83 81
84 82 # 2. Start the application with the viewport
85 83 children = [
86 84 # ...
87 - supervisor(Scenic, [viewports: [main_viewport_config]]),
85 + {Scenic, [main_viewport_config]},
88 86 ]
89 87
90 88 Supervisor.start_link(children, strategy: :one_for_one)
  @@ -1,11 +1,8 @@
1 - {<<"links">>,[{<<"Github">>,<<"https://github.com/ScenicFramework/scenic">>}]}.
2 - {<<"name">>,<<"scenic">>}.
3 - {<<"version">>,<<"0.11.2">>}.
1 + {<<"app">>,<<"scenic">>}.
2 + {<<"build_tools">>,[<<"mix">>,<<"make">>]}.
4 3 {<<"description">>,
5 4 <<"Scenic -- a client application library written directly on the Elixir/Erlang/OTP stack">>}.
6 - {<<"elixir">>,<<"~> 1.11">>}.
7 - {<<"app">>,<<"scenic">>}.
8 - {<<"licenses">>,[<<"Apache-2.0">>]}.
5 + {<<"elixir">>,<<"~> 1.16">>}.
9 6 {<<"files">>,
10 7 [<<"Makefile">>,<<"Makefile.win">>,<<"c_src/bitmap.c">>,<<"c_src/line.c">>,
11 8 <<"c_src/matrix.c">>,<<"c_src/texture.c">>,<<"lib/mix/tasks/run.ex">>,
  @@ -81,30 +78,33 @@
81 78 <<"guides/welcome.md">>,<<"README.md">>,<<"LICENSE">>,<<"CHANGELOG.md">>,
82 79 <<"assets/fonts/roboto.ttf">>,<<"assets/fonts/roboto_mono.ttf">>,
83 80 <<"assets/fonts/LICENSE.txt">>]}.
81 + {<<"licenses">>,[<<"Apache-2.0">>]}.
82 + {<<"links">>,[{<<"Github">>,<<"https://github.com/ScenicFramework/scenic">>}]}.
83 + {<<"name">>,<<"scenic">>}.
84 84 {<<"requirements">>,
85 - [[{<<"name">>,<<"font_metrics">>},
86 - {<<"app">>,<<"font_metrics">>},
85 + [[{<<"app">>,<<"font_metrics">>},
86 + {<<"name">>,<<"font_metrics">>},
87 87 {<<"optional">>,false},
88 - {<<"requirement">>,<<"~> 0.5.0">>},
89 - {<<"repository">>,<<"hexpm">>}],
90 - [{<<"name">>,<<"nimble_options">>},
91 - {<<"app">>,<<"nimble_options">>},
88 + {<<"repository">>,<<"hexpm">>},
89 + {<<"requirement">>,<<"~> 0.5.0">>}],
90 + [{<<"app">>,<<"nimble_options">>},
91 + {<<"name">>,<<"nimble_options">>},
92 92 {<<"optional">>,false},
93 - {<<"requirement">>,<<"~> 0.3.4 or ~> 0.4.0 or ~> 0.5.0 or ~> 1.0">>},
94 - {<<"repository">>,<<"hexpm">>}],
95 - [{<<"name">>,<<"ex_image_info">>},
96 - {<<"app">>,<<"ex_image_info">>},
93 + {<<"repository">>,<<"hexpm">>},
94 + {<<"requirement">>,<<"~> 0.3.4 or ~> 0.4.0 or ~> 0.5.0 or ~> 1.1">>}],
95 + [{<<"app">>,<<"ex_image_info">>},
96 + {<<"name">>,<<"ex_image_info">>},
97 97 {<<"optional">>,false},
98 - {<<"requirement">>,<<"~> 0.2.4">>},
99 - {<<"repository">>,<<"hexpm">>}],
100 - [{<<"name">>,<<"truetype_metrics">>},
101 - {<<"app">>,<<"truetype_metrics">>},
98 + {<<"repository">>,<<"hexpm">>},
99 + {<<"requirement">>,<<"~> 0.2.4">>}],
100 + [{<<"app">>,<<"truetype_metrics">>},
101 + {<<"name">>,<<"truetype_metrics">>},
102 102 {<<"optional">>,false},
103 - {<<"requirement">>,<<"~> 0.6">>},
104 - {<<"repository">>,<<"hexpm">>}],
105 - [{<<"name">>,<<"elixir_make">>},
106 - {<<"app">>,<<"elixir_make">>},
103 + {<<"repository">>,<<"hexpm">>},
104 + {<<"requirement">>,<<"~> 0.6">>}],
105 + [{<<"app">>,<<"elixir_make">>},
106 + {<<"name">>,<<"elixir_make">>},
107 107 {<<"optional">>,false},
108 - {<<"requirement">>,<<"~> 0.7.7">>},
109 - {<<"repository">>,<<"hexpm">>}]]}.
110 - {<<"build_tools">>,[<<"mix">>,<<"make">>]}.
108 + {<<"repository">>,<<"hexpm">>},
109 + {<<"requirement">>,<<"~> 0.8.4">>}]]}.
110 + {<<"version">>,<<"0.12.0-rc.0">>}.
Loading more files…