Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 0646f85

Browse files
Merge pull request #175 from Pocket/beta
8.32.1 Production
2 parents d31b7be + a6e4c40 commit 0646f85

37 files changed

+430
-309
lines changed

.java-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17
1+
21

CREDITS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Many thanks for your contributions and the years spent working together!
99
* Mike Herbig
1010
* John Oberhauser
1111
* Devota Aabel
12-
* Daniel Brooks
12+
* [@bassrock](https://github.com/bassrock)
1313
* Tim Choh
1414
* Thomas Ezan
1515
* James Yopp

Pocket/build.gradle.kts

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ plugins {
1515
}
1616

1717
val versionMajor = 8 // Max value of 200
18-
val versionMinor = 31 // Max of two digits
19-
val versionPatch = 0 // Max of two digits
18+
val versionMinor = 32 // Max of two digits
19+
val versionPatch = 1 // Max of two digits
2020
val versionBuild = 0 // Max of three digits
2121

2222
// See usage and more details below, but this produces version numbers like 6.2.4.1 and codes like 60204001
@@ -63,30 +63,15 @@ android {
6363
versionName = "$versionMajor.$versionMinor.$versionPatch.$versionBuild"
6464

6565
vectorDrawables.useSupportLibrary = true // https://medium.com/@chrisbanes/appcompat-v23-2-age-of-the-vectors-91cbafa87c88#.m9i38hx27
66-
resourceConfigurations.addAll(
67-
arrayOf(
68-
"de",
69-
"es",
70-
"es-rES",
71-
"fr",
72-
"fr-rCA",
73-
"it",
74-
"ja",
75-
"ko",
76-
"nl",
77-
"pl",
78-
"pt",
79-
"pt-rBR",
80-
"ru",
81-
"zh",
82-
"zh-rCN",
83-
"zh-rTW"
84-
)
85-
)
8666

8767
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
8868
}
8969

70+
androidResources {
71+
localeFilters += listOf("de", "es", "es-rES", "fr", "fr-rCA", "it", "ja", "ko", "nl", "pl", "pt", "pt-rBR", "ru", "zh", "zh-rCN", "zh-rTW")
72+
generateLocaleConfig = true
73+
}
74+
9075
flavorDimensions.add(FlavorDimensions.TARGET)
9176
productFlavors {
9277
// Development
@@ -346,4 +331,12 @@ dependencies {
346331
implementation(libs.sentry.okhttp)
347332
}
348333

334+
kapt {
335+
arguments {
336+
arg("dagger.fastInit", "enabled")
337+
arg("dagger.useBindingGraphFix", "ENABLED")
338+
arg("dagger.ignoreProvisionKeyWildcards", "ENABLED")
339+
}
340+
}
341+
349342
registerCopyMergedManifestTask()

Pocket/merged_manifests/playUnsignedRelease/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
package="com.ideashower.readitlater.pro"
44
android:installLocation="auto"
55
android:targetSandboxVersion="2"
6-
android:versionCode="83100000"
7-
android:versionName="8.31.0.0" >
6+
android:versionCode="83201000"
7+
android:versionName="8.32.1.0" >
88

99
<uses-sdk
1010
android:minSdkVersion="23"
@@ -84,7 +84,7 @@
8484
android:hardwareAccelerated="true"
8585
android:icon="@mipmap/ic_launcher"
8686
android:label="@string/nm_icon"
87-
android:localeConfig="@xml/locale_config"
87+
android:localeConfig="@xml/_generated_res_locale_config"
8888
android:networkSecurityConfig="@xml/network_security_config"
8989
android:theme="@style/Theme.PocketDefault" >
9090

Pocket/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
android:icon="@mipmap/ic_launcher"
5858
android:label="@string/nm_icon"
5959
android:theme="@style/Theme.PocketDefault"
60-
android:localeConfig="@xml/locale_config"
6160
android:networkSecurityConfig="@xml/network_security_config">
6261

6362
<!-- Declaring support for larger aspect ratios than the default 1.86 (including Galaxy S8). see https://android-developers.googleblog.com/2017/03/update-your-app-to-take-advantage-of.html -->

Pocket/src/main/java/com/pocket/app/App.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public void onCreate() {
185185
"Help with Pocket",
186186
message,
187187
true, true,
188-
new ErrorReport(t),
188+
new ErrorReport(t, message),
189189
null));
190190

191191
// Note: Recompile and Reverse Engineer Detection is currently hidden in Assets.start():
@@ -276,9 +276,9 @@ public static App from(Context context) {
276276
/**
277277
* Convenience method for getting a string resource.
278278
*
279-
* @param id
280279
* @deprecated access from a context you get in a constructor or parameter, avoid static access
281280
*/
281+
@Deprecated
282282
public static String getStringResource(int id) {
283283
if (id == 0) {
284284
return null;

Pocket/src/main/java/com/pocket/app/home/Home.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Home {
1919
corpusRecommendationId: String?,
2020
)
2121
fun onSeeAllRecommendationsClicked(
22-
slateId: String,
22+
index: Int,
2323
slateTitle: String
2424
)
2525
fun onSaveClicked(url: String, isSaved: Boolean, corpusRecommendationId: String?)
@@ -70,7 +70,7 @@ class Home {
7070
data object GoToMyList : Event()
7171

7272
data class GoToSlateDetails(
73-
val slateId: String,
73+
val index: Int,
7474
) : Event()
7575

7676
data class GoToTopicDetails(

Pocket/src/main/java/com/pocket/app/home/HomeFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class HomeFragment : AbsPocketFragment() {
143143
}
144144
is Home.Event.GoToSlateDetails -> {
145145
findNavController().navigateSafely(
146-
HomeFragmentDirections.goToSlateDetails(event.slateId)
146+
HomeFragmentDirections.goToSlateDetails(event.index)
147147
)
148148
}
149149
is Home.Event.GoToTopicDetails -> {

Pocket/src/main/java/com/pocket/app/home/HomeViewModel.kt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ class HomeViewModel @Inject constructor(
202202
// Report and filter out.
203203
errorHandler.reportOnProductionOrThrow(RuntimeException(
204204
"Slate is empty: " + listOf(
205-
"id = ${slate.id}",
206205
"title = ${slate.title}",
207206
"locale = $localeString",
208207
)
@@ -287,9 +286,9 @@ class HomeViewModel @Inject constructor(
287286
)
288287
}
289288

290-
override fun onSeeAllRecommendationsClicked(slateId: String, slateTitle: String) {
289+
override fun onSeeAllRecommendationsClicked(index: Int, slateTitle: String) {
291290
tracker.track(HomeEvents.slateSeeAllClicked(slateTitle = slateTitle))
292-
_events.tryEmit(Home.Event.GoToSlateDetails(slateId))
291+
_events.tryEmit(Home.Event.GoToSlateDetails(index))
293292
}
294293

295294
override fun onTopicClicked(topicId: String, topicTitle: String) {
@@ -380,10 +379,7 @@ class HomeViewModel @Inject constructor(
380379
val title: String?,
381380
val subheadline: String?,
382381
val recommendations: List<RecommendationUiState>,
383-
) {
384-
// Exclude slate id from `.equals()` etc., because it's not stable.
385-
lateinit var slateId: String
386-
}
382+
)
387383

388384
private fun DomainSlate.toRecommendationSlateUiState(
389385
stringLoader: StringLoader,
@@ -394,9 +390,7 @@ class HomeViewModel @Inject constructor(
394390
recommendations = recommendations
395391
.map { it.toRecommendationUiState(stringLoader) }
396392
.take(recommendationsPerSlate)
397-
).apply {
398-
slateId = id
399-
}
393+
)
400394

401395

402396
data class TopicUiState(

Pocket/src/main/java/com/pocket/app/home/details/slates/SlateDetailsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SlateDetailsFragment : DetailsFragment() {
3939

4040
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
4141
super.onViewCreated(view, savedInstanceState)
42-
viewModel.onInitialized(args.slateId)
42+
viewModel.onInitialized(args.index)
4343
}
4444

4545
override fun goToReader(event: DetailsViewModel.Event.GoToReader) {

0 commit comments

Comments
 (0)