-
Notifications
You must be signed in to change notification settings - Fork 6
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
Build updates #44
Build updates #44
Conversation
Jawnnypoo
commented
Jun 4, 2024
- Build with Java 17
- Build with Kotlin 1.9.20
- Remove some unused/unneeded things
@@ -11,26 +11,26 @@ import io.reactivex.rxjava3.core.Maybe | |||
import io.reactivex.rxjava3.core.Observable | |||
import io.reactivex.rxjava3.core.Single | |||
|
|||
inline fun <C, E> Completable.toUCE( | |||
inline fun <C: Any, E> Completable.toUCE( |
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 does C
have to be Any
?
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.
Type changes within Kotlin/RxJava interop
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.
I don't think Completable
needs it?
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.
Since we call toSingleDefault
on the completable, it is needed.
lce-test/build.gradle
Outdated
kotlinOptions { | ||
jvmTarget = "1.8" | ||
java { | ||
toolchain { |
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.
Is this needed?
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.
It seems that ./gradlew publishMavenPublicationToMavenLocal
is broken with this change. Could you investigate how to fix that?
Fixed 👍 |
@@ -14,11 +14,12 @@ jobs: | |||
- uses: gradle/wrapper-validation-action@v1 | |||
- uses: actions/setup-java@v1 | |||
with: | |||
java-version: 11 | |||
distribution: 'zulu' | |||
java-version: 17 |
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 17 and not 18?
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.
https://developer.android.com/build/jdks#target-compat since its a library and not an application, I think its safer to go with 17
} | ||
|
||
dependencies { | ||
api(project(":lce")) |
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.
side-note: would be nice to introduce projects.lce
statically typed accessors.