mirror of
https://gitee.com/openharmony/xts_dcts
synced 2024-11-27 01:40:46 +00:00
commit
9bc8b375a3
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user