File tree 2 files changed +9
-9
lines changed
app/src/main/java/ru/nsk/kstatemachinesample/ui/main 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ class MainViewModel : ViewModel() {
118
118
}
119
119
120
120
fun reloadAmmo () {
121
- val state = machine.requireState(" Fire " ).requireState( Shooting .NAME ) as Shooting
121
+ val state = machine.requireState(Shooting .NAME ) as Shooting
122
122
state.reload()
123
123
}
124
124
}
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
buildscript {
3
- ext. kotlin_version = " 1.5.10 "
3
+ ext. kotlin_version = " 1.5.30 "
4
4
repositories {
5
5
google()
6
6
mavenCentral()
7
7
}
8
8
dependencies {
9
- classpath " com.android.tools.build:gradle:4.2.1 "
9
+ classpath " com.android.tools.build:gradle:4.2.2 "
10
10
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11
11
12
12
// NOTE: Do not place your application dependencies here; they belong
@@ -28,14 +28,14 @@ ext {
28
28
minSdkVersion = 23
29
29
30
30
// dependencies
31
- coreVersion = " 1.5 .0"
32
- appcompatVersion = " 1.3.0 "
33
- constraintlayoutVersion = " 2.0.4 "
31
+ coreVersion = " 1.6 .0"
32
+ appcompatVersion = " 1.3.1 "
33
+ constraintlayoutVersion = " 2.1.0 "
34
34
koinVersion = " 2.2.2"
35
35
lifecycleVersion = " 2.3.1"
36
- startupVersion = " 1.0 .0"
37
- materialVersion = " 1.3 .0"
38
- kstatemachineVersion = " 0.6.0 "
36
+ startupVersion = " 1.1 .0"
37
+ materialVersion = " 1.4 .0"
38
+ kstatemachineVersion = " 0.6.1 "
39
39
}
40
40
41
41
task clean (type : Delete ) {
You can’t perform that action at this time.
0 commit comments