已合并
同源代码示例增加import导包 #10809
gaoshenxu创建于 8月6日
同源代码示例增加import导包 #10809
已合并
共 3 个文件变更+3-3
| @@ -13,13 +13,13 @@ | |||
| 13 | * limitations under the License. | 13 | * limitations under the License. |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | +// [Start register_init_scheme] | ||
| 16 | import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit'; | 17 | import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit'; |
| 17 | import { hilog } from '@kit.PerformanceAnalysisKit'; | 18 | import { hilog } from '@kit.PerformanceAnalysisKit'; |
| 18 | import { window } from '@kit.ArkUI'; | 19 | import { window } from '@kit.ArkUI'; |
| 19 | import testNapi from 'libentry.so'; | 20 | import testNapi from 'libentry.so'; |
| 20 | import { webview } from '@kit.ArkWeb'; | 21 | import { webview } from '@kit.ArkWeb'; |
| 21 | 22 | ||
| 22 | -// [Start register_init_scheme] | ||
| 23 | export default class EntryAbility extends UIAbility { | 23 | export default class EntryAbility extends UIAbility { |
| 24 | onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void { | 24 | onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void { |
| 25 | // 注册三方协议的配置。 | 25 | // 注册三方协议的配置。 |
| @@ -13,8 +13,8 @@ | |||
| 13 | * limitations under the License. | 13 | * limitations under the License. |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | -import { window } from '@kit.ArkUI'; | ||
| 17 | // [Start set_web_darkmode_auto] | 16 | // [Start set_web_darkmode_auto] |
| 17 | +import { window } from '@kit.ArkUI'; | ||
| 18 | import { AbilityConstant, ConfigurationConstant, UIAbility, Want, Configuration } from '@kit.AbilityKit'; | 18 | import { AbilityConstant, ConfigurationConstant, UIAbility, Want, Configuration } from '@kit.AbilityKit'; |
| 19 | import { hilog } from '@kit.PerformanceAnalysisKit'; | 19 | import { hilog } from '@kit.PerformanceAnalysisKit'; |
| 20 | 20 | ||