Skip to content

Deprecated features fix#3033

Draft
ross252004 wants to merge 3 commits intoCatimaLoyalty:mainfrom
ross252004:deprecatedFeaturesFix
Draft

Deprecated features fix#3033
ross252004 wants to merge 3 commits intoCatimaLoyalty:mainfrom
ross252004:deprecatedFeaturesFix

Conversation

@ross252004
Copy link

  • This commit fixes the deprecated Locale features (deprecated Locale constructor is changed with Locale Builder). I plan to keep working on other deprecated features to replace them with working ones.
  • Also, one change to Russian translate was made because it was not translated correctly.

@TheLastProject
Copy link
Member

Thanks, I'll try to have a look at this later, hopefully I have time next week.

For translation changes, please submit those through Weblate instead of by code as written in CONTRIBUTING.md. Using Weblate prevents merge conflicts in translations and ensures some basic quality checks are done.

@ross252004
Copy link
Author

Okay, got it. Will do.

- Fixed deprecated feature in build.gradle.kts app file called "resourceConfigigurations". Changed it to localeFilters feature.
- Fixed a few others deprecated features but not all
@ross252004
Copy link
Author

I just pushed another commit. Here are the new fix ups:

  • Fixed deprecated feature in build.gradle.kts app file called "resourceConfigigurations". Changed it to localeFilters feature.
  • Fixed a few others deprecated features but not all

Copy link
Member

@TheLastProject TheLastProject left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of different changes in this one MR, makes it hard to review honestly.

Please do one change per MR next time, so we can fix one thing and that fix isn't blocked by other changes and it's clear what is needed for what.

}
Intent.ACTION_SEND -> {
intent.getParcelableExtra(Intent.EXTRA_STREAM)
@Suppress("DEPRECATION") intent.getParcelableExtra(Intent.EXTRA_STREAM)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't suppress deprecations, I want it to be loud in the logs because it's wrong and needs fixing :)

private fun scaleScreen() {
val displayMetrics = DisplayMetrics()
windowManager.defaultDisplay.getMetrics(displayMetrics)
@Suppress("DEPRECATION") windowManager.defaultDisplay.getMetrics(displayMetrics)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't suppress deprecations, I want it to be loud in the logs because it's wrong and needs fixing :)

<string name="importOptionFilesystemButton">Выбрать файл</string>
<string name="about">О приложении</string>
<string name="app_license">Авторское лево свободного программного обеспечения, лицензия GPLv3+</string>
<string name="app_license">Программное обеспечение, распространяемое по лицензии Copyleft (GPLv3+).</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this commit. Language changes through Weblate only please.

Comment on lines +16 to +18
androidResources {
localeFilters.addAll(listOf("ar", "be", "bg", "bn", "bn-rIN", "bs", "cs", "da", "de", "el-rGR", "en", "eo", "es", "es-rAR", "et", "fa", "fi", "fr", "gl", "he-rIL", "hi", "hr", "hu", "in-rID", "is", "it", "ja", "ko", "lt", "lv", "nb-rNO", "nl", "oc", "peo", "pl", "pt", "pt-rBR", "pt-rPT", "ro-rRO", "ru", "sk", "sl", "sr", "sv", "ta", "tr", "uk", "vi", "zh-rCN", "zh-rTW"))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't merge this as-is, as it also needs changes in the

sed = [
"sed",
"-i",
f"s/resourceConfigurations .*/resourceConfigurations += listOf({res})/",
"app/build.gradle.kts"
]
subprocess.run(sed, check=True)
script managing locale.

Please try to only fix one issue per MR, so that I can merge the things not blocked by other changes :)

I think it may be best to make a MR for just the locale fix, that's a small easy fix I can easily test and merge :)

isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android.txt"),
getDefaultProguardFile("proguard-android-optimize.txt"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this change for?


plugins {
alias(libs.plugins.com.android.application)
alias(libs.plugins.org.jetbrains.kotlin.android)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to remove the Kotlin plugin? Is this best practice? Where is this documented?

Comment on lines -55 to -56
com-android-application = { id = "com.android.application", version = "8.13.2" }
org-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version = "2.3.10" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to remove the Kotlin plugin? Is this best practice? Where is this documented?


plugins {
alias(libs.plugins.com.android.application) apply false
alias(libs.plugins.org.jetbrains.kotlin.android) apply false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to remove the Kotlin plugin? Is this best practice? Where is this documented?

Comment on lines +18 to +25
android.defaults.buildfeatures.resvalues=true
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
android.enableAppCompileTimeRClass=false
android.usesSdkInManifest.disallowed=false
android.uniquePackageNames=false
android.dependency.useConstraints=true
android.r8.strictFullModeForKeepRules=false
android.r8.optimizedResourceShrinking=false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why all these changes?

Comment on lines +8 to +10
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this and why is it necessary?

@TheLastProject TheLastProject marked this pull request as draft February 26, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants