Skip to content

Commit 2f23cc0

Browse files
author
Daniel Mariño
committed
More update info
1 parent b0737bd commit 2f23cc0

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
A `<Video>` component for react-native, as seen in
44
[react-native-login](https://github.com/brentvatne/react-native-login)!
55

6+
Version 5.x recommends react-native >= 0.60.0 for Android 64bit builds and Android X support.
7+
68
Version 4.x requires react-native >= 0.57.0
79

810
Version 3.x requires react-native >= 0.40.0
911

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+
1016
### Version 4.0.0 breaking changes
1117
Version 4.0.0 changes some behaviors and may require updates to your Gradle files. See [Updating](#updating) for details.
1218

@@ -1272,6 +1278,38 @@ To enable audio to play in background on iOS the audio session needs to be set t
12721278

12731279
## Updating
12741280

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+
12751313
### Version 4.0.0
12761314

12771315
#### Gradle 3 and target SDK 26 requirement

0 commit comments

Comments
 (0)