Commit graph

4543 commits

Author SHA1 Message Date
Rohit Verma
d1fdab4d8b add logic to mark or unmark images as not for upload 2025-01-03 23:14:04 +05:30
Rohit Verma
e611cbc86f update UI states and refactor code
Also, add repository as Single Source of Truth for performing operations on images
2025-01-03 23:10:04 +05:30
Rohit Verma
443e713955 refactor Ui components for custom selector 2025-01-03 22:49:05 +05:30
Rohit Verma
1d11ab7eab fix imports and refactor code 2024-11-29 22:54:14 +05:30
Rohit Verma
c033003a47 move models package inside domain package 2024-11-29 22:51:22 +05:30
Rohit Verma
c688059a43 remove onBackPressed override 2024-11-27 11:01:31 +05:30
Rohit Verma
4ebb945308
Merge branch 'main' into jetpack-custom-selector 2024-11-27 10:39:37 +05:30
Rohit Verma
178154ce0e fix overlapping navigation bar adding navigation bar padding 2024-11-26 20:53:14 +05:30
Rohit Verma
03713dd62b add functionality for unselecting all pictures at once 2024-11-26 20:52:14 +05:30
Saifuddin Adenwala
381f9eca0c
Migrated notification module from Java to Kotlin (#5955)
* Rename .java to .kt

* Migration of notification module from Java to Kotlin
2024-11-26 21:29:31 +09:00
Rohit Verma
130158f510 remove state-changing argument causing unnecessary recompositions 2024-11-26 01:30:08 +05:30
Rohit Verma
dcd31f9671 update dependencies 2024-11-25 23:28:33 +05:30
Rohit Verma
a930d8eca6 add view image screen and enable edge to edge for custom selector 2024-11-25 23:28:18 +05:30
translatewiki.net
874773b881
Localisation updates from https://translatewiki.net. 2024-11-25 13:01:54 +01:00
Saifuddin Adenwala
00cfd83521
Migrated quiz module from Java to Kotlin (#5952)
* Rename .java to .kt

* Migrated quiz module to Kotlin

* unit test failing fixed

* unit test failing fixed
2024-11-24 19:17:05 +09:00
Saifuddin Adenwala
bafae821e2
Migration of review module from Java to Kotlin (#5950)
* Rename .java to .kt

* Migrated repository module to Kotlin

* Rename .java to .kt

* Migrated review module to Kotlin
2024-11-23 21:45:46 +09:00
Rohit Verma
e070c5dbe8
Fix unit tests (#5947)
* move createLocale() method to companion object and add test dependency

* use mockk() from Mockk library for mocking sealed classes

* change method parameter to null-able String type

* add null check for accessing property from unit tests

* change method signature to match old method's signature

It fixes the NullPointerException when running ImageProcessingUnitTest

* Fix unresolved references and make properties public for unit tests

* fix tests in UploadRepositoryUnitTest by making return type null-able
2024-11-23 08:35:34 +09:00
Saifuddin Adenwala
fe347c21fd
Migrated recentlanguages and repository module from Java to Kotlin (#5948)
* Rename .java to .kt

* Migrated recentlanguages module to Kotlin

* Rename .java to .kt

* Migrated repository module to Kotlin
2024-11-22 22:58:16 +09:00
u7479759
088dd2479e
Changed to data classes, and added immutability (#5905)
Co-authored-by: Jinniu Du <127721018+Donutcheese@users.noreply.github.com>
2024-11-21 21:42:54 +09:00
Saifuddin Adenwala
cf88f9b796
Migrated settings modules from Java to Kotlin (#5944)
* Rename .java to .kt

* Migrated settings module to Kotlin
2024-11-21 21:16:42 +09:00
translatewiki.net
5f1d284309
Localisation updates from https://translatewiki.net. 2024-11-21 13:01:41 +01:00
Saifuddin Adenwala
ed18a37577
Migrated ui and theme modules from Java to Kotlin (#5942)
* Rename .java to .kt

* Migrated ui and theme module to Kotlin
2024-11-20 22:55:13 +09:00
Saifuddin Adenwala
cb4ffd8ca8
Migrated widget module from Java to Kotlin (#5940)
* Rename .java to .kt

* Migrated widget module to Kotlin
2024-11-20 12:41:50 +09:00
Saifuddin Adenwala
0fdb0044b9
Migrated util module from Java to Kotlin (#5938)
* Rename .java to .kt

* Migrated the following files in util module to Kotlin
- AbstractTextWatcher
- ActivityUtils
- CommonsDateUtil
- DateUtil

* Rename .java to .kt

* Migrated the following files in util module to Kotlin
- DeviceInfoUtil
- ExecutorUtils
- FragmentUtils

* Rename .java to .kt

* Migrated the following files in util module to Kotlin
- ImageUtils
- ImageUtilsWrapper
- LangCodeUtils
- LayoutUtils
- LengthUtils
- LocationUtils
- MapUtils

* Rename .java to .kt

* Migrated all remaining files in util module
2024-11-18 22:40:35 +09:00
translatewiki.net
c439143dd3
Localisation updates from https://translatewiki.net. 2024-11-18 13:01:52 +01:00
Saifuddin Adenwala
5c8c4032e9
Migrated util module files from java to kotlin (#5935)
* Rename .java to .kt

* Migrated the following files in util module to Kotlin
- AbstractTextWatcher
- ActivityUtils
- CommonsDateUtil
- DateUtil

* Rename .java to .kt

* Migrated the following files in util module to Kotlin
- DeviceInfoUtil
- ExecutorUtils
- FragmentUtils
2024-11-17 22:35:25 +09:00
translatewiki.net
248c7b0ceb
Localisation updates from https://translatewiki.net. 2024-11-14 13:02:04 +01:00
Alex Gailis
183e84c098
Improve Unique File Name Search (#5877)
* Modified findUniqueFileName() in UploadWorker.kt to use a random 3-digit alphanumeric hash to append to a file name to make it unique. This improves speed over using an incrementing number to append as there are fewer collisions.

* Modified findUniqueFileName() in UploadWorker.kt to use a random 5-digit numeric hash rather than the previous 3-digit alphanumeric hash

* Removed unnecessary variable "chars"

---------

Co-authored-by: Jinniu Du <127721018+Donutcheese@users.noreply.github.com>
Co-authored-by: Zihan Pan <u7726755@anu.edu.au>
Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
2024-11-14 11:35:05 +09:00
StrawberryShortcake
634bc3ede1
custom-selector: adds a button to delete the current folder in custom selector (#5925)
* Issue #5811: "Delete folder" menu in custom image selector

* Issue 5811: folder deletion for api < 29.

* Issue 5811: folder deletion for api < 29.

* Issue 5811: folder deletion for api 29.

* Issue 5811: folder deletion

* Issue 5811: fixes merge conflicts, replaces used function onActivityResult with an ActivityResultLauncher

* Update Constants.java

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
2024-11-13 22:11:38 +09:00
translatewiki.net
17a8845dfd
Localisation updates from https://translatewiki.net. 2024-11-11 13:01:42 +01:00
Saifuddin Adenwala
a70d585df8
Hide edit options for logged-out users in Explore screen (#5920) 2024-11-07 22:59:32 +10:00
translatewiki.net
3bd7b533d4
Localisation updates from https://translatewiki.net. 2024-11-07 13:01:44 +01:00
translatewiki.net
e388f456dc
Localisation updates from https://translatewiki.net. 2024-11-05 15:18:29 +01:00
translatewiki.net
c46928252c
Localisation updates from https://translatewiki.net. 2024-11-04 13:01:44 +01:00
Rohit Verma
091ddb5db1
revert back to MainScope for database and ui updates (#5914)
Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
2024-11-04 18:40:54 +09:00
Hisham Akmal
f011abef1d
Improve string formatting in OkHttpJsonApiClient.java (#5916) 2024-11-01 09:20:16 +09:00
translatewiki.net
7c826502b6
Localisation updates from https://translatewiki.net. 2024-10-31 13:01:42 +01:00
translatewiki.net
197855af0e
Localisation updates from https://translatewiki.net. 2024-10-28 13:02:08 +01:00
Rohit Verma
071bffbfa8 refactor preview for folder item 2024-10-27 22:12:36 +05:30
Rohit Verma
31c012f953 refactor holder screen for both folder and image panes 2024-10-27 22:12:36 +05:30
Rohit Verma
55c09395e4 Add drag and tap gestures to select images 2024-10-27 22:12:36 +05:30
Rohit Verma
ca30bf18bf Add selection count indicator in top bar and refactor 2024-10-27 22:12:36 +05:30
Rohit Verma
1a86883ec0 add actions lambda to bottom bar and replace hard-coded strings 2024-10-27 22:12:36 +05:30
Rohit Verma
5da9097547 refactor: add new cs screen into custom selector activity
Also, refactor the UI components
2024-10-27 22:12:36 +05:30
Rohit Verma
0ff2880ba9 create image grid screen/pane to display images from any folder 2024-10-27 22:12:36 +05:30
Rohit Verma
9f7ae759a2 create custom selector main screen with UI events and folder data class 2024-10-27 22:12:36 +05:30
Rohit Verma
74cf035663 add logic to fetch images from storage and manage in viewmodel 2024-10-27 22:12:36 +05:30
Rohit Verma
8558594ef6 add adaptive layout, image loading, and compose navigation dependencies 2024-10-27 22:12:36 +05:30
Rohit Verma
3f3df7d014 add ui components for custom selector 2024-10-27 22:12:36 +05:30
Rohit Verma
b0bf55b384 UI: add material theme for compose 2024-10-27 22:12:36 +05:30