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:
1
npm install react-native-purchasely --save
Copied!
Don't forget to change the minimum OS versions to match Purchasely requirements (iOS 11 / Android 21)
iOS
Android
1
// Podfile
2
3
...
4
5
platform :ios, '11.0'
6
7
...
Copied!
1
// Edit file android/build.gradle
2
buildscript {
3
ext {
4
minSdkVersion = 21 //min version must not be below 21
5
compileSdkVersion = 30
6
targetSdkVersion = 30
7
}
8
}
9
10
allprojects {
11
repositories {
12
mavenCentral()
13
}
14
}
15
16
-------
17
//Edit file android/app/build.gradle
18
dependencies {
19
//Add this line to integrate Google Play Billing
20
implementation 'io.purchasely:google-play:3.2.1'
21
}
Copied!

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 21d ago
Copier le lien
Éditer sur GitHub