https://kotlinlang.org logo
Join SlackCommunities
Powered by
# mpapt
  • f

    Foso

    09/13/2019, 4:09 PM
    set the channel description: Discussions about https://github.com/Foso/MpApt
  • a

    ankushg

    10/11/2019, 6:31 PM
    I've got a few
    fun
    ideas for plugins using
    MpApt
    to solve some personal pain-points. The one thing I'm curious about though is how interplay works between
    MpApt
    -powered plugins and other plugins. Specific ideas/questions below:
  • a

    ankushg

    10/11/2019, 6:31 PM
    Can I generate code and have
    kotlinx.serialization
    run on my generated code? I'd like to simplify some boilerplate I have to write for serializing enums to/from values other than their ordinal or name.
  • a

    ankushg

    10/11/2019, 6:31 PM
    Is it possible to pass in things to
    runDceKotlinJs.keep
    ? I'd like to read all usages of
    @JsName
    and automatically add them to Kotlin/JS DCE's keep list.
  • f

    Foso

    10/11/2019, 9:17 PM
    Hi @ankushg, thank you for your questions: I haven't used the keep list of runDceKotlinJs before. I wrote a Gist with the code which is able to find @JsName https://gist.github.com/Foso/ca126f184378ff2afb98d29f5355ebff It should be possible to put the keep list in an extra gradle file. From inside the processor you would read the values and then overwrite this gradle file. For serialization and generated code you could use KotlinPoet or just save a String to a file and save it inside your project folder.
  • a

    ankushg

    10/11/2019, 9:19 PM
    Nice, I definitely know how to generate using KotlinPoet -- I just wasn't sure about if MpApt would be able to generate code before DCE or Serialization, or if it would happen afterward
  • f

    Foso

    01/23/2020, 7:34 PM
    I just released v0.8.4 https://github.com/Foso/MpApt/releases/tag/0.8.4
  • n

    Nikita Khlebushkin

    02/14/2020, 7:31 AM
    Hello here, I have an implementation of plugin based on MpApt and it generates the files I want, so I'm happy. Who isn't happy though is my code that depends on the generated files like this:
    class MyHandwrittenClass : GeneratedClass()
    . Sometimes it does compile (in 30% cases), sometimes it doesn't. I feel like the compiler and the plugin are racing each other. What can I do in this case?
    • 1
    • 1
  • f

    Foso

    05/23/2020, 3:48 PM
    I just released v0.8.6, fixed a bug, processor for file annotations was called too often https://github.com/Foso/MpApt
  • f

    Foso

    08/10/2020, 1:55 PM
    Released MpApt 0.8.7, updated it to Kotlin 1.4.0 https://github.com/Foso/MpApt
  • d

    David Hart

    01/21/2021, 3:58 PM
    Hi @Foso!
  • d

    David Hart

    01/21/2021, 3:58 PM
    Does anybody know how to get MpApt working in Kotlin Mobile Multiplatform.
  • d

    David Hart

    01/21/2021, 3:58 PM
    I can’t seem to get the AbstractProcessor visible in my code.