Packages
forge_sdk
0.37.2
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.7
1.0.6
1.0.4
1.0.4-p1
1.0.4-p0
1.0.3
1.0.2
1.0.2-p1
1.0.1
1.0.1-p1
1.0.0
0.40.6
0.40.5
0.40.4
0.40.3
0.40.2
0.40.1
0.40.0
0.39.1
0.39.0
0.38.6
0.38.5
0.38.4
0.38.3
0.38.2
0.38.1
0.38.0
0.37.5
0.37.4
0.37.3
0.37.2
0.37.1
0.37.0
0.34.0
0.33.2
0.33.1
0.33.0
0.32.2
0.32.1
0.32.0
0.31.1
0.31.0
0.30.0
0.29.1
0.29.0
0.28.3
0.28.2
0.28.1
0.28.0
0.27.4
0.27.3
0.27.2
0.27.1
0.27.0
0.26.6
0.26.5
0.26.4
0.26.3
0.26.1
0.26.0
Elixir / Erlang version of the SDK for Forge framework.
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule ForgeSdk.MixProject do
use Mix.Project
@top File.cwd!()
@version @top |> Path.join("version") |> File.read!() |> String.trim()
@elixir_version @top |> Path.join(".elixir_version") |> File.read!() |> String.trim()
def project do
[
app: :forge_sdk,
version: @version,
elixir: @elixir_version,
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
deps: deps(),
dialyzer: [ignore_warnings: ".dialyzer_ignore.exs", plt_add_apps: [:eex, :typed_struct]],
description: description(),
package: package(),
# Docs
name: "ForgeSdk",
source_url: "https://github.com/arcblock/forge-elixir-sdk",
homepage_url: "https://github.com/arcblock/forge-elixir-sdk",
docs: [
main: "ForgeSdk",
extras: ["README.md"]
]
]
end
def application do
[
extra_applications: [:logger],
mod: {ForgeSdk.Application, []}
]
end
defp elixirc_paths(env) when env in [:dev, :test, :integration], do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:bbmustache, "~> 1.8"},
{:connection, "~> 1.0"},
{:deep_merge, "~> 0.1.1"},
{:jason, "~> 1.1"},
{:multibase, "~> 0.0.1"},
{:recase, "~> 0.6"},
{:toml, "~> 0.5"},
{:typed_struct, "~> 0.1.4"},
# forge family dependencies
{:mcrypto, "~> 0.2"},
{:abt_did_elixir, "~> 0.3"},
{:forge_abi, "~> 1.12"},
# {:abt_did_elixir, path: "../abt-did-elixir"},
# {:forge_abi, path: "../forge-abi"},
# dev and test
{:credo, "~> 1.0.0", only: [:dev, :test]},
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},
{:ex_doc, "~> 0.19.0", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.11", only: [:test]},
{:pre_commit_hook, "~> 1.2", only: [:dev, :test], runtime: false},
{:stream_data, "~> 0.4", only: [:test, :integration]}
]
end
defp description do
"""
Elixir / Erlang version of the SDK for Forge framework.
"""
end
defp package do
[
files: [
"config",
"lib",
"priv",
"mix.exs",
"README*",
"LICENSE",
"version",
".elixir_version"
],
licenses: ["Apache 2.0"],
maintainers: [
"dingpl716@gmail.com",
"sunboshan@gmail.com",
"tyr.chen@gmail.com"
],
links: %{
"GitHub" => "https://github.com/arcblock/forge-elixir-sdk",
"Docs" => "https://hexdocs.pm/forge-elixir-sdk"
}
]
end
end