theItoO / itoo-x

Itoo X is a framework that creates a virtual App Inventor environment for background execution
https://themelon.space/itoox
GNU General Public License v3.0
6 stars 0 forks source link

[JAR] WorkManager and deps. #6

Open alphanumericaracters opened 3 weeks ago

alphanumericaracters commented 3 weeks ago

Well, I'm working on an extension that connects with Supabase (Realtime) and subscribes to streaming channels, to receive notifications about changes in the database, presence, etc.

The problem (as you know) is about keeping the WebHook awake, and for this I need the WorkManager.

My idea is to package all of this in a single, simple extension, so that you don't have to create functions, store tags, etc.

So I would need to know if you can package the workmanager, alarm, etc. in a .jar. So I import it into the Niotron ide and I can work from there.

Obviously with the name of the package that you gave it, so I can do the import correctly.

If you're wondering why I don't use the framework, it's because I use the Supabase library for Kotlin.

By the way, Github didn't let me create a pull, that's why I'm posting it here.

XomaDev commented 3 days ago

Hi, sorry I didnt see your issue, please message me on the community next time.

It's hard to package work manager and other things into a single .jar. Android dependencies are much more complex to be packed into a single .jar. And I do not recommend using work manager, you will have a lot of trouble porting it to an extension.

XomaDev commented 3 days ago

The framework by itself does not run in the background. The background functionality is implemented by the extension using itoo-x framework, like the itoo extension.