diff --git a/examples/basic/android/app/build.gradle b/examples/basic/android/app/build.gradle index 98131921..77cc9f7a 100644 --- a/examples/basic/android/app/build.gradle +++ b/examples/basic/android/app/build.gradle @@ -83,16 +83,16 @@ def enableSeparateBuildPerCPUArchitecture = false def enableProguardInReleaseBuilds = false android { - compileSdkVersion 28 - buildToolsVersion '28.0.3' + compileSdkVersion rootProject.ext.compileSdkVersion + buildToolsVersion rootProject.ext.buildToolsVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.videoplayer" - minSdkVersion 16 - targetSdkVersion 28 + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" ndk { @@ -132,11 +132,8 @@ android { dependencies { implementation project(':react-native-video') - // compile "com.android.support:appcompat-v7:25.2.0" implementation "androidx.appcompat:appcompat:1.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 } // Run this once to be able to run the application with BUCK diff --git a/examples/basic/android/build.gradle b/examples/basic/android/build.gradle index 3161c39d..5e5d6dec 100644 --- a/examples/basic/android/build.gradle +++ b/examples/basic/android/build.gradle @@ -24,9 +24,7 @@ buildscript { allprojects { repositories { mavenLocal() - maven { - url 'https://maven.google.com' - } + google() maven { url "https://jitpack.io" } diff --git a/examples/basic/android/settings.gradle b/examples/basic/android/settings.gradle index 4de2c783..5fc7fca4 100644 --- a/examples/basic/android/settings.gradle +++ b/examples/basic/android/settings.gradle @@ -3,10 +3,4 @@ rootProject.name = 'VideoPlayer' include ':react-native-video' project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer') -// Quick Local Development -//project(':react-native-video').projectDir = new File(rootProject.projectDir, '../../android') -//project(':react-native-video-exoplayer').projectDir = new File(rootProject.projectDir, '../../android-exoplayer') - -// project(':react-native-video').projectDir = new File(rootProject.projectDir, '../../android') -// project(':react-native-video-exoplayer').projectDir = new File(rootProject.projectDir, '../../android-exoplayer') include ':app'