aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-06-07 13:18:39 -0400
committerAllan Wang <me@allanwang.ca>2019-06-07 13:18:39 -0400
commit6e37f118bfa98c07699d1d610a1549923d446ebe (patch)
tree697f7672ce80e46a219ddf9c70e20f116a5879ea
parent77be91c57b36ae85b6be34d3db864fcd63661018 (diff)
downloadkau-6e37f118bfa98c07699d1d610a1549923d446ebe.tar.gz
kau-6e37f118bfa98c07699d1d610a1549923d446ebe.tar.bz2
kau-6e37f118bfa98c07699d1d610a1549923d446ebe.zip
Enforce java 1.8 to fix build problems
-rw-r--r--.idea/misc.xml2
-rw-r--r--android-lib.gradle5
-rw-r--r--sample/build.gradle5
3 files changed, 11 insertions, 1 deletions
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 51fa3e5..cc04cd3 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -35,7 +35,7 @@
</value>
</option>
</component>
- <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
diff --git a/android-lib.gradle b/android-lib.gradle
index e8a4c6d..28fc945 100644
--- a/android-lib.gradle
+++ b/android-lib.gradle
@@ -61,6 +61,11 @@ android {
pickFirst 'META-INF/library_release.kotlin_module'
}
+ compileOptions {
+ sourceCompatibility '1.8'
+ targetCompatibility '1.8'
+ }
+
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
diff --git a/sample/build.gradle b/sample/build.gradle
index bb7cab0..d11e5bd 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -80,6 +80,11 @@ android {
pickFirst 'META-INF/library_release.kotlin_module'
}
+ compileOptions {
+ sourceCompatibility '1.8'
+ targetCompatibility '1.8'
+ }
+
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'