提交 840d9470 编写于 作者: WOSHIMAHAIFENG's avatar WOSHIMAHAIFENG

Merge branch 'dev-activitycb' into 'dev'

[activity-callback]添加条件编译

See merge request !6
...@@ -98,8 +98,8 @@ export async function testAsync(opts : AsyncOptions) : Promise<SyntaxResult> { ...@@ -98,8 +98,8 @@ export async function testAsync(opts : AsyncOptions) : Promise<SyntaxResult> {
} }
export async function testAsyncParam3(id:number,name:string,opts : AsyncOptions) : Promise<SyntaxResult> { export async function testAsyncParam3(id : number, name : string, opts : AsyncOptions) : Promise<SyntaxResult> {
console.log("id",id,"name",name) console.log("id", id, "name", name)
if (opts.type == "success") { if (opts.type == "success") {
opts.success("success"); opts.success("success");
} else { } else {
...@@ -166,9 +166,8 @@ class RequestTaskImpl implements RequestTask { ...@@ -166,9 +166,8 @@ class RequestTaskImpl implements RequestTask {
export function request(url : string) : RequestTask | null { export function request(url : string) : RequestTask | null {
return new RequestTaskImpl(url) return new RequestTaskImpl(url)
} }
// #ifdef APP-ANDROID
// #ifdef UNI-APP-X
// #ifdef UNI-APP-X
import KeyEvent from 'android.view.KeyEvent'; import KeyEvent from 'android.view.KeyEvent';
import Configuration from 'android.content.res.Configuration'; import Configuration from 'android.content.res.Configuration';
import Bundle from 'android.os.Bundle'; import Bundle from 'android.os.Bundle';
...@@ -332,4 +331,5 @@ export class UTSActivityComponentCallback extends UniActivityComponentCallback { ...@@ -332,4 +331,5 @@ export class UTSActivityComponentCallback extends UniActivityComponentCallback {
callback('onPreConfigurationChanged') callback('onPreConfigurationChanged')
} }
} }
// #endif // #endif
\ No newline at end of file // #endif
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册