Commit graph

5872 commits

Author SHA1 Message Date
Kaartic Sivaraam
eae3e312e4 Disable full mode R8 optimizations
Full mode R8 configurations are hindering the working of the app severly.
So, disable the same.

Also, ensure the POJO classes used to hold the API responses aren't optimized
so that we could use the response properly without any issues.
2023-10-16 00:14:21 +05:30
Kaartic Sivaraam
a629756f3a Retain siva's comment about disabling force = true 2023-10-04 06:56:52 +05:30
Kaartic Sivaraam
62661604ff Merge commit 'refs/pull/5220/head' of github.com:commons-app/apps-android-commons into new-tools 2023-10-04 06:54:48 +05:30
Kaartic Sivaraam
b314fe1896 Version v4.2.0 2023-10-03 10:20:21 +05:30
translatewiki.net
ee78ceaa28 Localisation updates from https://translatewiki.net. 2023-10-02 13:02:51 +02:00
Srishti Rohatgi
f7e6d30499
fixes copy option not appearing for multi asset upload (#5320) 2023-10-01 19:08:36 +09:00
Ayan Sarkar
fec27ed914
Fixes 4745 : Add bookmarked items to suggested depictions (#4746)
* Dialog can't be dismissed

* Dialog can't be dismissed

* Appended bookmarked items in searching

* Test fixed

* Resolve conflicts

* Resolve conflicts
2023-09-29 15:55:26 +09:00
Srishti Rohatgi
9525409b9b
fixes issues related to location permission denial even when allowed inside in-app camera flow (#5313)
* fixes issues related to location permission denial even when allowed inside in-app camera flow

* fixes related to in app camera location permissions
2023-09-28 23:07:28 +09:00
translatewiki.net
8d604a25fa Localisation updates from https://translatewiki.net. 2023-09-28 13:02:44 +02:00
Srishti Rohatgi
a2ad0394ce
fixes crash in sign up activity in api 21 and 22 (#5311)
* fixes crash in sign up activity

* javadoc comments added
2023-09-26 16:14:41 +09:00
Zeeshan Alam
19733b3e69
bug fix 5240 (#5292)
* bug fix 5240

Signed-off-by: Zeeshan Alam <zeeshan.alam@fmr.com>

* Incorporated review comments. Remove method MediaDetailPagerFragment.newInstance(false, false, 0) which was called only in unit test

* Added Required empty public constructor

---------

Signed-off-by: Zeeshan Alam <zeeshan.alam@fmr.com>
2023-09-25 21:42:40 +05:30
Ritika Pahwa
2282ce3d02
5195: Fix upload wizard crash on tapping target icon (#5306)
* LocationPickerActivity: fix crash on setting location for pictures with no EXIF location

* strings.xml: remove extra string introduced

* optimise constants

* LocationPickerActivity: request for permission only on tapping target icon

* remove newline

* handle location permissions using LocationPermissionsHelper

* add null check to prevent crash
2023-09-25 17:00:46 +09:00
Srishti Rohatgi
70f8256565
Night mode color contrast fix (#5307)
* Fixes dark mode color contrast fix

* fixes text color contrast on app-level dark mode settings
2023-09-25 16:24:46 +09:00
Srishti Rohatgi
2fc8527330
Fixes in-app camera behaviour (#5302) 2023-09-25 09:52:42 +09:00
Srishti Rohatgi
ff7fa79af1
Fixes dark mode color contrast fix (#5304) 2023-09-24 22:13:52 +09:00
Ritika Pahwa
4caa8a509b
5195: Fix crash on setting location for pictures with no EXIF location (#5205)
* LocationPickerActivity: fix crash on setting location for pictures with no EXIF location

* strings.xml: remove extra string introduced

* optimise constants

* LocationPickerActivity: request for permission only on tapping target icon

* remove newline

* handle location permissions using LocationPermissionsHelper
2023-09-24 09:31:57 +09:00
Srishti Rohatgi
6881158743
Android 13 permission related fixes (#5299)
* Android 13 permission related fixes

* removes audio and video as permissions
2023-09-22 09:39:28 +09:00
Ritika Pahwa
f5770539a5
target the latest Android version (#5296) 2023-09-19 20:16:35 +09:00
Ritika Pahwa
81030d1e78
5136: Fix retried uploads stuck in queued state (#5272)
* fix stuck uploads

* automate retries for failed uploads once the user returns to the app

* UploadWorker: modify PendingIntent flag and Android version code

* MainActivity: remove automatic retry logic

* Revert "MainActivity: remove automatic retry logic"

* set work request as expedited

* handle notification for foreground service on older versions of Android

* set backoff criteria for work requests

* enqueue failed uploads for a retry

* revert "enqueue failed uploads for a retry"

* limit the number of retries for a failed upload

* add a popup that suggests users to switch to unrestricted battery usage mode

* take users to the battery settings page on the first big upload

* take users to battery optimisation settings page using the standard intent

* add instructions to the battery optimisation settings popup

* remove the first usage of fr.free.nrw.commons from the popup

* comply with the wording in the OS settings

* modify battery optimisation popup instructions, add comments and rename firstBigUploadSet

* add filename to the retry log statement

* update database version

* make battery optimisation dialog appear only on Android 6 and above

* use foreground service instead of setting work request as expedited

* fix retried uploads stuck in queued state

* use MIN_BACKOFF_MILLIS constant instead of using the number 10 and add comments

* factorise the creation of the new OneTimeWorkRequest at one place

* ensure work requests are in accordance with the unit tests

* forbid retries for images which have got uploaded without caption

* add a TODO for the suggestion related to retries

* revert "forbid retries for images which have got uploaded without caption"
2023-09-09 22:46:13 +05:30
Kaartic Sivaraam
4540f54d59
Fix document picker trigger bug (#5275)
* Revert "Revert a1b6973 until we find out why it uses OPEN_DOCUMENT by default on fresh install"

This reverts commit 7ce3b7ebb1.

* Potential fix for get_content picker being used in first run

The initial state of the 'openDocumentPhotoPickerPref' seems to be incorrect
during a fresh install on some devices.

Try to ensure we always use the proper initial state by propagating the default
to the preference access code.

This hopefully fixes #5274
2023-09-04 11:18:58 +09:00
Nicolas Raoul
7ce3b7ebb1 Revert a1b6973 until we find out why it uses OPEN_DOCUMENT by default on fresh install 2023-09-03 23:28:02 +09:00
Ritika Pahwa
5073ca08c3
5196: Fix in-app camera location loss (#5249)
Merging as this is a great improvement, additional issues/bugs can be filed as GitHub issues.

* fix in-app camera location loss

* fix failing unit tests

* UploadMediaDetailFragmentUnitTest: modify testOnActivityResultAddLocationDialog to have null location

* reintroduce removed variable

* enable prePopulateCategoriesAndDepictionsBy for current user location

* add relevant comment and fix failing test

* modify dialog and disable location tag redaction from EXIF

* modify in-app camera dialog flow and change location to inAppPictureLocation

* change location to inAppPictureLocation

* fix location flow

* preferences.xml: remove redundant default value

* inform users about location loss happening for first upload

* FileProcessor.kt: remove commented-out code

* prevent user location from getting attached to images with no EXIF location in normal and custom selector

* handle onPermissionDenied for location permission

* remove last location when the user turns the GPS off

* disable photo picker and in app camera preferences in settings for logged-out users

* remove debug statements and add toast inside runnables
2023-09-01 15:45:50 +09:00
translatewiki.net
1cab938d81 Localisation updates from https://translatewiki.net. 2023-08-31 13:02:53 +02:00
translatewiki.net
dc608ed8f5 Localisation updates from https://translatewiki.net. 2023-08-28 13:04:14 +02:00
translatewiki.net
f561b2c199 Localisation updates from https://translatewiki.net. 2023-08-24 13:03:20 +02:00
translatewiki.net
9d5deed58f Localisation updates from https://translatewiki.net. 2023-08-21 13:02:20 +02:00
translatewiki.net
a620cc9de6 Localisation updates from https://translatewiki.net. 2023-08-17 13:03:15 +02:00
translatewiki.net
07f7b7e0a2 Localisation updates from https://translatewiki.net. 2023-08-14 13:03:22 +02:00
Matija Nalis
d2cd6df3ca
use correct geo: URI format (#5268)
(like OsmAnd, StreetComplete etc do), which works with all apps, and not only some.
2023-08-11 07:44:06 +09:00
translatewiki.net
4ec08e8325 Localisation updates from https://translatewiki.net. 2023-08-10 13:06:31 +02:00
translatewiki.net
bb2c1b0ba1 Localisation updates from https://translatewiki.net. 2023-08-07 13:02:08 +02:00
translatewiki.net
3ddd8448e8 Localisation updates from https://translatewiki.net. 2023-08-03 13:02:15 +02:00
translatewiki.net
0a9b431846 Localisation updates from https://translatewiki.net. 2023-07-31 13:02:22 +02:00
translatewiki.net
9e0c95172f Localisation updates from https://translatewiki.net. 2023-07-27 13:04:37 +02:00
Jean-Baptiste
7db72f90f4
Bump actions (#5229) 2023-07-25 17:53:24 +09:00
Kaartic Sivaraam
a1b6973614
Toggle photo picker switch behaviour and tweak phrases (#5250)
* photo picker: toggle behaviour of switch and adjust phrasing for better UX

The enable state used to trigger the GET_CONTENT intent. Alter the flow
such that the GET_CONTENT intent is triggered when switch is disabled.
Adjust default value and other parts of code naming to reflect this.

The existing phrasing had a lot of tech jargon in it which could
result in the non-technical users being confused. Tweak the phrasing
to avoid such phrases.

The documentation in the website could also use some follow up
improvements.

* Adjust strings to clearly convey that location loss is a "risk"
2023-07-25 17:48:53 +09:00
translatewiki.net
8a9aa962bc Localisation updates from https://translatewiki.net. 2023-07-24 13:02:46 +02:00
paco-arana
3f529e674f
Removed comma separator (#5261)
* Removed comma separator from file descriptions

* Removed a redundant line that deleted the last comma of the descriptions

* Added a line to formatDescriptions that replaces every instance of "}}, " with "}}" to remove the comma between descriptions.

* Specified separator as an empty string instead of default value ", " for .joinToString method. Deleted previous fix using .replace method.

* Restored buffer.replace() in updateDescription
2023-07-20 23:14:21 +09:00
translatewiki.net
cdb2e4278c Localisation updates from https://translatewiki.net. 2023-07-20 13:01:53 +02:00
translatewiki.net
d75f693435 Localisation updates from https://translatewiki.net. 2023-07-17 13:02:16 +02:00
translatewiki.net
b86a92ad11 Localisation updates from https://translatewiki.net. 2023-07-13 13:02:46 +02:00
translatewiki.net
0b25c07fcd Localisation updates from https://translatewiki.net. 2023-07-10 13:04:12 +02:00
Kaartic Sivaraam
ff09c3487f
Try fixing pipeline after Gradle build changes 2023-07-08 23:49:55 +05:30
translatewiki.net
5c0ed12491 Localisation updates from https://translatewiki.net. 2023-07-06 13:03:21 +02:00
AnkitThakur98
2593f4e1b6
Replaced junit.framework with org.junit (#5253) 2023-07-06 14:25:49 +09:00
Alfusainey Jallow
368e1c753d
Fix resource leak bug (#5251)
Signed-off-by: Alfusainey Jallow <alf.jallow@gmail.com>
2023-07-06 00:20:46 +05:30
translatewiki.net
532e5375c2 Localisation updates from https://translatewiki.net. 2023-07-03 13:02:59 +02:00
translatewiki.net
a4ef6bb3d3 Localisation updates from https://translatewiki.net. 2023-06-29 13:02:50 +02:00
translatewiki.net
fffb2ab175 Localisation updates from https://translatewiki.net. 2023-06-26 13:02:41 +02:00
Siva Subramaniam
1911b8b957 upgrade AGP to 8.0.2, enable gradle build cache and change java version to 17 in github workflow 2023-06-26 12:56:40 +05:30