Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
865431a
Bump versionCode
sharvaniharan Apr 13, 2021
27be48c
Bump versionCode
sharvaniharan Apr 21, 2021
e7961c7
Merge branch 'master' into bumpVersionCode
sharvaniharan Apr 21, 2021
f835994
Bump versionCode
sharvaniharan Apr 21, 2021
c9dbb6c
Merge branch 'master' into bumpVersionCode
sharvaniharan Apr 21, 2021
69d0d96
Localisation updates from https://translatewiki.net. (#2345)
translatewiki Apr 23, 2021
5227732
Don't auto-mirror Search splash image. (#2351)
dbrant Apr 26, 2021
d6d5b18
Localisation updates from https://translatewiki.net.
translatewiki Apr 26, 2021
ca25011
Fix string.
dbrant Apr 26, 2021
b31f050
Merge pull request #2352 from wikimedia/twn
dbrant Apr 26, 2021
4aa74f3
Don't show Watchlist tooltip if the pageview came from Suggested Edit…
dbrant Apr 26, 2021
6ebf92e
Fix heuristics for Talk namespace appending and handling. (#2353)
dbrant Apr 26, 2021
6fb6942
Hygiene: remove unused class (#2357)
cooltey Apr 26, 2021
2558259
Periodic update of language list and static data.
dbrant Apr 27, 2021
13e518e
Update fragment-ktx to 1.3.3. (#2361)
dbrant Apr 27, 2021
9a0a3f4
Image Recommendations (#2133)
dbrant Apr 27, 2021
69e2af2
Remove unused stuff. (#2360)
dbrant Apr 27, 2021
39eedd2
Fix fetching of CSRF tokens for anonymous editing. (#2362)
dbrant Apr 27, 2021
9d00ff8
Don't check for IP block when not logged in. (#2359)
dbrant Apr 27, 2021
72551cf
Merge branch 'master' into bumpVersionCode
dbrant Apr 27, 2021
6887b8a
Bump versionCode
dbrant Apr 27, 2021
85b1516
Merge pull request #2363 from wikimedia/bumpVersionCode
dbrant Apr 27, 2021
cf1b192
Show correct license when editing descriptions in English. (#2365)
dbrant Apr 27, 2021
f565d58
Hygiene: remove unused resources (#2367)
cooltey Apr 28, 2021
302ce7b
Fix and improve tooltip sequencing on Main screen. (#2368)
dbrant Apr 28, 2021
f875175
Checkout submodules for alpha build.
dbrant Apr 28, 2021
fdfb875
Change icon and text color of ImgRecs faq link (#2370)
cooltey Apr 28, 2021
ec51372
Update Github action yml for branch specific APK build (#2371)
cooltey Apr 28, 2021
10abb8f
MEP: Send events immediately for testing (#2369)
mdholloway Apr 29, 2021
c43c8bc
Fix: apply UriUtil.resolveProtocolRelativeUrl() for externalLink in (…
cooltey Apr 29, 2021
3ac9b96
Bump versionCode
dbrant Apr 29, 2021
1b7cf13
Merge branch 'master' into bumpVersionCode
dbrant Apr 29, 2021
e3fe3ad
Merge pull request #2377 from wikimedia/bumpVersionCode
dbrant Apr 29, 2021
b51a7c2
MEP: Stop incorrectly expecting response for hasty requests. (#2378)
dbrant Apr 29, 2021
61e622f
Converted events java files to kotlin (#2333)
Arunm619 Apr 29, 2021
ccb031a
Convert PageCacher.java to Kotlin (#2380)
cooltey Apr 29, 2021
da37b32
Hygiene: remove unnecessary butterknife from Kotlin file (#2382)
cooltey Apr 30, 2021
f5aa578
Convert PageBackStackItem to Kotlin (#2376)
cooltey Apr 30, 2021
59d9f6a
Localisation updates from https://translatewiki.net.
translatewiki Apr 30, 2021
3021255
Merge pull request #2383 from wikimedia/twn
dbrant Apr 30, 2021
72b87ba
Convert Page.java to Kotlin (#2374)
cooltey Apr 30, 2021
37379b2
Tidy up MEP tests. (#2384)
dbrant Apr 30, 2021
36ddaa9
Kotlin conversion: ABTestFunnel, AppearanceChangeFunnel, AppLanguageS…
sharvaniharan Apr 30, 2021
44c36c7
Converted LoginActivity.java to kotlin (#2233)
gouri-panda Apr 30, 2021
b594c7a
Localisation updates from https://translatewiki.net.
translatewiki May 3, 2021
8158d46
Merge pull request #2390 from wikimedia/twn
dbrant May 3, 2021
38b5667
Follow up: LoginActivity Kotlin conversion (#2388)
cooltey May 3, 2021
a7dd971
Follow up: funnel classes Kotlin conversion (#2386)
cooltey May 3, 2021
b47a373
Make text selectable again in Image Detail view. (#2391)
dbrant May 3, 2021
2ed8f8c
Show unadulterated HTML errors. (#2385)
dbrant May 3, 2021
a9b7d51
Convert remaining DescriptionEdit classes to Kotlin (#2387)
cooltey May 3, 2021
f494545
Design tweak: update WikiArticleCard divider top margin (#2393)
cooltey May 4, 2021
23f1460
Explicitly check for edit rights when launching Edit activity. (#2392)
dbrant May 4, 2021
5f0a53c
Convert PageFragmentLoadState to Kotlin (#2389)
cooltey May 4, 2021
8e687be
Convert ReadingList database package to Kotlin (#2276)
cooltey May 4, 2021
b967d0d
Convert ResetPasswordActivity to Kotlin (#2394)
cooltey May 4, 2021
32f40b3
Follow-up to ResetPasswordActivity conversion. (#2396)
dbrant May 4, 2021
3094840
Make ReadingListDbHelper into an object class (#2397)
cooltey May 4, 2021
3ce79c8
Convert ToCHandler to Kotlin (#2399)
cooltey May 5, 2021
2b5f321
Remove italics from daily-goal counters. (#2402)
dbrant May 5, 2021
c095438
Convert ViewHideHandler to Kotlin (#2398)
cooltey May 5, 2021
fb6f400
Kotlin conversion: Rest of the Funnel classes (#2379)
sharvaniharan May 5, 2021
68eee38
Follow up: funnel classes Kotlin conversion (#2403)
cooltey May 5, 2021
b526d1b
Fix possible crash in SuggestedEditsFunnel after kotlin conversion. (…
dbrant May 6, 2021
45d9561
Correctly re-parse certain AbuseFilter responses. (#2408)
dbrant May 6, 2021
20a854f
Tweak: WikiArticleCardView design changes (#2407)
cooltey May 6, 2021
5d3ab51
Kotlin conversion: AccessibilityCardView and MainPageCardView (#2400)
sharvaniharan May 6, 2021
5ae462b
Allow pages in Draft: namespace to be editable. (#2406)
dbrant May 6, 2021
d163bd2
Kotlin Conversion: OnThisDayCardView (#2404)
sharvaniharan May 7, 2021
3ff8e78
Localisation updates from https://translatewiki.net. (#2412)
translatewiki May 7, 2021
a979eb1
Localisation updates from https://translatewiki.net.
translatewiki May 10, 2021
47fd531
Localisation updates from https://translatewiki.net.
translatewiki May 10, 2021
580c0d9
Update gradle plugins versions (#2409)
cooltey May 10, 2021
27283e8
Merge branch 'master' into twn
dbrant May 10, 2021
cb95e6d
Merge pull request #2418 from wikimedia/twn
dbrant May 10, 2021
2c4be37
Fix incorrect string format parameters.
dbrant May 10, 2021
66a3dcd
Convert LinkMovementMethodExt to Kotlin (#2372)
cooltey May 10, 2021
c084bbd
Convert PageContainerLongPressHandler to Kotlin (#2381)
cooltey May 10, 2021
39340ea
Convert feed view classes to Kotlin (#2401)
cooltey May 10, 2021
719685d
Convert EditSectionActivity to Kotlin. (#2416)
Isira-Seneviratne May 10, 2021
ac73675
Follow-up to EditSectionActivity conversion. (#2419)
dbrant May 10, 2021
745ac80
Bump versionCode (#2420)
cooltey May 10, 2021
7bbf39c
Fix: announcement card action container visibility (#2422)
cooltey May 10, 2021
a658499
Bump version code (#2423)
cooltey May 10, 2021
3bfacf6
Fix: don't set new card if it matches the old one (#2426)
cooltey May 11, 2021
2cf9ade
Fix buttons on Announcement dialog when shown over article. (#2427)
dbrant May 11, 2021
c309a5d
Fix face-transformed image alignment. (#2428)
dbrant May 11, 2021
a5ee9fe
Bump version code (#2429)
cooltey May 11, 2021
2d1fe1b
Convert ConfigureItemView to Kotlin (#2424)
cooltey May 12, 2021
c6db959
Convert NewsItemView to Kotlin (#2425)
cooltey May 12, 2021
e521620
Fix: possible crash when sending null to apiTitle in ReadingListPage(…
cooltey May 12, 2021
32c5159
Kotlin Conversion: OnThisDay related Views (#2414)
sharvaniharan May 12, 2021
ddbb79e
Localisation updates from https://translatewiki.net.
translatewiki May 13, 2021
cb2fa9e
Merge pull request #2438 from wikimedia/twn
dbrant May 13, 2021
9f97f3c
Bump version code (#2440)
cooltey May 13, 2021
b0b0e90
Convert additional Editing classes to kotlin. (#2421)
dbrant May 13, 2021
4d26549
Follow up: edit classes Kotlin conversion (#2441)
cooltey May 14, 2021
6873e1a
Fix: add correct anchor if editing the top section of a page (#2442)
cooltey May 14, 2021
2efb32f
Convert MostRead fragment and activity to Kotlin (#2430)
cooltey May 14, 2021
82c58f9
Convert News fragment and activity to Kotlin (#2431)
cooltey May 14, 2021
c903ecf
Fix: showing unique thumbnails in a proper order in LinkPreviewDialog…
cooltey May 14, 2021
2f145a1
Follow up: OnThisDayFragment conversion (#2435)
cooltey May 14, 2021
5e6e740
Localisation updates from https://translatewiki.net.
translatewiki May 17, 2021
563d688
Merge pull request #2447 from wikimedia/twn
dbrant May 17, 2021
8a6bacb
Localisation updates from https://translatewiki.net.
translatewiki May 24, 2021
11f1910
Merge pull request #2449 from wikimedia/twn
dbrant May 24, 2021
47dcd97
Convert UtcDate model to Kotlin (#2443)
trietbui85 May 24, 2021
4c497f8
Follow-up to UtcDate conversion.
dbrant May 24, 2021
c030977
Convert ConfigureFragment to Kotlin (#2444)
cooltey May 24, 2021
d532fc4
Funnel can be lateinit.
dbrant May 24, 2021
744d968
Update gradle to 4.2.1. (#2450)
dbrant May 24, 2021
2923c46
Update kotlin to 1.5.10. (#2451)
dbrant May 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
java-version: 1.8
- name: Check for missing qq strings
run: ./scripts/missing-qq.py
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Build, test, and lint
run: ./gradlew clean checkstyle ktlint assembleAlphaRelease lintAlphaRelease testAlphaRelease
- name: List
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/android_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Build, test, and lint
run: ./gradlew clean assembleAlphaRelease
- name: List
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "app/src/main/assets/imagerecs"]
path = app/src/main/assets/imagerecs
url = https://github.com/wikimedia/apps-android-wikipedia-imagerecs.git
2 changes: 0 additions & 2 deletions .sdk/licenses/android-sdk-license

This file was deleted.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ android {
applicationId 'org.wikipedia'
minSdkVersion 21
targetSdkVersion 30
versionCode 50353
versionCode 50359
testApplicationId 'org.wikipedia.test'
testInstrumentationRunner "org.wikipedia.WikipediaTestRunner"
vectorDrawables.useSupportLibrary = true
Expand Down Expand Up @@ -179,7 +179,7 @@ dependencies {
implementation "com.google.android.material:material:1.3.0"
implementation "androidx.core:core-ktx:1.3.2"
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation "androidx.fragment:fragment-ktx:1.3.2"
implementation "androidx.fragment:fragment-ktx:1.3.3"
implementation "androidx.palette:palette-ktx:1.0.0"
implementation "androidx.preference:preference-ktx:1.1.1"
implementation "androidx.recyclerview:recyclerview:1.2.0"
Expand Down
2 changes: 0 additions & 2 deletions app/lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<!-- Ignore the IconLocation issue in the given files -->
<issue id="IconLocation">
<!-- big images we don't want to duplicate multiple times: -->
<ignore path="res/drawable/lead_default.png" />
<ignore path="res/drawable/lead_default_dark.png" />
<ignore path="res/drawable/wp_wordmark.png" />
</issue>

Expand Down
4 changes: 4 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@
android:name=".suggestededits.SuggestedEditsImageTagEditActivity"
android:theme="@style/AppTheme.ActionBar" />

<activity
android:name=".suggestededits.ImageRecsOnboardingActivity"
android:theme="@style/AppTheme.ActionBar" />

<activity
android:name=".userprofile.ContributionsActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/assets/imagerecs
Submodule imagerecs added at 63b28b
26 changes: 0 additions & 26 deletions app/src/main/assets/mapstyle.json

This file was deleted.

1 change: 1 addition & 0 deletions app/src/main/java/org/wikipedia/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public final class Constants {
public static final int ACTIVITY_REQUEST_IMAGE_CAPTION_EDIT = 64;
public static final int ACTIVITY_REQUEST_IMAGE_TAGS_ONBOARDING = 65;
public static final int ACTIVITY_REQUEST_IMAGE_TAGS_EDIT = 66;
public static final int ACTIVITY_REQUEST_IMAGE_RECS_ONBOARDING = 67;

public static final String INTENT_RETURN_TO_MAIN = "returnToMain";
public static final String INTENT_FEATURED_ARTICLE_FROM_WIDGET = "featuredArticleFromWidget";
Expand Down
8 changes: 5 additions & 3 deletions app/src/main/java/org/wikipedia/LongPressHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import org.wikipedia.util.UriUtil.isValidPageLink

class LongPressHandler(view: View, private val historySource: Int, private val callback: LongPressMenu.Callback) : OnCreateContextMenuListener, OnTouchListener {
interface WebViewMenuCallback : LongPressMenu.Callback {
val wikiSite: WikiSite
val wikiSite: WikiSite?
val referrer: String?
}

Expand All @@ -47,8 +47,10 @@ class LongPressHandler(view: View, private val historySource: Int, private val c
if (isValidPageLink(uri)) {
var wikiSite = WikiSite(uri)
// the following logic keeps the correct language code if the domain has multiple variants (e.g. zh).
if (wikiSite.dbName() == (callback as WebViewMenuCallback).wikiSite.dbName() && wikiSite.languageCode() != callback.wikiSite.languageCode()) {
wikiSite = callback.wikiSite
(callback as WebViewMenuCallback).wikiSite?.run {
if (wikiSite.dbName() == dbName() && wikiSite.languageCode() != languageCode()) {
wikiSite = this
}
}
title = wikiSite.titleForInternalLink(uri.path)
referrer = callback.referrer
Expand Down
53 changes: 0 additions & 53 deletions app/src/main/java/org/wikipedia/analytics/ABTestFunnel.java

This file was deleted.

43 changes: 43 additions & 0 deletions app/src/main/java/org/wikipedia/analytics/ABTestFunnel.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package org.wikipedia.analytics

import org.json.JSONObject
import org.wikipedia.WikipediaApp
import org.wikipedia.settings.PrefsIoUtil
import java.util.*
import kotlin.random.Random

class ABTestFunnel internal constructor(private val abTestName: String, private val abTestGroupCount: Int) :
Funnel(WikipediaApp.getInstance(), SCHEMA_NAME, REV_ID, SAMPLE_LOG_ALL) {

// initialize the group if it hasn't been yet.
val aBTestGroup: Int
get() {
var group = PrefsIoUtil.getInt(AB_TEST_KEY_PREFIX + abTestName, -1)
if (group == -1) {
// initialize the group if it hasn't been yet.
group = Random(Int.MAX_VALUE).nextInt()
PrefsIoUtil.setInt(AB_TEST_KEY_PREFIX + abTestName, group)
}
return group % abTestGroupCount
}

private val isEnrolled = PrefsIoUtil.contains(AB_TEST_KEY_PREFIX + abTestName)

override fun preprocessSessionToken(eventData: JSONObject) {}
fun logGroupEvent(groupEventId: String) {
log(
"test_group", groupEventId
)
}

companion object {
private const val SCHEMA_NAME = "MobileWikiAppABTest"
private const val REV_ID = 19990870
private const val AB_TEST_KEY_PREFIX = "ab_test_"
const val GROUP_SIZE_2 = 2
const val GROUP_SIZE_3 = 3
const val GROUP_1 = 0
const val GROUP_2 = 1
const val GROUP_3 = 2
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package org.wikipedia.analytics

import org.json.JSONObject
import org.wikipedia.WikipediaApp

class AppLanguageSearchingFunnel(private val settingsSessionToken: String) :
TimedFunnel(WikipediaApp.getInstance(), SCHEMA_NAME, REV_ID, SAMPLE_LOG_ALL) {

fun logLanguageAdded(languageAdded: Boolean, languageCode: String?, searchString: String?) {
log(
"language_settings_token", settingsSessionToken,
"added", languageAdded,
"language", languageCode,
"search_string", searchString
)
}

fun logNoLanguageAdded(languageAdded: Boolean, searchString: String?) {
log(
"language_settings_token", settingsSessionToken,
"added", languageAdded,
"search_string", searchString
)
}

override fun preprocessSessionToken(eventData: JSONObject) {}

companion object {
private const val SCHEMA_NAME = "MobileWikiAppLanguageSearching"
private const val REV_ID = 18204518
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.wikipedia.analytics

import org.wikipedia.Constants.InvokeSource
import org.wikipedia.WikipediaApp

class AppLanguageSettingsFunnel : TimedFunnel(WikipediaApp.getInstance(), SCHEMA_NAME, REV_ID, SAMPLE_LOG_ALL) {

fun logLanguageSetting(source: InvokeSource, initialLanguageList: String, finalLanguageList: String,
interactionsCount: Int, searched: Boolean) {
log(
"source", source.getName(),
"initial", initialLanguageList,
"final", finalLanguageList,
"interactions", interactionsCount,
"searched", searched
)
}

companion object {
private const val SCHEMA_NAME = "MobileWikiAppLanguageSettings"
private const val REV_ID = 18113720
}
}

This file was deleted.

Loading