Generated Kotlin JS declarations for the Firefox WebExtensions API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
declarations
gradle/wrapper
src/main/kotlin/de/rakhman/webextensions
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

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.3'
}