Skip to content

Commit

Permalink
Update AGP, dependencies..
Browse files Browse the repository at this point in the history
  • Loading branch information
VegaBobo committed Oct 19, 2024
1 parent 2155ca3 commit 7ef6a7d
Show file tree
Hide file tree
Showing 12 changed files with 231 additions and 165 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You can get this app at Releases section.

This app parses Locale (java.util.Locale) from Locale.getAvailableLocales(), consequently, numerous locales are present in the app, the language list is huge, if someone want to improve that, feel free to send a PR, because this way is pretty slow and languages aren't filtered accurately.

### Usage
### Usage

Before using this app, you MUST install and start Shizuku, the way this app works makes Shizuku MANDATORY, after that, you should follow this steps:

Expand Down
14 changes: 6 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ plugins {
alias(libs.plugins.org.jetbrains.kotlin.android)
alias(libs.plugins.com.google.dagger.hilt)
alias(libs.plugins.com.mikepenz.aboutlibraries)
alias(libs.plugins.compose.compiler)
kotlin("kapt")
}

android {
namespace = "vegabobo.languageselector"
compileSdk = 33
compileSdk = 35

defaultConfig {
applicationId = "vegabobo.languageselector"
minSdk = 33
targetSdk = 33
targetSdk = 35
versionCode = 5
versionName = "1.04"

Expand All @@ -34,20 +35,17 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
kotlinOptions {
jvmTarget = "17"
jvmTarget = "21"
}
buildFeatures {
buildConfig = true
compose = true
aidl = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.4"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vegabobo.languageselector.ui.components

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.ArrowBack
import androidx.compose.material.icons.automirrored.outlined.ArrowBack
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.runtime.Composable
Expand All @@ -12,7 +12,7 @@ fun BackButton(
){
IconButton(onClick = { onClick() }) {
Icon(
imageVector = Icons.Outlined.ArrowBack,
imageVector = Icons.AutoMirrored.Outlined.ArrowBack,
contentDescription = "Back arrow"
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.outlined.OpenInNew
import androidx.compose.material.icons.outlined.Close
import androidx.compose.material.icons.outlined.OpenInNew
import androidx.compose.material.icons.outlined.Settings
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -122,7 +122,7 @@ fun AppInfoScreen(
QuickTextButton(
modifier = Modifier.weight(1f),
onClick = { appInfoVm.onClickOpen() },
icon = Icons.Outlined.OpenInNew,
icon = Icons.AutoMirrored.Outlined.OpenInNew,
text = stringResource(R.string.open)
)
QuickTextButton(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.ArrowBack
import androidx.compose.material.icons.automirrored.outlined.ArrowBack
import androidx.compose.material.icons.outlined.MoreVert
import androidx.compose.material.icons.outlined.Search
import androidx.compose.material3.DropdownMenu
Expand Down Expand Up @@ -95,7 +95,7 @@ fun SearchBar(
IconButton(onClick = { onClickBack() }) {
Icon(
contentDescription = "Back icon",
imageVector = Icons.Outlined.ArrowBack
imageVector = Icons.AutoMirrored.Outlined.ArrowBack
)
}
TextField(
Expand All @@ -104,7 +104,7 @@ fun SearchBar(
.clip(RoundedCornerShape(12.dp))
.weight(1f),
maxLines = 1,
colors = TextFieldDefaults.textFieldColors(
colors = TextFieldDefaults.colors(
focusedIndicatorColor = Color.Transparent,
disabledIndicatorColor = Color.Transparent,
unfocusedIndicatorColor = Color.Transparent
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ plugins {
alias(libs.plugins.com.android.library) apply false
alias(libs.plugins.com.google.dagger.hilt) apply false
alias(libs.plugins.com.mikepenz.aboutlibraries) apply false
alias(libs.plugins.compose.compiler) apply false
}
31 changes: 13 additions & 18 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
[versions]
aboutlibraries = "10.6.3"
hiddenapibypass = "4.3"
hilt = "2.46"
hilt-navigation-compose = "1.0.0"
material-icons-extended = "1.4.3"
navigation-compose = "2.5.3"
hilt = "2.49"
hilt-navigation-compose = "1.2.0"
material-icons-extended = "1.7.4"
navigation-compose = "2.8.3"
shizuku = "13.1.1"
com-android-application = "8.0.1"
org-jetbrains-kotlin-android = "1.8.10"
core-ktx = "1.10.0"
junit = "4.13.2"
androidx-test-ext-junit = "1.1.5"
espresso-core = "3.5.1"
lifecycle-runtime-ktx = "2.6.1"
activity-compose = "1.7.1"
compose-bom = "2023.05.00"
com-android-library = "8.0.1"
appcompat = "1.6.1"
material = "1.9.0"
com-android-application = "8.7.1"
org-jetbrains-kotlin-android = "2.0.0"
core-ktx = "1.13.1"
lifecycle-runtime-ktx = "2.8.6"
activity-compose = "1.9.3"
compose-bom = "2024.10.00"
com-android-library = "8.7.1"
material = "1.12.0"

[libraries]
aboutlibraries-core = { module = "com.mikepenz:aboutlibraries-core", version.ref = "aboutlibraries" }
Expand All @@ -39,14 +35,13 @@ ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
material3 = { group = "androidx.compose.material3", name = "material3" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }

[plugins]
com-android-application = { id = "com.android.application", version.ref = "com-android-application" }
org-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "org-jetbrains-kotlin-android" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "org-jetbrains-kotlin-android" }
com-android-library = { id = "com.android.library", version.ref = "com-android-library" }
com-google-dagger-hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
com-mikepenz-aboutlibraries = { id = "com.mikepenz.aboutlibraries.plugin", version.ref = "aboutlibraries" }
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Fri Apr 21 22:32:25 BRT 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 7ef6a7d

Please sign in to comment.