Skip to content

Commit f90401e

Browse files
Merge pull request #3 from raheemadamboev/1.0.5
1.0.5
2 parents dcfedd9 + 9f954a2 commit f90401e

File tree

6 files changed

+37
-22
lines changed

6 files changed

+37
-22
lines changed

app/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
alias(libs.plugins.android)
35
alias(libs.plugins.kotlin)
@@ -25,8 +27,12 @@ android {
2527
targetCompatibility = JavaVersion.VERSION_17
2628
}
2729

28-
kotlinOptions {
29-
jvmTarget = libs.versions.jvm.target.get()
30+
kotlin {
31+
target {
32+
compilerOptions {
33+
jvmTarget = JvmTarget.JVM_17
34+
}
35+
}
3036
}
3137

3238
buildFeatures {
@@ -44,6 +50,7 @@ dependencies {
4450

4551
// timer flow
4652
implementation(projects.timerFlow)
53+
// implementation("com.github.raheemadamboev:timer-flow:1.0.5")
4754

4855
// compose
4956
implementation(platform(libs.compose))

app/src/main/java/xyz/teamgravity/timerflowdemo/MainActivity.kt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ import androidx.activity.enableEdgeToEdge
77
import androidx.compose.animation.core.animateFloatAsState
88
import androidx.compose.foundation.layout.Arrangement
99
import androidx.compose.foundation.layout.Column
10+
import androidx.compose.foundation.layout.WindowInsets
1011
import androidx.compose.foundation.layout.fillMaxSize
1112
import androidx.compose.foundation.layout.fillMaxWidth
13+
import androidx.compose.foundation.layout.padding
14+
import androidx.compose.foundation.layout.safeDrawing
1215
import androidx.compose.material3.LinearProgressIndicator
13-
import androidx.compose.material3.MaterialTheme
1416
import androidx.compose.material3.ProgressIndicatorDefaults
15-
import androidx.compose.material3.Surface
17+
import androidx.compose.material3.Scaffold
1618
import androidx.compose.material3.Text
1719
import androidx.compose.runtime.derivedStateOf
1820
import androidx.compose.runtime.getValue
@@ -31,10 +33,9 @@ class MainActivity : ComponentActivity() {
3133
enableEdgeToEdge()
3234
setContent {
3335
TimerFlowDemoTheme {
34-
Surface(
35-
modifier = Modifier.fillMaxSize(),
36-
color = MaterialTheme.colorScheme.background
37-
) {
36+
Scaffold(
37+
contentWindowInsets = WindowInsets.safeDrawing
38+
) { padding ->
3839
val timer = remember {
3940
Timer().apply {
4041
timerDuration = 6_000L
@@ -55,7 +56,9 @@ class MainActivity : ComponentActivity() {
5556
space = 16.dp,
5657
alignment = Alignment.CenterVertically
5758
),
58-
modifier = Modifier.fillMaxSize()
59+
modifier = Modifier
60+
.fillMaxSize()
61+
.padding(padding)
5962
) {
6063
Text(
6164
text = time.toString()

gradle/libs.versions.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
[versions]
22

3-
compose = "2025.05.01"
3+
compose = "2025.07.00"
44
compose-activity = "1.10.1"
5-
compose-lifecycle = "2.9.0"
5+
compose-lifecycle = "2.9.2"
66
core = "1.16.0"
77
coroutines = "1.10.2"
88

9-
android = "8.10.1"
10-
kotlin = "2.1.21"
9+
android = "8.12.0"
10+
kotlin = "2.2.0"
1111

1212
sdk-min = "21"
13-
sdk-compile = "35"
14-
sdk-target = "35"
15-
jvm-target = "17"
13+
sdk-compile = "36"
14+
sdk-target = "36"
1615

1716
[libraries]
1817

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Jun 02 01:45:20 UZT 2025
1+
#Sun Aug 03 14:50:31 UZT 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

timer-flow/build.gradle.kts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
alias(libs.plugins.library)
35
alias(libs.plugins.kotlin)
@@ -21,8 +23,12 @@ android {
2123
targetCompatibility = JavaVersion.VERSION_17
2224
}
2325

24-
kotlinOptions {
25-
jvmTarget = libs.versions.jvm.target.get()
26+
kotlin {
27+
target {
28+
compilerOptions {
29+
jvmTarget = JvmTarget.JVM_17
30+
}
31+
}
2632
}
2733

2834
packaging {
@@ -51,7 +57,7 @@ publishing {
5157
register<MavenPublication>("release") {
5258
groupId = "com.github.raheemadamboev"
5359
artifactId = "timer-flow"
54-
version = "1.0.4"
60+
version = "1.0.5"
5561

5662
afterEvaluate {
5763
from(components["release"])

timer-flow/src/main/java/xyz/teamgravity/timer_flow/Timer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Timer {
139139
}
140140

141141
///////////////////////////////////////////////////////////////////////////
142-
// MISC
142+
// Misc
143143
///////////////////////////////////////////////////////////////////////////
144144

145145
enum class TimerState {

0 commit comments

Comments
 (0)