Skip to content

Commit

Permalink
Bump androidx.core:core-ktx from 1.13.1 to 1.15.0 (#729)
Browse files Browse the repository at this point in the history
* Bump androidx.core:core-ktx from 1.13.1 to 1.15.0

Bumps androidx.core:core-ktx from 1.13.1 to 1.15.0.

---
updated-dependencies:
- dependency-name: androidx.core:core-ktx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update to SDK API 35

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charlotte Van Petegem <[email protected]>
  • Loading branch information
dependabot[bot] and chvp authored Nov 2, 2024
1 parent db5d674 commit 0879301
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ plugins {

android {
namespace 'me.vanpetegem.accentor'
compileSdkVersion 34
compileSdkVersion 35
buildToolsVersion "34.0.0"
defaultConfig {
applicationId "me.vanpetegem.accentor"
minSdkVersion 26
targetSdkVersion 33
targetSdkVersion 35
versionCode 41
versionName "0.15.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down Expand Up @@ -81,7 +81,7 @@ dependencies {

// AndroidX core
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.core:core-ktx:1.15.0'

// AndroidX navigation
implementation "androidx.navigation:navigation-compose:2.8.3"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/me/vanpetegem/accentor/Accentor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class Accentor : Application(), ImageLoaderFactory {
applicationContext.packageManager.getPackageInfo(
packageName,
PackageManager.PackageInfoFlags.of(0),
).versionName
).versionName!!
} else {
applicationContext.packageManager.getPackageInfo(packageName, 0).versionName
applicationContext.packageManager.getPackageInfo(packageName, 0).versionName!!
}
userAgent = "Accentor/$version"
FuelManager.instance.baseHeaders = mapOf("User-Agent" to userAgent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.BackHandler
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
Expand Down Expand Up @@ -91,6 +92,7 @@ import me.vanpetegem.accentor.ui.preferences.PreferencesActivity
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
AccentorTheme {
Content()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.safeDrawingPadding
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
Expand Down Expand Up @@ -79,7 +80,7 @@ fun PlayerOverlay(

Box(
modifier =
Modifier.onSizeChanged { size ->
Modifier.safeDrawingPadding().onSizeChanged { size ->
totalHeight = size.height
anchoredDraggableState.updateAnchors(
DraggableAnchors {
Expand All @@ -89,7 +90,7 @@ fun PlayerOverlay(
)
},
) {
Box(modifier = Modifier.fillMaxSize().padding(bottom = if (showPlayer) 56.dp else 0.dp)) {
Box(modifier = Modifier.fillMaxSize().padding(bottom = if (showPlayer) 64.dp else 0.dp)) {
content()
}
if (showPlayer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.os.Bundle
import android.text.format.DateUtils
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
Expand Down Expand Up @@ -48,6 +49,7 @@ import me.vanpetegem.accentor.version
class PreferencesActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
AccentorTheme {
Content()
Expand Down
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
buildToolsVersion = "34.0.0";
composed = pkgs.androidenv.composeAndroidPackages {
buildToolsVersions = [ buildToolsVersion ];
platformVersions = [ "33" "34" ];
platformVersions = [ "35" ];
};
fhsEnv = pkgs.buildFHSUserEnv {
name = "android-sdk-env";
Expand Down Expand Up @@ -49,7 +49,7 @@
category = "tools";
help = "Build a signed APK";
command = ''
rm -f "$APK_DIR/"*
rm -rf "$APK_DIR/"*
gradle assembleRelease
"$BUILD_TOOLS_PATH/zipalign" -v -p 4 "$APK_DIR/app-release-unsigned.apk" "$APK_DIR/app-release-unsigned-aligned.apk"
Expand All @@ -62,7 +62,7 @@
category = "tools";
help = "Install a debug signed release APK";
command = ''
rm -f "$APK_DIR/"*
rm -rf "$APK_DIR/"*
gradle assembleRelease
"$BUILD_TOOLS_PATH/zipalign" -v -p 4 "$APK_DIR/app-release-unsigned.apk" "$APK_DIR/app-release-unsigned-aligned.apk"
echo android | "$BUILD_TOOLS_PATH/apksigner" sign --ks "$HOME/.android/debug.keystore" --out "$APK_DIR/app-release.apk" "$APK_DIR/app-release-unsigned-aligned.apk"
Expand Down

0 comments on commit 0879301

Please sign in to comment.