Skip to content

Commit

Permalink
(Android) Revisit kotlin stdlib issue fix for projects compiling detox
Browse files Browse the repository at this point in the history
  • Loading branch information
d4vidi committed May 6, 2019
1 parent 72e9210 commit ef5246d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion detox/android/detox/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion
def _buildToolsVersion = _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '27.0.3'
def _minSdkVersion = _ext.has('minSdkVersion') ? _ext.minSdkVersion : 18
def _targetSdkVersion = _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 25
def _kotlinVersion = _ext.has('detoxKotlinVersion') ? _ext.detoxKotlinVersion : '1.2.0'
def _kotlinStdlib = _ext.has('detoxKotlinStdlib') ? _ext.detoxKotlinStdlib : 'kotlin-stdlib-jdk8'

android {
compileSdkVersion _compileSdkVersion
Expand Down Expand Up @@ -57,7 +59,7 @@ android {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.0"
implementation "org.jetbrains.kotlin:$_kotlinStdlib:$_kotlinVersion"

// noinspection GradleDynamicVersion
compileOnly 'com.facebook.react:react-native:+'
Expand Down

0 comments on commit ef5246d

Please sign in to comment.