Skip to content

Commit

Permalink
New intermediate release 0.6.16.1 (F-Droid pubblication)
Browse files Browse the repository at this point in the history
Improved search field #346
  • Loading branch information
fast4x committed Jan 8, 2024
1 parent c5ef2e5 commit ef1b516
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 24 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId = "it.fast4x.rimusic"
minSdk = 21
targetSdk = 33
versionCode = 11
versionName = "0.6.16"
versionCode = 12
versionName = "0.6.16.1"
buildConfigField("String", "VERSION_NAME", "\"$versionName\"")
}

Expand Down Expand Up @@ -122,7 +122,7 @@ dependencies {

implementation("com.github.therealbush:translator:1.0.2")

implementation("androidx.hilt:hilt-navigation-fragment:1.0.0")
//implementation("androidx.hilt:hilt-navigation-fragment:1.0.0")

implementation("io.github.gautamchibde:audiovisualizer:2.2.7")

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/kotlin/it/vfsfitvnm/vimusic/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ import androidx.media3.common.util.Log
import androidx.media3.common.util.UnstableApi
import com.valentinilk.shimmer.LocalShimmerTheme
import com.valentinilk.shimmer.defaultShimmerTheme
import dagger.hilt.android.AndroidEntryPoint
//import dagger.hilt.android.AndroidEntryPoint
import it.vfsfitvnm.compose.persist.PersistMap
import it.vfsfitvnm.compose.persist.PersistMapOwner
import it.vfsfitvnm.innertube.Innertube
Expand Down Expand Up @@ -134,7 +134,7 @@ import org.json.JSONException
import java.io.File


@AndroidEntryPoint
//@AndroidEntryPoint
@UnstableApi
class MainActivity : AppCompatActivity(), PersistMapOwner {

Expand Down
13 changes: 0 additions & 13 deletions app/src/main/kotlin/it/vfsfitvnm/vimusic/service/PlayerService.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package it.vfsfitvnm.vimusic.service

import android.annotation.SuppressLint
import android.app.Activity
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
Expand All @@ -28,15 +27,10 @@ import android.net.Uri
import android.os.Bundle
import android.os.Handler
import android.text.format.DateUtils
import android.util.Log
import androidx.annotation.OptIn
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.snapshotFlow
import androidx.compose.ui.platform.LocalContext
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextCompat
import androidx.core.content.ContextCompat.startForegroundService
Expand Down Expand Up @@ -76,7 +70,6 @@ import androidx.media3.exoplayer.mediacodec.MediaCodecSelector
import androidx.media3.exoplayer.source.DefaultMediaSourceFactory
import androidx.media3.exoplayer.source.MediaSource
import androidx.media3.extractor.DefaultExtractorsFactory
import dagger.hilt.android.qualifiers.ApplicationContext
import it.vfsfitvnm.innertube.Innertube
import it.vfsfitvnm.innertube.models.NavigationEndpoint
import it.vfsfitvnm.innertube.models.bodies.PlayerBody
Expand All @@ -88,7 +81,6 @@ import it.vfsfitvnm.vimusic.enums.AudioQualityFormat
import it.vfsfitvnm.vimusic.enums.ExoPlayerDiskCacheMaxSize
import it.vfsfitvnm.vimusic.enums.ExoPlayerMinTimeForEvent
import it.vfsfitvnm.vimusic.models.Event
import it.vfsfitvnm.vimusic.models.Format
import it.vfsfitvnm.vimusic.models.QueuedMediaItem
import it.vfsfitvnm.vimusic.models.Song
import it.vfsfitvnm.vimusic.query
Expand All @@ -99,11 +91,9 @@ import it.vfsfitvnm.vimusic.utils.RingBuffer
import it.vfsfitvnm.vimusic.utils.TimerJob
import it.vfsfitvnm.vimusic.utils.YouTubeRadio
import it.vfsfitvnm.vimusic.utils.activityPendingIntent
import it.vfsfitvnm.vimusic.utils.asMediaItem
import it.vfsfitvnm.vimusic.utils.audioQualityFormatKey
import it.vfsfitvnm.vimusic.utils.broadCastPendingIntent
import it.vfsfitvnm.vimusic.utils.closebackgroundPlayerKey
import it.vfsfitvnm.vimusic.utils.downloadedStateMedia
import it.vfsfitvnm.vimusic.utils.exoPlayerCustomCacheKey
import it.vfsfitvnm.vimusic.utils.exoPlayerDiskCacheMaxSizeKey
import it.vfsfitvnm.vimusic.utils.exoPlayerMinTimeForEventKey
Expand Down Expand Up @@ -133,7 +123,6 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.StateFlow
Expand All @@ -153,8 +142,6 @@ import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.withContext
import okhttp3.internal.format
import okhttp3.internal.notify
import java.io.File
import kotlin.math.roundToInt
import kotlin.system.exitProcess
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.WindowInsetsSides
import androidx.compose.foundation.layout.asPaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.only
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
Expand All @@ -22,6 +23,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.ExperimentalTextApi
Expand Down Expand Up @@ -105,12 +107,14 @@ fun LocalSongSearch(
BasicTextField(
value = textFieldValue,
onValueChange = onTextFieldValueChanged,
textStyle = typography.xxl.medium.align(TextAlign.End),
textStyle = typography.xxl.medium.align(TextAlign.Center),
singleLine = true,
maxLines = 1,
keyboardOptions = KeyboardOptions(imeAction = ImeAction.Done),
cursorBrush = SolidColor(colorPalette.text),
decorationBox = decorationBox
decorationBox = decorationBox,
modifier = Modifier
.fillMaxWidth()
)
},
actionsContent = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package it.vfsfitvnm.vimusic.ui.screens.search

import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
Expand Down Expand Up @@ -33,6 +35,7 @@ import androidx.compose.ui.draw.paint
import androidx.compose.ui.draw.rotate
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.platform.LocalContext
Expand All @@ -56,6 +59,7 @@ import it.vfsfitvnm.vimusic.models.SearchQuery
import it.vfsfitvnm.vimusic.query
import it.vfsfitvnm.vimusic.ui.components.themed.FloatingActionsContainerWithScrollToTop
import it.vfsfitvnm.vimusic.ui.components.themed.Header
import it.vfsfitvnm.vimusic.ui.components.themed.HeaderWithIcon
import it.vfsfitvnm.vimusic.ui.components.themed.SecondaryTextButton
import it.vfsfitvnm.vimusic.ui.styling.LocalAppearance
import it.vfsfitvnm.vimusic.utils.align
Expand Down Expand Up @@ -139,7 +143,7 @@ fun OnlineSearch(
BasicTextField(
value = textFieldValue,
onValueChange = onTextFieldValueChanged,
textStyle = typography.xxl.medium.align(TextAlign.End),
textStyle = typography.xxl.medium.align(TextAlign.Center),
singleLine = true,
maxLines = 1,
keyboardOptions = KeyboardOptions(imeAction = ImeAction.Search),
Expand All @@ -154,6 +158,7 @@ fun OnlineSearch(
decorationBox = decorationBox,
modifier = Modifier
.focusRequester(focusRequester)
.fillMaxWidth()
)
},
actionsContent = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.text.BasicText
import androidx.compose.runtime.Composable
Expand All @@ -15,10 +17,12 @@ import androidx.compose.runtime.saveable.rememberSaveableStateHolder
import androidx.compose.ui.Alignment
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.ExperimentalTextApi
import androidx.compose.ui.text.TextRange
import androidx.compose.ui.text.input.TextFieldValue
import androidx.compose.ui.unit.dp
import androidx.media3.common.util.UnstableApi
import it.vfsfitvnm.compose.persist.PersistMapCleanup
import it.vfsfitvnm.compose.routing.RouteHandler
Expand Down Expand Up @@ -70,12 +74,13 @@ fun SearchScreen(
enter = fadeIn(tween(300)),
exit = fadeOut(tween(300)),
modifier = Modifier
.align(Alignment.CenterEnd)
.align(Alignment.Center)
) {
BasicText(
text = stringResource(R.string.enter_a_name),
maxLines = 1,
style = LocalAppearance.current.typography.xxl.secondary
style = LocalAppearance.current.typography.xxl.secondary,

)
}

Expand Down
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

Log completed at
https://github.com/fast4x/RiMusic/releases/tag/v0.6.16.1
2 changes: 1 addition & 1 deletion updatedVersion/updatedVersion.ver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.16
0.6.16.1

0 comments on commit ef1b516

Please sign in to comment.