diff --git a/examples/basic/android/app/build.gradle b/examples/basic/android/app/build.gradle index 7b7b949d..f36650be 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 { @@ -133,8 +133,8 @@ android { dependencies { implementation project(':react-native-video') compile "com.android.support:appcompat-v7:28.0.0" + implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" implementation "com.facebook.react:react-native:+" // From node_modules - // implementation project(':react-native-video') // compile project(':react-native-video-exoplayer') // uncomment to use exoplayer }