Purchasely
Rechercher…
React Native SDK
Guide for integrating Purchasely SDK inside your React Native app

Installation

NPM

You can use NPM to install Purchasely by adding it to your Podfile:
npm install react-native-purchasely --save
Don't forget to change the minimum OS versions to match Purchasely requirements (iOS 11 / Android 21)
iOS
Android
// Podfile
...
platform :ios, '11.0'
...
// Edit file android/build.gradle
buildscript {
ext {
minSdkVersion = 21 //min version must not be below 21
compileSdkVersion = 30
targetSdkVersion = 30
}
}
allprojects {
repositories {
mavenCentral()
}
}
-------
//Edit file android/app/build.gradle
dependencies {
//Add this line to integrate Google Play Billing
implementation 'io.purchasely:google-play:3.2.1'
}

Huawei Integration

To integrate Huawei Mobile Services, please refer to our Android documentation : https://docs.purchasely.com/quick-start/sdk-installation/quick-start#huawei-mobile-services
Dernière mise à jour 3mo ago
Copier le lien
Éditer sur GitHub