Commons app mirror
Find a file
neslihanturan d29aa2e2e5 Fix urgent crashes A and E (#1749)
* 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
2018-08-02 06:24:08 +10:00
app Fix urgent crashes A and E (#1749) 2018-08-02 06:24:08 +10:00
assets-source Added new launcher icons 2013-07-18 17:27:51 +00:00
design #930 - Added localised screenshots for Turkish and Russian languages (2 folders in design/screenshots, 8 files each). All screenshots are ordered and follow the same pattern with the current English ones on the Google Play app page. 2018-02-17 21:32:56 +09:00
gradle/wrapper Add Forgot Password Option in LoginActivity (#1242) 2018-03-10 23:00:05 +05:30
marketing Fixed unicode characters 2017-12-14 22:21:31 +09:00
script/style Bump max line length to 140 characters in Checkstyle rules (#1590) 2018-06-05 19:33:51 +10:00
update-license-info Merge "commons" into the project root directory 2016-07-02 16:48:57 +09:00
.gitignore Detecting pictures that are too dark (#926) 2018-02-18 15:01:42 +05:30
.gitreview Add .gitreview 2013-06-17 10:44:28 +00:00
.travis.yml Enable crosswiki notifications and minor UI fixes in displaying notif… (#1540) 2018-05-24 15:54:31 +03:00
build.gradle Moved tests over to Kotlin. (#1428) 2018-04-08 17:59:20 +10:00
CHANGELOG.md Versioning and changelog for v2.7.2 (#1610) 2018-06-12 19:57:34 +10:00
CONTRIBUTING.md CONTRIBUTING: create a new further reading section 2018-06-25 21:11:11 +05:30
COPYING Relicense to Apache License 2013-04-23 21:16:43 +05:30
CREDITS Fixed misspelling in credits.md 2018-04-06 19:26:23 +10:00
dependency-injection.md dependency-injection.md: fix some typos (#1681) 2018-07-07 22:05:22 +09:00
find-broken-strings-variables.sh Updated path 2016-10-26 19:56:49 +09:00
gitutils.gradle Use modified branch names for APK 2017-11-24 00:14:38 +05:30
gradle.properties Enable crosswiki notifications and minor UI fixes in displaying notif… (#1540) 2018-05-24 15:54:31 +03:00
gradlew Update gradle from 4.0-rc-1 to 4.0.1 2017-07-19 17:14:37 +09:00
gradlew.bat Update gradle from 4.0-rc-1 to 4.0.1 2017-07-19 17:14:37 +09:00
ISSUE_TEMPLATE.md Add description to "steps to reproduce" 2018-06-29 03:11:35 +10:00
PULL_REQUEST_TEMPLATE.md Merge branch 'master' into wikidataEdits 2018-05-31 10:02:38 +05:30
README.md Update readme to add disclaimer suggested by WMF 2017-11-16 17:34:27 +10:00
RELEASE-CHECKLIST.md Update RELEASE-CHECKLIST 2013-04-27 00:58:19 +05:30
settings.gradle Merge "commons" into the project root directory 2016-07-02 16:48:57 +09:00
sign.sh Fix Codacy Issues + remove unused patch 2017-03-23 17:51:13 +00:00

Wikimedia Commons Android app Build status

The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons. Download the app here, or view our website.

Initially started by the Wikimedia Foundation, this app is now maintained by grantees and volunteers of the Wikimedia community. Anyone is welcome to improve it, just choose among the open issues and send us a pull request :-)

Get it on F-Droid Get it on Google Play

Documentation

We try to have an extensive documentation at our wiki here at Github:

License

This software is open source, licensed under the Apache License 2.0.