Run `gradle :app:spotlessApply` to apply formatting.
# Changes from current code format
This does not match with the old intellij based code format because I can't apply some rules there.
- newlines after `else`, `catch` etc. (means there are `} else {` statements)
- no spaces around `if` braces (there are statements like `if (true) {` instead of `if(true) {`
Closes https://codeberg.org/gitnex/GitNex/issues/1187
Closes https://codeberg.org/gitnex/GitNex/issues/1202
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1208
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
Closes#953
Co-authored-by: M M Arif <mmarif@swatian.com>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1201
Reviewed-by: qwerty287 <qwerty287@noreply.codeberg.org>
There are not any functinality changes except more of UI changes which comes with M3. There are still few things left but that are not there yet from Google side.
I will be merging this PR as it does not break any function but attaching a few screenshots if you would like to know how it looks like. Feel free to build from `main` to test it out.
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1181
* remove arguments from alert dialogs funcs
* clean up strings
* fix strings with multiple `%s`
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1121
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
Move to https://codeberg.org/GitNex/tea4j-autodeploy as Retrofit interfaces. Closes#907closes#1084
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1088
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
This PR mostly intend to improve and re visualize the UI across the app including clean up of layouts and strings.
Some UI changes are experimental like bottom sheet grid layout for repo items and can be extended once mature enough for use.
Few screen shots attached.
Closes#1077Closes#976
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1074
Reviewed-by: qwerty287 <qwerty287@noreply.codeberg.org>
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>
closes#919
TODO
- [X] repo and file actions (create release, label...)
- [X] allow for repo admins
- [x] label actions (edit, delete)
- [x] allow for repo admins
- [X] issue/pr action that are available for creators (close...)
- [X] allow for creator
- [X] allow for repo admins
- [x] pr actions that are allowed when having push access to pr source (there was a bug in Gitea that makes that this was not working and these features were not accessible -> https://github.com/go-gitea/gitea/issues/17181)
- [x] allow deleting of head branch/updates only if you can do this
- [x] issue/pr action that are available for repo admins (merge)
- [x] allow for repo admins
- [x] milestone actions (close/reopen)
- [x] allow for repo admins
- [x] comment actions (delete, edit...)
- [X] allow for creators
- [x] allow for repo admins
- [x] org actions (create label, team, repo; req gitea 1.16.0)
- [x] actions when creating/editing issues
- [x] delete head when merging
- [x] All actions available to instance admins? (handled through API)
Maybe as extras:
- [x] Allow close/reopen also for PRs
- [x] Improve handling of these (multiple btns for the same action)
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: M M Arif <mmarif@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/977
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
Removing file size selection dialog in favor of hardcoded value.
Adding warning to file size picker and minor improvements.
Bump dependencies and gradle
Merge branch 'master' of https://codeberg.org/gitnex/GitNex into improve-filetype-recognition
Improving credits, adding symlink and submodule icons to FilesAdapter and removing unused libraries.
Minor improvements and bug fixes.
Add true progress indication routine for copying streams.
Merge branch 'master' of https://codeberg.org/gitnex/GitNex into improve-filetype-recognition
Performance and memory usage improvements
Notification improvements
Renaming StaticGlobalVariables to Constants
Overall improvements and fixes.
Merge branch 'master' of https://codeberg.org/gitnex/GitNex into improve-filetype-recognition
Add additional image formats.
Adding audio and video categories.
Merge branch 'master' of https://codeberg.org/gitnex/GitNex into improve-filetype-recognition
Improve file type handling.
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/841
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-Authored-By: opyale <opyale@noreply.codeberg.org>
Co-Committed-By: opyale <opyale@noreply.codeberg.org>
Gradle v6.8.2
Use release instead of commit hash.
Moving ApiInterface, WebInterface and models to different repository.
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/824
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-Authored-By: opyale <opyale@noreply.codeberg.org>
Co-Committed-By: opyale <opyale@noreply.codeberg.org>
Fixing layout issues and crashes.
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/810
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-Authored-By: opyale <opyale@noreply.codeberg.org>
Co-Committed-By: opyale <opyale@noreply.codeberg.org>
Merge branch 'performance-highlight-refactor' of https://codeberg.org/opyale/GitNex into performance-highlight-refactor
Fixing theme recognition.
Merge branch 'master' into performance-highlight-refactor
Merge commit 'refs/pull/755/head' of codeberg.org:gitnex/GitNex into performance-highlight-refactor
Add new field issueType to db
Improving theme recognition.
Fixing alignment of menu button.
Fixing cut off text.
Merge commit 'refs/pull/755/head' of codeberg.org:gitnex/GitNex into performance-highlight-refactor
Fixing crash.
Refactoring activities.
Improving drafts.
Calculating density for avatars.
Improving drafts.
Calculating density for avatars.
Increasing size of avatar.
Decreasing size of avatar.
Restoring DeepLinksActivity
Merge branch 'master' of https://codeberg.org/gitnex/GitNex into performance-highlight-refactor
Conflicts:
app/src/main/java/org/mian/gitnex/adapters/IssueCommentsAdapter.java
Initial commit.
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/755
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Merge branch 'master' into enhance-settings-screen
# Conflicts:
# app/src/main/java/org/mian/gitnex/activities/FileViewActivity.java
Cleanup and refactor of activities
Fix bottomsheet
enhance code blocks and refactors
Move home screen to general, make it ready for translation
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/735
Preventing lists to store duplicate collaborators (#726)
Using login instead of id.
Merge branch 'new-popup-labels-assigness' of https://codeberg.org/gitnex/GitNex into new-popup-labels-assigness
To prevent lists storing duplicate Collaborators
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/726
Add current logged user to list
Change to collection
Fix depricated handler calls
Change to List and better naming
Move to actions
Merge branch 'master' into new-popup-labels-assigness
Add assignees popup and remove multi select
update to view binding
add/remove labels in edit issue
remove org call
Add org members to assignees list
Add assignees adapter
Add color to labels
Refactor and add new labels popup
Clean up build libs
Co-authored-by: opyale <opyale@noreply.codeberg.org>
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/723
Reviewed-by: opyale <opyale@noreply.codeberg.org>
Merge branch 'master' into fix-create-issue-crash
Merge branch 'master' of codeberg.org:gitnex/GitNex into master
Fix crash when label added and removed
Merge branch 'master' of codeberg.org:gitnex/GitNex into master
Merge branch 'master' of codeberg.org:gitnex/GitNex into master
endline
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/685
Enhance and update the buttons across the app, colorful animation on tap
update toasty in view models
update toasty in fragments
update toasty in actions, activities, adapters
Alert dialogs buttons arrangements
strings fixes
switch to fab buttons
remove snackbar
Enhance whole app UI, bring consistency among the elements
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/630
Title update
Color clean up
switch to another account and update the token at login
Add new account
Add fab button for new account and activity
update libs
Remove account from Manage accounts list
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/624
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Fix default branch
Merge branch 'master' into switch-branches
# Conflicts:
# app/src/main/res/layout/bottom_sheet_repo.xml
# app/src/main/res/values/strings.xml
update icon
Merge branch 'master' into switch-branches
Merge branch 'master' into switch-branches
update the missing parts
Minor updates
Merge branch 'master' into switch-branches
Merge branch 'master' into switch-branches
# Conflicts:
# app/src/main/java/org/mian/gitnex/activities/CreateIssueActivity.java
# app/src/main/java/org/mian/gitnex/activities/RepoDetailActivity.java
# app/src/main/java/org/mian/gitnex/fragments/BottomSheetRepoFragment.java
# app/src/main/java/org/mian/gitnex/fragments/FilesFragment.java
Add branch to breadcrumb and dir structure fix
Make change branch work
clean up
Merge branch 'master' into switch-branches
add icon in top bar, add interface listener
Merge branch 'master' into switch-branches
Merge remote-tracking branch 'remotes/main/master' into switch-branches
# Conflicts:
# app/src/main/java/org/mian/gitnex/activities/LoginActivity.java
# app/src/main/java/org/mian/gitnex/fragments/ProfileFragment.java
# app/src/main/java/org/mian/gitnex/helpers/PathsHelper.java
Switching between branches.
Minor fixes
Merge remote-tracking branch 'remotes/main/master' into login-fix
URL parsing, label and other improvements.
Co-authored-by: M M Arif <mmarif@swatian.com>
Co-authored-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: opyale <opyale@noreply.gitea.io>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/571
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Moving TinyDB and AppUtil to helpers.
Co-authored-by: opyale <opyale@noreply.gitea.io>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/579
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Adding error message for login().
Final touch.
Refactoring LoginActivity and other improvements.
Co-authored-by: opyale <opyale@noreply.gitea.io>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/561
Reviewed-by: 6543 <6543@noreply.codeberg.org>
remove strings
translation: generic but with contecxt
Merge branch 'milestones-filter' of gitea.com:gitnex/GitNex into milestones-filter
Clean up strings
Merge branch 'master' into milestones-filter
clean up and add missing parts
enhance and refactor milestone, added filter for closed and open ms
change to viewbinding
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: 6543 <6543@noreply.gitea.io>
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/506
Reviewed-by: 6543 <6543@noreply.gitea.io>
Merge branch 'master' into fix-refactor-context
reorder + space
fix
R E F A C T O R
set ctx and appCtx in LoginActivity
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/469
Reviewed-by: M M Arif <mmarif@swatian.com>
Reviewed-by: opyale <opyale@noreply.gitea.io>
Merge branch 'master' into 305-triiger-keyboard
Enhance user ux to focus on input and trigger keyboard
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/314
Reviewed-by: 6543 <6543@noreply.gitea.io>
Merge branch 'master' into refactor_issues_call
Remove credits, add donators (#268)
Merge branch 'master' into 264-remove-credits
Merge pull request 'Support for c header files' (#266) from 265-files-support-in-file-viewer into master
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/266
Remove credits, add donators
support for c header files
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/268
Merge pull request 'Support for c header files' (#266) from 265-files-support-in-file-viewer into master
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/266
support for c header files
fix
Merge branch 'master' into refactor_issues_call
Support pdf files in file viewer (#259)
auto convert EOL
this fix it for me
fix layout
implement support for pdf files in file viewer
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/259
Reviewed-by: 6543 <6543@noreply.gitea.io>
Make DueDate optional on MilestoneCreaton (#252)
Merge branch 'master' into milestone-DueDate-optional_240
add check again if gitea is older than 1.10.0 ...
Crowdin [2020-01-04] + add Latvian (#253)
update Translators
add Latvian
update Crowdin
Co-authored-by: 6543 <6543@obermui.de>
make DueDate optional on MilestoneCreaton
Co-authored-by: 6543 <6543@obermui.de>
Crowdin [2020-01-04] + add Latvian (#253)
update Translators
add Latvian
update Crowdin
Co-authored-by: 6543 <6543@obermui.de>
Merge branch '51-custom-fonts' of gitnex/GitNex into master
Reviewed-by: 6543 <6543@noreply.gitea.io>
Implement across the whole app
Implementation of custom fonts app wide
Merge branch 'crowdin_2019-12-25' of gitnex/GitNex into master
add user to the “new issue” assignees dialog
refactor.start()
update from crowdin
Merge branch 'backport-243' of gitnex/GitNex into master
backport url slashes fix
Merge branch 'fix-238' of gitnex/GitNex into master
fix
Merge branch 'backport-235' of gitnex/GitNex into master
backport fix#235
Merge branch 'backport-232' of gitnex/GitNex into master
show all issues and prs
Merge branch '206-repos-in-explore-screen' of gitnex/GitNex into master
Load default list of explore repositories
Merge branch '225-backport' of gitnex/GitNex into master
copy and support files backport - #225
Merge branch '226-backport' of gitnex/GitNex into master
fix alignments backport
Co-authored-by: M M Arif <mmarif@swatian.com>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/199