service-compiler


License

License

GroupId

GroupId

io.johnsonlee.spi
ArtifactId

ArtifactId

service-compiler
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

module
Description

Description

service-compiler
service-compiler
Project URL

Project URL

https://github.com/johnsonlee/service-loader
Source Code Management

Source Code Management

https://github.com/johnsonlee/service-loader

Download service-compiler

Dependencies

runtime (3)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.50
com.google.auto.service : auto-service jar 1.0-rc6
com.squareup : javapoet jar 1.12.1

Project Modules

There are no modules declared in this project.

Service Loader for Android

This project is used to optimize Java Service Provider Interface on Android.

Getting Started

The transformer depends Booster Framework, so, the booster-gradle-plugin should be contained in classpath of buildscript:

buildscript {
    ext.kotlin_version = "1.3.50"
    repositories {
        mavenLocal()
        mavenCentral()
        google()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:3.5.0")
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        classpath("com.didiglobal.booster:booster-gradle-plugin:1.3.1")

        classpath("io.johnsonlee.spi:booster-transform-service-loader:1.0.0")
    }
}

Then apply booster gradle plugin:

apply plugin: "com.android.application"
apply plugin: "kotlin-android"
apply plugin: "kotlin-android-extensions"
apply plugin: 'kotlin-kapt'
apply plugin: "com.didiglobal.booster"

Example

Here is the example project

Versions

Version
1.0.0