Releases: adaptyteam/AdaptySDK-React-Native
Releases · adaptyteam/AdaptySDK-React-Native
v0.6.0
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
andabTestName
added toAdaptyPaywall
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
☄️ BREAKING ☄️
- Now methods with caching option like
adapty.paywalls.getPaywalls({caching: true})
expect you to useforceUpdate: true
flag instead. Default value isfalse
. Example:const info = await adapty.purchases.getInfo({ forceUpdate: true })
adapty.purchases.makePurchase(...)
now takesproduct: AdaptyProduct
as an argument, that way Adapty ensures that a product includes all special offers from the exact paywall it was requested fromadapty.purchases.makePurchase(...)
now remembers paywall you've fetched and doesn't need{caching: true}
flag any longer. New interface ismakePurchase(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
adaptyCode
s 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()
andadapty.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 returnscustomPayloadString
— stringed JSON representation of a Custom Payload fieldadapty.paywalls.logShow(variationId)
is now available. Gives a developer full control over paywall analytics
👨🔧 Fixes 👨🔧
- Within
makePurchase
method bothlocalizedPrice
andprice
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
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 successmakePurchase
now always returns receipt, purchaserInfo & product on successpurchases.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
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
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
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 asynchronouscustomerUserId
is now an optional value toactivateAdapty()
0.2.0-beta
Features:
- Manual linking docs added
- Example app added
- API docs added
- Android now supports updateProfile method
Fixes:
- Android installation instruction added
Android improvements
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
0.1.0-rc fix: removed .vscode folder