|
3 | 3 | A `<Video>` component for react-native, as seen in |
4 | 4 | [react-native-login](https://github.com/brentvatne/react-native-login)! |
5 | 5 |
|
| 6 | +Version 5.x recommends react-native >= 0.60.0 for Android 64bit builds and Android X support. |
| 7 | + |
6 | 8 | Version 4.x requires react-native >= 0.57.0 |
7 | 9 |
|
8 | 10 | Version 3.x requires react-native >= 0.40.0 |
9 | 11 |
|
| 12 | +### Version 5.0.0 breaking changes |
| 13 | + |
| 14 | +Version 5 introduces breaking changes on Android, please check carefully the steps described there: [Android Installation](#Android-installation) |
| 15 | + |
10 | 16 | ### Version 4.0.0 breaking changes |
11 | 17 | Version 4.0.0 changes some behaviors and may require updates to your Gradle files. See [Updating](#updating) for details. |
12 | 18 |
|
@@ -1272,6 +1278,38 @@ To enable audio to play in background on iOS the audio session needs to be set t |
1272 | 1278 |
|
1273 | 1279 | ## Updating |
1274 | 1280 |
|
| 1281 | +### Version 5.0.0 |
| 1282 | + |
| 1283 | +Probably you want to update your gradle version: |
| 1284 | +#### gradle-wrapper.properties |
| 1285 | +```diff |
| 1286 | +- distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip |
| 1287 | ++ distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip |
| 1288 | +``` |
| 1289 | + |
| 1290 | +#### **android/app/build.gradle** |
| 1291 | + |
| 1292 | +From version >= 5.0.0, you have to apply this changes: |
| 1293 | + |
| 1294 | +```diff |
| 1295 | +dependencies { |
| 1296 | + ... |
| 1297 | + compile project(':react-native-video') |
| 1298 | ++ implementation "androidx.appcompat:appcompat:1.0.0" |
| 1299 | +- implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" |
| 1300 | + |
| 1301 | +} |
| 1302 | +``` |
| 1303 | + |
| 1304 | +#### **android/gradle.properties** |
| 1305 | + |
| 1306 | +Migrating to AndroidX (needs version >= 5.0.0): |
| 1307 | + |
| 1308 | +```gradle.properties |
| 1309 | +android.useAndroidX=true |
| 1310 | +android.enableJetifier=true |
| 1311 | +``` |
| 1312 | + |
1275 | 1313 | ### Version 4.0.0 |
1276 | 1314 |
|
1277 | 1315 | #### Gradle 3 and target SDK 26 requirement |
|
0 commit comments