Installation
Step 1
To install the SDK in a Capacitor project, first ensure you have Node.js and npm installed on your system.
Step 2
Add Jitpack dependency in android/build.gradle
file inside repositories section.
allprojects {
repositories {
google()
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
}
}
Step 3
Set minimum android sdk to 24 in android/app/build.gradle
file inside defaultConfig section.
android {
namespace "com.example.app"
compileSdk rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "com.example.app"
minSdkVersion 24
targetSdkVersion rootProject.ext.targetSdkVersion
}
}
Step 4
To install the SDK in a React Capacitor project, first ensure you have Node.js and npm installed on your system.
SDK is private for get acess to npm packages from Truvideo Support
directly run the command replace YOUR_TOKEN with your access token
npm install @trunpm/truvideo-capacitor-core-sdk --registry=https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=<YOUR_TOKEN>
npm install @trunpm/truvideo-capacitor-camera-sdk --registry=https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=<YOUR_TOKEN>
npm install @trunpm/truvideo-capacitor-media-sdk --registry=https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=<YOUR_TOKEN>
npm install @trunpm/truvideo-capacitor-video-sdk --registry=https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=<YOUR_TOKEN>
npm install @trunpm/truvideo-capacitor-image-sdk --registry=https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=<YOUR_TOKEN>

Step 5
Check the installation in file package-lock.json

Last updated
Was this helpful?