提交 821b8a28 编写于 作者: fxy060608's avatar fxy060608

wip(uts): 支持 java 混编

上级 18c9c324
......@@ -368,7 +368,7 @@ export async function runKotlinDev(
const platformFiles = copyPlatformFiles(
path.resolve(inputDir, pluginRelativeDir, 'utssdk', 'app-android'),
path.resolve(outputDir, pluginRelativeDir, 'utssdk', 'app-android'),
['.kt']
['.kt', '.java']
)
kotlinFiles.push(...platformFiles)
......
......@@ -164,7 +164,8 @@ export function genUTSPlatformResource(
const utsInputDir = resolveUTSPlatformDir(filename, platform)
const utsOutputDir = resolveUTSPlatformDir(platformFile, platform)
const extname: string[] = [options.extname]
const extname: string[] =
options.extname === '.kt' ? ['.kt', '.java'] : [options.extname]
// 拷贝所有非uts,vue文件及目录
if (fs.existsSync(utsInputDir)) {
fs.copySync(utsInputDir, utsOutputDir, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册