feat(android): allow to disable selected functionalities (#3681)
* feat(android): add possibility do disable some of functionalities * create dump classes * remove dump files when functionalities are enabled * add docs * enable all functionalities in example * throw error when trying to use disabled functionality * update docs
This commit is contained in:
@@ -65,14 +65,28 @@ buildscript {
|
||||
|
||||
### Enable custom feature in gradle file
|
||||
|
||||
#### Enable client side ads insertion
|
||||
To enable client side ads insertion CSAI with google IMA SDK, you need to enable it in your gradle file.
|
||||
You can disable or enable the following features by setting the following variables in your `android/build.gradle` file:
|
||||
- `useExoplayerIMA` - Enable Google IMA SDK (Ads support)
|
||||
- `useExoplayerRtsp` - Enable RTSP support
|
||||
- `useExoplayerSmoothStreaming` - Enable SmoothStreaming support
|
||||
- `useExoplayerDash` - Enable Dash support
|
||||
- `useExoplayerHls` - Enable HLS support
|
||||
|
||||
Each of these features enabled will increase the size of your APK, so only enable the features you need.
|
||||
By default enabled features are: `useExoplayerSmoothStreaming`, `useExoplayerDash`, `useExoplayerHls`
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
```gradle
|
||||
buildscript {
|
||||
ext {
|
||||
...
|
||||
RNVUseExoplayerIMA = true
|
||||
useExoplayerIMA = true
|
||||
useExoplayerRtsp = true
|
||||
useExoplayerSmoothStreaming = true
|
||||
useExoplayerDash = true
|
||||
useExoplayerHls = true
|
||||
...
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user