-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support Kotlin 1.8 * Update Anvil to 2.4.3-1-8-0-RC * Use the latest compose release
- Loading branch information
Showing
22 changed files
with
467 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
load("@dev_io_bazel_rules_kotlin//src/main/starlark/release:packager.bzl", "release_archive") | ||
|
||
release_archive( | ||
name = "pkg", | ||
srcs = ["WORKSPACE"], | ||
src_map = { | ||
"BUILD.release.bazel": "BUILD.bazel", | ||
}, | ||
deps = [ | ||
"//starlark/jvm:pkg", | ||
"//starlark/kotlin:pkg", | ||
], | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
workspace(name = "rkt_1_8") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
|
||
bzl_library( | ||
name = "starlark", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//starlark/jvm", | ||
"//starlark/kotlin", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
load("@dev_io_bazel_rules_kotlin//src/main/starlark/release:packager.bzl", "release_archive") | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
|
||
exports_files( | ||
["opts.bzl"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
release_archive( | ||
name = "pkg", | ||
srcs = glob(["*.bzl"]), | ||
src_map = { | ||
"BUILD.release.bazel": "BUILD.bazel", | ||
}, | ||
) | ||
|
||
bzl_library( | ||
name = "jvm", | ||
srcs = glob(["*.bzl"]), | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"@dev_io_bazel_rules_kotlin//src/main/starlark", | ||
], | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
load("@dev_io_bazel_rules_kotlin//src/main/starlark/core/options:derive.bzl", "derive") | ||
load("@dev_io_bazel_rules_kotlin//src/main/starlark/core/options:convert.bzl", "convert") | ||
|
||
_JOPTS = { | ||
"warn": struct( | ||
args = dict( | ||
default = "report", | ||
doc = "Control warning behaviour.", | ||
values = ["off", "report", "error"], | ||
), | ||
type = attr.string, | ||
value_to_flag = { | ||
"off": ["-nowarn"], | ||
"error": ["-Werror"], | ||
"report": None, | ||
}, | ||
), | ||
"x_ep_disable_all_checks": struct( | ||
args = dict( | ||
default = False, | ||
doc = "See javac -XepDisableAllChecks documentation", | ||
), | ||
type = attr.bool, | ||
value_to_flag = { | ||
True: ["-XepDisableAllChecks"], | ||
}, | ||
), | ||
"x_lint": struct( | ||
args = dict( | ||
default = [], | ||
doc = "See javac -Xlint: documentation", | ||
), | ||
type = attr.string_list, | ||
value_to_flag = { | ||
derive.info: derive.repeated_values_for("-Xlint:"), | ||
}, | ||
), | ||
"xd_suppress_notes": struct( | ||
args = dict( | ||
default = False, | ||
doc = "See javac -XDsuppressNotes documentation", | ||
), | ||
type = attr.bool, | ||
value_to_flag = { | ||
True: ["-XDsuppressNotes"], | ||
}, | ||
), | ||
"x_explicit_api_mode": struct( | ||
args = dict( | ||
default = "off", | ||
doc = "Enable explicit API mode for Kotlin libraries.", | ||
values = ["off", "warning", "strict"], | ||
), | ||
type = attr.string, | ||
value_to_flag = { | ||
"off": None, | ||
"warning": ["-Xexplicit-api=warning"], | ||
"strict": ["-Xexplicit-api=strict"], | ||
}, | ||
), | ||
} | ||
|
||
def _javac_options_impl(ctx): | ||
return struct( | ||
providers = [ | ||
JavacOptions(**{n: getattr(ctx.attr, n, None) for n in _JOPTS}), | ||
], | ||
) | ||
|
||
JavacOptions = provider( | ||
fields = { | ||
name: o.args["doc"] | ||
for name, o in _JOPTS.items() | ||
}, | ||
) | ||
|
||
kt_javac_options = rule( | ||
implementation = _javac_options_impl, | ||
doc = "Define java compiler options for `kt_jvm_*` rules with java sources.", | ||
provides = [JavacOptions], | ||
attrs = {n: o.type(**o.args) for n, o in _JOPTS.items()}, | ||
) | ||
|
||
def javac_options_to_flags(javac_options): | ||
"""Translate JavacOptions to worker flags | ||
Args: | ||
javac_options of type JavacOptions or None | ||
Returns: | ||
list of flags to add to the command line. | ||
""" | ||
return convert.javac_options_to_flags(_JOPTS, javac_options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
load("@dev_io_bazel_rules_kotlin//src/main/starlark/release:packager.bzl", "release_archive") | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
|
||
exports_files( | ||
["opts.bzl"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
release_archive( | ||
name = "pkg", | ||
srcs = glob(["*.bzl"]), | ||
src_map = { | ||
"BUILD.release.bazel": "BUILD.bazel", | ||
}, | ||
) | ||
|
||
bzl_library( | ||
name = "kotlin", | ||
srcs = glob(["*.bzl"]), | ||
visibility = ["//visibility:public"], | ||
) |
Empty file.
Oops, something went wrong.