Skip to content

Releases: adaptyteam/AdaptySDK-React-Native

v0.6.0

18 Feb 18:47
Compare
Choose a tag to compare

Features 🤸‍♂️

  • Documentation!
  • Added method adapty.setIsExternalAnalyticsEnabled (boolean) lets you enable/disable automatic adapty analytics feature
  • For the method adapty.users.updateProfile({}) facebookAnonymousId can now be passed
  • Added method adapty.purchases.setVariationId() lets you associate transaction with an AdaptyPaywall
  • name and abTestName added to AdaptyPaywall

Fixes 👩‍🔧

  • “undefined” customerUserID when no value is passed
  • Kotlin Boolean conversion could produce true on empty field

iOS version 1.12.1 -> 1.12.3
Android 0.8.4 -> 0.8.7

BREAKING: v0.5

08 Feb 08:57
Compare
Choose a tag to compare

☄️ BREAKING ☄️

  • Now methods with caching option like adapty.paywalls.getPaywalls({caching: true}) expect you to use forceUpdate: true flag instead. Default value is false. Example: const info = await adapty.purchases.getInfo({ forceUpdate: true })
  • adapty.purchases.makePurchase(...) now takes product: AdaptyProduct as an argument, that way Adapty ensures that a product includes all special offers from the exact paywall it was requested from
  • adapty.purchases.makePurchase(...) now remembers paywall you've fetched and doesn't need {caching: true} flag any longer. New interface is makePurchase(product: AdaptyProduct)
  • adapty.purshases.validateReceipt was removed

💫 Non-breaking features 💫

  • Errors now provide an extensive information on a problem. All errors thrown by Adapty are now wrapped by AdaptyError class with interface . You can find the full list of adaptyCodes here.
interface AdaptyError {
  // HTTP status code 
  code: number; 
  // certain string values to define the nature of a problem
  adaptyCode: "unknown" | "noProductsFound" | .... ;
  // User-friendly text, which can be displayed as a message
 localizedDescription: string;
}
  • Now you can get and set APNS token via adapty.getApns() and adapty.setApns(value: string) methods
  • Types are now much more exact. Types, that doesn't have both android and iOS representations are now dubbed with @todo NO VALUE ANDROID string within tsdoc
  • adapty.paywalls.getPaywalls() now returns customPayloadString — stringed JSON representation of a Custom Payload field
  • adapty.paywalls.logShow(variationId) is now available. Gives a developer full control over paywall analytics

👨‍🔧 Fixes 👨‍🔧

  • Within makePurchase method both localizedPrice and price values are passed without mutation (#1)

Adapty Android SDK 0.6.0 -> 0.8.4
Adapty iOS SDK 1.9.1 -> 1.12.1

v0.4.0

12 Nov 14:49
Compare
Choose a tag to compare

Features

  • Now for heavy requests, such as getPaywalls, makePurchase, getInfo, you can choose wether you want to fetch data or use data, which was fetched for you during app initialization
  • validateReceipt now returns purchaserInfo on success
  • makePurchase now always returns receipt, purchaserInfo & product on success
  • purchases.restore now always returns receipt and purchaser info lest there were no purchases
  • validateReceipt is now marked deprecated
  • Android native SDK bumped 0.5.1 -> 0.6.0
  • iOS native SDK bumped 1.8.1 -> 1.9.1

Fixes

  • Now app doesn’t crash if one passes non-string value customerUserId inactivateAdapty
  • makePurchase now proccesses faster
  • Android validateReceipt now can’t crash app
  • A lot of optimization fixes

0.3.0-beta

26 Oct 12:48
Compare
Choose a tag to compare

Features

  • BREAKING validateReceipt now accepts two arguments instead of one
  • Kinesis applied to the API
  • Testing event listeners
  • Apple Search Ads option for updateAttribution added

Fixes

  • Now passing birthday to updateProfile works
  • Android: now always returns actual paywalls with getPaywalls
  • Andorid: now purchases with makePurchase hooks only once
  • Android: makePurchase now returns correct interface
  • Android: validateReceipt temporary disabled caching
  • Android: getPromo now doesn't kill the app if empty

0.2.4-beta

20 Oct 19:24
Compare
Choose a tag to compare

Features

  • Now RN SDK uses iOS Swift SDK 1.8.1 (If your pods don’t build anymore, please, run pod update Adapty)

Fixes

  • Gender previously was taking values ‘m’ | ‘f’ | ‘string’, now it accepts only ‘male’ | ‘female’ | ‘other’
  • Android: Paywall interface inconsistencies are fixed
  • Android: makePurchase now proceeds without rejecting
  • Android: build failing fixed
  • iOS: Build warnings fixed

0.2.2-beta

14 Oct 19:38
Compare
Choose a tag to compare

Features:

  • Android: makePurchase() added and tested
  • Android: example app restructured and cleaned
  • Android: installing SDK to an android device now downloads com.android.billingclient to parse purchases
  • Android: validateReceipt() added and tested
  • iOS: iOS SDK is now forced to run on a main thread
  • API Documentation now contains more info!

Fixes:

  • activateAdapty() function is now openly asynchronous
  • customerUserId is now an optional value to activateAdapty()

0.2.0-beta

13 Oct 10:12
Compare
Choose a tag to compare

Features:

  • Manual linking docs added
  • Example app added
  • API docs added
  • Android now supports updateProfile method

Fixes:

  • Android installation instruction added

Android improvements

07 Oct 17:21
Compare
Choose a tag to compare

Features

  • CHANGELOG.md created
  • Installation instructions for android client improved

Fixes

  • React Native SDK now uses Android Native SDK version 0.51
  • AdaptySDK dynamic version caused errors, now the version is static
  • Android activate customerUserID is now optional argument
  • Android library whitelisted for the npm package

Init Release

07 Oct 13:12
Compare
Choose a tag to compare
0.1.0-rc

fix: removed .vscode folder