-
Notifications
You must be signed in to change notification settings - Fork 1
2.2.0 #21
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
Merged
2.2.0 #21
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c268920
update readme year
Nek-12 5f34905
update deps
Nek-12 91353bd
add AGENTS.md
Nek-12 705d820
fix build deprecations
Nek-12 12b419f
bump to sdk 36, and min sdk to 23
Nek-12 ce690c0
2.1.1
Nek-12 04d622c
ignore .kotlin
Nek-12 66c7171
align kotest plugin version
Nek-12 40a6429
fix ci gradle props
Nek-12 ee486e8
fix android unit test discovery
Nek-12 2f0ba3d
2.2.0
Nek-12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,28 @@ | ||
| # Repository Guidelines | ||
|
|
||
| ## Project Structure & Module Organization | ||
|
|
||
| - `core/` is the Kotlin Multiplatform library. Shared code lives in `core/src/commonMain/kotlin/pro/respawn/apiresult/`. | ||
| - JVM tests live in `core/src/jvmTest/kotlin/pro/respawn/apiresult/test/`. | ||
| - `app/` is a sample Android app. Kotlin sources are under `app/src/main/kotlin/…` and resources in `app/src/main/res/`. | ||
| - `buildSrc/` contains Gradle convention plugins and shared build logic. | ||
| - `docs/` holds documentation sources; `detekt.yml` defines lint rules. | ||
|
|
||
| ## Build, Test, and Development Commands | ||
|
|
||
| - `./gradlew :core:jvmTest` — runs JVM unit tests for the library. | ||
| - `./gradlew :app:assembleDebug` — builds the sample app APK. | ||
| - `./gradlew detektAll` — runs Detekt across the project. | ||
| - `./gradlew detektFormat` — applies Detekt auto-corrections. | ||
|
|
||
| ## Testing Guidelines | ||
|
|
||
| - Tests use Kotest with the JUnit 5 platform. | ||
| - Place JVM tests in `core/src/jvmTest/...` and name files `*Tests.kt`. | ||
| - Add tests for new operators or error-handling behaviors; keep operator coverage high. | ||
|
|
||
| ## Commit & Pull Request Guidelines | ||
|
|
||
| - Commit subjects are short, imperative, and lowercase (for example, `fix publish workflow`). | ||
| - Release/version commits use a plain version string, optionally with the PR number (for example, `2.1.0 (#14)`). | ||
| - PRs should include: a concise description, rationale for changes, and tests run. Update docs/KDoc when the public API changes. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
10 changes: 6 additions & 4 deletions
10
buildSrc/src/main/kotlin/pro.respawn.android-library.gradle.kts
This file contains hidden or 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 |
|---|---|---|
| @@ -1,16 +1,18 @@ | ||
| import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi | ||
|
|
||
| plugins { | ||
| kotlin("android") | ||
| id("com.android.library") | ||
| } | ||
|
|
||
| kotlin { | ||
| explicitApi() | ||
| @OptIn(ExperimentalKotlinGradlePluginApi::class) | ||
| compilerOptions { | ||
| jvmTarget.set(Config.jvmTarget) | ||
| } | ||
| } | ||
|
|
||
| android { | ||
| configureAndroidLibrary(this) | ||
|
|
||
| kotlinOptions { | ||
| jvmTarget = Config.jvmTarget.target | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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
Binary file not shown.
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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,11 @@ | ||
| #!/bin/bash | ||
|
|
||
| GRADLE_VER="$1" | ||
|
|
||
| if [ -z "$GRADLE_VER" ]; then | ||
| GRADLE_VER="latest" | ||
| fi | ||
|
|
||
| ./gradlew wrapper --gradle-version "$GRADLE_VER" --distribution-type bin | ||
| ./gradlew wrapper --gradle-version "$GRADLE_VER" --distribution-type bin | ||
| ./gradlew versionCatalogUpdate --no-configuration-cache |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.