提交 bf4f653b 编写于 作者: lizhongyi_'s avatar lizhongyi_

新增iOS混编示例代码

(cherry picked from commit f3924db7)
上级 ba58c133
...@@ -6,6 +6,9 @@ export function testNativeCode(): Result { ...@@ -6,6 +6,9 @@ export function testNativeCode(): Result {
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
expect(NativeCode.getNativeStr()).toEqual("android-code"); expect(NativeCode.getNativeStr()).toEqual("android-code");
// #endif // #endif
// #ifdef APP-IOS
expect(NativeCode.getNativeStr()).toEqual("iOS-code");
// #endif
}) })
}) })
} }
import Foundation
class NativeCode {
static func getNativeStr() -> String {
return "iOS-code"
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册