Go to file
qwerty287 7e514041bb Don't use TinyDB as cache (#1034)
Do not use TinyDB as a cache or a way to send data between activities.

### How is this working

Instead of saving everything into the TinyDB, I created three `Context`s (a `RepositoryContext`, an `IssueContext` and an `AccountContext`). All are used to store things like API or database values/models and additional data, e.g. the `RepositoryContext` also contains information about the current filter state of a repository (issues, pull requests, releases/tags and milestones). These are sent using `Intent`s and `Bundle`s between activities and fragments. Changing a field (e.g. filter state) in any fragment changes it also for the whole repository (or at least it should do so).
Due to the size of the changes (after c9172f85ef, Git says `154 files changed, 3318 insertions(+), 3835 deletions(-)`) **I highly recommend you to create a beta/pre release before releasing a stable version**.
Additional changes:
* after logging out, the account remains in the account list (with a note) and you can log in again (you can't switch to this account)
* repositories and organizations are clickable on user profiles
* deleted two unused classes

Once finished, hopefully
* closes #354
* replaces #897
* fixes #947
* closes #1001
* closes #1015
* marks #876 and #578 as `Wontfix` since they are not necessary at this point
* and all the other TinyDB issues

Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1034
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
2022-03-13 03:59:13 +01:00
.gitea Cherry-pick changes from #897 (#1032) 2022-02-22 07:23:46 +01:00
.idea/codeStyles Render md in org/repo info (#986) 2021-10-05 17:16:22 +02:00
app Don't use TinyDB as cache (#1034) 2022-03-13 03:59:13 +01:00
assets Add static badges to assets (#1036) 2022-02-13 19:10:24 +01:00
fastlane/metadata/android/en-US Prepare release 4.2.0 (#1050) 2022-02-27 14:02:09 +01:00
gradle/wrapper Moving ApiInterface, WebInterface and models to different repository. (#824) 2021-02-11 11:23:35 +01:00
scripts Link to pipeline instead of overview (#1038) 2022-02-19 09:50:15 +01:00
.drone.yml Moving to 'main' branch (#902) 2021-05-01 20:30:44 +02:00
.editorconfig Notifications (#554) 2020-07-22 21:32:42 +02:00
.gitattributes Support pdf files in file viewer (#259) 2020-01-30 18:00:31 +00:00
.gitignore Add crowdin-cli config template (#827) 2021-02-12 10:30:02 +01:00
.gitlab-ci.yml Fix CI... (#1046) 2022-02-23 09:49:14 +01:00
build.gradle Fix biometric bug in recent apps (#940) 2021-08-03 09:41:40 +02:00
CHANGELOG.md Move to CodeBerg (#528) 2020-06-04 17:37:51 +02:00
crowdin.example.yml Add crowdin-cli config template (#827) 2021-02-12 10:30:02 +01:00
gradle.properties Implement multi-session notification polling and additional improvements/refactors/cleanups/fixes (#875) 2021-04-13 20:56:50 +02:00
gradlew Moving ApiInterface, WebInterface and models to different repository. (#824) 2021-02-11 11:23:35 +01:00
gradlew.bat Moving ApiInterface, WebInterface and models to different repository. (#824) 2021-02-11 11:23:35 +01:00
LICENSE Fix license (#584) 2020-07-09 17:42:13 +02:00
README.md Cherry-pick changes from #897 (#1032) 2022-02-22 07:23:46 +01:00
settings.gradle initial push 2019-06-04 02:25:05 +05:00

License: GPL v3 Pipeline status Release Crowdin Join the Discord chat at https://discord.gg/FbSS4rf

Become a Patreon Buy me a coffee

GitNex - Android client for Gitea

GitNex is a free/paid, open-source Android client for Git repository management tool Gitea. Gitea is a community managed fork of Gogs, lightweight code hosting solution written in Go.

GitNex is licensed under GPLv3 License. See the LICENSE file for the full license text. No trackers are used and source code is available here for anyone to audit.

Downloads

Get it on F-Droid Get it on Google Play Download builds and releases

Note about Gitea version

Please make sure that you are on latest stable release or later for better app experience.

Check the versions compatibility page which lists all the supported versions with compatibility ratio.

Build from source

Option 1 - Download the source code, open it in Android Studio and build it there.

Option 2 - Open terminal(Linux) and cd to the project dir. Run ./gradlew assembleFree.

Features

  • Multiple accounts support
  • File and directory browser
  • File viewer
  • Create files
  • Explore repositories
  • Pull requests
  • Files diff for PRs
  • Notifications
  • Drafts
  • Repositories / issues / org list
  • MANY MORE

Contributing

Contributing

Translation

Help us translate GitNex to your native language.

We use Crowdin for translation. If your language is not listed, please request here to add it to the project.

Link: https://crowdin.com/project/GitNex

Screenshots:

001.png 002.png 003.png 004.png
005.png 006.png 007.png 008.png

Website

Wiki

Troubleshoot Guide

Faq

Release Blog

Thanks

Thanks to all the open source libraries, contributors and donators.

Open source libraries

Icon sets

Follow me on Fediverse - mastodon.social/@mmarif

All trademarks and logos are the properties of their respective owners.