Skip to content

End of life notice #1014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ subprojects { project ->
allowInsecureProtocol true
}
maven { url "https://jitpack.io" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
jcenter()
}

Expand Down Expand Up @@ -212,6 +213,11 @@ subprojects { project ->
}
}
}
project.configurations.all {
resolutionStrategy.force "com.google.android.exoplayer:exoplayer:2.13.3"
resolutionStrategy.force "com.google.android.exoplayer:exoplayer-core:2.13.3"
resolutionStrategy.force "com.github.kittinunf.fuel:fuel-android:2.2.3"
}
}

/**
Expand Down
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ include ':simplified-ui-thread-api'
include ':simplified-viewer-api'
include ':simplified-viewer-audiobook'
include ':simplified-viewer-epub-readium2'
include ':simplified-viewer-pdf'
include ':simplified-viewer-spi'
include ':simplified-webview'
include ':simplified-metrics'
Expand Down
2 changes: 1 addition & 1 deletion simplified-app-simplye/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ POM_ARTIFACT_ID=org.librarysimplified.simplye.app
POM_DESCRIPTION=SimplyE (Application)
POM_NAME=org.librarysimplified.simplye.app
POM_PACKAGING=apk
VERSION_NAME=7.2.9
VERSION_NAME=7.2.10

# Skip this project unless the property `org.librarysimplified.drm.enabled=true`
# is also defined.
Expand Down
1 change: 0 additions & 1 deletion simplified-main/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ dependencies {
api project(":simplified-viewer-api")
api project(":simplified-viewer-audiobook")
api project(":simplified-viewer-epub-readium2")
api project(":simplified-viewer-pdf")
api project(":simplified-viewer-spi")

api libs.androidx.app.compat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ import android.app.ActionBar
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.ViewGroup
import android.view.WindowInsets
import android.widget.FrameLayout
import android.widget.LinearLayout
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.core.view.updateLayoutParams
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.commit
import androidx.lifecycle.ViewModelProvider
Expand Down Expand Up @@ -69,6 +76,18 @@ class MainActivity : AppCompatActivity(R.layout.main_host) {
this.supportActionBar?.hide()
}
}

val parent = findViewById<LinearLayout>(R.id.mainRoot)
ViewCompat.setOnApplyWindowInsetsListener(parent) { v, windowInsets ->
v.updateLayoutParams<ViewGroup.MarginLayoutParams> {
val insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
leftMargin = insets.left
bottomMargin = insets.bottom
rightMargin = insets.right
topMargin = insets.top
}
WindowInsetsCompat.CONSUMED
}
}

override fun getDefaultViewModelProviderFactory(): ViewModelProvider.Factory {
Expand Down
1 change: 1 addition & 0 deletions simplified-main/src/main/res/layout/main_host.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/mainRoot"
android:orientation="vertical">

<androidx.appcompat.widget.Toolbar
Expand Down
1 change: 0 additions & 1 deletion simplified-tests-sandbox/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ dependencies {
implementation project(":simplified-ui-thread-api")
implementation project(":simplified-viewer-api")
implementation project(":simplified-viewer-audiobook")
implementation project(":simplified-viewer-pdf")
implementation project(':simplified-ui-navigation-tabs')

implementation libs.androidx.app.compat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,9 @@ class AnnouncementsDialog : DialogFragment(R.layout.announcements_dialog) {
}

private fun reconfigureUI(announcementIndex: Int) {
val title =
requireContext().getString(
R.string.announcementTitle,
this.viewModel.account.provider.displayName,
announcementIndex + 1,
this.viewModel.announcements.size
)
val announcement =
this.viewModel.announcements[announcementIndex].content

this.title.text = title
this.content.text = announcement
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
android:layout_margin="16dp"
android:textSize="20sp"
android:textStyle="bold"
android:text="Important Update"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,14 @@ package org.nypl.simplified.ui.catalog

import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.text.TextUtils
import android.view.Gravity
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.view.*
import android.view.View.TEXT_ALIGNMENT_TEXT_END
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import android.widget.Button
import android.widget.LinearLayout
import android.widget.RadioButton
import android.widget.RadioGroup
import android.widget.Space
import android.widget.*
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.widget.AppCompatButton
import androidx.appcompat.widget.AppCompatTextView
Expand Down Expand Up @@ -59,6 +51,7 @@ import org.nypl.simplified.ui.catalog.withoutGroups.CatalogPagedAdapter
import org.nypl.simplified.ui.screen.ScreenSizeInformationType
import org.slf4j.LoggerFactory


/**
* A fragment displaying an OPDS feed.
*/
Expand Down Expand Up @@ -144,6 +137,12 @@ class CatalogFeedFragment : Fragment(), AgeGateDialog.BirthYearSelectedListener
binding = FeedBinding.inflate(inflater, container, false)
binding.viewModel = viewModel
binding.lifecycleOwner = viewLifecycleOwner

binding.eolNotice.setOnClickListener {
val browserIntent = Intent(Intent.ACTION_VIEW, Uri.parse("https://nypl.org/ebookhelp"))
startActivity(browserIntent)
}

return binding.root
}

Expand Down
23 changes: 22 additions & 1 deletion simplified-ui-catalog/src/main/res/layout/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@
type="org.nypl.simplified.ui.catalog.CatalogFeedViewModel" />
</data>

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>

<TextView
android:id="@+id/eolNotice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingBottom="16dp"
android:paddingStart="32dp"
android:paddingEnd="32dp"
android:gravity="center"
android:textColor="@android:color/white"
android:text="Please note: SimplyE will discontinue service in late August 2025. Learn more: nypl.org/ebookhelp"
android:background="#143661"
/>

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
Expand Down Expand Up @@ -50,5 +70,6 @@
/>

</FrameLayout>
</androidx.appcompat.widget.LinearLayoutCompat>

</layout>
</layout>
1 change: 0 additions & 1 deletion simplified-ui-catalog/src/main/res/layout/feed_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<RadioGroup
android:id="@+id/feedHeaderTabs"
android:layout_width="match_parent"
Expand Down
Loading