diff --git a/uni_modules/uts-helloworld/utssdk/app-ios/index.uts b/uni_modules/uts-helloworld/utssdk/app-ios/index.uts deleted file mode 100644 index e42147d6364ff99715cf8cf1530f0f5342dfb082..0000000000000000000000000000000000000000 --- a/uni_modules/uts-helloworld/utssdk/app-ios/index.uts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * json参数格式定义 - */ -type inputJSON = { - inputText: string, - errCode: number -} -/** - * json入参格式 - */ -type JsonParamOptions = { - input: inputJSON; - success: (res: string) => void; - fail: (res: string) => void; - complete: (res: string) => void; -}; - - -/** - * 导出无参的UTS函数 - * @param opts - */ -export function callWithoutParam(success: () => void) { - success(); - return { name: "doSthWithCallback" }; -} - -/** - * 导出一个字符串入参的UTS函数 - */ -export function callWithStringParam(input: string, success: (res: string) => void) { - success(input); - return { name: "doSthWithCallback" }; -} - -/** - * 导出一个JSON入参的UTS函数 - */ -export function callWithJSONParam(opts: JsonParamOptions) { - opts.input.errCode = 10; - opts.success(opts.input); - return { name: "doSthWithCallback" }; -} - - - diff --git a/uni_modules/uts-helloworld/utssdk/app-android/index.uts b/uni_modules/uts-helloworld/utssdk/index.uts similarity index 100% rename from uni_modules/uts-helloworld/utssdk/app-android/index.uts rename to uni_modules/uts-helloworld/utssdk/index.uts