mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Commons app mirror
androidcommonsgood-first-issuegsochacktoberfesthelp-wantedjavakotlinkotlin-androidphotographywikimediawikimedia-apiwikimedia-commons
Saves original file into the SD card "Downloads" directory via Android's DownloadManager service. On Gingerbread the notification vanishes after downloda, but we force the gallery to reindex the downloads area so you can still manually bump over to Gallery. On ICS/JB the notification hangs around and can be used to open the saved file directly. Note that on Gingerbread we have to download over HTTP because DownloadManager didn't support HTTPS. Included copy of stock 'upload' icon, flipped it for 'download'. |
||
|---|---|---|
| commons | ||
| CHANGELOG.md | ||
| commons-parent.iml | ||
| COPYING | ||
| CREDITS | ||
| pom.xml | ||
| README.md | ||
| RELEASE-CHECKLIST.md | ||
| upload-to-commons.patch | ||
The Wikimedia Commons Android App
Build Requirements
- Android SDK (Level 15)
- Maven
Build Instructions
- Set the environment variable
ANDROID_HOMEto be the path to your Android SDK - Run
mvn installto build - Run
mvn android:deployto deploy to a device - There is no step 4
Note: Currently uses a bunch of dependencies that are staged at yuvi.in/blog/maven. Will be migrated to either Maven Central or a Wikimedia staging server soon.
Set Up IntelliJ for Commons Android App Development
Import and Compile Commons Android App
- Clone the repository.
- Open IntelliJ.
- Import Project:
File -> Import Project
or
Select 'Import Project' from the Quick Start menu - Navigate to the folder with the cloned repository and press 'OK'.
- Select 'Import Project from external model' -> 'Maven' and press 'Next'.
- Make sure 'Search for projects recursively' and 'Import Maven projects automatically' are checked. Select 'Next'.
- This section needs no modification. Select 'Next'.
- This section needs no modification. Select 'Next'.
- Make sure the 'Android SDK home path' points to the 'android-sdk' folder. If the dropdown next to 'Java SDK' is empty, hit the '+' button avobe the sidebar and select 'JDK'. Navigate to your jdk folder, select it, and hit 'OK'. Now select the newly added JDK and hit 'Next'.
- This section needs no modifications. Select 'Next'.
- Select 'Finish'.
- After the program opens select 'Make project' - there should be errors.
- Near the top of the file that is opened up, one of the offending lines should be "import android.support.v4.app.FragmentActivity;" - put your cursor on that line and hit 'alt'/'option'+'enter' to bring up the AutoFix dialog. Select the 'compatibility' option.
- Select 'Make project' again. It should compile successfully.
License
This software is licensed under the Apache License.
Bugs?
This software has no bugs. You can dispute this statement at bugzilla