diff --git a/uni_modules/uts-tests/utssdk/NativeCode.uts b/uni_modules/uts-tests/utssdk/NativeCode.uts index ed5f5f66a224c8c1c496ef71e492d848f31d756c..201a49c6dde799fdb92a5b9d4b12a833b9160912 100644 --- a/uni_modules/uts-tests/utssdk/NativeCode.uts +++ b/uni_modules/uts-tests/utssdk/NativeCode.uts @@ -6,6 +6,9 @@ export function testNativeCode(): Result { // #ifdef APP-ANDROID expect(NativeCode.getNativeStr()).toEqual("android-code"); // #endif + // #ifdef APP-IOS + expect(NativeCode.getNativeStr()).toEqual("iOS-code"); + // #endif }) }) } diff --git a/uni_modules/uts-tests/utssdk/app-ios/SwiftCode.swift b/uni_modules/uts-tests/utssdk/app-ios/SwiftCode.swift new file mode 100644 index 0000000000000000000000000000000000000000..e713ddd8a709f868879c38e7d6c1afba2956950a --- /dev/null +++ b/uni_modules/uts-tests/utssdk/app-ios/SwiftCode.swift @@ -0,0 +1,7 @@ +import Foundation + +class NativeCode { + static func getNativeStr() -> String { + return "iOS-code" + } +}