File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ kt_javac_options(
9
9
name = "default_javac_options" ,
10
10
)
11
11
12
- KOTLIN_LANGUAGE_LEVEL = "2.1.0 "
12
+ KOTLIN_LANGUAGE_LEVEL = "2.1"
13
13
14
14
define_kt_toolchain (
15
15
name = "experimental_toolchain" ,
Original file line number Diff line number Diff line change 1
1
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
2
2
3
+ KOTLIN_TO_COMPOSE = {
4
+ "1.9.5" : "1.1.1" ,
5
+ "2.0.0" : "1.2.1" ,
6
+ "2.1.0" : "1.7.6" ,
7
+ }
8
+
3
9
# Setup Kotlin
4
10
http_archive (
5
11
name = "rules_kotlin" ,
@@ -34,10 +40,10 @@ maven_install(
34
40
"androidx.core:core-ktx:1.7.0" ,
35
41
"androidx.appcompat:appcompat:1.4.1" ,
36
42
"androidx.activity:activity-compose:1.4.0" ,
37
- "androidx.compose.material:material:{}" .format (versions .KOTLIN_CURRENT_COMPILER_RELEASE .version ),
38
- "androidx.compose.ui:ui:{}" .format (versions .KOTLIN_CURRENT_COMPILER_RELEASE .version ),
39
- "androidx.compose.ui:ui-tooling:{}" .format (versions .KOTLIN_CURRENT_COMPILER_RELEASE .version ),
40
- "androidx.compose.runtime:runtime:{}" .format (versions .KOTLIN_CURRENT_COMPILER_RELEASE .version ),
43
+ "androidx.compose.material:material:{}" .format (KOTLIN_TO_COMPOSE [ versions .KOTLIN_CURRENT_COMPILER_RELEASE .version ] ),
44
+ "androidx.compose.ui:ui:{}" .format (KOTLIN_TO_COMPOSE [ versions .KOTLIN_CURRENT_COMPILER_RELEASE .version ] ),
45
+ "androidx.compose.ui:ui-tooling:{}" .format (KOTLIN_TO_COMPOSE [ versions .KOTLIN_CURRENT_COMPILER_RELEASE .version ] ),
46
+ "androidx.compose.runtime:runtime:{}" .format (KOTLIN_TO_COMPOSE [ versions .KOTLIN_CURRENT_COMPILER_RELEASE .version ] ),
41
47
],
42
48
repositories = [
43
49
"https://maven.google.com" ,
You can’t perform that action at this time.
0 commit comments