Skip to content

Commit 68165c7

Browse files
redirecting to category images Actovoty instead of Nearby now
2 parents ed241e0 + 80068f7 commit 68165c7

File tree

271 files changed

+10539
-1984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+10539
-1984
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ android:
1919
components:
2020
- tools
2121
- platform-tools
22-
- build-tools-26.0.2
22+
- build-tools-27.0.0
2323
- extra-google-m2repository
2424
- extra-android-m2repository
2525
- ${ANDROID_TARGET}
2626
- android-25
2727
- android-26
28+
- android-27
2829
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
2930
licenses:
3031
- 'android-sdk-license-.+'

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Wikimedia Commons for Android
22

3+
## v2.7.2
4+
- Modified subtext for "automatically get current location" setting to emphasize that it will reveal user's location
5+
36
## v2.7.1
47
- Fixed UI and permission issues with Nearby
58
- Fixed issue with My Recent Uploads being empty

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ The body should provide a meaningful commit message.
3232
1. Write tests for your code (if possible)
3333

3434
1. Make sure the Wiki pages don't become stale by updating them (if needed)
35+
36+
### Further reading
37+
38+
* [Importance of good commit messages](https://blog.oozou.com/commit-messages-matter-60309983c227?gi=c550a10d0f67)

ISSUE_TEMPLATE.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
1-
_Before creating an issue, please search the existing issues to see if a similar one has already been created. You can search issues by specific labels (e.g. `label:nearby `) or just by typing keywords into the search filter._
2-
31
**Summary:**
42

53
Summarize your issue in one sentence (what goes wrong, what did you expect to happen)
64

5+
_Before creating an issue, please search the existing issues to see if a similar one has already been created. You can search issues by specific labels (e.g. `label:nearby `) or just by typing keywords into the search filter._
6+
77
**Steps to reproduce:**
88

9-
How can we reproduce the issue?
9+
How can we reproduce the issue?
10+
What did you expect the app to do, and what did you see instead?
1011

1112
**Add System logs:**
1213

1314
Add logcat files here (if possible).
1415

15-
**Expected behavior:**
16-
17-
What did you expect the App to do?
18-
19-
**Observed behavior:**
20-
21-
What did you see instead? Describe your issue in detail here.
22-
2316
**Device and Android version:**
2417

2518
What make and model device (e.g., Samsung J7) did you encounter this on? What Android
@@ -28,7 +21,7 @@ version (e.g., Android 4.0 Ice Cream Sandwich or Android 6.0 Marshmallow) are yo
2821

2922
**Commons app version:**
3023

31-
You can find this information by going to the navigation drawer in the app and tapping 'About'
24+
You can find this information by going to the navigation drawer in the app and tapping 'About'. If you are building from our codebase instead of downloading the app, please also mention the branch and build variant (e.g. master and prodDebug).
3225

3326
**Screen-shots:**
3427

PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Title (required)
2+
3+
Fixes #{GitHub issue number and title (Please do not forget adding title) }
4+
15
## Description (required)
26

37
Fixes #{GitHub issue number and title}
@@ -12,4 +16,4 @@ Tested on {API level & name of device/emulator}, with {build variant, e.g. ProdD
1216

1317
{Only for user interface changes, otherwise remove this section. See [how to take a screenshot](https://android.stackexchange.com/questions/1759/how-to-take-a-screenshot-with-an-android-device)}
1418

15-
_Note: Please ensure that you have read CONTRIBUTING.md if this is your first pull request._
19+
_Note: Please ensure that you have read CONTRIBUTING.md if this is your first pull request._

app/build.gradle

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ apply from: 'quality.gradle'
77
apply plugin: 'com.getkeepsafe.dexcount'
88

99
dependencies {
10+
implementation 'com.squareup.picasso:picasso:2.71828'
11+
implementation 'com.prof.rssparser:rssparser:1.1'
1012
implementation 'com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
1113
implementation 'fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
1214
implementation 'in.yuvi:http.fluent:1.3'
1315
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
14-
implementation 'com.android.volley:volley:1.0.0'
1516
implementation 'ch.acra:acra:4.9.2'
1617
implementation 'org.mediawiki:api:1.3'
1718
implementation 'commons-codec:commons-codec:1.10'
@@ -20,59 +21,57 @@ dependencies {
2021
implementation 'com.jakewharton.timber:timber:4.5.1'
2122
implementation 'info.debatty:java-string-similarity:0.24'
2223
implementation 'com.borjabravo:readmoretextview:2.1.0'
23-
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
24-
implementation ('com.mapbox.mapboxsdk:mapbox-android-sdk:5.4.1@aar'){
25-
transitive=true
26-
}
27-
28-
implementation "com.github.deano2390:MaterialShowcaseView:1.2.0"
2924

25+
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
26+
implementation('com.mapbox.mapboxsdk:mapbox-android-sdk:5.5.0@aar') {
27+
transitive = true
28+
}
29+
implementation 'com.github.deano2390:MaterialShowcaseView:1.2.0'
30+
//noinspection GradleCompatible
3031
implementation "com.android.support:support-v4:$SUPPORT_LIB_VERSION"
3132
implementation "com.android.support:appcompat-v7:$SUPPORT_LIB_VERSION"
3233
implementation "com.android.support:design:$SUPPORT_LIB_VERSION"
3334
implementation "com.android.support:customtabs:$SUPPORT_LIB_VERSION"
34-
3535
implementation "com.android.support:cardview-v7:$SUPPORT_LIB_VERSION"
36-
3736
implementation "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
3837
kapt "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"
39-
4038
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
4139
implementation 'com.squareup.okio:okio:1.13.0'
42-
4340
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
4441
// Because RxAndroid releases are few and far between, it is recommended you also
4542
// explicitly depend on RxJava's latest version for bug fixes and new features.
4643
implementation 'com.android.support:multidex:1.0.3'
47-
4844
implementation 'io.reactivex.rxjava2:rxjava:2.1.2'
4945
implementation 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
5046
implementation 'com.jakewharton.rxbinding2:rxbinding-support-v4:2.0.0'
5147
implementation 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0'
5248
implementation 'com.jakewharton.rxbinding2:rxbinding-design:2.0.0'
53-
5449
implementation 'org.jsoup:jsoup:1.11.3'
55-
5650
implementation 'com.facebook.fresco:fresco:1.5.0'
5751
implementation 'com.facebook.stetho:stetho:1.5.0'
58-
5952
implementation "com.google.dagger:dagger:$DAGGER_VERSION"
6053
implementation "com.google.dagger:dagger-android-support:$DAGGER_VERSION"
6154
kapt "com.google.dagger:dagger-android-processor:$DAGGER_VERSION"
6255
kapt "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
63-
64-
testImplementation "org.robolectric:multidex:3.4.2"
56+
testImplementation 'org.robolectric:multidex:3.4.2'
6557
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
6658
testImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
6759
testImplementation 'junit:junit:4.12'
6860
testImplementation 'org.robolectric:robolectric:3.7.1'
6961
testImplementation 'com.nhaarman:mockito-kotlin:1.5.0'
7062
testImplementation 'com.squareup.okhttp3:mockwebserver:3.8.1'
63+
implementation 'com.dinuscxj:circleprogressbar:1.1.1'
64+
65+
implementation 'com.caverock:androidsvg:1.2.1'
66+
implementation 'com.github.bumptech.glide:glide:4.7.1'
67+
kapt 'com.github.bumptech.glide:compiler:4.7.1'
7168

7269
androidTestImplementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
7370
androidTestImplementation 'com.squareup.okhttp3:mockwebserver:3.8.1'
7471
androidTestImplementation "com.android.support:support-annotations:$SUPPORT_LIB_VERSION"
75-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2-alpha1'
72+
androidTestImplementation 'com.android.support.test:rules:1.0.2'
73+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
74+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
7675

7776
debugImplementation "com.squareup.leakcanary:leakcanary-android:$LEAK_CANARY"
7877
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$LEAK_CANARY"
@@ -87,8 +86,8 @@ android {
8786

8887
defaultConfig {
8988
applicationId 'fr.free.nrw.commons'
90-
versionCode 84
91-
versionName '2.7.1'
89+
versionCode 85
90+
versionName '2.7.2'
9291
setProperty("archivesBaseName", "app-commons-v$versionName-" + getBranchName())
9392

9493
minSdkVersion project.minSdkVersion
@@ -117,7 +116,7 @@ android {
117116
buildTypes {
118117
release {
119118
minifyEnabled false // See https://stackoverflow.com/questions/40232404/google-play-apk-and-android-studio-apk-usb-debug-behaving-differently - proguard.cfg modification alone insufficient.
120-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
119+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt', 'proguard-glide.txt'
121120
}
122121
debug {
123122
applicationIdSuffix ".debug"
@@ -129,7 +128,9 @@ android {
129128
flavorDimensions 'tier'
130129
productFlavors {
131130
prod {
131+
buildConfigField "String", "WIKIMEDIA_API_POTD", "\"https://commons.wikimedia.org/w/api.php?action=featuredfeed&feed=potd&feedformat=rss&language=en\""
132132
buildConfigField "String", "WIKIMEDIA_API_HOST", "\"https://commons.wikimedia.org/w/api.php\""
133+
buildConfigField "String", "WIKIDATA_API_HOST", "\"https://www.wikidata.org/w/api.php\""
133134
buildConfigField "String", "WIKIMEDIA_FORGE_API_HOST", "\"https://tools.wmflabs.org/\""
134135
buildConfigField "String", "IMAGE_URL_BASE", "\"https://upload.wikimedia.org/wikipedia/commons\""
135136
buildConfigField "String", "HOME_URL", "\"https://commons.wikimedia.org/wiki/\""
@@ -145,7 +146,9 @@ android {
145146

146147
beta {
147148
// What values do we need to hit the BETA versions of the site / api ?
149+
buildConfigField "String", "WIKIMEDIA_API_POTD", "\"https://commons.wikimedia.org/w/api.php?action=featuredfeed&feed=potd&feedformat=rss&language=en\""
148150
buildConfigField "String", "WIKIMEDIA_API_HOST", "\"https://commons.wikimedia.beta.wmflabs.org/w/api.php\""
151+
buildConfigField "String", "WIKIDATA_API_HOST", "\"https://www.wikidata.org/w/api.php\""
149152
buildConfigField "String", "WIKIMEDIA_FORGE_API_HOST", "\"https://tools.wmflabs.org/\""
150153
buildConfigField "String", "IMAGE_URL_BASE", "\"https://upload.beta.wmflabs.org/wikipedia/commons\""
151154
buildConfigField "String", "HOME_URL", "\"https://commons.wikimedia.beta.wmflabs.org/wiki/\""

app/libs/java-json.jar

82.7 KB
Binary file not shown.

app/proguard-glide.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-keep public class * implements com.bumptech.glide.module.GlideModule
2+
-keep public class * extends com.bumptech.glide.module.AppGlideModule
3+
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
4+
**[] $VALUES;
5+
public *;
6+
}
7+
8+
# for DexGuard only
9+
-keepresourcexmlelements manifest/application/meta-data@value=GlideModule

app/proguard-rules.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
-dontobfuscate
22
-keep class org.apache.http.** { *; }
33
-dontwarn org.apache.http.**
4-
-keep class fr.free.nrw.commons.upload.MwVolleyApi$Page {*;}
54
-keep class android.support.v7.widget.ShareActionProvider { *; }

app/quality.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ task checkstyle(type: Checkstyle) {
1818
reports {
1919
html {
2020
enabled true
21-
destination "${project.buildDir}/reports/checkstyle/checkstyle.html"
21+
destination file("${project.buildDir}/reports/checkstyle/checkstyle.html")
2222
}
2323
}
2424
}
@@ -36,10 +36,10 @@ task pmd(type: Pmd) {
3636
xml.enabled = false
3737
html.enabled = true
3838
xml {
39-
destination "${project.buildDir}/reports/pmd/pmd.xml"
39+
destination file("${project.buildDir}/reports/pmd/pmd.xml")
4040
}
4141
html {
42-
destination "${project.buildDir}/reports/pmd/pmd.html"
42+
destination file("${project.buildDir}/reports/pmd/pmd.html")
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)