Version: 2.1.3
Setup
In the project level build.gradle
file, add the following lines. This will make the SDKs from our server available to you.
- Java
- Kotlin
- React Native
- Flutter
Project/build.gradle
Add the following line to your app-level build.gradle
file.
Project/app/build.gradle
Project/build.gradle
Add the following line to your app-level build.gradle
file.
Project/app/build.gradle
Project/android/build.gradle
Install the required BharatX packages:
- NPM
- Yarn
Project/android/build.gradle
Add the BharatX dependency to pubspec.yaml
:
Project/pubspec.yaml
For BharatX's SDK to work, your Flutter's Main Activity should extend
from FlutterFragmentActivity
rather than FlutterActivity
given default.
Go to:
and replace all references to FlutterActivity
by FlutterFragmentActivity
.
You can now use BharatX's SDK in your project!