Skip to content

4.0.1.1

Choose a tag to compare

@github-actions github-actions released this 30 Jul 09:03
· 22 commits to main since this release
cc9d066

What's changed

First release of the cross-platform façade over the SFMC SDK core bindings.

  • One API on both platforms: SfmcSdkClient with awaitable InitializeAsync, Identity
    (profile id / contact key, string attributes) and TrackCustomEvent, over
    SFMCSDK.Net.Android 3.1.1.1
    and SFMCSDK.Net.iOS 4.0.1.2,
    pinned exactly. The version names the iOS line (SFMCSDK 4.0.1); the Android side is sfmcsdk 3.1.1.
  • The platform asymmetries are absorbed, not papered over: Android's configure callback
    becomes an await with an options-driven timeout linked to the caller's CancellationToken;
    iOS completes after the state machine settles, because with zero modules configured its
    completion block never fires - measured upstream behaviour, encoded in the binding
    repository's device tests and documented in Platforms/Apple.
  • Sharp edges filed off: a custom event name the native SDK rejects throws
    ArgumentException on both platforms (raw Android returns null and drops the event; raw iOS
    returns nil), and a second InitializeAsync throws the one-shot guard instead of racing a
    native configure that upstream forbids repeating.
  • Nine target frameworks - net8.0, net9.0, net10.0, each with -android and -ios
    heads. The plain assets restore anywhere and throw PlatformNotSupportedException naming the
    platform heads, so shared class libraries, unit tests and a MAUI app's Windows head reference
    the package with no conditionals.
  • Nothing is hidden: the raw namespaces Com.Salesforce.Marketingcloud.Sfmcsdk and
    SFMCSDK arrive with the package on their platform - module configuration (MobilePush and
    friends), consent, the event bus and the rest stay one using away.
  • Licence is plain MIT: this package ships no native binaries; Salesforce's BSD-3-Clause
    arrives with the binding packages, each of which declares and packs both texts.

Packages

Built against SFMCSDK.Net.iOS 4.0.1.2 and SFMCSDK.Net.Android 3.1.1.1 — SFMCSDK 4.0.1 on iOS and sfmcsdk 3.1.1 on Android.

The version names the iOS line, because Salesforce releases the two native
SDKs on separate cadences and they never share a version number. The fourth
component is this repository's own revision.

Package Target frameworks NuGet
SFMCSDK.Net net8.0, net8.0-android34.0, net8.0-ios18.0, net9.0, net9.0-android35.0, net9.0-ios18.0, net10.0, net10.0-android36.0, net10.0-ios26.0 4.0.1.1
dotnet add package SFMCSDK.Net --version 4.0.1.1

Licensing

The code in this repository is MIT, and that is the whole package. It depends
on SFMCSDK.Net.Android and SFMCSDK.Net.iOS, whose packages ship native SFMC
SDK artifacts built by Salesforce; each of those declares
MIT AND BSD-3-Clause and ships both texts under licenses/.