mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-26 20:18:48 +00:00
hotfix
This commit is contained in:
parent
2f9aa585f1
commit
30292306bb
@ -1,18 +1,27 @@
|
|||||||
apply plugin: 'com.getkeepsafe.dexcount'
|
apply plugin: 'com.getkeepsafe.dexcount'
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
enableIncludingJvmCodeInAndroidPart = {
|
jvmKotlinFolderFile = {
|
||||||
String sep = File.separator
|
String sep = File.separator
|
||||||
File jvmKotlinFolder = new File("${project.projectDir}${sep}src${sep}jvmMain${sep}kotlin")
|
return new File("${project.projectDir}${sep}src${sep}jvmMain${sep}kotlin")
|
||||||
|
}
|
||||||
|
|
||||||
|
enableIncludingJvmCodeInAndroidPart = {
|
||||||
|
File jvmKotlinFolder = jvmKotlinFolderFile()
|
||||||
if (jvmKotlinFolder.exists()) {
|
if (jvmKotlinFolder.exists()) {
|
||||||
android.sourceSets.main.java.srcDirs += jvmKotlinFolder.path
|
android.sourceSets.main.java.srcDirs += jvmKotlinFolder.path
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
disableIncludingJvmCodeInAndroidPart = {
|
disableIncludingJvmCodeInAndroidPart = {
|
||||||
String sep = File.separator
|
File jvmKotlinFolder = jvmKotlinFolderFile()
|
||||||
File jvmKotlinFolder = new File("${project.projectDir}${sep}src${sep}jvmMain${sep}kotlin")
|
String[] oldDirs = android.sourceSets.main.java.srcDirs
|
||||||
android.sourceSets.main.java.srcDirs -= jvmKotlinFolder.path
|
android.sourceSets.main.java.srcDirs = []
|
||||||
|
for (oldDir in oldDirs) {
|
||||||
|
if (oldDir != jvmKotlinFolder.path) {
|
||||||
|
android.sourceSets.main.java.srcDirs += oldDir
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user