M M Arif
7b61ef1892
Move textdrawable to jitpack to remove jcenter
2022-03-28 21:36:06 +05:00
M M Arif
f2b908b298
Reduce the padding size
2022-03-28 19:48:01 +05:00
M M Arif
1a19be67fe
Merge branch 'main' into labels-in-list
2022-03-28 16:38:18 +02:00
M M Arif
18fd368c8d
Update gradle, move maven repo to project gradle file ( #1097 )
...
I would also like to remove `jcenter()` but right now two repositories are using it.
`com.pes.materialcolorpicker:library` `com.amulyakhare:com.amulyakhare.textdrawable`
Co-authored-by: M M Arif <mmarif@swatian.com >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1097
2022-03-28 16:37:36 +02:00
M M Arif
3ea35c7fd3
Merge branch 'main' into labels-in-list
2022-03-27 20:49:29 +02:00
qwerty287
fea6457358
Add system theme ( #1095 )
...
* Add new themes `Follow system (Light/Dark)` (new default) and `Follow system (Light/Pitch Black)` that follows system color scheme -> closes https://codeberg.org/gitnex/GitNex/issues/961
* also fixes `In Settings ->Appearance, the theme and time shows wrong values. Also the time selection is not shown upon theme change.` in https://codeberg.org/gitnex/GitNex/issues/1084
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/1095
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 >
2022-03-27 20:47:08 +02:00
M M Arif
1708f95d86
Merge branch 'main' into labels-in-list
2022-03-27 20:42:09 +02:00
qwerty287
8ff0c337a3
Updates ( #1094 )
...
**basic gradle stuff**
* Android gradle plugin to 7.0.0
* gradle to 7.4.1
**dependencies**
* gson to 2.9.0
* stormpot to 3.1 (has breaking changes)
* commons io to 2.11.0 (has breaking changes)
* guava to 31.1
* acra to 5.8.4 (has breaking changes)
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1094
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 >
2022-03-27 20:41:20 +02:00
M M Arif
45366f4e0e
Add Signal style space at the bottom which also fix the overlap issue by comment button
2022-03-27 23:37:25 +05:00
qwerty287
062fb9e9fd
Fix commit crash ( #1096 )
...
Fixes another null pointer crash on commits. You can try this on our emoji-java fork, it will crash on `main`.
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1096
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 >
2022-03-27 11:58:33 +02:00
M M Arif
75749731aa
Set default to false
2022-03-19 19:38:15 +05:00
M M Arif
206a2bb6b0
Minor UI fixes
2022-03-18 16:46:36 +05:00
M M Arif
d245a6c6ac
Fix few usability issues and improve adapters code
2022-03-18 16:18:26 +05:00
M M Arif
4aaa5e1684
Merge branch 'main' into labels-in-list
...
# Conflicts:
# app/src/main/res/values/strings.xml
2022-03-18 14:13:50 +05:00
M M Arif
84e8850d9f
My issues / update assignees list ( #1087 )
...
Closes #745
Closes #200
Co-authored-by: M M Arif <mmarif@swatian.com >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1087
Reviewed-by: qwerty287 <qwerty287@noreply.codeberg.org >
2022-03-18 09:57:24 +01:00
M M Arif
5761c3519e
UI improvements and clean ups ( #1074 )
...
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 #1077
Closes #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 >
2022-03-18 09:56:49 +01:00
M M Arif
3051cae1b1
Set default value and add selectable background for switch
2022-03-17 00:54:19 +05:00
M M Arif
bb31bb84c0
Introduce two styles(dorts and text). Let the user choose. default is dot. Extend it to explore issues
2022-03-16 15:23:22 +05:00
M M Arif
ba6a0a636f
move Space
2022-03-14 12:02:59 +05:00
M M Arif
6ef09b7844
Enhance labels in list
2022-03-13 21:24:37 +05:00
M M Arif
c2378e4954
Add labels to PR and optimize imports
2022-03-13 19:51:10 +05:00
M M Arif
2fc975e4f6
Add labels to issue list
2022-03-13 19:37:05 +05:00
M M Arif
b0889ee36a
Add draft status to a releases #258
2022-03-13 17:30:25 +05:00
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
qwerty287
ea30556844
Add single commit screen with diff ( #1048 )
...
Also addresses the already closed #946
Closes https://codeberg.org/gitnex/GitNex/issues/335
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/1048
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 >
2022-03-09 12:52:34 +01:00
qwerty287
ff41e82baf
Fix notifications list ( #1067 )
...
There was a missing notifyDataSetChanged() call. Fixes #1054
Co-authored-by: qwerty287 <ndev@web.de >
Co-authored-by: M M Arif <mmarif@swatian.com >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1067
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 >
2022-03-05 19:56:12 +01:00
qwerty287
db8e47168d
Fix reactions UI ( #1069 )
...
Frontport of #1065
Co-authored-by: M M Arif <mmarif@noreply.codeberg.org >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1069
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 >
2022-03-05 11:42:32 +01:00
qwerty287
6d0f4dcc1f
Fix repo website opening ( #1061 )
...
As discussed on discord, but this only fixes opening a repo's website and not issue if "open supported links" option is enabled.
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/1061
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 >
2022-03-04 15:03:16 +01:00
qwerty287
2a46c68d3d
Fix accounts displaying ( #1064 )
...
Clear the accounts list before adding new ones.
Hopefully closes #1058 but I couldn't really test it because I don't have this issue without the patch.
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1064
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org >
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org >
2022-03-04 14:44:39 +01:00
M M Arif
f7897041e4
Prepare for next dev ( #1051 )
...
As title
Co-authored-by: M M Arif <mmarif@swatian.com >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1051
2022-02-27 15:10:24 +01:00
M M Arif
96b5665c89
Prepare release 4.2.0 ( #1050 )
...
As title
Co-authored-by: M M Arif <mmarif@swatian.com >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1050
4.2.0
2022-02-27 14:02:09 +01:00
qwerty287
0dc22a65be
Crowdin 2022-02-26 ( #1049 )
...
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1049
Reviewed-by: 6543 <6543@noreply.codeberg.org >
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org >
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org >
2022-02-26 19:13:44 +01:00
qwerty287
37bc1968d4
Prefer Runnables over local interfaces ( #1047 )
...
Prefer the `Runnable` interface instead of interfaces without any parameters. Addresses #1000
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1047
Reviewed-by: 6543 <6543@noreply.codeberg.org >
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org >
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org >
2022-02-25 23:35:51 +01:00
qwerty287
2f4af03c99
Fix CI... ( #1046 )
...
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1046
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 >
2022-02-23 09:49:14 +01:00
qwerty287
ae70d5b111
Update strings ( #1045 )
...
Use a %s instead of + to check CI
The resource key was changed to avoid issues with other languages if they do not have the %s in the string, they'll just use the English variant.
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1045
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 >
2022-02-23 09:20:04 +01:00
qwerty287
aaafe881c1
Fix push step ( #1044 )
...
The filename was not correct. (Running this right now won't start the push step, I can search for unused strings I can delete in this PR so it will be triggered.)
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1044
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 >
2022-02-23 09:11:35 +01:00
qwerty287
aa30aba794
Clean up strings to test CI ( #1043 )
...
Deleted 3 unused strings.
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1043
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 >
2022-02-23 08:44:40 +01:00
6543
1214954ed3
gitlab ci: add locales stage ( #1042 )
...
nit fix
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1042
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org >
Co-authored-by: 6543 <6543@noreply.codeberg.org >
Co-committed-by: 6543 <6543@noreply.codeberg.org >
2022-02-22 16:03:07 +01:00
qwerty287
245998e36b
Push translations via CI ( #1041 )
...
Automatically push translation files to Crowdin when pushing changes to the strings.xml file (only English).
Addresses #141
@mmarif You have to add a new secret to gitlab ci, `CROWDIN_TOKEN`, that contains the crowdin api token.
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1041
Reviewed-by: 6543 <6543@noreply.codeberg.org >
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 >
2022-02-22 15:03:00 +01:00
qwerty287
56ff09d44d
Cherry-pick changes from #897 ( #1032 )
...
Cherry-pick enhancements and features from #897 . I didn't pick database-related stuff because I don't think it's a good idea to do this (see discord conversation).
Closes #598
Closes #887
Closes #888
Closes #901
Closes #1024
Closes #1035
Co-authored-by: opyale <opyale@noreply.codeberg.org >
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/1032
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org >
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org >
2022-02-22 07:23:46 +01:00
qwerty287
24c7176753
Link to pipeline instead of overview ( #1038 )
...
See https://docs.gitlab.com/ee/ci/variables/predefined_variables.html . Links to the exact pipeline instead of the pipeline overview.
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1038
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 >
2022-02-19 09:50:15 +01:00
qwerty287
33fdff5f4d
Fix INI highlighting ( #1037 )
...
My fork has native support for INI files (5ad2176c5f ).
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1037
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 >
2022-02-14 07:09:55 +01:00
qwerty287
00efc968b9
Add static badges to assets ( #1036 )
...
To limit connections to other server's some people might not want.
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1036
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 >
2022-02-13 19:10:24 +01:00
qwerty287
f79d227bff
Add support for tags ( #1002 )
...
Closes #983
TODO
- [x] create tags
- [x] view tags
- [x] apply pagination
- [x] delete tags
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/1002
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 >
2022-02-12 14:41:11 +01:00
qwerty287
8cfd4b6a31
Hide actions if the user can't use them ( #977 )
...
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 >
2022-02-11 15:27:31 +01:00
qwerty287
e444f8f729
Improve md link opening ( #1023 )
...
* Open issue/mention links direclty instead of using `DeepLinksActivity`
* open in custom tabs if enabled
* improve code
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/1023
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 >
2022-02-11 15:12:22 +01:00
qwerty287
fd94f8b0b8
File click improvements ( #1026 )
...
Improves #1018
Sorry for the many commits, I reused my branch that was already used in #1018 and just merged main in it.
* Open repo details directly instead of using deep links (we should avoid using the activity directly)
* improve some code
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/1026
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 >
2022-02-11 14:52:58 +01:00
M M Arif
84d244f3a2
Add bmc button ( #1033 )
...
Co-authored-by: M M Arif <mmarif@swatian.com >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1033
Co-authored-by: M M Arif <mmarif@noreply.codeberg.org >
Co-committed-by: M M Arif <mmarif@noreply.codeberg.org >
2022-02-09 21:10:19 +01:00
qwerty287
c378588a6d
Switch to qwerty287/Prism4j ( #1030 )
...
* use qwerty287/Prism4j and qwerty287/markwonprism4j
* use androidx nullability annotations instead of jetbrains ones (were included in old prism4j lib)
* update some dependencies
* I had to update the SDK versions because the markwon plugin seems to be not compatible with older ones - I hope that's fine
Closes #853
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/1030
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 >
2022-02-09 21:06:13 +01:00
qwerty287
3791a7344e
Use Lucide icons ( #1031 )
...
Co-authored-by: qwerty287 <ndev@web.de >
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1031
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 >
2022-02-09 06:26:27 +01:00