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

Update the adapter js to match the updated changes in strada-web #12

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

jayohms
Copy link
Collaborator

@jayohms jayohms commented Apr 12, 2023

This updates the adapter js for compatibility with the changes in: hotwired/strada-web#2

This corresponds to the same iOS changes made in: hotwired/strada-ios#2

Copy link

@mbarta mbarta left a comment

Choose a reason for hiding this comment

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

Nice readability improvements 👍

* main: (34 commits)
  Bump the gradle plugin to 8.1.0
  Update .idea git-ignored files
  Open up the component's didReceive(), didStart(), and didStop() for use with app component testing
  Update Android Gradle plugin to 8.0.2
  Include the stack trace in logged errors
  Improve logging and expose warnings to apps that don't have debug logging enabled
  Don't access the bridge directly from the component, so testing from apps is possible through the delegate directly
  Move the debugLoggingEnabled flag to the Strada.config namespace
  Move userAgent substring generation from Bridge to Strada namespace
  Add tests for message data encoding/decoding
  Provide an available KotlinXJsonConverter, since the kotlinx.serialization is multiplatform and requires inline reified functions, which aren't compatible with a generic interface or abstract class
  Rename StradaJsonEncoder -> StradaJsonConverter
  Cleanup
  Initial work to encode/decode data by providing Strada a custom app encoder
  Rename messageReceivedFor(event) -> receivedMessageFor(event)
  Make the component's onStart() and onStop() have protected access, so it's only available to component subclasses
  Update BridgeComponent tests with the boolean flag when replying
  Allow replying to an event without modifying its jsonData. Return a boolean flag from replies to indicate whether the reply was successful.
  Consolidate test data to a new TestData object
  Store the last received message for each event type so it can be easily retrieved and add a new replyTo() convenience way to reply to messages
  ...

# Conflicts:
#	strada/src/main/assets/js/strada.js
@jayohms jayohms merged commit 2f8aa54 into main Sep 12, 2023
1 check passed
@jayohms jayohms deleted the update-adapter branch September 12, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants