Commit graph

35 commits

Author SHA1 Message Date
Adam Jones
67c5d20468 Tidy up gradle.properties (#2175) 2019-01-27 22:29:56 +05:30
Vivek Maskara
f607c1c14d Multiple uploads with over haul (#1968)
* Added new upload activity that receives shared files from the gallery.  Cards show and hide, plus titles are correct.  Displayed thumbnails for the shared images

* Better handling of the view paging plus error handling for required fields.

* Code cleanup to make things more readable.

* Extracted a model from the category search fragment that can possibly be shared with the new upload activity.

* Added category selection to the combined upload screen.

* Cleanup before the home-stretch on the GUI.

* Adding license selection.

* Fixed build warnings + cleanup

* Start to support the dark theme.

* Work in progress to add quality checking.

* Fixing merge.

* GPSExtractor: optimized away the EXifInterface object

* Implemented submit functionality, temporarily fixed jacoco crash by disabling DUMMY UploadView object.

* Implemented uploading of categories along with the picture. The category screen now displays GPS and recent categories when nothing is searched.

* Implemented caching of files. Did some work on picture quality detection.

* Implemented too dark picture detection.

* Added a side card for zoom and map buttons along with pretty animations for stuff.

* Added duplicate image on commons checking and fixed files not getting proper file extensions in several places.

* Added support for map button and switched in-app upload buttons to UploadActivity

* Pretty pretty animations!

* Implemented zoom functionality for th background image. Just pinching on the image works instead of requiring buttons.

* Added multi-language descriptions with categories by region.

* Reimplemented the duplicate title checker and implemented a check against putting the same language twice in the description.

* Javadocs for Description and UploadPresenter, plus some general cleanup.

* Small code changes.

* Implemented login checks for the Upload screen.

* Implement receiving data from Nearby.

* Feature/permissions library (#1855)

* Added permission for Dexter, the runtime permission handling library

* [Preparing fir issue #1773] Added a utility function which would take the user to app settings screen where he could manually give us the required permission

* Added an alert dialog with positive and negative callback [Preparing fir issue #1773]

* Improvements in the way External Storage Permission is handled in MultipleShareActivity[Bug fix #1697]
1. Used dexter to handle the external storage permission
2. Behaviour changes : When user tries to share(uppload) images to commons via MultipleShareActivity, following decision tree is followed
	a. If the app has permission for external storage, normal upload operation is followed
	b. If the app does not has the permission for external storage, dexter is used to ask for the same
	c. If the user gives us the required permission, normal upload flow is proceeded
	d. If the doesnot gives us the required permission a rationale dialog is shown with the appropriate message to let him know why we need the permission
	e. If he presses okay, steps a-c are followed and if he presses cancel, we close the app.
	f. If while asking for permission, the user chooses never ask again, then next time he tries to upload an image via MSA, the rational dialog follows the app setting screen where he could manually give us the required permission and the onActivityResult of same is handled

* Added a Constants class to handle request and result codes from one place and other related constants common to the all app elements

* replaced hardcoded strings ok and cancel in DialogUtil to string resources

* init permission rationale dialog in activities onCreate

* Code formatting, updated access modifiers wherever required, added javadocs for new methods created

* *shifted constants to app class
*Added JavaDocs in PermissionUtils

* removed class REQUEST_CODES from CommonsApplication and instead put the enclosing constants in the App class itself

* Made Codacy happy.

* Abstarcted permission acquisition into new class DexterPermissionObtainer

* Fixed Nearby upload detection

* Migrated bad picture detection from AsyncTask to RxJava.

* Removed ShareActivity and related dead code

* Removed dead or duplicate code from FileProcessor

* Added info button to title EditText

* Fixed the add description button not disappearing.
Added "Starting Upload" toast.
Added link to the license on final screen.
Made it so that the map button is hidden when image lacks gps coords.

* Support in app multiple uploads

* Minor changes to fix build

* Changes to fix pending issues with upload flow

* Fix display of similar image fragment

* When uploading several files at once the date is missing #1854 (#2)

* Bug fix issue #1854
* updated ContributionsDao to save create date, which it was not doing currently [it was instead saving current date]
* UploadItem accepts are dateCreated param
* Added a function in UploadModel, getFileCreatedDate which tries to fetched the file creaction date from all possible content providers.

* Fix pending issues in upload flow

* Make multiple uploads work for Google Photos

* Fix default state for upload activity

* Fix keyboard state for license screen

* Fix descriptions for uploads

* wip

* Fix language spinner
2018-11-19 17:00:32 +05:30
Dmitry Brant
fc30f1b5ec Sweeping update of gradle and dependency versions. (#1858)
* Sweeping update of gradle and library versions.

This updates all of the dependencies of the project to their latest
versions. Everyone should please upgrade to the latest version of Android
Studio, update your build tools, and keep your version of Gradle and the
Kotlin plugin up to date.

* Update build tools in travis.

* Remove cruft and fix tests.

* Remove even more stuff.

* Reinstate instrumented tests.

* Update emulator image in travis.

* Localisation updates from https://translatewiki.net.

* Work towards eliminating string literals from code. (#1861)

String literals are being used in many places in the code, instead of
proper string resources which are automatically localized. This PR
replaces many of the string literals with pre-packaged resources, or will
add the appropriate string if necessary.

* Add button on image details to copy wikicode to clipboard (#1849)

* Add button on image details to copy wikicode to clipboard

* Make copy wikicode button width the same as the nominate deletion button width by filling in background

* Build fix

* Enable ProGuard for Debug and Release builds.

This enables ProGuard minification, which significantly shrinks the APK
(for both debug and release configurations) and vastly decreases the
method count.

* Add ProGuard rules for test builds.
2018-09-11 11:51:28 +03:00
Vivek Maskara
2a0b9d8a0b Enable crosswiki notifications and minor UI fixes in displaying notif… (#1540)
* Enable crosswiki notifications and minor UI fixes in displaying notifications

* Added java docs
2018-05-24 15:54:31 +03:00
Jatin Rao
b7b87e0615 Fixes issues #1228 added recenter button to nearby map 2018-03-21 23:12:59 +05:30
Jatin Rao
534215fdbc Fix for issue #1224 showing complete notification on click 2018-03-01 15:57:13 +05:30
maskara
41d6abdf40 Remove unused code 2018-01-22 04:09:43 +05:30
maskara
28a6a3b71d Integrate notifications API 2018-01-22 03:46:54 +05:30
maskara
eaaef3211e Fix dex merge issue 2017-12-10 15:07:27 +05:30
maskara
6a7b7cbbe8 Introduce dagger 2017-11-12 01:04:10 +05:30
maskara
5559e1bb41 Put PR link 2017-11-04 15:51:20 +05:30
maskara
ef56b69828 Replay deprecated symbol usage and mark AAPT todo 2017-11-04 15:18:45 +05:30
maskara
3bc21ee514 Disable AAPT 2 2017-11-04 12:40:53 +05:30
maskara
3adb5d83ae Update Gradle plugin to 3.0 2017-11-02 22:53:27 +05:30
Paul Hawke
f9ff29000b Rolled back change to targetSdkVersion, back to 25 as Travis seems to need right now. 2017-10-10 22:14:39 -05:00
Paul Hawke
529f5415c3 Improved the layout of the login screen. 2017-09-30 14:39:26 -05:00
Yusuke Matsubara
1800c54455 Use build tools version 26.0.1 2017-08-24 22:08:22 +09:00
Mikel
b3d019d8de Upgrade gradle version to latest stable 2017-08-18 13:58:14 +01:00
Mikel
09d94f3e06 Replace Guava-implemented getUploadCount with RxJava2 version 2017-07-26 16:56:44 +01:00
Josephine Lim
53d6792f5b Merge pull request #763 from psh/master
Refactoring the API calls
2017-07-16 02:27:50 +10:00
misaochan
ffa47a7646 Increment target SDK to 25 2017-07-13 02:38:55 +10:00
Paul Hawke
d53858f7d2 Gentle version bump and added the dexcount gradle plugin 2017-07-04 14:14:17 -05:00
misaochan
7f5bea4d68 Revert target SDK to 23 2017-06-04 17:44:43 +10:00
Yusuke Matsubara
a6ea218149 Merge pull request #644 from ftsalamp/master
Updated target sdk version to 25
2017-05-27 19:45:34 +09:00
maskara
43d841bdf3 Adding support for Guava library 2017-05-21 12:25:28 +02:00
Fotis Tsalampounis
7d5f5853e5 Updated target sdk version to 25
The camera crash bug does not seem to exist anymore. Another fix probably solved this issue too.
2017-05-20 14:05:02 +03:00
maskara
f004a0dd43 Undo gradle change 2017-05-12 13:52:54 +02:00
maskara
6118b57295 Added support for MapView in Nearby 2017-05-12 13:50:25 +02:00
misaochan
36a1ec325e Whitespace 2017-03-23 16:20:04 +10:00
misaochan
04e359142f Add comments 2017-03-23 16:17:19 +10:00
misaochan
5edbea1fae Change target SDK to 23 2017-03-23 16:03:16 +10:00
maskara
060750b050 Added support for butterknife library for view bindings 2017-03-21 00:04:32 +05:30
Adam Jones
6c703184aa Use gradle constants and update GSON 2017-03-12 15:52:49 +00:00
Adam Jones
ffcbe65ab2 Remove NDK refrence in gradle.properties 2017-03-12 15:47:13 +00:00
Yusuke Matsubara
b4231bbfdc Merge "commons" into the project root directory 2016-07-02 16:48:57 +09:00
Renamed from commons/gradle.properties (Browse further)