We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d53461 commit 562166cCopy full SHA for 562166c
src/CapabilityManager.ts
@@ -45,10 +45,17 @@ async function findAppPath(caps: any) {
45
where: { uploadedFileName: fileName as string },
46
});
47
return `${DevicePlugin.serverUrl}${appInfo?.path}`;
48
+ } else if (fileName && /^[A-Za-z]+[A-Za-z0-9_\-\.]+\.(zip|apk|aab|ipa|app)$/.test(fileName)) {
49
+ const appInfo: any = await prisma.appInformation.findFirst({
50
+ where: { fileName: fileName as string },
51
+ orderBy: { createdAt: 'desc' },
52
+ });
53
+ return appInfo ? `${DevicePlugin.serverUrl}${appInfo?.path}` : fileName;
54
} else {
55
return fileName;
56
}
57
58
+
59
export async function androidCapabilities(
60
caps: ISessionCapability,
61
freeDevice: IDevice,
0 commit comments