Skip to content

DEV-3362: loyalty methods#11

Merged
Xyzcancer merged 2 commits into
masterfrom
DEV-3362-loyalty-methods
Jun 23, 2026
Merged

DEV-3362: loyalty methods#11
Xyzcancer merged 2 commits into
masterfrom
DEV-3362-loyalty-methods

Conversation

@Xyzcancer

Copy link
Copy Markdown
Contributor

No description provided.

Add joinLoyalty / getLoyaltyStatus to the Flutter SDK, bridged to the
native loyalty APIs.

Native dependency bump (required for loyalty):
- Android: switch to JitPack com.github.rees46:android-sdk:v2.33.0
  (first release exposing SDK.instance.loyaltyManager) instead of the
  stale Maven com.rees46:rees46-sdk:2.6.0.
- iOS: bump REES46 pod 3.23.0 -> 3.28.0.

Adapt the iOS plugin to REES46 3.28.0 breaking changes:
- qualify REES46.Category (now ambiguous with the ObjC runtime typedef);
- ProductsListResponse.products is [Product] (no categories) -> map via
  the Product serializer;
- setProfileData moved from a ProfileData value to named parameters.

Loyalty plumbing:
- Pigeon joinLoyalty/getLoyaltyStatus (JSON envelope) + regenerated bindings;
- Dart facade + LoyaltyJoinResponse/LoyaltyStatusResponse/LoyaltyLevel models;
- Android impl via loyaltyManager.join/getStatus (Gson);
- iOS impl via sdk.joinLoyalty/getLoyaltyStatus;
- example Loyalty card (Join/Status);
- 7 unit tests + real-network integration tests (verified on iOS simulator
  and Android emulator against the live API).
@Xyzcancer Xyzcancer merged commit 6c47bef into master Jun 23, 2026
1 check passed
@Xyzcancer Xyzcancer deleted the DEV-3362-loyalty-methods branch June 23, 2026 07:02
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.

1 participant