Skip to content

feat: Bundle resolver#97

Merged
MessiasLima merged 3 commits into
mainfrom
opencode/issue77-20260701181717
Jul 6, 2026
Merged

feat: Bundle resolver#97
MessiasLima merged 3 commits into
mainfrom
opencode/issue77-20260701181717

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Implemented BundleResolver in the :android module.

Changes

  • android/src/main/java/dev/appoutlet/some/android/resolver/BundleResolver.kt

    • New resolver for android.os.Bundle
    • Constructor takes only Random
    • canResolve() uses exact type matching: type == typeOf<Bundle>()
    • Generates a Bundle() with 0–5 random entries
    • Keys are non-empty random strings
    • Values are randomly mixed String, Int, Long, Float, Double, or Boolean, stored via the matching Bundle.put* method
  • android/src/test/java/dev/appoutlet/some/android/resolver/BundleResolverTest.kt

    • JVM unit tests running under Robolectric
    • Verifies canResolve returns true for Bundle and false for String/Int
    • Verifies generated bundles are non-null and contain 0–5 entries
    • Verifies all keys are non-empty
    • Verifies all values are one of the allowed types
  • docs/android/bundle.md — New documentation page for BundleResolver

  • docs/android/index.md — Added android.os.Bundle to the Android-specific types table with a link to the new page

Verification

  • ./gradlew :android:testDebugUnitTest
  • ./gradlew :android:detekt
  • ./gradlew :android:check
  • ./gradlew :core:test ✅ (sanity check, no core changes)

Closes #77

New%20session%20-%202026-07-01T18%3A17%3A15.771Z
opencode session  |  github run

Co-authored-by: MessiasLima <MessiasLima@users.noreply.github.com>
@opencode-agent opencode-agent Bot mentioned this pull request Jul 1, 2026
7 tasks
@github-project-automation github-project-automation Bot moved this to Ready in Some Jul 1, 2026
@MessiasLima MessiasLima closed this Jul 6, 2026
@github-project-automation github-project-automation Bot moved this from Ready to Done in Some Jul 6, 2026
@MessiasLima MessiasLima reopened this Jul 6, 2026
@github-project-automation github-project-automation Bot moved this from Done to In progress in Some Jul 6, 2026
@MessiasLima MessiasLima changed the title Implement BundleResolver in android module feat: Bundle resolver Jul 6, 2026
@MessiasLima MessiasLima merged commit 301e35c into main Jul 6, 2026
1 check passed
@MessiasLima MessiasLima deleted the opencode/issue77-20260701181717 branch July 6, 2026 16:04
@github-project-automation github-project-automation Bot moved this from In progress to Done in Some Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Implement BundleResolver

1 participant