defmodule Intercom.MixProject do use Mix.Project @source_url "https://github.com/diagnosia/intercom-elixir" def project do [ app: :intercom, version: "3.0.0", elixir: "~> 1.13", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), dialyzer: dialyzer(), description: description(), package: package(), deps: deps(), name: "intercom_elixir", source_url: @source_url ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:credo, "~> 1.5", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.0", only: :dev, runtime: false}, {:ex_doc, "~> 0.21", only: :dev, runtime: false}, {:httpoison, "~> 1.7 or ~> 2.0"}, {:jason, "~> 1.1"}, {:mix_test_watch, "~> 1.0", only: :dev, runtime: false}, {:mox, "~> 1.0", only: :test} ] end defp description do "An Elixir library for working with Intercom using the Intercom API." end defp dialyzer do [ plt_file: {:no_warn, "priv/plts/dialyzer.plt"} ] end defp elixirc_paths(:test), do: ["test/support", "lib"] defp elixirc_paths(_), do: ["lib"] defp package do [ name: "intercom_elixir", files: ~w(lib .formatter.exs mix.exs README* CHANGELOG*), licenses: ["MIT"], links: %{ "GitHub" => @source_url, "Changelog" => @source_url <> "/blob/main/CHANGELOG.md" } ] end end