Update libraries

Update libs to new versions, including the nav framework from 1.0.0 -> 2.3.4.
This commit is contained in:
OxygenCobalt
2021-03-20 19:54:41 -06:00
parent 66685350cb
commit 824ac56bfa
5 changed files with 15 additions and 11 deletions
+3 -6
View File
@@ -17,8 +17,6 @@ android {
buildFeatures {
dataBinding true
}
vectorDrawables.useSupportLibrary = true
}
buildTypes {
@@ -63,8 +61,8 @@ dependencies {
// General
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.activity:activity-ktx:1.3.0-alpha03'
implementation 'androidx.fragment:fragment-ktx:1.3.0'
implementation 'androidx.activity:activity-ktx:1.3.0-alpha04'
implementation 'androidx.fragment:fragment-ktx:1.3.1'
// Layout
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
@@ -73,7 +71,6 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
// Navigation
def navigation_version = "2.3.3"
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
@@ -90,7 +87,7 @@ dependencies {
// --- THIRD PARTY ---
// ExoPlayer
def exoplayer_version = "2.12.3"
def exoplayer_version = "2.13.2"
implementation "com.google.android.exoplayer:exoplayer-core:$exoplayer_version"
implementation "com.google.android.exoplayer:extension-mediasession:$exoplayer_version"
@@ -42,6 +42,7 @@ class MusicLoader(private val context: Context) {
linkGenres()
}
@Suppress("DEPRECATION")
private fun buildSelector() {
val blacklistDatabase = BlacklistDatabase.getInstance(context)
@@ -58,7 +58,6 @@ import org.oxycblt.auxio.ui.getSystemServiceSafe
*/
class PlaybackService : Service(), Player.EventListener, PlaybackStateManager.Callback, SettingsManager.Callback {
private val player: SimpleExoPlayer by lazy(::newPlayer)
private val playbackManager = PlaybackStateManager.getInstance()
private val settingsManager = SettingsManager.getInstance()
@@ -98,7 +98,7 @@ class BlacklistDialog : BottomSheetDialogFragment() {
folderChooser(
requireContext(),
initialDirectory = File(Environment.getExternalStorageDirectory().absolutePath),
initialDirectory = File(getRootPath()),
emptyTextRes = R.string.label_no_dirs
)
@@ -122,7 +122,7 @@ class BlacklistDialog : BottomSheetDialogFragment() {
// Due to how Auxio's navigation flow works, dont allow the main root directory
// to be excluded, as that would lead to the user being stuck at the "No Music Found"
// screen.
if (path == Environment.getExternalStorageDirectory().absolutePath) {
if (path == getRootPath()) {
getString(R.string.error_brick_dir).createToast(requireContext())
return
@@ -149,4 +149,9 @@ class BlacklistDialog : BottomSheetDialogFragment() {
exitProcess(0)
}
@Suppress("DEPRECATION")
private fun getRootPath(): String {
return Environment.getExternalStorageDirectory().absolutePath
}
}