shoplive_core 3.0.3
shoplive_core: ^3.0.3 copied to clipboard
Shoplive core plugin for Flutter (initialize, user, conversion) on Shoplive SDK 3.x. To use Shoplive, please contact ask@shoplive.cloud.
3.0.3 #
Built on Shoplive SDK 3.0.3 (Android cloud.shoplive:shoplive-core:3.0.3, iOS ShopliveCore 3.0.3). No Dart breaking change.
Changed #
ShopliveConfiguration.appVersionis deprecated and ignored on both platforms: SDK 3.0.3 reads the app version itself (Android removed the field). The value is still type-checked (INVALID_ARGUMENTif not a string) and a warning is logged.- Error
codestrings are the SDK 3.0.3 constant names, passed through unchanged. Android 3.0.3 removedNOT_INITIALIZED_CONFIGandNOT_INITIALIZED_CAMPAIGN_KEYand added new codes (for exampleAUTHENTICATION_FAILEDandPIP_*); treatcodeas an opaque string. ShopliveError.rawCodeis set on both platforms (iOS SDK 3.0.3 now provides it for every code).- Android: the
exclusiveContentguard for thecloud.shoplivegroup stays; SDK 3.0.3 is not on Maven Central, and theshoplive-media3conflict of 3.0.2 no longer applies. Theconstraintlayout:2.2.1pin is unchanged. - iOS: downloads the SDK 3.0.3 XCFrameworks (
ShopliveCore,ShopLiveWebRTCHelperSDK,WebRTC) and verifies the new sha256 values.
3.0.2 #
- Declares
androidx.constraintlayout:constraintlayout:2.2.1. The SDK pulls2.0.1throughmaterial:1.9.0, whose solver throwsClassCastExceptionduring the in-app PIP transition; Gradle now resolves the fixed version.
First release of shoplive_core, built on Shoplive Android SDK 3.0.2 (cloud.shoplive:shoplive-core:3.0.2).
BREAKING (from shoplive_player 1.x) #
- Replaces 1.x
ShopLiveCommon(setAccessKey,setAuth,setAuthToken,setUser,setUtm*,clearAuth) withShoplive.initialize,setUser,setStreamToken,logout,sendConversionEventandgetSdkVersion. - Every method returns a
Futureand throwsPlatformException(INVALID_ARGUMENT,SDK_ERROR). - Required strings (
accessKey, profileid,jwt, stream token) must not be blank. Profileidis now required.
Known limitations #
- The bridge does not guard repeated
initializecalls (hot restart, multiple engines); the SDK decides what happens.
Requirements #
- Flutter 3.22 / Dart 3.4 or later.
- Android: AGP 8.7, Gradle 8.9, JDK 17, minSdk 23, compileSdk 36.
- Android SDK artifacts come from
https://sdk.shoplive.cloud/maven-repo. Thecloud.shoplivegroup is restricted to that repository withexclusiveContent, because Maven Central hosts a conflictingshoplive-media3:1.10.1.2. See README. - iOS 15.0 (Shoplive iOS SDK 3.0.2, XCFrameworks downloaded and sha256-verified during
pod install- see README "iOS setup"). Setplatform :ios, '15.0'in your Podfile. When you runpod installmanually, use a UTF-8 locale. - Upgrading from 1.x: run
flutter cleanonce; stale 1.x iOS build products otherwise fail with "'ShoplivePlayerPlugin' has different definitions in different modules".