* Use wrapper for accessing shared preferences across the app
* Use Json kv store for storing place object
* Fix tests
* Fix test failure
* Fix UI tests
* Fix#2215 Added BetaCheckerUtil class and made necessary changes
* Fix#2215 Fixed formatting error in LogSender class
* Fix#2215 Renamed BetaCheckerUtil to ConfigUtils
* Fix#2215 Fixed formatting in CommonsApplicationModule
* Add bookmark star images
* Add bookmark item in navigation menu
* Add Activity for bookmarks
* Implement bookmarks viewpager
* Bookmark object and bookmarkDao
* Implement Bookmark Picture Fragment and Controller
* Implement image detail bookmark menu action UI
* contentProvider + config + dao rework
* Fix Dao and Content Provider crashes
* Link bookmark controllers and dao
* Implement bookmark location fragment, controller
* Add bookmark icon to location items
* Add empty bookmark list behavior and refactoring
* bookmarkLocation dao and contentProvider
* Fix bookmarks location crashes
* Rename and refactor classes
* Implement location list refresh
* Fix picture list update
When user come back from detail picture fragment, it solve the refresh bug.
* full test coverage
* Refactor bookmarks classes
* Fix bookmarks pictures loading
* Fix bookmark locations list display
* Java Documetation
* Fix Code review quality
* Fix DB version update
* Remove forgotten todo
* Update bookmark activity base class
Change from AuthenticatedActivity to BaseNavigationActivity
* Fix log reporting for release builds
* Fix logs for release builds
* wip
* Clean up the branch to exclude unrelated changes
* With java docs
* Uncomment quiz checker
* Check for external storage permissions before sending logs
* With more java docs
* Fix crash while zipping log files
* Do not log token and cookies
* Add instruction to restart app
* Fix crash(es) due to uninitialized notification channel.
The notification channel needs to be created for API versions greater than
OR EQUAL to 26 (O). Also, the channel does not need to be reinitialized
if it already exists.
* Initialize notification channel when Service is created.
* 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.
* Add Traceur for getting meaningful RxJava stack traces (#1832)
* Hotfix for overwrite issue in 2.8.0 (#1838)
* This solution is an hotfix for overrite issue came back on 2.8.0 version. What I did is checking the extension, and if it is null, adding .jpg suffix. Because commons files always have suffixes, and we should compare file names after adding suffixes. Othervise overrides are possible.
* Check if file title includes an extension already, by checking if is there any dot in it.
* Fix logic error
* Add uncovered tests
* Remove unecessary line breaks
* Make Javadocs more explicit
* Versioning and changelog for v2.8.2 (#1842)
* Versioning for v2.8.2
* Changelog for v2.8.2
* Add logs in wiki data edit and session refresh flow (#1874)
* Fix logout (#1875)
* [WIP] Refactor feedback and quiz to reduce possibility of NPE (#1881)
* Refactor feedback and quiz to reduce possibility of NPE
* Handle throwables in quiz checker
* Minor refactoring
* Set Traceur to only work in DEBUG mode (#1884)
* Bug fix for uploaded images count in achievements activity (#1885)
* Versioning and changelog for v2.8.3 (#1886)
* Update changelog.md
* Versioning for v2.8.3
* 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
* Eliminate the use of Picasso.
This gets rid of the single use of the Picasso library (which was causing
the whole library to be imported and shipped) and replaces it with Glide.
TODO: replace this and the other instance(s) of Glide usage with Fresco,
or vice versa.
* Remove dependency on Glide.
This removes the dependency on Glide, as well as the SVG rendering
library, whose only purpose was to display a single SVG image in the
Notification activity. Unfortunately Android doesn't support SVG natively,
but Echo notifications have icons that are SVG formatted. Rather than
import a bunch of heavy libraries to support this single case of SVG
rendering, we can simply create a few local drawables that correspond to
the different types of notifications, and use them instead.
* Remove multidex!
Multidex is a killer of performance and should be avoided at all costs.
* Remove further unused bits.
* Remove final vestige of multidex.
* Create utility class for contribution process
* implement method to save five from given URİ
* Add file utilities for directory checks
* Add ContributionUtils for saving file during upload
* Change method call acordingly with handleImagePicked() method
* Call method to save file temproarily when a photo to upload is chosen from contributions list.
* Call method to save file temproarily when a photo to upload is chosen from nearby list and map
* Arrange method call
* Write a method to save file temporarily during upload process. It will save the file to a internal path and it will be deleted by another method after upload process is done.
* Add a method to save a file to a given path from a content provider Uri
* On openAssetFileDescriptor method, use URi from temporarily saved file, instead of Contributions.getLocalUri which was Uri from content provider
* Edit uploadContribution method so that it will use FileInputStream from temporarily saved file, insdeat of the Uri from content provider.
* Make it work
* Code cleanup
* Add directory cleaner method
* Call temp directory cleaner method at the end of uplpoad process
* Use FileInputStream insted
* Add directory cleaner method
* Add file removal method
* Use external directory instead
* Make destination file name flexible
* Make it work with share action coming from another activity
* Make it work for Multiple hare Activity
* Code cleanup
* Solve camera issue
* Fix camera crash
* Cleanup
* Revert change of commenting out posibly useles code, because I am not sure if it is useless or not. Requires discussion
* Use timestamp in temoorary file names, so that we wont never create same file and access old file reference. It was a weird problem though
* Code cleanup
* Add nullable annotation to handleImagePicked method uri parameter
* Add Nullable anotation to method
* Code cleanup
* Bugfix: use uri.getPath() instead uri.toString
* Remove unecesarry file saving operation, which was added accidentally
* Fix travis fail
* Remove temp file if upload gets failed and file is still there
* Code cleanup:Remove unused parameters from removeTempFile method
* Empty temp directory on app create, in case some of files are still there
* Add null check to array to prevent NPE on first run
* Fix multiple uploads bug
* Remove file if upload is succeed
* Add external storage utility methods
* Check external file permission before saving files temporarily
* finish activity if permission is not granted
* Add log lines
* Remove files even if user decides to go back without sharing
* Add easy null check
* Change storage permission settings in singe upload fragment too
* Finish app if permission is not granted
* Code optimisation
* Remove temp file if upload process never is finalised on activity stop
* Bugfix maybe contribution is never created
* Fix travis build
Adding link to local description page:
(Upload log) !; 15:02 . . Malabarge (talk | contribs | block) uploaded File:Spiegelung 3.jpg (Uploaded using Android Commons app) (Tags: Mobile app edit, Mobile edit)
Using the same edit summary as for edits made using the app, e.g.
(diff | hist) . . ! File:Lul.jpg; 14:48 . . (-20) . . Codedoper (talk | contribs | block) (Added 1 categories. Removed template Uncategorized. Via Commons Mobile App) (Tags: Mobile app edit, Mobile edit)
These are especially old bits of code, where it seems like WMF folks had set up Eventlogging schemas for some rudimentary analytics of the Commons app. These schemas are no longer queried or monitored, and can be safely removed. When the Commons app has a stronger need for more meaningful analytics, we can revisit reintroducing new and better schemas.