pre androidX, upgrade to 28
This commit is contained in:
parent
ed25b3f924
commit
a203aeadea
11
README.md
11
README.md
@ -125,19 +125,10 @@ project(':react-native-video').projectDir = new File(rootProject.projectDir, '..
|
||||
dependencies {
|
||||
...
|
||||
compile project(':react-native-video')
|
||||
+ implementation "androidx.appcompat:appcompat:1.0.0"
|
||||
- implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
|
||||
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
|
||||
|
||||
}
|
||||
```
|
||||
**android/gradle.properties**
|
||||
|
||||
Migrating to AndroidX:
|
||||
|
||||
```gradle.properties
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
```
|
||||
|
||||
**MainApplication.java**
|
||||
|
||||
|
@ -28,12 +28,9 @@ dependencies {
|
||||
}
|
||||
|
||||
// All support libs must use the same version
|
||||
// implementation "com.android.support:support-annotations:${safeExtGet('supportLibVersion', '+')}"
|
||||
implementation "androidx.annotation:annotation:1.0.0"
|
||||
// implementation "com.android.support:support-compat:${safeExtGet('supportLibVersion', '+')}"
|
||||
implementation "androidx.core:core:1.0.0"
|
||||
// implementation "com.android.support:support-media-compat:${safeExtGet('supportLibVersion', '+')}"
|
||||
implementation "androidx.media:media:1.0.0"
|
||||
implementation "com.android.support:support-annotations:${safeExtGet('supportLibVersion', '28.0.0')}"
|
||||
implementation "com.android.support:support-compat:${safeExtGet('supportLibVersion', '28.0.0')}"
|
||||
implementation "com.android.support:support-media-compat:${safeExtGet('supportLibVersion', '28.0.0')}"
|
||||
|
||||
implementation('com.google.android.exoplayer:extension-okhttp:2.9.3') {
|
||||
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
|
||||
|
@ -2,7 +2,7 @@ package com.brentvatne.exoplayer;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.Gravity;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.brentvatne.exoplayer;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
import android.support.annotation.IntDef;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.brentvatne.exoplayer;
|
||||
|
||||
import androidx.annotation.StringDef;
|
||||
import android.support.annotation.StringDef;
|
||||
import android.view.View;
|
||||
|
||||
import com.facebook.react.bridge.Arguments;
|
||||
|
@ -132,8 +132,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation project(':react-native-video')
|
||||
// compile "com.android.support:appcompat-v7:25.2.0"
|
||||
implementation "androidx.appcompat:appcompat:1.0.0"
|
||||
compile "com.android.support:appcompat-v7:28.0.0"
|
||||
implementation "com.facebook.react:react-native:+" // From node_modules
|
||||
// implementation project(':react-native-video')
|
||||
// compile project(':react-native-video-exoplayer') // uncomment to use exoplayer
|
||||
|
@ -18,5 +18,3 @@
|
||||
# org.gradle.parallel=true
|
||||
|
||||
android.useDeprecatedNdk=true
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
Loading…
Reference in New Issue
Block a user