-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Realm Plugin setting the bytecode target to 1.8 #1514
Changes from all commits
34e930a
6b09133
f554f17
f4b65b3
6eafdc1
472caeb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,11 +113,7 @@ val nativeLibraryIncludesIosSimulatorArm64Release = | |
includeBinaries(releaseLibs.map { "$absoluteCorePath/build-simulator-arm64/lib/$it" }) | ||
|
||
kotlin { | ||
jvm { | ||
compilations.all { | ||
kotlinOptions.jvmTarget = Versions.jvmTarget | ||
} | ||
} | ||
jvm() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it getting the correct target default? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it is being set by https://github.com/realm/realm-kotlin/pull/1514/files#diff-5ea5ab9e6b701c3d35d3fd2fad81ff600102db520494994cc7448e7d3e032d9dR32 ... which now controls everything. |
||
android("android") { | ||
publishLibraryVariants("release") | ||
} | ||
|
@@ -344,12 +340,10 @@ android { | |
path = project.file("src/jvm/CMakeLists.txt") | ||
} | ||
} | ||
// To avoid | ||
// Failed to transform kotlinx-coroutines-core-jvm-1.5.0-native-mt.jar ... | ||
// The dependency contains Java 8 bytecode. Please enable desugaring by adding the following to build.gradle | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
sourceCompatibility = Versions.sourceCompatibilityVersion | ||
targetCompatibility = Versions.targetCompatibilityVersion | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this? for refelction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some APIs changed or modularized after Java 11, so if you are using Java 17, ktlint will crash. This will fix it.