Git Product home page Git Product logo

zeronet-kivy's People

Contributors

cxgreat2014 avatar eduardoaddad avatar hellozeronet avatar jerry-wolf avatar mariorossi77 avatar mkg20001 avatar mymage avatar shortcutme avatar tangdou1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zeronet-kivy's Issues

Fix bad notification error: add notification channel

02-26 15:45:00.369  4936  4936 E AndroidRuntime: android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)

Startup problem in development version: BadZipfile: File is not a zip file

[INFO   ] Logger: Record log in /data/user/0/net.mkg20001.zeronet/files/app/.kivy/logs/kivy_19-02-25_4.txt
[INFO   ] Kivy: v1.11.0.dev0, git-79a08b1, 20190224
[INFO   ] Python: v2.7.15 (default, Feb 24 2019, 19:38:25) 
[GCC 4.2.1 Compatible Android (4691093 based on r316199) Clang 6.0.2 (https://a
[INFO   ] Factory: 184 symbols loaded
[INFO   ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[WARNING] stderr: Traceback (most recent call last):
[WARNING] stderr:   File "/home/data/.buildozer/android/app/main.py", line 6, in <module>
[WARNING] stderr:   File "/home/data/.buildozer/android/app/os_platform.py", line 4, in <module>
[WARNING] stderr:   File "/home/data/.buildozer/android/app/platform_android.py", line 9, in <module>
[WARNING] stderr:   File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/M2Crypto/__init__.py", line 30, in <module>
[WARNING] stderr:   File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/M2Crypto/ASN1.py", line 15, in <module>
[WARNING] stderr:   File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/M2Crypto/BIO.py", line 11, in <module>
[WARNING] stderr: ImportError: No module named typing

[META] New maintainer(s) wanted

As I currently don't have as much time and motivation as I'd like to have to be able to work on this project (after all it's a free-time side-hustle) I'd need somebody else to maintain it. (ref #34 (comment))
I think this is a lot smarter than simply letting this project slowly die due to lack of maintaince.

If you're intrested create a pr that fixes one or more of the many issues this app currently has, comment below with the pr url and we'll talk.

Suggestion, The use of WebView can generate the python script with GUI.

In my opinion , it should be more handy and useful for the zeronet android application if the interface for zeronet , a webview which loads http://127.0.0.1:43110 as the zeronet index page or something else such as previously provided profile page, can be ran after the launch of the zeronet python script at once.
In case of that , the development of this application can mainly focus on the HTML and the web design which can easily interact with the users trying build his own social network on this app. It shall be much easier for users that there are available platform for social development , such as forum or friend search engine , and the profile which includes their portrait , status and all kind of things he/she want to share and the a manager for photos. This kind of things are presented in ZeroTalk , ZeroBoard ,etc , but they are not friendly and lack of beauty aesthetically.
I suppose it would be better for marketing that the android version can provide a useful and productive social platform , as well as depending on the nature of the zeronet that supports the freedom of speech and could not be ban easily.

Use python3

  • Verify ZeroNet is fully python3 compatible
  • Fix build issues with python3

Missing Platform ::: x86

Hi/Hello It's Good To Build A APK For Android But There Only ARM So For Any Phone But Not For Android x86 And Some Tablet

Is Possible To Build APK For ARM And x86

Thank Sick

Add sentry

Would help with collecting bugs better, since python-kivy creates logfiles under /data/user/0/net.mkg20001.zeronet/files/app/.kivy/logs/ which are really useful

Donations

Not an issue but I could not find contact-info or donation page for Kivy project. Interested in doing bitcoin donation to help with ZeroNet-kivy.

Failed install - "File corrupt"

Tried twice installing the latest version (0.5.2.1 unsigned) to no avail. Error: "The file appears to be corrupt".

Oneplus One, Android 7.1.1, Lineage OS 14.1 20170403 nightly. Suggestions?

Remove old legacy code

Buildozer seems to have improved greatly, thus removing the need for some hacks/workarounds as well as the forks.

list WIP

  • Workaround for downloading newer SDKs/NDKs: ?
  • Workaround for buildozer sometimes not properly fetching stuff: Removed
  • $CI_MODE feature: Possibly get this merged upstream (kivy/python-for-android#1727 and kivy/python-for-android#1727)
  • libjpeg fix: Merged upstream
  • Consider using offical docker image, or syncing with it
  • Wrapper command for docker buildozer: Update
  • Makefile cleanup

No Landscape mode

The zeronet app has not landscape mode, it's portrait forced.
On tablet/pc is not very usable.
Cordialy

Fix sentry integration

Currently it errors on start. Error gets silently ignored on purpose but should be fixed

Fix cache on gitlab

Currently it's caching, but not really.

I'd like to use /cache and not gitlab's internal cache, as that one saves the overhead of pushing the whole android sdk+ndk twice through the network per build.

Somehow docker-in-docker ignores the folders

This happened after update to V2.7

1537019400

I'm using an LG Stylo 3. I removed the most recent version and went back to the Alpha #9 release which seems to work fine. I just have this annoying "new version 0.6.4" notification on the home page.

Storage permission might be unnecessary

ZeroNet is working fine for me without it enabled, and I've never noticed a problem with it disabled. Multiple times I've enabled it, but never noticing a need to. Now, I've been using ZeroNet with it disabled ever since the IPv6 pull request, because I reinstalled it since then. The permission is likely for accessing files outside ZeroNet's directory, not for accessing ZeroNet's directory.

See HelloZeroNet/ZeroNet#1743

Build using gitlab ci

Currently working on using gitlab ci instead of travis as it has better caching (cache can just be left as-is on worker, without having to compress & uncompress) and parallel builds

程序启动时崩溃/Crash while launching program.

手机水平放置时,应用启动时会无视系统对屏幕方向的限制,自行横屏显示然后崩溃。竖屏启动成功后再水平放置手机会导致界面显示不全。希望能加以修复。
(Translated by Google)When the phone is placed horizontally, the application will ignore the system's restrictions on the screen orientation when it starts, and then displays it horizontally and then crashes. Vertical screen after the success of the mobile phone will be placed after the level of the interface will lead to incomplete display. Hope to be able to repair.

UI redesign, drop kivy

Kivy is way too buggy and using native android ui could fix many input-related crashes

Use fixed version of buildozer and p4a

Current approach: It works! Let's see if it does work tomorrow! Good luck!

Obviously not really future-proof (example: release history of zn-kivy)

New approach:

Most tools just do "dumb" checkouts so it doesn't really matter if we give that tool a commit, tag, or branch.

  • For buildozer the version can be defined via the Dockerfile in the pip install command

  • For p4a the version can be defined via the p4a.branch entry in the buildozer.spec

Current build failing

Due to some changes in the raised SDK version (as targetSdk 26 will be mandatory) I have upgraded kivy and py4a.

I'm currently upgrading stuff and fixing any bugs that appear, meanwhile building the app is not possible!

Current issues:

  • gradle uncached
  • duplicate permissions
  • failing gevent build
[INFO]:    Building gevent for armeabi-v7a
[INFO]:    gevent apparently isn't already in site-packages
[INFO]:    Building compiled components in gevent
[INFO]:    -> directory context /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent
[INFO]:    -> running python.host setup.py build_ext -v
           working:   File "/home/data/.buildozer/android/platform/build/build/python-instalException in thread background thread for pid 671:                                                                    
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/.local/lib/python2.7/site-packages/sh.py", line 2170, in background_thread
    handle_exit_code(exit_code)
  File "/home/.local/lib/python2.7/site-packages/sh.py", line 1929, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
ErrorReturnCode_1: 

  RAN: /home/data/.buildozer/android/platform/build/build/python-installs/zeronet/bin/python.host setup.py build_ext -v

  STDOUT:
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'
  warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
  warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running build_ext
Linking /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/build/lib.linux-x86_64-2.7/gevent/corecext.so to /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/gevent/corecext.so
Running '(cd  "/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares"  && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi   && /bin/sh ./configure --host=arm-linux-androideabi CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES=   && cp ares_config.h ares_build.h "$OLDPWD"   && mv ares_build.h.orig ares_build.h) > configure-output.txt' in /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/build/temp.linux-x86_64-2.7/c-ares
configure: error: in `/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares':
configure: error: C compiler cannot create executables
See `config.log' for more details
Traceback (most recent call last):
  File "setup.py", line 516, in <module>
    run_setup(ext_modules, run_make=run_make)
  File "setup.py", line 502, in run_setup
    **setup_kwds
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/command/build_ext.py", line 449, in build_extensions
    self.build_extension(ext)
  File "setup.py", line 305, in build_extension
    self.gevent_prepare(ext)
  File "setup.py", line 302, in gevent_prepare
    configure(self, ext)
  File "setup.py", line 219, in configure_ares
    rc = _system(ares_configure_command)
  File "setup.py", line 172, in _system
    return check_call(cmd, shell=True)
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(cd  "/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares"  && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi   && /bin/sh ./configure --host=arm-linux-androideabi CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES=   && cp ares_config.h ares_build.h "$OLDPWD"   && mv ares_build.h.orig ares_build.h) > configure-output.txt' returned non-zero exit status 77


  STDERR:


Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 978, in <module>
    main()
  File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 975, in main
    ToolchainCL()
  File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 512, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 149, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 193, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "pythonforandroid/build.py", line 573, in build_recipes
  File "pythonforandroid/recipe.py", line 844, in build_arch
  File "pythonforandroid/recipe.py", line 856, in build_compiled_components
  File "pythonforandroid/logger.py", line 175, in shprint
  File "/home/.local/lib/python2.7/site-packages/sh.py", line 720, in next
    self.wait()
  File "/home/.local/lib/python2.7/site-packages/sh.py", line 651, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /home/data/.buildozer/android/platform/build/build/python-installs/zeronet/bin/python.host setup.py build_ext -v

  STDOUT:
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'
  warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
  warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running build_ext
Linking /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/build/lib.linux-x86_64-2.7/gevent/corecext.so to /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/gevent/corecext.so
Running '(cd  "/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares"  && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi   && /bin/sh ./configure --host=arm-linux-androideabi CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES=   && cp ares_config.h ares_build.h "$OLDPWD"   && mv ares_build.h.orig ares_build.h) > configure-output.txt' in /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/build/temp.linux-x86_64-2.7/c-ares
configure: error: in `/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares':
configure: error: C compiler cannot create executables
See `config.log' for more details
Traceback (most recent call last):
  File "setup.py", line 516, in <module>
    run_setup(ext_modules, run_make=run_make)
  File "setup.py", line 502, in run_setup
    **setup_kwds
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/command/build_ext.py", line 449, in build_extensions
    self.build_extension(ext)
  File "setup.py", line 305, in build_extension
    self.gevent_prepare(ext)
  File "setup.py", line 302, in gevent_prepare
    configure(self, ext)
  File "setup.py", line 219, in configure_ares
    rc = _system(ares_configure_command)
  File "setup.py", line 172, in _system
    return check_call(cmd, shell=True)
  File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(cd  "/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares"  && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi   && /bin/sh ./configure --host=arm-linux-androideabi CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES=   && cp ares_config.h ares_build.h "$OLDPWD"   && mv ares_build.h.orig ares_build.h) > configure-output.txt' returned non-zero exit status 77


  STDERR:

# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=zeronet --bootstrap=sdl2 --requirements=sqlite3,openssl,m2crypto,gevent,msgpack-python,pil,hostpython2,git+https://github.com/kivy/plyer,android,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/data/.buildozer/android/platform/build"
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

  • failing kivy build
[DEBUG]:   	/home/data/.buildozer/android/platform/build/dists/zeronet/src/main/java/org/kivy/android/PythonService.java:97: error: cannot find symbol
[DEBUG]:   	        notification.setLatestEventInfo(context, serviceTitle, serviceDescription, pIntent);
[DEBUG]:   	                    ^
[DEBUG]:   	  symbol:   method setLatestEventInfo(Context,String,String,PendingIntent)
[DEBUG]:   	  location: variable notification of type Notification
[DEBUG]:   	/home/data/.buildozer/android/platform/build/dists/zeronet/src/main/java/net/mkg20001/zeronet/ServiceZn.java:30: error: cannot find symbol
[DEBUG]:   	        notification.setLatestEventInfo(context, "ZeroNet", "Zn", pIntent);
[DEBUG]:   	                    ^
[DEBUG]:   	  symbol:   method setLatestEventInfo(Context,String,String,PendingIntent)
[DEBUG]:   	  location: variable notification of type Notification
[DEBUG]:   	Note: Some input files use or override a deprecated API.
[DEBUG]:   	Note: Recompile with -Xlint:deprecation for details.
  • failing build for py4a jpeg
  • ndk-build missing

Battery Drain

When using the application my cpu gets really hot and my battery drains fast.

My device is a oneplus3t running Android 7.1.2, browser that I'm using is brave.

FileNotFoundError on Mail.ZeroNetwork.bit

No such file or directory: '/storage/emulated/0/lib'
UiWebsocket.py line 105 > UiWebsocket.py line 212 > CryptMessagePlugin.py line 89 > builtins.py line 93 > __init__.py line 16 > builtins.py line 93 > openssl.py line 516 > openssl.py line 512 > util.py line 81

Publish to F-Droid?

F-Droid is an installable catalogue of FOSS (Free and Open Source Software) applications for the Android platform. The client makes it easy to browse, install, and keep track of updates on your device.

It's not all Android device have Google Play Store, and some users want download and update ZeroNet from another platform(In mainland China, Google Play is blocked).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.