sleeyax / pms-android

Unoffical PimpMyStremio android app
MIT License
22 stars 2 forks source link

Discussion #4

Open sungshon opened 3 years ago

sungshon commented 3 years ago

Made this issue for an open discussion about the Android version..

Just wanted to share my own experience related to it.

Other then that.. there haven't been any other big blockers (that i can remember) to get this running on Android..

sungshon commented 3 years ago

Oh, right, I counted how many addons use phantom-js and youtube-dl in this comment: https://github.com/sungshon/PimpMyStremio/issues/51#issuecomment-574716351

sleeyax commented 3 years ago

I've read your notes about the topic at the PimpMyStremio repo.

If none of these work, I don't think we can do much about the app persistence issue.

sleeyax commented 3 years ago

Btw, this pms-android project was made in a day (and +1 day to fix some bugs) as a fast POC, because people were asking for it. android-js has worked out nicely so far, but I feel a lack of control so I'm probably gonna try out nodejs-mobile soon.

sungshon commented 3 years ago

pms-android project was made in a day

My android attempt didn't take too long to get working either (granted, more then one day), it's the research that took the longest. And I'm still undecided in many aspects of it..

I think we should either drop support for addons that use unsupported dependencies

I think they should be dropped too, although it would of been nice to find a suitable workaround.. But getting fixated on this like I did will only hinder development, so getting it working without those addons is the logical choice.

Some devices have settings to disable aggressive battery saving for specific apps, or there are other tricks like this that could work

I'm not entirely sure how "app cloner" does it, I have to wonder if what it's doing to the apps can't be done in the app itself also. Otherwise patching all the releases with app cloner manually might get annoying at some point.

sungshon commented 3 years ago

I know it's a bit too late for this idea, but if i would make PMS addons use a package.json for setting module depencies, then I could:

There are other benefits to this also.. I could only allow access to those specific modules (from package.json) to each addon.

sungshon commented 3 years ago

This is also really scalable, we could make module support templates, one being no-binary which might even run in node.js playgrounds. And also platform specific modules, PMS supports internal modules, this means we can even add internal functionality as modules for addons. youtube-dl-android could be a platform specific module for example, that has a completely different API then youtube-dl for Desktop, and addon devs could write different logic depending on which is available for them..