-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using chaquopy may get more contributers for this project #69
Comments
@canewsin If somebody does it and it works, then that PR will be merged. It should do python modules as well as native compilation, since zeronet depends on some modules that require native compilation. |
Actually, looking into it it sounds fairly easy. Maybe I'll get some spare time to do it this week. Would have to figure out how to do the architecture then Currently the zeronet files are copied into Android/data/net.mkg20001.zeronet/files and then whenever an update is done the old folder is renamed, the new one is copied in and data/ folder is moved to the new one. Then a service is launched that handles the pre-startup logic and later runs the zeronet code. This would possibly stay this way, since this is actually the easiest way to implement it (sadly android doesn't let us use symlinks like I did in the snap) |
Yes it will, it has also flags to compile python code to native |
May we can store files on private data folder |
Breaks zeronet profile switcher (the app) |
could you share the code your'e working as separate branch(may be a repo), if i had a time i will look into it, even it breaks, commit to latest working so that i can work form there |
So I just realized that I have android studio on my PC |
Chaoqupy does have precompiled packages for x86, x86_64, armv7a and armv8? |
yes it has all precompiled bins with requires native implementation |
if lib is bear python code its works without any native implementation as stated by them |
I started working on repo which is available at http://github.com/canewsin/ZeroNetChaquoPy simplify continue from here |
I currently dont have time to continue i will be a little free to contribute from december |
@mkg20001 did you try any thing since last conversation? |
No, I'm primarily busy with other things right now. |
code is mostly runnable but there is uiserver.py connection error, did you look into it because you have previously connected with zeronet repo i think some code modifications should be done in python code to run perfectly. look at my repo if possible. |
Yes, mostly the upgrading logic is missing This month I'll likely won't have any time because I've already got a lot of thing on my list. I'll see next year |
so i thought you was refering to, when repo get updated it should be downloaded to some folder and run without rebuilding app right. |
Actually I intended the app code to be update via the app updates (later once things work we could add automated build & release, like I did for the zeronet snap) It's rather about upgrading the plugins directory since users should be able to modify it, yet it needs to be modified by the app on upgrades (and keep the disabled/enabled prefix) |
Ok, i want some list of TODOs you want with the repo so if possible i may try with the app code. What i want you to do is list out what are requirements if possible i will tweak the app code after that we can do big fixing. |
Background processing - no need to keep the window open Autorun at device boot option (Important to make sure ZeroNet is always running, so nobody has to be bothered to run it manually) users.json import/export Command line interface Use a mesh networking API like neighbor-aware WiFi or one of the handful of others Prompt the user on first run to select the features they want enabled Yggdrasil or similar |
@canewsin
Going through your list, I see things quite out of scope:
This is rather uncommon on android and if needed one could run a termux-based install
Since zeronet auto-listens on all addresses, simply having a yggdrasil or cjdns node running should make both connect Also
Actually we're using a persistent notification already in the current version, but it seems android likes to kill things from time to time, so we should check out what's making it do that once that feature is ported Other than that LGTM |
chaquopy requires heavy modification of source code apart from that i was tested latest py3 repo with termux all plugins except coincurve are installed, sites are running well except openssl not found error if it is successful we have another option to try for latest version(py3) |
with this we can achieve all the above requirements from above |
coincurve is also successful zeronet is running normally with bear py3 zeronet code now i will pack those resouces to app make an app on top of it. |
i made an app with compiled sources openssl lib problem except that all is working well i will publish work soon as new app. |
hi i published apks at canews/zeronet download the relevent apps and try them. |
It almost takes 2 full months of work(for finding solution for every problem i faced during this work) to complete this app, so i want to publish the app as separate app as an ad supported version because my financial conditions are very bad, hope this will helps me. you may try with chaquopy but it requires heavy code modifications in zeronet repo code. my version is py3 fully supported. |
It gets a lockfile error once ZeroNet crashes or is shut down.
Setup an account on liberapay or other such so we can support you. The ad networks pay out very little, IMHO. |
I realize the larger APK seems to have no problems. The one that's 64-bit only was problematic. https://github.com/canewsin/ZeroNet/releases/download/APKs/app-release.apk ^Good to go. |
I recently read all the issues of this project and concluded that most of the users want to contribute to the project but some factors stoping them
One is project is not buildable by android studio to develop android most of the developers use it so these users are not able to contribute
Another one is able to built on windows even most servers runs on linux, desktop space is dominated by windows, same for developers, but kivy only works linux may be we can use wsl but it is mess dugging up issues with that
and after some more similar considerations i googled for solutions to these problems and landed on chaquopy
github.com/chaquo/chaquopy/
Advantages of caquopy are
It is free for open source projects
All libraries are prebuilt so you dont have to recompile them [ there is a problem regarding gevent, gevent-websocket, coincurve, i had opened issue with them and convience them its gona help large opensource project they immeadiately resolved the issue and now all the libraries are fully compatible]
Android studio project structure
Python 3 support
Adding modules to project is as simple adding line to build.gradle file
If a wraper is written with chaquopy
We can write native android apps with native ui as well
Following issues will be addressed
#20
#18
#66
#32
and may be #44
What are your thoughts about it
The text was updated successfully, but these errors were encountered: