%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
{require_otp_vsn, "R14|R15|R16|17|18|19"}.
{erl_opts,
 [debug_info,
  {platform_define, "^R14", 'ERLANG_OTP_VERSION_14'},
  {platform_define, "^R15", 'ERLANG_OTP_VERSION_15'},
  {platform_define, "^R16", 'ERLANG_OTP_VERSION_16'},
  {platform_define, "^17.", 'ERLANG_OTP_VERSION_17'},
  {platform_define, "^18.", 'ERLANG_OTP_VERSION_18'},
  {platform_define, "^19.", 'ERLANG_OTP_VERSION_19'},
  %% warnings_as_errors, % disabled due to disabled function
  strict_validation,
  warn_bif_clash,
  warn_deprecated_function,
  warn_export_all,
  warn_export_vars,
  warn_exported_vars,
  warn_obsolete_guard,
  warn_shadow_vars,
  warn_unused_import,
  warn_unused_function,
  warn_unused_record,
  warn_unused_vars]}.

{deps, [
        {jsx, "2.8.0"},
        {lhttpc, "1.4.0"},
        {eini, "1.2.1"}
       ]}.

{overrides,
 [
  %% do not pull in the covertool plugin or repo, cause it fetches rebar and
  %% breaks rebar3!
  {override, eini, [{plugins, []},{deps, []}]}
 ]}.

{profiles, [
            {test, [{deps, [{meck, "0.8.4"}]}]}
           ]}.

{plugins, [rebar3_hex]}.
