Commit c434e49
authored
build: Add Kotlin to the project (#317)
- Added the 'org.jetbrains.kotlin.android' plugin to all module
build.gradle files and configured the Kotlin compiler JVM target to 1.8
in the root build.gradle.
- Updated the buildscript to use Kotlin version 2.2.0 and included the
Kotlin Gradle plugin classpath.
**Requirements**
- [ ] I have added test coverage for new or changed functionality
- [ ] I have followed the repository's [pull request submission
guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests)
- [ ] I have validated my changes against all supported platform
versions
**Describe the solution you've provided**
I've added the Kotlin plugin and the configuration needed to be able to
add Kotlin code in future PRs
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds Kotlin support to all modules and configures the Kotlin Gradle
plugin with JVM target 1.8 in the root build.
>
> - **Build/Gradle**:
> - Add Kotlin Gradle plugin (`kotlin_version = 2.2.0`) and classpath in
root `build.gradle`.
> - Configure `KotlinCompile` tasks with `jvmTarget = 1.8` for all
subprojects.
> - Apply `org.jetbrains.kotlin.android` plugin to `contract-tests`,
`example`, `launchdarkly-android-client-sdk`, and `shared-test-code`
modules.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1487407. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->File tree
5 files changed
+15
-2
lines changed- contract-tests
- example
- launchdarkly-android-client-sdk
5 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
74 | 84 | | |
75 | 85 | | |
76 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments