File tree Expand file tree Collapse file tree 4 files changed +29
-5
lines changed
app/src/main/kotlin/com/skydoves/compose/effectsdemo
compose-effects-viewmodel Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,16 @@ import android.os.Bundle
19
19
import android.widget.Toast
20
20
import androidx.activity.ComponentActivity
21
21
import androidx.activity.compose.setContent
22
+ import androidx.compose.foundation.layout.padding
22
23
import androidx.compose.material3.Button
23
24
import androidx.compose.material3.Text
24
25
import androidx.compose.runtime.getValue
25
26
import androidx.compose.runtime.mutableIntStateOf
26
27
import androidx.compose.runtime.remember
27
28
import androidx.compose.runtime.setValue
29
+ import androidx.compose.ui.Modifier
28
30
import androidx.compose.ui.platform.LocalContext
31
+ import androidx.compose.ui.unit.dp
29
32
import com.skydoves.compose.effects.RememberedEffect
30
33
31
34
class MainActivity : ComponentActivity () {
@@ -40,7 +43,10 @@ class MainActivity : ComponentActivity() {
40
43
Toast .makeText(context, " Count: $count " , Toast .LENGTH_SHORT ).show()
41
44
}
42
45
43
- Button (onClick = { count++ }) {
46
+ Button (
47
+ modifier = Modifier .padding(20 .dp),
48
+ onClick = { count++ },
49
+ ) {
44
50
Text (" Count: $count " )
45
51
}
46
52
}
Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ kotlin {
47
47
iosSimulatorArm64()
48
48
macosX64()
49
49
macosArm64()
50
+ js(IR ) {
51
+ browser()
52
+ nodejs()
53
+ }
54
+ wasmJs {
55
+ browser()
56
+ binaries.library()
57
+ binaries.executable()
58
+ }
50
59
51
60
@Suppress(" OPT_IN_USAGE" )
52
61
applyHierarchyTemplate {
Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ kotlin {
47
47
iosSimulatorArm64()
48
48
macosX64()
49
49
macosArm64()
50
+ js(IR ) {
51
+ browser()
52
+ nodejs()
53
+ }
54
+ wasmJs {
55
+ browser()
56
+ binaries.library()
57
+ binaries.executable()
58
+ }
50
59
51
60
@Suppress(" OPT_IN_USAGE" )
52
61
applyHierarchyTemplate {
Original file line number Diff line number Diff line change 1
1
[versions ]
2
- agp = " 8.11.1 "
2
+ agp = " 8.12.0 "
3
3
jvmTarget = " 17"
4
4
androidxActivity = " 1.10.1"
5
- androidxComposeBom = " 2025.07 .00"
5
+ androidxComposeBom = " 2025.08 .00"
6
6
androidxCore = " 1.16.0"
7
7
androidxProfileinstaller = " 1.4.1"
8
8
androidxLifecycle = " 2.9.2"
9
9
androidxTestRunner = " 1.7.0"
10
10
androidxTestRules = " 1.7.0"
11
11
androidxJunit = " 1.3.0"
12
12
jetbrains-compose = " 1.8.2"
13
- lifecycleViewmodelCompose = " 2.9.1 "
13
+ lifecycleViewmodelCompose = " 2.9.2 "
14
14
nexusPlugin = " 0.34.0"
15
15
dokka = " 2.0.0"
16
- kotlin = " 2.2.0 "
16
+ kotlin = " 2.2.10 "
17
17
kotlinBinaryCompatibility = " 0.18.1"
18
18
spotless = " 6.21.0"
19
19
junit = " 4.13.2"
You can’t perform that action at this time.
0 commit comments