Android tests: copy kotlin-reflect.jar to test android application
This commit is contained in:
+7
-3
@@ -71,8 +71,8 @@ public class CodegenTestsOnAndroidGenerator extends UsefulTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void prepareAndroidModule() throws IOException {
|
private void prepareAndroidModule() throws IOException {
|
||||||
System.out.println("Copying kotlin-runtime.jar in android module...");
|
System.out.println("Copying kotlin-runtime.jar and kotlin-reflect.jar in android module...");
|
||||||
copyKotlinRuntimeJar();
|
copyKotlinRuntimeJars();
|
||||||
|
|
||||||
System.out.println("Check \"libs\" folder in tested android module...");
|
System.out.println("Check \"libs\" folder in tested android module...");
|
||||||
File libsFolderInTestedModule = new File(pathManager.getLibsFolderInAndroidTestedModuleTmpFolder());
|
File libsFolderInTestedModule = new File(pathManager.getLibsFolderInAndroidTestedModuleTmpFolder());
|
||||||
@@ -81,11 +81,15 @@ public class CodegenTestsOnAndroidGenerator extends UsefulTestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void copyKotlinRuntimeJar() throws IOException {
|
private void copyKotlinRuntimeJars() throws IOException {
|
||||||
FileUtil.copy(
|
FileUtil.copy(
|
||||||
ForTestCompileRuntime.runtimeJarForTests(),
|
ForTestCompileRuntime.runtimeJarForTests(),
|
||||||
new File(pathManager.getLibsFolderInAndroidTmpFolder() + "/kotlin-runtime.jar")
|
new File(pathManager.getLibsFolderInAndroidTmpFolder() + "/kotlin-runtime.jar")
|
||||||
);
|
);
|
||||||
|
FileUtil.copy(
|
||||||
|
ForTestCompileRuntime.reflectJarForTests(),
|
||||||
|
new File(pathManager.getLibsFolderInAndroidTmpFolder() + "/kotlin-reflect.jar")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void generateAndSave() throws Throwable {
|
private void generateAndSave() throws Throwable {
|
||||||
|
|||||||
@@ -68,6 +68,8 @@ public class SpecialFiles {
|
|||||||
excludedFiles.add("classpath.kt"); // Some classes are not visible on android
|
excludedFiles.add("classpath.kt"); // Some classes are not visible on android
|
||||||
|
|
||||||
excludedFiles.add("manyNumbers.kt"); // Out of memory
|
excludedFiles.add("manyNumbers.kt"); // Out of memory
|
||||||
|
|
||||||
|
excludedFiles.add("smap"); // Line numbers
|
||||||
}
|
}
|
||||||
|
|
||||||
private SpecialFiles() {
|
private SpecialFiles() {
|
||||||
|
|||||||
Reference in New Issue
Block a user