Skip to content

fix: compilation errors, path bugs, and full test coverage#1

Open
base44-os-gremlins[bot] wants to merge 1 commit intomainfrom
fix/compilation-errors-and-tests
Open

fix: compilation errors, path bugs, and full test coverage#1
base44-os-gremlins[bot] wants to merge 1 commit intomainfrom
fix/compilation-errors-and-tests

Conversation

@base44-os-gremlins
Copy link

Summary

  • Fix compilation: PartData unresolved reference fixed by adding import io.ktor.http.content.* to HttpClient.kt
  • Fix visibility: All module classes (EntitiesModule, EntityHandler, AuthModule, AgentsModule, AppLogsModule, FunctionsModule, IntegrationsModule, CoreIntegrations, UsersModule) had constructors marked internal constructor to prevent the public API from exposing the internal Base44HttpClient type
  • Fix paths: UsersModule.inviteUser path corrected to /apps/{appId}/runtime/users/invite-user (matching JS SDK); AppLogsModule.list path corrected to /app-logs/{appId} (matching JS SDK)
  • Add Gradle wrapper: Added gradle/wrapper/ and gradlew (Gradle 8.10) so the project builds without requiring a system Gradle installation
  • Add 16 new tests: AdditionalModuleTests.kt covers IntegrationsModule, CoreIntegrations, AgentsModule, AppLogsModule, and UsersModule using MockEngine (no network required)

Test Results

36 JVM tests — 0 failures, 0 errors

Suite Tests
EntitiesModuleTest 8
HttpClientTest 5
AgentsModuleTest 5
IntegrationsModuleTest 5
CreateClientTest 3
AuthModuleTest 3
AppLogsModuleTest 3
UsersModuleTest 3
FunctionsModuleTest 1

Test plan

  • ./gradlew jvmTest passes locally (36/36)
  • All module paths verified against JS SDK source
  • Android sample app E2E (future phase)

Relates to: https://github.com/base44-dev/gremlins/issues/867

🤖 Generated with Claude Code

- Fix PartData unresolved reference by importing io.ktor.http.content.*
- Add `internal constructor` to all module classes that take the internal
  Base44HttpClient, preventing public API exposure of internal types
- Fix UsersModule.inviteUser path: add /runtime/ to match JS SDK
- Fix AppLogsModule.list path: use /app-logs/{appId} (matches JS SDK)
- Add Gradle wrapper (8.10) so the project builds without system Gradle
- Add 16 new MockEngine-based tests covering IntegrationsModule,
  CoreIntegrations, AgentsModule, AppLogsModule, and UsersModule
- All 36 JVM tests pass (0 failures, 0 errors)

Relates to: https://github.com/base44-dev/gremlins/issues/867

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

0 participants