Skip to content

Commit 97b73d8

Browse files
committed
Added explicit wx override for mobile
1 parent 0cec4b0 commit 97b73d8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

mix.exs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ defmodule Todo.MixProject do
5555

5656
# Run "mix help deps" to learn about dependencies.
5757
defp deps do
58-
[
58+
deps_list = [
5959
{:ecto_sqlite3, "~> 0.8"},
6060
{:exqlite, github: "elixir-desktop/exqlite", override: true},
6161
# {:desktop, path: "../desktop"},
@@ -77,5 +77,11 @@ defmodule Todo.MixProject do
7777
# Credo
7878
{:credo, "~> 1.5", only: [:dev, :test], runtime: false}
7979
]
80+
81+
if Mix.target() in [:android, :ios] do
82+
deps_list ++ [{:wx, "~> 1.0", hex: :bridge, targets: [:android, :ios]}]
83+
else
84+
deps_list
85+
end
8086
end
8187
end

0 commit comments

Comments
 (0)