Skip to content

Commit 8c66b65

Browse files
committed
Apply code formatting and implement downgrade warnings
- Implement `DowngradeWarning` logic in the details presentation layer to alert users when attempting to install a version older than the one currently installed. - Add project-wide code reformatting across all modules, standardizing indentation, trailing commas, and import organization. - Enhance the search feature with clipboard link detection, introducing a `ClipboardBanner` and `DetectedLinksSection`. - Standardize repository interfaces and domain models in the `core` modules with consistent spacing and structure. - Refine the "Update All" progress tracking and app state management in `AppsViewModel`. - Improve the GitHub device authentication flow with better countdown logic and specific error recovery hints. - Update UI components across features to utilize `LocalTopbarLiquidState` and `LocalHomeTopBarLiquid` for consistent expressive styling.
1 parent 2bac18d commit 8c66b65

381 files changed

Lines changed: 10445 additions & 8888 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build-logic/convention/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ gradlePlugin {
7171
implementationClass = "RoomConventionPlugin"
7272
}
7373
}
74-
}
74+
}

build-logic/convention/src/main/kotlin/AndroidApplicationComposeConventionPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ class AndroidApplicationComposeConventionPlugin : Plugin<Project> {
1616
configureAndroidCompose(commonExtension)
1717
}
1818
}
19-
}
19+
}

build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,33 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
1414

1515
extensions.configure<ApplicationExtension> {
1616
namespace = "zed.rainxch.githubstore"
17-
compileSdk = libs.findVersion("projectCompileSdkVersion").get().toString().toInt()
17+
compileSdk =
18+
libs
19+
.findVersion("projectCompileSdkVersion")
20+
.get()
21+
.toString()
22+
.toInt()
1823

1924
defaultConfig {
2025
applicationId = libs.findVersion("projectApplicationId").get().toString()
21-
minSdk = libs.findVersion("projectMinSdkVersion").get().toString().toInt()
22-
targetSdk = libs.findVersion("projectTargetSdkVersion").get().toString().toInt()
23-
versionCode = libs.findVersion("projectVersionCode").get().toString().toInt()
26+
minSdk =
27+
libs
28+
.findVersion("projectMinSdkVersion")
29+
.get()
30+
.toString()
31+
.toInt()
32+
targetSdk =
33+
libs
34+
.findVersion("projectTargetSdkVersion")
35+
.get()
36+
.toString()
37+
.toInt()
38+
versionCode =
39+
libs
40+
.findVersion("projectVersionCode")
41+
.get()
42+
.toString()
43+
.toInt()
2444
versionName = libs.findVersion("projectVersionName").get().toString()
2545
}
2646
packaging {
@@ -35,7 +55,7 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
3555

3656
proguardFiles(
3757
getDefaultProguardFile("proguard-android-optimize.txt"),
38-
"proguard-rules.pro"
58+
"proguard-rules.pro",
3959
)
4060
}
4161
}
@@ -44,5 +64,4 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
4464
}
4565
}
4666
}
47-
48-
}
67+
}

build-logic/convention/src/main/kotlin/BuildKonfigConventionPlugin.kt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@ class BuildKonfigConventionPlugin : Plugin<Project> {
1818
packageName = target.pathToPackageName()
1919

2020
defaultConfigs {
21-
val localProps = Properties().apply {
22-
val file = rootProject.file("local.properties")
23-
if (file.exists()) file.inputStream().use { this.load(it) }
24-
}
21+
val localProps =
22+
Properties().apply {
23+
val file = rootProject.file("local.properties")
24+
if (file.exists()) file.inputStream().use { this.load(it) }
25+
}
2526

26-
val githubClientId = (localProps.getProperty("GITHUB_CLIENT_ID")
27-
?: "Ov23linTY28VFpFjFiI9").trim()
27+
val githubClientId =
28+
(
29+
localProps.getProperty("GITHUB_CLIENT_ID")
30+
?: "Ov23linTY28VFpFjFiI9"
31+
).trim()
2832

2933
val versionName = libs.findVersion("projectVersionName").get().toString()
3034

@@ -34,4 +38,4 @@ class BuildKonfigConventionPlugin : Plugin<Project> {
3438
}
3539
}
3640
}
37-
}
41+
}

build-logic/convention/src/main/kotlin/CmpApplicationConventionPlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class CmpApplicationConventionPlugin : Plugin<Project> {
1919
configureJvmTarget()
2020

2121
dependencies {
22-
"debugImplementation"(libs.findLibrary("androidx-compose-ui-tooling").get( ))
22+
"debugImplementation"(libs.findLibrary("androidx-compose-ui-tooling").get())
2323
}
2424
}
2525
}
26-
}
26+
}

build-logic/convention/src/main/kotlin/CmpFeatureConventionPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ class CmpFeatureConventionPlugin : Plugin<Project> {
3636
}
3737
}
3838
}
39-
}
39+
}

build-logic/convention/src/main/kotlin/CmpLibraryConventionPlugin.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@ class CmpLibraryConventionPlugin : Plugin<Project> {
2323
}
2424
}
2525
}
26-
27-
28-
}
26+
}

build-logic/convention/src/main/kotlin/KmpLibraryConventionPlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import zed.rainxch.githubstore.convention.pathToResourcePrefix
1111
class KmpLibraryConventionPlugin : Plugin<Project> {
1212
override fun apply(target: Project) {
1313
with(target) {
14-
with(pluginManager) {
14+
with(pluginManager) {
1515
apply("com.android.library")
1616
apply("org.jetbrains.kotlin.multiplatform")
1717
apply("org.jetbrains.kotlin.plugin.serialization")
@@ -32,4 +32,4 @@ class KmpLibraryConventionPlugin : Plugin<Project> {
3232
}
3333
}
3434
}
35-
}
35+
}

build-logic/convention/src/main/kotlin/RoomConventionPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ class RoomConventionPlugin : Plugin<Project> {
2525
}
2626
}
2727
}
28-
}
28+
}

build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/AndroidCompose.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import com.android.build.api.dsl.CommonExtension
44
import org.gradle.api.Project
55
import org.gradle.kotlin.dsl.dependencies
66

7-
fun Project.configureAndroidCompose(
8-
commonExtension: CommonExtension<*, *, *, *, *, *>
9-
) {
7+
fun Project.configureAndroidCompose(commonExtension: CommonExtension<*, *, *, *, *, *>) {
108
with(commonExtension) {
119
buildFeatures {
1210
compose = true
@@ -21,4 +19,4 @@ fun Project.configureAndroidCompose(
2119
"debugImplementation"(libs.findLibrary("androidx-compose-ui-tooling").get())
2220
}
2321
}
24-
}
22+
}

0 commit comments

Comments
 (0)