Search Unity

AAR plugin on Kotlin

Discussion in 'Formats & External Tools' started by GreenJay, Aug 16, 2020.

  1. GreenJay

    GreenJay

    Joined:
    Aug 16, 2020
    Posts:
    1
    Hi !
    I'm creating aar library for unity, that uses Kotlin. I've successfully added all dependencies via GoogleJarResolver. (see recommendations also here https://forum.unity.com/threads/aar-library-with-kotlin.515272/ )
    But also I need to
    1) add
    Code (Boo):
    1. apply plugin: 'kotlin-android-extensions'
    2. apply plugin: 'kotlin-kapt'
    in the beginning of build.gradle file.

    2) Add one library not like "implementation" , but as "kapt" (kotlin annotation processor)

    How can I do it?
     
  2. baymaxblj

    baymaxblj

    Joined:
    Aug 12, 2021
    Posts:
    2