Skip to content

Commit

Permalink
Allow Context.apps to override the default fallback otp app
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella committed Mar 12, 2024
1 parent 11ec1ba commit 290e7d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mix/live_view_native/context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ defmodule Mix.LiveViewNative.Context do
end
end

def apps(format) do
def apps(format, default_app \\ :live_view_native) do
plugin_otp_app_name =
format
|> LiveViewNative.fetch_plugin!()
|> Map.get(:__struct__)
|> Application.get_application()

[".", plugin_otp_app_name, :live_view_native]
[".", plugin_otp_app_name, default_app]
end

def prompt_for_conflicts(generator_files) do
Expand Down

0 comments on commit 290e7d6

Please sign in to comment.