Skip to content

Commit

Permalink
chore: Raise targetSdk to 34 (Android 14) (#247)
Browse files Browse the repository at this point in the history
* chore: Raise targetSdk to 34 (Android 14)

* chore: Fix some warnings

* feat: Enable predictive back gesture
  • Loading branch information
svenjacobs authored Sep 14, 2023
1 parent af6e296 commit a3c02dd
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
6 changes: 4 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Léon - The URL Cleaner
~ Copyright (C) 2022 Sven Jacobs
~ Copyright (C) 2023 Sven Jacobs
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
Expand All @@ -21,12 +21,14 @@

<application
android:allowBackup="true"
android:enableOnBackInvokedCallback="true"
android:fullBackupOnly="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="false"
android:theme="@style/Theme.App">
android:theme="@style/Theme.App"
tools:targetApi="tiramisu">
<activity
android:name=".MainActivity"
android:exported="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ class MainScreenViewModel(
) {
sealed interface Result {

object Empty : Result
data object Empty : Result

data class Success(
val originalText: String,
val cleanedText: String,
val urls: ImmutableList<String>,
) : Result

object Error : Result
data object Error : Result
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Léon - The URL Cleaner
* Copyright (C) 2022 Sven Jacobs
* Copyright (C) 2023 Sven Jacobs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -31,14 +31,14 @@ sealed class Screen(
@StringRes val label: Int,
@StringRes val iconContentDescription: Int,
) {
object Main : Screen(
data object Main : Screen(
route = "main",
icon = Icons.Filled.Home,
label = R.string.screen_main,
iconContentDescription = R.string.screen_main,
)

object Settings : Screen(
data object Settings : Screen(
route = "settings",
icon = Icons.Filled.Settings,
label = R.string.screen_settings,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Léon - The URL Cleaner
* Copyright (C) 2022 Sven Jacobs
* Copyright (C) 2023 Sven Jacobs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

@file:Suppress("unused")

package com.svenjacobs.app.leon.ui.theme

import androidx.compose.ui.graphics.Color
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values-de/a11y.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Léon - The URL Cleaner
~ Copyright (C) 2021 Sven Jacobs
~ Copyright (C) 2023 Sven Jacobs
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
Expand All @@ -17,7 +17,6 @@
-->

<resources>
<string name="a11y_broom_icon">Darstellung eines Besens</string>
<string name="a11y_howto">Darstellung eines Smartphones, welche die Anwendung erläutert</string>
<string name="a11y_back_navigation">Icon um zurück zu navigieren</string>
</resources>
1 change: 0 additions & 1 deletion app/src/main/res/values-pl/a11y.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
-->

<resources>
<string name="a11y_broom_icon">Rysunek miotły</string>
<string name="a11y_howto">Obraz aplikacji wyjaśniającej na smartfonie</string>
<string name="a11y_back_navigation">Ikona do nawigacji wstecz</string>
</resources>
3 changes: 1 addition & 2 deletions app/src/main/res/values-ru/a11y.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Léon - The URL Cleaner
~ Copyright (C) 2022 Sven Jacobs
~ Copyright (C) 2023 Sven Jacobs
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
Expand All @@ -17,7 +17,6 @@
-->

<resources>
<string name="a11y_broom_icon">Изображение метлы</string>
<string name="a11y_howto">Изображение приложения, объясняющего работу на смартфоне</string>
<string name="a11y_back_navigation">Значок, который перемещает назад</string>
</resources>
3 changes: 1 addition & 2 deletions app/src/main/res/values/a11y.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Léon - The URL Cleaner
~ Copyright (C) 2021 Sven Jacobs
~ Copyright (C) 2023 Sven Jacobs
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
Expand All @@ -17,7 +17,6 @@
-->

<resources>
<string name="a11y_broom_icon">Depiction of a broom</string>
<string name="a11y_howto">Depiction of a smartphone explaining application</string>
<string name="a11y_back_navigation">Icon which navigates back</string>
</resources>
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Android.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

object Android {
const val minSdk = 21
const val targetSdk = 33
const val targetSdk = 34
const val compileSdk = 34
}

0 comments on commit a3c02dd

Please sign in to comment.