mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-22 16:23:50 +00:00
fix for repos in building
This commit is contained in:
parent
9e02c3e5ff
commit
2f9aa585f1
@ -1,5 +1,21 @@
|
|||||||
apply plugin: 'com.getkeepsafe.dexcount'
|
apply plugin: 'com.getkeepsafe.dexcount'
|
||||||
|
|
||||||
|
ext {
|
||||||
|
enableIncludingJvmCodeInAndroidPart = {
|
||||||
|
String sep = File.separator
|
||||||
|
File jvmKotlinFolder = new File("${project.projectDir}${sep}src${sep}jvmMain${sep}kotlin")
|
||||||
|
if (jvmKotlinFolder.exists()) {
|
||||||
|
android.sourceSets.main.java.srcDirs += jvmKotlinFolder.path
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
disableIncludingJvmCodeInAndroidPart = {
|
||||||
|
String sep = File.separator
|
||||||
|
File jvmKotlinFolder = new File("${project.projectDir}${sep}src${sep}jvmMain${sep}kotlin")
|
||||||
|
android.sourceSets.main.java.srcDirs -= jvmKotlinFolder.path
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion "$android_compileSdkVersion".toInteger()
|
compileSdkVersion "$android_compileSdkVersion".toInteger()
|
||||||
buildToolsVersion "$android_buildToolsVersion"
|
buildToolsVersion "$android_buildToolsVersion"
|
||||||
@ -37,9 +53,6 @@ android {
|
|||||||
sourceSets {
|
sourceSets {
|
||||||
String sep = File.separator
|
String sep = File.separator
|
||||||
main.java.srcDirs += "src${sep}main${sep}kotlin"
|
main.java.srcDirs += "src${sep}main${sep}kotlin"
|
||||||
File jvmKotlinFolder = new File("${project.projectDir}${sep}src${sep}jvmMain${sep}kotlin")
|
enableIncludingJvmCodeInAndroidPart()
|
||||||
if (jvmKotlinFolder.exists()) {
|
|
||||||
main.java.srcDirs += jvmKotlinFolder.path
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,4 +30,6 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disableIncludingJvmCodeInAndroidPart()
|
||||||
|
Loading…
Reference in New Issue
Block a user