!718 【master】适配hypium框架

Merge pull request !718 from 杨启博/master
This commit is contained in:
openharmony_ci 2024-10-08 08:40:44 +00:00 committed by Gitee
commit 9bc8b375a3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 0 additions and 15 deletions

View File

@ -17,16 +17,11 @@ import UIAbility from '@ohos.app.ability.UIAbility';
import hilog from '@ohos.hilog';
import window from '@ohos.window';
import AcCtrl from '@ohos.abilityAccessCtrl';
import {Core} from 'deccjsunit/index';
let AcManager = AcCtrl.createAtManager();
export default class MainAbility extends UIAbility {
onCreate(want, launchParam) {
console.info('AceApplication onCreate');
const core = Core.getInstance();
core.init();
const configService = core.getDefaultService('config');
configService.setConfig(this);
console.info('Calc[IndexPage] grantPermission');
AcManager.requestPermissionsFromUser(this.context, ['ohos.permission.DISTRIBUTED_DATASYNC'], function (result) {

View File

@ -17,16 +17,11 @@ import UIAbility from '@ohos.app.ability.UIAbility';
import hilog from '@ohos.hilog';
import window from '@ohos.window';
import AcCtrl from '@ohos.abilityAccessCtrl';
import {Core} from 'deccjsunit/index';
let AcManager = AcCtrl.createAtManager();
export default class MainAbility extends UIAbility {
onCreate(want, launchParam) {
console.info('AceApplication onCreate');
const core = Core.getInstance();
core.init();
const configService = core.getDefaultService('config');
configService.setConfig(this);
console.info('Calc[IndexPage] grantPermission');
AcManager.requestPermissionsFromUser(this.context, ['ohos.permission.DISTRIBUTED_DATASYNC'], function (result) {

View File

@ -17,16 +17,11 @@ import UIAbility from '@ohos.app.ability.UIAbility';
import hilog from '@ohos.hilog';
import window from '@ohos.window';
import AcCtrl from '@ohos.abilityAccessCtrl';
import {Core} from 'deccjsunit/index';
let AcManager = AcCtrl.createAtManager();
export default class MainAbility extends UIAbility {
onCreate(want, launchParam) {
console.info('AceApplication onCreate');
const core = Core.getInstance();
core.init();
const configService = core.getDefaultService('config');
configService.setConfig(this);
console.info('Calc[IndexPage] grantPermission');
AcManager.requestPermissionsFromUser(this.context, ['ohos.permission.DISTRIBUTED_DATASYNC'], function (result) {