Skip to content

cypressious/kotlin-webextensions-declarations

Repository files navigation

Kotlin WebExtensions API Declarations

A generator for Kotlin JS declarations for the Firefox WebExtensions API from the offical schema files. This repo also contains the ready-made generated declarations.

The schema is taken from https://github.com/mozilla/gecko-dev/tree/master/browser/components/extensions/schemas and https://github.com/mozilla/gecko-dev/tree/master/toolkit/components/extensions/schemas.

See KotlinConf 2018 talk: Building a Browser Extension with Kotlin

See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions

Example projects

How to use in a Gradle project

You can include the declarations in your project by using jitpack.io.

In your build.gradle add

repositories {
    // ...
    maven { url 'https://jitpack.io' }
}

and

dependencies {
    // ...
    compile 'com.github.cypressious.kotlin-webextensions-declarations:webextensions-declarations:v0.4'
}

About

Generated Kotlin JS declarations for the Firefox WebExtensions API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages