Use variable for 'sourceCompatibility' and 'targetCompatibility' values

This commit is contained in:
cketti 2019-11-13 16:10:14 +01:00
parent b6819eabf1
commit 105622a999
18 changed files with 36 additions and 34 deletions

View file

@ -39,8 +39,8 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
testOptions {

View file

@ -55,8 +55,8 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
testOptions {

View file

@ -27,7 +27,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -98,8 +98,8 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
testOptions {

View file

@ -39,8 +39,8 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
testOptions {

View file

@ -29,7 +29,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -79,8 +79,8 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
testOptions {

View file

@ -24,7 +24,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -42,7 +42,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -42,7 +42,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -41,7 +41,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -33,6 +33,8 @@ buildscript {
'mockitoKotlin': '1.5.0',
'truth': '0.35'
]
javaVersion = JavaVersion.VERSION_1_7
}
repositories {

View file

@ -50,7 +50,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -48,7 +48,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -43,7 +43,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -43,7 +43,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -48,7 +48,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}

View file

@ -27,7 +27,7 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
}