Skip to content
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

Merged
merged 2 commits into from
Jun 17, 2024
Merged

Build updates #44

merged 2 commits into from
Jun 17, 2024

Conversation

Jawnnypoo
Copy link
Contributor

  • 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(
Copy link
Owner

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?

Copy link
Contributor Author

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

Copy link
Owner

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?

Copy link
Contributor Author

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.

kotlinOptions {
jvmTarget = "1.8"
java {
toolchain {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

Copy link
Owner

@Laimiux Laimiux left a 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?

@Jawnnypoo
Copy link
Contributor Author

Fixed 👍

@Laimiux Laimiux self-requested a review June 17, 2024 15:07
@@ -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
Copy link
Owner

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?

Copy link
Contributor Author

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"))
Copy link
Owner

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.

@Laimiux Laimiux merged commit 1620773 into Laimiux:main Jun 17, 2024
1 check passed
@Jawnnypoo Jawnnypoo deleted the jawn/build-updates branch June 17, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants