Skip to content

Stash Native 2.1.4

Choose a tag to compare

@github-actions github-actions released this 11 May 22:30
· 174 commits to main since this release
1284760

What's changed

Added

  • Android: StashNativeCardListener.onBrowserClosed() after external browser handoff (openBrowser, external payment). StashNativeCardListenerAdapter provides an empty default.
  • Android: Chrome Custom Tabs use startActivityForResult with StashNativeCard.REQUEST_CODE_CUSTOM_TAB; hosts must forward StashNativeCard.onActivityResult from the launching activity. ACTION_VIEW fallback still uses lifecycle-based onBrowserClosed.
  • iOS: optional stashNativeCardDidCloseBrowser on StashNativeCardDelegate when SFSafariViewController is dismissed (user Done or closeBrowser), including openBrowserWithURL: and external payment paths.

StashNative SDK 2.1.4

Android

Download StashNative-2.1.4.aar and add to your project's libs folder.

dependencies {
    implementation files('libs/StashNative-2.1.4.aar')
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'androidx.browser:browser:1.7.0'
}

iOS

Download StashNative-2.1.4.xcframework.zip, unzip, and add StashNative.xcframework to your Xcode project.

Alternatively, use Swift Package Manager with this repository URL.