Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

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

About

Generated Kotlin JS declarations for the Firefox WebExtensions API

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.