defmodule PomeloEx.MixProject do use Mix.Project def project do [ app: :pomelo_ex, version: "0.1.0", elixir: "~> 1.16", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), name: "PomeloEx", description: "An Elixir client library for the Pomelo API — the Latin American fintech platform for card issuing, digital accounts, KYC/KYB, fraud prevention, loyalty, and credit products.", source_url: "https://github.com/matheuscamarques/pomelo_ex", homepage_url: "https://developers.pomelo.la", package: package(), docs: docs() ] end defp package do [ licenses: ["MIT"], links: %{ "GitHub" => "https://github.com/matheuscamarques/pomelo_ex", "Homepage" => "https://developers.pomelo.la" } ] end defp docs do [ main: "PomeloEx", extras: ["README.md"], formatters: ["html"], groups_for_modules: groups_for_modules() ] end defp groups_for_modules do [ General: ~r/^PomeloEx\.General/, "Identity (KYC/KYB)": ~r/^PomeloEx\.Identity/, "Cards - Issuing": ~r/^PomeloEx\.Cards\.Issuing/, "Cards - Processing": ~r/^PomeloEx\.Cards\.Processing/, "Cards - Tokenization": ~r/^PomeloEx\.Cards\.Tokenization/, "Cards - Sensitive Information": ~r/^PomeloEx\.Cards\.SensitiveInformation/, "Cards - Credits": ~r/^PomeloEx\.Cards\.Credits/, "Cards - Associations": ~r/^PomeloEx\.Cards\.Associations/, "Digital Accounts": ~r/^PomeloEx\.DigitalAccounts/, Finance: ~r/^PomeloEx\.Finance/, Fraud: ~r/^PomeloEx\.Fraud/, Loyalty: ~r/^PomeloEx\.Loyalty/, Types: ~r/^PomeloEx\.Types/ ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {PomeloEx.Application, []} ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "test/fixtures"] defp elixirc_paths(_), do: ["lib"] # Run "mix help deps" to learn about dependencies. defp deps do [ # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.37", only: :dev, runtime: false}, {:typed_ecto_schema, "~> 0.4.1", runtime: false}, {:httpoison, "~> 2.0"}, {:jason, "~> 1.4"}, {:mox, "~> 1.0", only: :test} ] end end