Skip to content

Unofficial kotlin wrapper for accessing the Scryfall api

License

Notifications You must be signed in to change notification settings

kadahlin/Skryfall

Repository files navigation

Skryfall

This is an unofficial library for type safe access to the scryfall api using Bazel. I made this as a utility for another project and figured it would make a good library. The API is in no way final and is subject to change with additional releases. Further documentation will be coming but for now a sample usage can be seen in the /sample module. Builders for the objects returned by the client for use in testing are found in the skryfall-test module.

To use:

###Bazel

To use skryfall you must declare the provided artifact list to satisfy the transitive dependencies.

WORKSPACE:

git_repository(
    name = "skryfall",
    remote = "https://github.com/kadahlin/Skryfall.git",
    branch = "master"
)

load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@skryfall//skryfall:skryfall_deps.bzl", "SKRYFALL_ARTIFACTS")
load("@skryfall//skryfall-test:skryfall-test_deps.bzl", "SKRYFALL_TEST_ARTIFACTS")

maven_install(
    artifacts = [
    <your deps>    
    ] + SKRYFALL_ARTIFACTS + SKRYFALL_TEST_ARTIFACTS,
    repositories = [
        "https://repo1.maven.org/maven2"
    ]
)

BUILD

kt_jvm_library(
    ...
    deps = [
        "@skryfall//skryfall",
        "@skryfall//skryfall-test"
    ]
)

Older skryfall versions are available in github packages, gradle integration of the bazel module is a WIP.

About

Unofficial kotlin wrapper for accessing the Scryfall api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages 4