Hey Jewel aficionados, I watched Seb on the adb po...
# jewel
m
Hey Jewel aficionados, I watched Seb on the adb podcast and I was inspired. I used the jetbrains plugin template to make a Hello world plugin, It worked. Now I am following the Jewel readme and I am trying to graft those instructions on what the template generated. How hard could it be (... 🤦 ❤️‍🔥 gradle intensifies) So now after some gradleness and assorted toml file changes I think I need to start again from another starting point. So what is the best way to get a hello world plugin that uses jewel, please? sincerely, plugin-noob-and-compose-appreciator.
I feel like I am close though because the
jewel-ide-laf-bridge-243
is asking for `Could not find androidx.annotationannotation1.8.0.`and a few others like collection and lifecycle-common and a few more. I'm probably just missing a step somewhere
s
I'd say to look at Package Search — they have a full setup, including shadowing to prevent clashes on 241. Starting from 243 Jewel is bundled in the platform, too, so make sure you use 0.26.x+ if you're targeting/running on 243
m
ok that's useful, thanks Seb
s
Ne!
c
what's package search?
aha. found https://github.com/JetBrains/package-search-intellij-plugin so. @seb what should i do if all i want is to take the current jewel sample ide plugin (from the repo, not talking about package search repo. just jewel repo) and distribute that plugin (with no changes) to my team for use in Android studio. can i just somehow get a zip and send it to my one teammate on slack and they can add it to studio?
s
Yeah you can. Build the plugin, it'll give you a zip. You share that with folks and they can install from disk (I'm out and about abroad, can't look up the IJ help page on how to do that)
c
nice. okay. i will start to dig for where that zip is located. i did a cursory look for it but no dice. thanks for confirming
s
build/distribution iirc
c
?
s
Did you run buildPlugin?
c
Did not know about that. lemme try
./gradlew buildPlugin did the trick. woot!!!
💯 1
Hm... Plugin 'My Awesome Plugin' (version '1.0.0-SNAPSHOT') is not compatible with the current version of the IDE, because it requires build 243.21155 or newer but the current build is AI-242.23339.11
s
Lower your minimum IJP version to 242 :)
c
are you talking about in the plugin code? or actually lowering my IDE? im currently on Android Studio Ladybug | 2024.2.1 Patch 2 (latest stable). im still new to plugin dev so maybe theres something im missing here lol
s
In the plugin code. I'd recommend a cursory read of the documentation :D
c
indeed have read through it. i guess since i searched up the dependency referenced in the readme and since i couldn't find it in the project i gave up. but i guess its probably because its declared in the toml or something. will give it another read/another go tonight and see what i can come up with. appreciate the hand-holding thus far. very different from android dev 😅
s
Eheh for sure. The target IJP version is generally set in gradle, and commonly read from the properties file
c
interesting. i did try to change ijp.target=243 to ijp.target=242 or ijp.target=244, but no dice. but those were guesses. so let me read over it again. thank you!
s
Ah no in jewel they're defined in the toml :) it's a unique setup due to it being a library and having very specific needs
❤️ 1
I'm on vacation so not going to give more specific pointers, no computer with me and all. The setup is a bit more complex than usual but between the explanation in the readme and referencing the buildsrc code you should be able to figure it out reasonably easily
c
thanks. this gives me motivation that im on the right path at least. hope you enjoy the holiday. cheers
💯 1