saiyn / golang-android-plugin

Golang building plugin for Android project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Android Plugin

Golang building plugin for Android project.

Usage

  • Add to buildscript

    repositories {
        // ...
        maven("https://maven.kr328.app/releases")
    }
    dependencies {
        // ...
        classpath("com.github.kr328.golang:gradle-plugin:1.0.0")
    }
  • Apply plugin to project

    plugins {
        id("golang-android")
    }
  • Configure source sets

    golang {
        sourceSets {
            create("main") {
                fileName.set("libgolang.so")
                srcDir.set(file("src/main/go"))
                tags = listOf("with_android")
            }
        }
    }

About

Golang building plugin for Android project.

License:MIT License


Languages

Language:Java 74.9%Language:Kotlin 25.1%