Add additional java source dir to source set in android test
This commit is contained in:
+1
@@ -13,6 +13,7 @@ android {
|
||||
buildToolsVersion "21.1.2"
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/java2'
|
||||
main.kotlin.srcDirs += 'root/kotlin'
|
||||
test.kotlin.srcDirs += 'src/test/kotlin'
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package foo;
|
||||
|
||||
import bar.*;
|
||||
|
||||
public class FooJavaClass {
|
||||
void f() {
|
||||
new FooKotlinClass();
|
||||
new BarJavaClass();
|
||||
new BarKotlinClass();
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package foo
|
||||
|
||||
import bar.*
|
||||
|
||||
class FooKotlinClass {
|
||||
fun f() {
|
||||
FooJavaClass()
|
||||
BarJavaClass()
|
||||
BarKotlinClass()
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package bar;
|
||||
|
||||
import foo.*;
|
||||
|
||||
public class BarJavaClass {
|
||||
void f() {
|
||||
new BarKotlinClass();
|
||||
new FooJavaClass();
|
||||
new FooKotlinClass();
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package bar
|
||||
|
||||
import foo.*
|
||||
|
||||
class BarKotlinClass {
|
||||
fun f() {
|
||||
BarJavaClass()
|
||||
FooJavaClass()
|
||||
FooKotlinClass()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user