alperozturk
b2829124eb
Add callback for isNetworkAndServerAvailable, remove repeated thread handling logic
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2024-10-08 14:37:56 +02:00
alperozturk
a9f847ead4
Remove static network checker function use connectivity service
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2024-09-03 12:09:20 +02:00
Andy Scherzinger
e3d57e7c42
Update SPDX header to reflect correct state
...
Resolves #12920
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-04-30 12:18:45 +02:00
Andy Scherzinger
e01c20cc0a
Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-04-01 18:06:11 +02:00
Andy Scherzinger
4bf2521c6a
Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-04-01 12:58:07 +02:00
Andy Scherzinger
a12c51931e
Add SPDX headers
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-03-30 20:14:02 +01:00
Andy Scherzinger
4d47eaf95f
Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-03-30 12:10:59 +01:00
tobiasKaminsky
d4b0f0c989
fix another test
...
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2024-02-12 13:01:14 +01:00
alperozturk
5936210a30
Rebase master
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2024-01-27 12:45:33 +01:00
alperozturk
a6d3731dd3
Use WorkerState for handling download state
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2024-01-12 08:51:16 +01:00
alperozturk
860e619a63
Rebase master
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2024-01-12 08:51:16 +01:00
alperozturk
f67b3a9f83
Rebase master
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2024-01-12 08:51:16 +01:00
alperozturk
14cb1d436b
Use WorkerState for handling download state
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2024-01-12 08:51:16 +01:00
alperozturk
6bd335cf3c
Move packages
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2024-01-12 08:51:16 +01:00
alperozturk
c419604ae5
Remove FileDownloader Service
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2024-01-12 08:51:16 +01:00
alperozturk
07bb2f4ffc
Use interface rather than service
...
Signed-off-by: alperozturk <alper_ozturk@proton.me>
2023-11-10 10:26:33 +01:00
Álvaro Brey
7ea6283af4
Add testing utilities to override injections in classes injected with AndroidInjection
...
This includes Activities, Fragments, Services, etc. Other classes should use constructor injection,
and as such shouldn't need this.
This works by overriding the androidInjector method in the Application class (new TestMainApp added)
and allowing to use custom injectors there.
A InjectionOverrideRule is included for ease of use, but for more complicated cases, injection can be
controlled by accessing TestMainApp directly.
A sample is included in InjectionTestActivityTest.
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-12 12:58:31 +01:00
Álvaro Brey
443e6984f6
Move test helper classes to a consistent package (com.nextcloud.test)
...
Avoids having them mixed up with the tests
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-12 09:36:27 +01:00
Álvaro Brey
f490823e4e
Extract interface from ArbitraryDataProvider for better decoupling and testing
...
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-11-18 10:39:41 +01:00
Álvaro Brey
5499441738
Use Room DAO for ArbitraryDataProvider instead of contentResolver
...
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-11-18 10:39:41 +01:00
Álvaro Brey
689a4bda6a
Extract responsibilities from FileMenuFilter static methods to utility classes.
...
God class count -= 1
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-11-17 09:13:56 +01:00
Álvaro Brey Vilas
e57176f009
Move app source to subproject
...
Android Studio has started to fail for some stuff with that old structure (for example connected tests don't work).
It's about time to do this.
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
2022-03-11 11:10:51 +01:00