-
-
Notifications
You must be signed in to change notification settings - Fork 237
Deprecated features fix #3033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Deprecated features fix #3033
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget | |||||||||||||||
|
|
||||||||||||||||
| plugins { | ||||||||||||||||
| alias(libs.plugins.com.android.application) | ||||||||||||||||
| alias(libs.plugins.org.jetbrains.kotlin.android) | ||||||||||||||||
| alias(libs.plugins.org.jetbrains.kotlin.plugin.compose) | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
|
|
@@ -14,6 +13,9 @@ kotlin { | |||||||||||||||
| android { | ||||||||||||||||
| namespace = "protect.card_locker" | ||||||||||||||||
| compileSdk = 36 | ||||||||||||||||
| 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")) | ||||||||||||||||
| } | ||||||||||||||||
|
Comment on lines
+16
to
+18
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 Lines 19 to 25 in 9121df1
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 :) |
||||||||||||||||
|
|
||||||||||||||||
| defaultConfig { | ||||||||||||||||
| applicationId = "me.hackerchick.catima" | ||||||||||||||||
|
|
@@ -25,8 +27,6 @@ android { | |||||||||||||||
| vectorDrawables.useSupportLibrary = true | ||||||||||||||||
| multiDexEnabled = true | ||||||||||||||||
|
|
||||||||||||||||
| resourceConfigurations += 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") | ||||||||||||||||
|
|
||||||||||||||||
| testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||||||||||||||||
|
|
||||||||||||||||
| buildConfigField("boolean", "showDonate", "true") | ||||||||||||||||
|
|
@@ -38,7 +38,7 @@ android { | |||||||||||||||
| release { | ||||||||||||||||
| isMinifyEnabled = true | ||||||||||||||||
| proguardFiles( | ||||||||||||||||
| getDefaultProguardFile("proguard-android.txt"), | ||||||||||||||||
| getDefaultProguardFile("proguard-android-optimize.txt"), | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this change for? |
||||||||||||||||
| "proguard-rules.pro" | ||||||||||||||||
| ) | ||||||||||||||||
| } | ||||||||||||||||
|
|
@@ -98,6 +98,7 @@ android { | |||||||||||||||
|
|
||||||||||||||||
| kotlin { | ||||||||||||||||
| compilerOptions { | ||||||||||||||||
| languageVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0 | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this change for? |
||||||||||||||||
| jvmTarget = JvmTarget.JVM_17 | ||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -518,7 +518,7 @@ class MainActivity : CatimaAppCompatActivity(), CardAdapterListener { | |
| intent.data | ||
| } | ||
| Intent.ACTION_SEND -> { | ||
| intent.getParcelableExtra(Intent.EXTRA_STREAM) | ||
| @Suppress("DEPRECATION") intent.getParcelableExtra(Intent.EXTRA_STREAM) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 :) |
||
| } | ||
| else -> { | ||
| Log.e(TAG, "Wrong action type to parse intent") | ||
|
|
@@ -815,7 +815,7 @@ class MainActivity : CatimaAppCompatActivity(), CardAdapterListener { | |
|
|
||
| private fun scaleScreen() { | ||
| val displayMetrics = DisplayMetrics() | ||
| windowManager.defaultDisplay.getMetrics(displayMetrics) | ||
| @Suppress("DEPRECATION") windowManager.defaultDisplay.getMetrics(displayMetrics) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 :) |
||
| val screenHeight = displayMetrics.heightPixels | ||
| val mediumSizePx = TypedValue.applyDimension( | ||
| TypedValue.COMPLEX_UNIT_DIP, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ | |
| <string name="importOptionFilesystemExplanation">Выберете файл в файловой системе</string> | ||
| <string name="importOptionFilesystemButton">Выбрать файл</string> | ||
| <string name="about">О приложении</string> | ||
| <string name="app_license">Авторское лево свободного программного обеспечения, лицензия GPLv3+</string> | ||
| <string name="app_license">Программное обеспечение, распространяемое по лицензии Copyleft (GPLv3+).</string> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove this commit. Language changes through Weblate only please. |
||
| <string name="about_title_fmt">О приложении <xliff:g id="app_name">%s</xliff:g></string> | ||
| <string name="debug_version_fmt">Версия: <xliff:g id="version">%s</xliff:g></string> | ||
| <string name="selectBarcodeTitle">Выбор штрих-кода</string> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,6 @@ | |
|
|
||
| plugins { | ||
| alias(libs.plugins.com.android.application) apply false | ||
| alias(libs.plugins.org.jetbrains.kotlin.android) apply false | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||
| } | ||
|
|
||
| allprojects { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,3 +15,12 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 | |
| # Android operating system, and which are packaged with your app's APK | ||
| # https://developer.android.com/topic/libraries/support-library/androidx-rn | ||
| android.useAndroidX=true | ||
| 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 | ||
|
Comment on lines
+18
to
+25
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why all these changes? |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,8 +52,7 @@ junit-junit = { group = "junit", name = "junit", version = "4.13.2" } | |
| org-robolectric-robolectric = { group = "org.robolectric", name = "robolectric", version = "4.16.1" } | ||
|
|
||
| [plugins] | ||
| com-android-application = { id = "com.android.application", version = "8.13.2" } | ||
| org-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version = "2.3.10" } | ||
|
Comment on lines
-55
to
-56
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||
| com-android-application = { id = "com.android.application", version = "9.0.1" } | ||
| org-jetbrains-kotlin-plugin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version = "2.3.10" } | ||
|
|
||
| [bundles] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,9 @@ pluginManagement { | |
| mavenCentral() | ||
| } | ||
| } | ||
| plugins { | ||
| id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0" | ||
| } | ||
|
Comment on lines
+8
to
+10
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this and why is it necessary? |
||
| dependencyResolutionManagement { | ||
| repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
| repositories { | ||
|
|
||
There was a problem hiding this comment.
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?