Skip to content

Commit 7bc2341

Browse files
Merge pull request #1014 from NYPL-Simplified/release/7.2.10-eol
End of life notice
2 parents d3a9026 + 3b49d3b commit 7bc2341

File tree

12 files changed

+61
-26
lines changed

12 files changed

+61
-26
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ subprojects { project ->
185185
allowInsecureProtocol true
186186
}
187187
maven { url "https://jitpack.io" }
188+
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
188189
jcenter()
189190
}
190191

@@ -212,6 +213,11 @@ subprojects { project ->
212213
}
213214
}
214215
}
216+
project.configurations.all {
217+
resolutionStrategy.force "com.google.android.exoplayer:exoplayer:2.13.3"
218+
resolutionStrategy.force "com.google.android.exoplayer:exoplayer-core:2.13.3"
219+
resolutionStrategy.force "com.github.kittinunf.fuel:fuel-android:2.2.3"
220+
}
215221
}
216222

217223
/**

settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ include ':simplified-ui-thread-api'
9999
include ':simplified-viewer-api'
100100
include ':simplified-viewer-audiobook'
101101
include ':simplified-viewer-epub-readium2'
102-
include ':simplified-viewer-pdf'
103102
include ':simplified-viewer-spi'
104103
include ':simplified-webview'
105104
include ':simplified-metrics'

simplified-app-simplye/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ POM_ARTIFACT_ID=org.librarysimplified.simplye.app
22
POM_DESCRIPTION=SimplyE (Application)
33
POM_NAME=org.librarysimplified.simplye.app
44
POM_PACKAGING=apk
5-
VERSION_NAME=7.2.9
5+
VERSION_NAME=7.2.10
66

77
# Skip this project unless the property `org.librarysimplified.drm.enabled=true`
88
# is also defined.

simplified-main/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ dependencies {
6868
api project(":simplified-viewer-api")
6969
api project(":simplified-viewer-audiobook")
7070
api project(":simplified-viewer-epub-readium2")
71-
api project(":simplified-viewer-pdf")
7271
api project(":simplified-viewer-spi")
7372

7473
api libs.androidx.app.compat

simplified-main/src/main/java/org/nypl/simplified/main/MainActivity.kt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ import android.app.ActionBar
44
import android.content.Intent
55
import android.net.Uri
66
import android.os.Bundle
7+
import android.view.ViewGroup
8+
import android.view.WindowInsets
9+
import android.widget.FrameLayout
10+
import android.widget.LinearLayout
711
import androidx.appcompat.app.AppCompatActivity
812
import androidx.appcompat.widget.Toolbar
13+
import androidx.core.view.ViewCompat
14+
import androidx.core.view.WindowInsetsCompat
15+
import androidx.core.view.updateLayoutParams
916
import androidx.fragment.app.FragmentManager
1017
import androidx.fragment.app.commit
1118
import androidx.lifecycle.ViewModelProvider
@@ -69,6 +76,18 @@ class MainActivity : AppCompatActivity(R.layout.main_host) {
6976
this.supportActionBar?.hide()
7077
}
7178
}
79+
80+
val parent = findViewById<LinearLayout>(R.id.mainRoot)
81+
ViewCompat.setOnApplyWindowInsetsListener(parent) { v, windowInsets ->
82+
v.updateLayoutParams<ViewGroup.MarginLayoutParams> {
83+
val insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
84+
leftMargin = insets.left
85+
bottomMargin = insets.bottom
86+
rightMargin = insets.right
87+
topMargin = insets.top
88+
}
89+
WindowInsetsCompat.CONSUMED
90+
}
7291
}
7392

7493
override fun getDefaultViewModelProviderFactory(): ViewModelProvider.Factory {

simplified-main/src/main/res/layout/main_host.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6+
android:id="@+id/mainRoot"
67
android:orientation="vertical">
78

89
<androidx.appcompat.widget.Toolbar

simplified-tests-sandbox/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ dependencies {
3333
implementation project(":simplified-ui-thread-api")
3434
implementation project(":simplified-viewer-api")
3535
implementation project(":simplified-viewer-audiobook")
36-
implementation project(":simplified-viewer-pdf")
3736
implementation project(':simplified-ui-navigation-tabs')
3837

3938
implementation libs.androidx.app.compat

simplified-ui-announcements/src/main/java/org/nypl/simplified/ui/announcements/AnnouncementsDialog.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,9 @@ class AnnouncementsDialog : DialogFragment(R.layout.announcements_dialog) {
5656
}
5757

5858
private fun reconfigureUI(announcementIndex: Int) {
59-
val title =
60-
requireContext().getString(
61-
R.string.announcementTitle,
62-
this.viewModel.account.provider.displayName,
63-
announcementIndex + 1,
64-
this.viewModel.announcements.size
65-
)
6659
val announcement =
6760
this.viewModel.announcements[announcementIndex].content
6861

69-
this.title.text = title
7062
this.content.text = announcement
7163
}
7264
}

simplified-ui-announcements/src/main/res/layout/announcements_dialog.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
android:layout_margin="16dp"
1414
android:textSize="20sp"
1515
android:textStyle="bold"
16+
android:text="Important Update"
1617
app:layout_constraintEnd_toEndOf="parent"
1718
app:layout_constraintStart_toStartOf="parent"
1819
app:layout_constraintTop_toTopOf="parent" />

simplified-ui-catalog/src/main/java/org/nypl/simplified/ui/catalog/CatalogFeedFragment.kt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,14 @@ package org.nypl.simplified.ui.catalog
22

33
import android.annotation.SuppressLint
44
import android.content.Context
5+
import android.content.Intent
6+
import android.net.Uri
57
import android.os.Bundle
68
import android.text.TextUtils
7-
import android.view.Gravity
8-
import android.view.LayoutInflater
9-
import android.view.Menu
10-
import android.view.MenuInflater
11-
import android.view.MenuItem
12-
import android.view.View
9+
import android.view.*
1310
import android.view.View.TEXT_ALIGNMENT_TEXT_END
14-
import android.view.ViewGroup
1511
import android.view.inputmethod.EditorInfo
16-
import android.widget.Button
17-
import android.widget.LinearLayout
18-
import android.widget.RadioButton
19-
import android.widget.RadioGroup
20-
import android.widget.Space
12+
import android.widget.*
2113
import androidx.appcompat.app.AlertDialog
2214
import androidx.appcompat.widget.AppCompatButton
2315
import androidx.appcompat.widget.AppCompatTextView
@@ -59,6 +51,7 @@ import org.nypl.simplified.ui.catalog.withoutGroups.CatalogPagedAdapter
5951
import org.nypl.simplified.ui.screen.ScreenSizeInformationType
6052
import org.slf4j.LoggerFactory
6153

54+
6255
/**
6356
* A fragment displaying an OPDS feed.
6457
*/
@@ -144,6 +137,12 @@ class CatalogFeedFragment : Fragment(), AgeGateDialog.BirthYearSelectedListener
144137
binding = FeedBinding.inflate(inflater, container, false)
145138
binding.viewModel = viewModel
146139
binding.lifecycleOwner = viewLifecycleOwner
140+
141+
binding.eolNotice.setOnClickListener {
142+
val browserIntent = Intent(Intent.ACTION_VIEW, Uri.parse("https://nypl.org/ebookhelp"))
143+
startActivity(browserIntent)
144+
}
145+
147146
return binding.root
148147
}
149148

0 commit comments

Comments
 (0)