savers_app_sdk 1.0.7 copy "savers_app_sdk: ^1.0.7" to clipboard
savers_app_sdk: ^1.0.7 copied to clipboard

Flutter SDK for the Savers hosted app: WebView bridge, native maps/dialer/browser, device/session helpers, and encrypted URL generation.

1.0.7 #

  • Include pv and ev from the user session in HMAC-signed CLO v2 API payloads (buildSignedPayload).

1.0.6 #

  • Rename SaversAppSDK.initialized to initialize (initialized remains as a deprecated alias).
  • Add SaversAppSDK.initializeUserSession / clearUserSession to store the host user profile in SDK context.
  • Add SaversAppSDK.registerDevice with required deviceId and optional location.
  • generateUrl now takes an optional screen and reads user/device from stored context (optional UrlInput kept for compatibility).
  • Add referrerUserId (referrer_user_id in the encrypted payload) on Profile.
  • Breaking: remove navigationKey, closeCurrentScreen, and closeCurrentScreenSafe. HostedAppComponent handles END_SESSION with Navigator.maybePop (optional onEndSession). handleWebMessage no longer handles END_SESSION.
  • Replace example-app credentials and user-profile values with placeholders (API_KEY, PROGRAM_REFERRAL_CODE, USER_ID, AUTH_TYPE, PHONE, CITY, ZIPCODE, and so on).
  • Add partner session authorization with HMAC-SHA256 signed payloads and token refresh (getToken, authenticatedRequest).
  • Add Information Request Functions: getEarnings, getTotalEarnings, getTransactions, getRecommendations.
  • Dynamic sandbox/prod API v2 base URLs; auth helpers under lib/src/services/auth/.
  • Example app API hub screens for earnings, transactions, and recommendations.

1.0.5 #

  • Restore shared_preferences and flutter_secure_storage (no Hive).
  • Persist OAuth session id (OAUTH_SESSION_ID / oAuthSessionId) in secure storage; persist device id and hosted-app authSessionId in SharedPreferences (key authSessionId).
  • Handle WebView USER_SESSION_ID PostMessage (payload.authSessionId) and include authSessionId next to oAuthSessionId on later generateUrl calls.
  • Rename native event SESSION_IDOAUTH_SESSION_ID and encrypted payload field sessionIdoAuthSessionId.
  • Rename encrypted user-session field USER_SESSION_IDauthSessionId.
  • Drop API response caching from ApiRepository / ApiService.

1.0.4 #

  • Migrate storage from hive to hive_ce.
  • Raise minimum Flutter to >=3.38.0.
  • Upgrade webview_flutter, uuid, and flutter_lints; remove unused http dependency.
  • Analyzer exclude paths and pub.dev homepage metadata updates.
  • Example app Android/iOS Gradle and build tooling updates.

1.0.3 #

  • Add flutter_secure_storage and secure storage helper for sensitive values.
  • Use SDK-initialized API key in AuthInterceptor via getApiKeySync() (no hardcoded key).
  • Improve network interceptor logging and retry handling.
  • Improve openBrowser external URL launch behavior.
  • Example app: Android release signing and backup rules.

1.0.2 #

  • Improve pub.dev health score: fix analyzer lints, declare iOS/Android platform support, update package metadata and repository URLs.
  • Add dartdoc to exported public API symbols.
  • Handle DioExceptionType.transformTimeout in API error mapping.
  • Upgrade connectivity_plus, device_info_plus, geolocator, and dio to latest compatible majors.

1.0.1 #

  • Add HostedAppComponent dual-WebView UI (Savers Hub + Travel portal) with TravelPortalHeader.
  • Add hosted environment config (SaversSdkHostedEnvironment.sandbox / prod) for generateUrl base URLs.
  • Align AES-GCM encryption with React Native / hosted web (hex(iv):base64(content):hex(tag) + outer base64).
  • Add WebView envelope parsing (open_travel, prepare_travel, close_travel, relay) and native bridge injection.
  • Add webview_flutter dependency and pub.dev package metadata.

1.0.0 #

  • Initial release of Savers Flutter SDK.
  • Core features:
    • Native navigation helpers: open maps, dial pad, and external browser.
    • Device utilities: persistent device ID and location retrieval.
    • Session utilities and storage managers (Hive/SharedPreferences).
    • Savers URL generator with input validation and encryption.
    • WebView message bridge to trigger native actions from web content.
    • HTTP helpers built on Dio with interceptors and caching strategies.
0
likes
160
points
454
downloads

Documentation

API reference

Publisher

verified publishersaversapp.com

Weekly Downloads

Flutter SDK for the Savers hosted app: WebView bridge, native maps/dialer/browser, device/session helpers, and encrypted URL generation.

Homepage

License

MIT (license)

Dependencies

connectivity_plus, crypto, cryptography, device_info_plus, dio, flutter, flutter_secure_storage, geolocator, shared_preferences, url_launcher, uuid, webview_flutter

More

Packages that depend on savers_app_sdk