Skip to content

cypressious/kotlin-webextensions-declarations

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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