File tree Expand file tree Collapse file tree 4 files changed +28
-1
lines changed Expand file tree Collapse file tree 4 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,11 @@ build --define=android_dexmerger_tool=d8_dexmerger
5
5
build --define=android_incremental_dexing_tool=d8_dexbuilder
6
6
build --define=android_standalone_dexing_tool=d8_compat_dx
7
7
8
- common --enable_workspace=true --enable_bzlmod=false
8
+ common --enable_workspace=true --enable_bzlmod=false
9
+ common --noincompatible_enable_android_toolchain_resolution
10
+ build --platform_mappings=platform_mappings
11
+ build --fat_apk_cpu arm64-v8a
12
+ # Uncomment the below lines to build for x86
13
+ # build --fat_apk_cpu x86_64
14
+ build --android_crosstool_top=@androidndk//:toolchain
15
+ build --@rules_kotlin//kotlin/settings:jvm_emit_jdeps=False
Original file line number Diff line number Diff line change @@ -33,3 +33,11 @@ platform(
33
33
"@platforms//os:android" ,
34
34
],
35
35
)
36
+
37
+ platform (
38
+ name = "x86_64" ,
39
+ constraint_values = [
40
+ "@platforms//cpu:x86_64" ,
41
+ "@platforms//os:android" ,
42
+ ],
43
+ )
Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ KOTLIN_TO_COMPOSE = {
81
81
load ("@rules_jvm_external//:defs.bzl" , "maven_install" )
82
82
83
83
maven_install (
84
+ name = "maven" ,
84
85
artifacts = KOTLIN_TO_COMPOSE [KOTLINC_RELEASE .version ],
86
+ fetch_sources = True ,
85
87
maven_install_json = "//:maven_install-%s.json" % KOTLINC_RELEASE .version ,
86
88
repositories = [
87
89
"https://maven.google.com" ,
Original file line number Diff line number Diff line change
1
+ flags:
2
+ # Android
3
+ # Mostly, native code is compiled after the android_binary rule has run a transition to compile for that platform.
4
+ # We just detect the transition, which sets "Android configuration distinguisher", and then translate the CPU it set.
5
+ --Android configuration distinguisher=android
6
+ --cpu=arm64-v8a
7
+ //:arm64-v8a
8
+ --Android configuration distinguisher=android
9
+ --cpu=x86_64
10
+ //:x86_64
You can’t perform that action at this time.
0 commit comments