PK !:Np  "ets/Application/MyAbilityStage.abcPANDA o <L`m m,(8AITa<'L_ESTypeAnnotation; .#1# .#2# .#3#.MyAbilityStageE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\Application\MyAbilityStage.ets?entry ObjectC_3acf90a509f14590cec9be8c1cf8e5ea__esModule__importDefault1app.ability.AbilityStagedefaultdefinePropertyexports lengthprototyperequireNapiuse strict3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;K$Y$Oa1>14funcObjany0newTarget'__webpack_exports__ 0this'__webpack_modules__E:/ROUTE_FIX/applications_app_samples_5/code/BasicFeature/TaskManagement/WorkScheduler/entry/build/default/intermediates/loader_out/default/ets/Application/MyAbilityStage_.js#2# thisA_ohos_app_ability_AbilityStage_1MyAbilityStage4newTarget/__unused_webpack_module#3#mod argsfunc_main_0'var _3acf90a509f14590cec9be8c1cf8e5ea; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ets?entry": /*!******************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\Application\MyAbilityStage.ets?entry ***! \******************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_app_ability_AbilityStage_1 = globalThis.requireNapi('app.ability.AbilityStage'); class MyAbilityStage extends _ohos_app_ability_AbilityStage_1 { } globalThis.exports.default = MyAbilityStage; /***/ }) /******/ }); /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = {}; /******/ __webpack_modules__["E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ets?entry"](0, __webpack_exports__); /******/ _3acf90a509f14590cec9be8c1cf8e5ea = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=MyAbilityStage.js.map, ^ valueSlotNumber  7 7 7 7 QDDDaa> a3`aa`a>a`7aba`a `/ `eDDEEEaa`a $Q`a ` BM` a #Q 3M` a?a ` Ba `a >a a ` a ` 0 ma ` B a >a ` . a`a 5  a a ` B a ` ama ` Ba `C e.D`DqDD`$Q`a`B$Q`Ma`z`d@DpDDDa`aaba``B a``a``a`d!DP`=`=3 a`)e m > p     /      z  ? $z$)$   .         1         /     0   i       8- ( ?( > >             0     % +8+    8 l     k8PK !:F !ets/Application/MyAbilityStage.jsvar _3acf90a509f14590cec9be8c1cf8e5ea; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ets?entry": /*!******************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\Application\MyAbilityStage.ets?entry ***! \******************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_app_ability_AbilityStage_1 = globalThis.requireNapi('app.ability.AbilityStage'); class MyAbilityStage extends _ohos_app_ability_AbilityStage_1 { } globalThis.exports.default = MyAbilityStage; /***/ }) /******/ }); /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = {}; /******/ __webpack_modules__["E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ets?entry"](0, __webpack_exports__); /******/ _3acf90a509f14590cec9be8c1cf8e5ea = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=MyAbilityStage.js.mapPK !:j[D  %ets/Application/MyAbilityStage.js.map{"version":3,"file":"./Application/MyAbilityStage.js","mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;AAEH;AAEA,MAAqB,cAAe,SAAQ;CAC3C;AADD,iCACC;;;;;;;;UElBD;UACA;UACA;UACA;UACA","sources":["webpack:///E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ets","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":"","nameMap":["_ohos_app_ability_AbilityStage_1","AbilityStage"]}PK !:Jj||ets/MainAbility/MainAbility.abcPANDAL=m |<L  .XiXX9XWWtXqVfWCWVXW0WVIV(V%WfVVV>VUVW|V3VUXVUU| .V'AIPU]kw-6Ap~ !UZcx 1 D W g ~    ! 1 9 M T d m q z   ) / 8 G _   ! M X b o {  # * = H d o z C?[_{#Rm6LUUUUVV(V3V>VIVfVqV|VVVVW%W0WCWfWWWW9XVXiXtXXXXp'L_ESTypeAnnotation;-%{public}s, %{public}s, message is .#1# .#10# .#11# .#2# .#3# .#4# .#5# .#6# .#7# .#8# .#9#7../../api/@ohos.window.d.ts.LoggerModel.MainAbility).__webpack_require__.getNewHap'.handleNotification.installBundle.isCommonModue.onConsume).publishNotification.saveFile%.startUpdateSample1/UpdateWorkScheduler.hap /files /haps1.0 ?name=ARRAY_BUFFERAppStorageBUNDLE_NAMEBUNDLE_NAMESContentTypeE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\MainAbility\MainAbility.ets?entryE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\feature\WorkSchedulerSystem.etsE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\utils\Logger.etsFILE_NAME[Failed to load the content. Cause: %{public}sHttpDataType#INSTALL_PARAMETER JSON LoggerLogger_1MainAbility#NETWORK_TYPE_WIFI?NOTIFICATION_CONTENT_BASIC_TEXTNetworkType ObjectPERMISSIONSSetOrCreate StringeSucceeded in loading the content. Data: %{public}sTAGVERSION'WorkSchedulerSystem+WorkSchedulerSystem_1M[Sample_workSchedulerExtensionAbility]C_3acf90a509f14590cec9be8c1cf8e5eaq__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea__esModule__importDefault#abilityAccessCtrl#account.osAccountadditionalText+app.ability.UIAbility bundle!bundle.installerbundleNamebundleNames callcatch err->closeSync codecontentcontentTypecontextcreateAtManagercreateHttp debugdefaultdefineProperty domain%enableNotification errorexpectDataTypeexportsfdfile.fsfilePathfilesDir format7get result failed, code is #getAccountManager%getBundleInstallergetNewHap=getOsAccountLocalIdFromProcess%handleNotification hilogindexOf infoinstallinstallBundle-installBundle code is =installBundle failed, code is 5installBundle filepath is installFlag+isNotificationEnabledisReadyisShowDialog lengthloadContentmessagenet.httpnetworkType normalnotificationUohos.samples.workschedulerextensionabilityonConsumeopenSyncpages/Indexparameters prefixprototypepublish'publishNotificationrequest5requestPermissionsFromUserrequireNapi=resourceschedule.workSchedulersaveFile3saveFile failed, code is split#startUpdateSamplestartWork5startWork failed, code is stringifysubscribe text titleuse strict userIdversion warn[webpackChunk_3acf90a509f14590cec9be8c1cf8e5eawriteSync3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;)[OnZzU\oZ]ppZ]qZ^FrZd`rZ`sZa6tZatZR\nZtI\nZ) gDy/[ m~/[ `dZw/[M dw/[Ui{V[ k}}[ e4x}[M iD{I["buZbuZxdw[8 Ogy<[5hzV[* lo~[ fx"[ cv[UjU|c[ k|p[4funcObjany0newTarget'__webpack_exports__ 0thisE:/ROUTE_FIX/applications_app_samples_5/code/BasicFeature/TaskManagement/WorkScheduler/entry/build/default/intermediates/loader_out/default/ets/MainAbility/MainAbility_.js #10#4newTarget thismod #11##2#;_ohos_app_ability_UIAbility_1'__webpack_require__/__unused_webpack_module#3##4#_berr_a data#5##6##7##8#statusMessage status#9#LoggerModel argsisCommonModue modulecachedModule%commonCachedModulemoduleIdfunc_main_0var _3acf90a509f14590cec9be8c1cf8e5ea; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ets?entry": /*!***************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\MainAbility\MainAbility.ets?entry ***! \***************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_app_ability_UIAbility_1 = globalThis.requireNapi('app.ability.UIAbility'); __webpack_require__(/*! @ohos.window */ "../../api/@ohos.window.d.ts"); const Logger_1 = __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); var _ohos_abilityAccessCtrl_1 = globalThis.requireNapi('abilityAccessCtrl'); const WorkSchedulerSystem_1 = __webpack_require__(/*! ../feature/WorkSchedulerSystem */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets"); const TAG = 'MainAbility'; const VERSION = '1.0'; const BUNDLE_NAME = 'ohos.samples.workschedulerextensionability'; const PERMISSIONS = ['ohos.permission.INTERNET', 'ohos.permission.INSTALL_BUNDLE', 'ohos.permission.NOTIFICATION_CONTROLLER']; class MainAbility extends _ohos_app_ability_UIAbility_1 { onCreate(want, launchParam) { try { _ohos_abilityAccessCtrl_1.createAtManager().requestPermissionsFromUser(this.context, PERMISSIONS); } catch (err) { Logger_1.Logger.info(TAG, `catch err->${JSON.stringify(err)}`); } AppStorage.SetOrCreate('filePath', this.context.filesDir); } onWindowStageCreate(windowStage) { WorkSchedulerSystem_1.WorkSchedulerSystem.handleNotification(BUNDLE_NAME); let filePath = `${this.context.filesDir.split('/haps')[0]}/files`; WorkSchedulerSystem_1.WorkSchedulerSystem.startUpdateSample(VERSION, BUNDLE_NAME, filePath); windowStage.loadContent('pages/Index', (err, data) => { var _a, _b; if (err.code) { Logger_1.Logger.error('Failed to load the content. Cause: %{public}s', (_a = JSON.stringify(err)) !== null && _a !== void 0 ? _a : ''); return; } Logger_1.Logger.info('Succeeded in loading the content. Data: %{public}s', (_b = JSON.stringify(data)) !== null && _b !== void 0 ? _b : ''); }); } } globalThis.exports.default = MainAbility; /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets": /*!*************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\feature\WorkSchedulerSystem.ets ***! \*************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WorkSchedulerSystem = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_file_fs_1 = globalThis.requireNapi('file.fs'); var _ohos_notification_1 = globalThis.requireNapi('notification'); var _ohos_bundle_installer_1 = globalThis.requireNapi('bundle.installer'); var _ohos_account_osAccount_1 = globalThis.requireNapi('account.osAccount'); var _ohos_resourceschedule_workScheduler_1 = globalThis.requireNapi('resourceschedule.workScheduler'); var _ohos_net_http_1 = globalThis.requireNapi('net.http'); const Logger_1 = __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); const FILE_NAME = '/UpdateWorkScheduler.hap'; const BUNDLE_NAMES = ['ohos.samples.workschedulerextensionability']; const INSTALL_PARAMETER = 1; var WorkSchedulerSystem; (function (WorkSchedulerSystem) { /** * Store the file to the specified directory. * * @param pathDir Path to save the file. * @param content The contents of the file to be saved. */ function saveFile(pathDir, content) { try { let filePath = pathDir + FILE_NAME; let fd = _ohos_file_fs_1.openSync(filePath, 0o2 | 0o100).fd; _ohos_file_fs_1.writeSync(fd, content); _ohos_file_fs_1.closeSync(fd); } catch (err) { Logger_1.Logger.error(`saveFile failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.saveFile = saveFile; /** * Sending a Notification. * * @param bundleName Check the name of the application that has permission. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ async function handleNotification(bundleName) { let isHavePermission = await _ohos_notification_1.isNotificationEnabled({ bundle: bundleName }); if (!isHavePermission) { await _ohos_notification_1.enableNotification({ bundle: bundleName }, true); } _ohos_notification_1.subscribe({ onConsume: (data) => { if (data.request.content.normal.text === 'isReady') { AppStorage.SetOrCreate('isShowDialog', true); } } }, { bundleNames: BUNDLE_NAMES }); } WorkSchedulerSystem.handleNotification = handleNotification; /** * Publishes a notification of the specified content. * * @param title Title of Notice. * @param text Content of Notification Text. * @param additionalText Additional text. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ function publishNotification(title, text, additionalText) { _ohos_notification_1.publish({ content: { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title, text, additionalText } } }); } WorkSchedulerSystem.publishNotification = publishNotification; /** * Install the application package in the specified path. * * @param filePath An array of paths to hold the installation package. * @permission ohos.permission.INSTALL_BUNDLE */ async function installBundle(filePath) { try { let bundleInstall = await _ohos_bundle_installer_1.getBundleInstaller(); let userId = await _ohos_account_osAccount_1.getAccountManager().getOsAccountLocalIdFromProcess(); bundleInstall.install(filePath, { userId: userId, installFlag: INSTALL_PARAMETER, isKeepData: false }, (status, statusMessage) => { Logger_1.Logger.info(`installBundle filepath is ${filePath}`); Logger_1.Logger.info(`installBundle code is ${status.code}, message is ${JSON.stringify(statusMessage)}`); }); } catch (err) { Logger_1.Logger.error(`installBundle failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.installBundle = installBundle; /** * Register the delayed task and pass the parameters. * * @param version Current application version. * @param bundleName The name of the application package for which the task needs to be registered. * @param filePath Storage address of the application package. */ async function startUpdateSample(version, bundleName, filePath) { try { let workInfo = { workId: 1, bundleName: bundleName, abilityName: 'FormAbility', networkType: _ohos_resourceschedule_workScheduler_1.NetworkType.NETWORK_TYPE_WIFI, parameters: { version: version, filePath: filePath } }; _ohos_resourceschedule_workScheduler_1.startWork(workInfo); } catch (err) { Logger_1.Logger.error(`startWork failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.startUpdateSample = startUpdateSample; /** * Register the delayed task and pass the parameters. * * @param url Url of the application package. * @permission ohos.permission.INTERNET */ async function getNewHap(url) { try { return await _ohos_net_http_1.createHttp().request(url, { expectDataType: _ohos_net_http_1.HttpDataType.ARRAY_BUFFER }); } catch (err) { Logger_1.Logger.error(`get result failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.getNewHap = getNewHap; })(WorkSchedulerSystem = exports.WorkSchedulerSystem || (exports.WorkSchedulerSystem = {})); /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets": /*!**********************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\utils\Logger.ets ***! \**********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Logger = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_hilog_1 = globalThis.requireNapi('hilog'); class LoggerModel { constructor(prefix) { this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports.Logger = new LoggerModel('[Sample_workSchedulerExtensionAbility]'); /***/ }), /***/ "../../api/@ohos.window.d.ts": /*!***********************************!*\ !*** ../../api/@ohos.window.d.ts ***! \***********************************/ /***/ (() => { /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] ? globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"]) { /******/ const length = globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId] || /******/ globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ets?entry"); /******/ _3acf90a509f14590cec9be8c1cf8e5ea = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=MainAbility.js.mapurl!isHavePermissionbundleInstallonCreatelaunchParam want'onWindowStageCreatewindowStagepathDirworkInfod      z W ~ ~ M  Xd XX! * 6X Y!Y;Y~VY~Y Xd XYYYU U1 YUxwZ-VZ(Z  ) w   M   Xd=ZT LZ TZaZ o  z   nZz Xd value_ohos_file_fs_1)_ohos_notification_11_ohos_bundle_installer_13_ohos_account_osAccount_1M_ohos_resourceschedule_workScheduler_1!_ohos_net_http_11ohos.permission.INTERNET=ohos.permission.INSTALL_BUNDLEOohos.permission.NOTIFICATION_CONTROLLER3_ohos_abilityAccessCtrl_11__webpack_module_cache__'__webpack_modules___ohos_hilog_1 workIdabilityNameFormAbilityisKeepDataSlotNumberzZ7zZ7zZ7zZ7zZ7zZ-7zZ7zZ7zZ7zZ7zZ/7zZ7zZ7zZ 7zZ&7zZ7zZ 7zZ7zZ7zZ7zZ"7|DpDDa`=aa`=3a`= a333 3 z `a`=a`=< a>a`*a`&e.D`DqDD`$Q`a`B($Q`Ma`z<`dD@DQDbeDEEEEEa ` =aa>x`a $Q`a ` B)M` a #Q 3M` a?a ` B=a `a >(a a`a` 0 ma ` B la >-a ` . a`a >a ` * `a >a ` * a ` = ma ` Bla >*a ` . a ` =`a >a ` * a ` =@>a ` =0>a ` =`>aa ` =Pa a ` =`a 5 a a ` Bga ` ama ` BBa `C< e.D`DqDD`$Q`a`B($Q`Ma`z<`dDEEEEaa`a`B5$Qea ?a ` Bta `a` . aa ' $Q`a b' $Q`M>a `/ e a ?a ` Bta `a` . aa ' $Q`a b' $Q`M>a `/ e DDEEEEaa`=`a`a`=Paa` a`=a`=0>x`a $Q`a ` B)M` a #Q 3M` a?a ` B=a `a >(a a ` a ` 0 `a bC # ma ` B la >Da ` . a ` =ma ` Bla >`a ` . a ` =0ma ` Bla >/a ` . a ` =Pma ` Bla >+a ` . a ` =`ma ` Bla >ma ` . a ` ma ` Bla >]a ` .! a ` `a >a ` *# a ` = >a ` =%a a ` =@ba ` =p3&a `a ` B'#a #Q`a C)# M` aa ` *+ e.D`DqDD`$Q`a`B($Q`Ma`z<`d vDDDD3a3a3a3a3a3a `a `Cn `a ` CM `a `C i `a `C R `a `Cq `a `CK e DDDDEUa< a> a`.Sa`a ` B 5 a> a?a ` Bta `a ` . a> a`.e DDDEEa`=a>x`a $Q`a ` B)M` a#Q 3M`a?a ` B=a`a >(a a ` a `0 `abC ma ` B la>Na `. a`=pa 5 aa `Bga `a`a`a >%a  Ce@D`DqDD`a`a>CG`a`Cf`abC>`d@DpDDDa`aaba``BZa``a``a`dDEEE3aaaama >'a ` 7 $Qma >'a ` 7 a `a ` 7 Ma`$Q `a ` BBd<a `a ` 7 a`a ' $Q `a ` B Bd<a `a a zB ` 8 ama >'a ` 7 a $Q2?a `a` *a ` BOa >a ` . a b M` $Q+`a `a ` * $Qma >'a ` 7 a `a `8! <a `a ` 7# a ` B%2a `a ` B'Ba `a `a ` B)Ba < a` 1+ `a ` B-Bd HDDDDa<a`B;a`a`B>a`a`Bfa`a ` BGa `a `1e HDDDDa<a`B@a`a`B>a`a`Bfa`a ` BGa `a `1e!DP`=`=&3~a`)e DDDDa a`B:a`-a`Bja`aa a ` Ba ` B z A`a`/ `a`ab$Q``a`dMUa< a`Ba`B@a>Ha`a ` B5 a> a`a ` B\ a> a`.dad o|S  D` =` =DӮa<1a`BWaa`z.`a`.`a`ab$Q``a`#QM$QH<1a`B?a a`z .`aa `/  `a`ab$Q``<1a`Buaa3zb`aa a`a`Bfa`a ` BGa `a `1e D` =`= `=aTa`a ` B5 a> a`a ` B \ "a> #a`.$dadS DDDEma>|a`7$ma>|a`7a`BZa`ab'$Qb'$Q:Nma >|a ` 7 a ba ` 7 aba ` 7 a`a`7dma >|a ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >|a ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd TDDDD`a ` Bja`B6a`B_a`Bva>X($Q? a`B a>Yaa`/ eDDEEE<a ` B9a`- a`Bka`a`B8a< a `/ MUa< a ` B a`B Pa<0 !a >3a ?a ` Bta `a ` .  a >  a `/ ? a`Ba>Ea`a ` B8a ` BFa `/ e 6ES D` =`=Da<a ` B8a ` BFa ` B pa>a `. aba`7 a> ada3a `/ e sDDDEEE<0a`Bhaa a <0a ` B a ` Bz7  a `z w `z v `z, ` z_ ` z6 ` a `. e DDDEE`a<  a<a ` Bca `a ba b@ a ` / a`BCa<a ` B}a`a `a `/ <a ` B 4a`a `. MUa< a ` Ba`B@a>oa `a ` B5  a >  a `a ` B\  a >  a `. e rS DDDDEEaa`z0a ` Ba ` Bz^ a `z z `z E ` ze`aa ` Bra`a `. MUa< a ` Ba ` B@a>sa `a ` B5  a >  a `a ` B\  a >  a `. dad[nS HDDDDa<a`B{a`a`B>a`a`Bfa`a ` BGa `a `1e  p               /  N# """"""#""#""$z$$~$}$)-$8$. 1#"""$""$""$""   % +8+  #""""""#""   ?       1         /   \    k    k    k  k  k  k   0        #"""$""$""""""$""%""""%""   8- % <%(<! 8!X ""8 8             0#"""$""$""$""   % +8+                    z?                   ##"""""%"""""%""%""%""9&]l]XWvW~~WWW !]l]XWwWWWW   ?       1            k    k    k    k    z    z    k  k  k  l         #$""""$""%""""%"""""""2  8- # . 3 7 ! 8!. E. /<9W9~1#"""$""$""$""   % +8+                f#$""$"""""""""""""""""""*#-.(,$         k             M# """#"""""&""&""%BK%K%%>J%JYhY w%w%  ?       1             /          r#"""$""$""%""&""""""   8-  ,&"" !  M   \  \  X ^ .#"""$""$""""  #"""$""$""&""8            /  !    /  k  "   m                  >      N        m  # """$""$""&""&""&""&""&""$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V   ,#"""$""$""&""    ) 6 C,#"""$""$""&""    ) 6 C l  '#"""      k     x  /             K R#"""$""$""٪""?D D  %"" "@I"IXd"d" z    k -    1   k - ;    k Z k i   @#"""ު""""% PP %   ::  ''  z w    /      ,#"""$""$""&""    ( 5 B    /   /   k - ] h u   /             K U#"""""""&   ",,, %""  "CL"L[g"g" s     >    / M  l  g ?          !                 Z    u# """$""$""&""*"",7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"    k   x *#""""""#""%""$9+;     x  /               R# """$""$"""""", S a %"" !&4C4 H&H& +     k          /        ?#"""""""4E6?BB DMZ /    k k  ] k - ] , ^ + w x  <#$""$""""""""""" %%      /       /    z    /             t# """$""$""""""""""% .8>8 &* & %"" ">G"GVb"b" y  l , _  ` k - ] ,   8     /             K n#$""""$"""""""""ǫ""{ = u%""  "?H"HWc"c" r ,#"""$""$""&""    ( 5 ByGpnnopq-sstmuu vwwxxy.z {v{||}~PK !:9AAets/MainAbility/MainAbility.jsvar _3acf90a509f14590cec9be8c1cf8e5ea; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ets?entry": /*!***************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\MainAbility\MainAbility.ets?entry ***! \***************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_app_ability_UIAbility_1 = globalThis.requireNapi('app.ability.UIAbility'); __webpack_require__(/*! @ohos.window */ "../../api/@ohos.window.d.ts"); const Logger_1 = __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); var _ohos_abilityAccessCtrl_1 = globalThis.requireNapi('abilityAccessCtrl'); const WorkSchedulerSystem_1 = __webpack_require__(/*! ../feature/WorkSchedulerSystem */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets"); const TAG = 'MainAbility'; const VERSION = '1.0'; const BUNDLE_NAME = 'ohos.samples.workschedulerextensionability'; const PERMISSIONS = ['ohos.permission.INTERNET', 'ohos.permission.INSTALL_BUNDLE', 'ohos.permission.NOTIFICATION_CONTROLLER']; class MainAbility extends _ohos_app_ability_UIAbility_1 { onCreate(want, launchParam) { try { _ohos_abilityAccessCtrl_1.createAtManager().requestPermissionsFromUser(this.context, PERMISSIONS); } catch (err) { Logger_1.Logger.info(TAG, `catch err->${JSON.stringify(err)}`); } AppStorage.SetOrCreate('filePath', this.context.filesDir); } onWindowStageCreate(windowStage) { WorkSchedulerSystem_1.WorkSchedulerSystem.handleNotification(BUNDLE_NAME); let filePath = `${this.context.filesDir.split('/haps')[0]}/files`; WorkSchedulerSystem_1.WorkSchedulerSystem.startUpdateSample(VERSION, BUNDLE_NAME, filePath); windowStage.loadContent('pages/Index', (err, data) => { var _a, _b; if (err.code) { Logger_1.Logger.error('Failed to load the content. Cause: %{public}s', (_a = JSON.stringify(err)) !== null && _a !== void 0 ? _a : ''); return; } Logger_1.Logger.info('Succeeded in loading the content. Data: %{public}s', (_b = JSON.stringify(data)) !== null && _b !== void 0 ? _b : ''); }); } } globalThis.exports.default = MainAbility; /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets": /*!*************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\feature\WorkSchedulerSystem.ets ***! \*************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WorkSchedulerSystem = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_file_fs_1 = globalThis.requireNapi('file.fs'); var _ohos_notification_1 = globalThis.requireNapi('notification'); var _ohos_bundle_installer_1 = globalThis.requireNapi('bundle.installer'); var _ohos_account_osAccount_1 = globalThis.requireNapi('account.osAccount'); var _ohos_resourceschedule_workScheduler_1 = globalThis.requireNapi('resourceschedule.workScheduler'); var _ohos_net_http_1 = globalThis.requireNapi('net.http'); const Logger_1 = __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); const FILE_NAME = '/UpdateWorkScheduler.hap'; const BUNDLE_NAMES = ['ohos.samples.workschedulerextensionability']; const INSTALL_PARAMETER = 1; var WorkSchedulerSystem; (function (WorkSchedulerSystem) { /** * Store the file to the specified directory. * * @param pathDir Path to save the file. * @param content The contents of the file to be saved. */ function saveFile(pathDir, content) { try { let filePath = pathDir + FILE_NAME; let fd = _ohos_file_fs_1.openSync(filePath, 0o2 | 0o100).fd; _ohos_file_fs_1.writeSync(fd, content); _ohos_file_fs_1.closeSync(fd); } catch (err) { Logger_1.Logger.error(`saveFile failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.saveFile = saveFile; /** * Sending a Notification. * * @param bundleName Check the name of the application that has permission. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ async function handleNotification(bundleName) { let isHavePermission = await _ohos_notification_1.isNotificationEnabled({ bundle: bundleName }); if (!isHavePermission) { await _ohos_notification_1.enableNotification({ bundle: bundleName }, true); } _ohos_notification_1.subscribe({ onConsume: (data) => { if (data.request.content.normal.text === 'isReady') { AppStorage.SetOrCreate('isShowDialog', true); } } }, { bundleNames: BUNDLE_NAMES }); } WorkSchedulerSystem.handleNotification = handleNotification; /** * Publishes a notification of the specified content. * * @param title Title of Notice. * @param text Content of Notification Text. * @param additionalText Additional text. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ function publishNotification(title, text, additionalText) { _ohos_notification_1.publish({ content: { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title, text, additionalText } } }); } WorkSchedulerSystem.publishNotification = publishNotification; /** * Install the application package in the specified path. * * @param filePath An array of paths to hold the installation package. * @permission ohos.permission.INSTALL_BUNDLE */ async function installBundle(filePath) { try { let bundleInstall = await _ohos_bundle_installer_1.getBundleInstaller(); let userId = await _ohos_account_osAccount_1.getAccountManager().getOsAccountLocalIdFromProcess(); bundleInstall.install(filePath, { userId: userId, installFlag: INSTALL_PARAMETER, isKeepData: false }, (status, statusMessage) => { Logger_1.Logger.info(`installBundle filepath is ${filePath}`); Logger_1.Logger.info(`installBundle code is ${status.code}, message is ${JSON.stringify(statusMessage)}`); }); } catch (err) { Logger_1.Logger.error(`installBundle failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.installBundle = installBundle; /** * Register the delayed task and pass the parameters. * * @param version Current application version. * @param bundleName The name of the application package for which the task needs to be registered. * @param filePath Storage address of the application package. */ async function startUpdateSample(version, bundleName, filePath) { try { let workInfo = { workId: 1, bundleName: bundleName, abilityName: 'FormAbility', networkType: _ohos_resourceschedule_workScheduler_1.NetworkType.NETWORK_TYPE_WIFI, parameters: { version: version, filePath: filePath } }; _ohos_resourceschedule_workScheduler_1.startWork(workInfo); } catch (err) { Logger_1.Logger.error(`startWork failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.startUpdateSample = startUpdateSample; /** * Register the delayed task and pass the parameters. * * @param url Url of the application package. * @permission ohos.permission.INTERNET */ async function getNewHap(url) { try { return await _ohos_net_http_1.createHttp().request(url, { expectDataType: _ohos_net_http_1.HttpDataType.ARRAY_BUFFER }); } catch (err) { Logger_1.Logger.error(`get result failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.getNewHap = getNewHap; })(WorkSchedulerSystem = exports.WorkSchedulerSystem || (exports.WorkSchedulerSystem = {})); /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets": /*!**********************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\utils\Logger.ets ***! \**********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Logger = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_hilog_1 = globalThis.requireNapi('hilog'); class LoggerModel { constructor(prefix) { this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports.Logger = new LoggerModel('[Sample_workSchedulerExtensionAbility]'); /***/ }), /***/ "../../api/@ohos.window.d.ts": /*!***********************************!*\ !*** ../../api/@ohos.window.d.ts ***! \***********************************/ /***/ (() => { /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] ? globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"]) { /******/ const length = globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId] || /******/ globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ets?entry"); /******/ _3acf90a509f14590cec9be8c1cf8e5ea = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=MainAbility.js.mapPK !:R0"ets/MainAbility/MainAbility.js.map{"version":3,"file":"./MainAbility/MainAbility.js","mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;AAEH;AACA,uEAAiC;AACjC,sMAAwC;AACxC;AAEA,iPAAoE;AAEpE,MAAM,GAAG,GAAW,aAAa;AACjC,MAAM,OAAO,GAAW,KAAK;AAC7B,MAAM,WAAW,GAAG,4CAA4C;AAChE,MAAM,WAAW,GAAuB,CAAC,0BAA0B,EAAE,gCAAgC;IACnG,yCAAyC,CAAC;AAE5C,MAAqB,WAAY,SAAQ;IACvC,QAAQ,CAAC,IAAI,EAAE,WAAW;QACxB,IAAI;YACF,iCAAiB,CAAC,eAAe,EAAE,CAAC,0BAA0B,CAAC,IAAI,CAAC,OAAO,EAAE;SAC9E;QAAC,OAAO,GAAG,EAAE;YACZ,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SACvD;QACD,UAAU,CAAC,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC3D,CAAC;IAED,mBAAmB,CAAC,WAA+B;QACjD,yCAAmB,CAAC,kBAAkB,CAAC,WAAW,CAAC;QACnD,IAAI,QAAQ,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ;QACjE,yCAAmB,CAAC,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC;QACrE,WAAW,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;;YACnD,IAAI,GAAG,CAAC,IAAI,EAAE;gBACZ,eAA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D,CAAC;IAED,IAAI,CAAC,GAAG,IAAc;QACpB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,IAAI,CAAC,GAAG,IAAc;QACpB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAc;QACrB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAEU,cAAM,GAAG,IAAI,WAAW,CAAC,wCAAwC,CAAC;;;;;;;;;;;;;;;;;UE5C7E;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ets","webpack:///E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets","webpack:///E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets","webpack:///C:\\Users\\Administrator\\AppData\\Local\\OpenHarmony\\3.2.11.9full\\9\\ets\\api\\@ohos.window.d.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":"","nameMap":["_ohos_app_ability_UIAbility_1","UIAbility","_ohos_abilityAccessCtrl_1","abilityAccessCtrl"]}PK !:J~~1ets/WorkSchedulerAbility/WorkSchedulerAbility.abcPANDA`׺ ~<,~!L  jY YXXYXlXX+Y)WXW Y'XW?WWVWWVHWVVVW4WVVXYWVV~ fB\aiwKT_q8EMR[z+ 7 H [ k r z   8 L S c l p y   R [ a j y    # 0 8 F Q [ g n v  ) 4 P [ f l r y 51MQm{)? #VVVVVVVVVWW)W4W?WHWWWWWWXX'XlXXXX Y Y+YXYjYY'L_ESTypeAnnotation;-%{public}s, %{public}s, message is .#1# .#10# .#11# .#12# .#2# .#3# .#4# .#5# .#6# .#7#.#8#onConsume .#9#;../../api/@ohos.net.http.d.ts.LoggerModel+.WorkSchedulerAbility).__webpack_require__.getNewHap'.handleNotification.installBundle.isCommonModue.onConsume).publishNotification.saveFile%.startUpdateSample1/UpdateWorkScheduler.hap1.0 ?name=ARRAY_BUFFERAppStorageBUNDLE_NAMEBUNDLE_NAMESContentTypeE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\WorkSchedulerAbility\WorkSchedulerAbility.ets?entryE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\feature\WorkSchedulerSystem.etsE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\utils\Logger.etsFILE_NAME!HTTP_STATUS_CODEHttpDataType#INSTALL_PARAMETER JSON LoggerLogger_1#NETWORK_TYPE_WIFI?NOTIFICATION_CONTENT_BASIC_TEXTNetworkType ObjectOpenHarmony_4.X_Dev/DataMock/WorkScheduler/UpdateWorkScheduler.hapSetOrCreate StringURLVERSION;WorkSchedulerExtensionAbility'WorkSchedulerSystem+WorkSchedulerSystem_1M[Sample_workSchedulerExtensionAbility]C_3acf90a509f14590cec9be8c1cf8e5eaq__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea__esModule__importDefault#account.osAccountadditionalText allow bundle!bundle.installerbundleNamebundleNames callcloseSync codecontentcontentTypecreateHttp debugdefaultdefineProperty domaindownloadMdownload hap to update the application%enableNotification errorexpectDataTypeexportsfdfile.fsfilePath format7get result failed, code is #getAccountManager%getBundleInstallergetNewHap=getOsAccountLocalIdFromProcess%handleNotification hilogwhttps://gitee.com/openharmony/applications_app_samples/raw/indexOf infoinstallinstallBundle-installBundle code is =installBundle failed, code is 5installBundle filepath is installFlag+isNotificationEnabledisReadyisShowDialog lengthmessagenet.httpnetworkType normalnotificationonConsumeopenSyncparameters parse prefixprototypepublish'publishNotification pushrequestrequireNapi=resourceschedule.workSchedulerresponseCode resultsaveFile3saveFile failed, code is #startUpdateSamplestartWork5startWork failed, code is stringifysubscribe text then titleuse strict userIdversion warn[webpackChunk_3acf90a509f14590cec9be8c1cf8e5eawriteSync3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;[nZ|]Op[ ^q[^q,[_vr9[ja$s[$asF[7nbt`[Vo\nZ>]Mo[p]o[[ gx[ ~m}[ dv[L ;e2w[ k|[ ew[F jz[c { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\WorkSchedulerAbility\\WorkSchedulerAbility.ets?entry": /*!*********************************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\WorkSchedulerAbility\WorkSchedulerAbility.ets?entry ***! \*********************************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_WorkSchedulerExtensionAbility_1 = globalThis.requireNapi('WorkSchedulerExtensionAbility'); __webpack_require__(/*! @ohos.net.http */ "../../api/@ohos.net.http.d.ts"); var _ohos_notification_1 = globalThis.requireNapi('notification'); const WorkSchedulerSystem_1 = __webpack_require__(/*! ../feature/WorkSchedulerSystem */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets"); __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); const VERSION = '1.0'; const HTTP_STATUS_CODE = 200; const URL = 'https://gitee.com/openharmony/applications_app_samples/raw/' + 'OpenHarmony_4.X_Dev/DataMock/WorkScheduler/UpdateWorkScheduler.hap'; const BUNDLE_NAME = ['ohos.samples.workschedulerextensionability']; class WorkSchedulerAbility extends _ohos_WorkSchedulerExtensionAbility_1 { onWorkStart(workInfo) { let filePath = JSON.parse(workInfo.parameters).filePath; if (JSON.parse(workInfo.parameters).version === VERSION) { let result = WorkSchedulerSystem_1.WorkSchedulerSystem.getNewHap(URL); result.then(data => { if (data.responseCode === HTTP_STATUS_CODE) { WorkSchedulerSystem_1.WorkSchedulerSystem.saveFile(filePath, data.result); WorkSchedulerSystem_1.WorkSchedulerSystem.publishNotification('download', 'isReady', 'download hap to update the application'); _ohos_notification_1.subscribe({ onConsume: (data) => { if (data.request.content.normal.text === 'allow') { let path = []; path.push(filePath); WorkSchedulerSystem_1.WorkSchedulerSystem.installBundle(path); } } }, { bundleNames: BUNDLE_NAME }); } }); } } } globalThis.exports.default = WorkSchedulerAbility; /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets": /*!*************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\feature\WorkSchedulerSystem.ets ***! \*************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WorkSchedulerSystem = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_file_fs_1 = globalThis.requireNapi('file.fs'); var _ohos_notification_1 = globalThis.requireNapi('notification'); var _ohos_bundle_installer_1 = globalThis.requireNapi('bundle.installer'); var _ohos_account_osAccount_1 = globalThis.requireNapi('account.osAccount'); var _ohos_resourceschedule_workScheduler_1 = globalThis.requireNapi('resourceschedule.workScheduler'); var _ohos_net_http_1 = globalThis.requireNapi('net.http'); const Logger_1 = __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); const FILE_NAME = '/UpdateWorkScheduler.hap'; const BUNDLE_NAMES = ['ohos.samples.workschedulerextensionability']; const INSTALL_PARAMETER = 1; var WorkSchedulerSystem; (function (WorkSchedulerSystem) { /** * Store the file to the specified directory. * * @param pathDir Path to save the file. * @param content The contents of the file to be saved. */ function saveFile(pathDir, content) { try { let filePath = pathDir + FILE_NAME; let fd = _ohos_file_fs_1.openSync(filePath, 0o2 | 0o100).fd; _ohos_file_fs_1.writeSync(fd, content); _ohos_file_fs_1.closeSync(fd); } catch (err) { Logger_1.Logger.error(`saveFile failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.saveFile = saveFile; /** * Sending a Notification. * * @param bundleName Check the name of the application that has permission. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ async function handleNotification(bundleName) { let isHavePermission = await _ohos_notification_1.isNotificationEnabled({ bundle: bundleName }); if (!isHavePermission) { await _ohos_notification_1.enableNotification({ bundle: bundleName }, true); } _ohos_notification_1.subscribe({ onConsume: (data) => { if (data.request.content.normal.text === 'isReady') { AppStorage.SetOrCreate('isShowDialog', true); } } }, { bundleNames: BUNDLE_NAMES }); } WorkSchedulerSystem.handleNotification = handleNotification; /** * Publishes a notification of the specified content. * * @param title Title of Notice. * @param text Content of Notification Text. * @param additionalText Additional text. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ function publishNotification(title, text, additionalText) { _ohos_notification_1.publish({ content: { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title, text, additionalText } } }); } WorkSchedulerSystem.publishNotification = publishNotification; /** * Install the application package in the specified path. * * @param filePath An array of paths to hold the installation package. * @permission ohos.permission.INSTALL_BUNDLE */ async function installBundle(filePath) { try { let bundleInstall = await _ohos_bundle_installer_1.getBundleInstaller(); let userId = await _ohos_account_osAccount_1.getAccountManager().getOsAccountLocalIdFromProcess(); bundleInstall.install(filePath, { userId: userId, installFlag: INSTALL_PARAMETER, isKeepData: false }, (status, statusMessage) => { Logger_1.Logger.info(`installBundle filepath is ${filePath}`); Logger_1.Logger.info(`installBundle code is ${status.code}, message is ${JSON.stringify(statusMessage)}`); }); } catch (err) { Logger_1.Logger.error(`installBundle failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.installBundle = installBundle; /** * Register the delayed task and pass the parameters. * * @param version Current application version. * @param bundleName The name of the application package for which the task needs to be registered. * @param filePath Storage address of the application package. */ async function startUpdateSample(version, bundleName, filePath) { try { let workInfo = { workId: 1, bundleName: bundleName, abilityName: 'FormAbility', networkType: _ohos_resourceschedule_workScheduler_1.NetworkType.NETWORK_TYPE_WIFI, parameters: { version: version, filePath: filePath } }; _ohos_resourceschedule_workScheduler_1.startWork(workInfo); } catch (err) { Logger_1.Logger.error(`startWork failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.startUpdateSample = startUpdateSample; /** * Register the delayed task and pass the parameters. * * @param url Url of the application package. * @permission ohos.permission.INTERNET */ async function getNewHap(url) { try { return await _ohos_net_http_1.createHttp().request(url, { expectDataType: _ohos_net_http_1.HttpDataType.ARRAY_BUFFER }); } catch (err) { Logger_1.Logger.error(`get result failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.getNewHap = getNewHap; })(WorkSchedulerSystem = exports.WorkSchedulerSystem || (exports.WorkSchedulerSystem = {})); /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets": /*!**********************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\utils\Logger.ets ***! \**********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Logger = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_hilog_1 = globalThis.requireNapi('hilog'); class LoggerModel { constructor(prefix) { this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports.Logger = new LoggerModel('[Sample_workSchedulerExtensionAbility]'); /***/ }), /***/ "../../api/@ohos.net.http.d.ts": /*!*************************************!*\ !*** ../../api/@ohos.net.http.d.ts ***! \*************************************/ /***/ (() => { /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] ? globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"]) { /******/ const length = globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId] || /******/ globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\WorkSchedulerAbility\\WorkSchedulerAbility.ets?entry"); /******/ _3acf90a509f14590cec9be8c1cf8e5ea = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=WorkSchedulerAbility.js.mapurlerr!isHavePermissionbundleInstall pathonWorkStartworkInfopathDirc    0 r f [ r r F  b\ YYY* TYYZZ9ZaZ F  y b\ YYiV` RM_Y  [ i   L  KfsZZ b\ZS Z ZZ# [  y   Zy b\ valueUohos.samples.workschedulerextensionability_ohos_file_fs_1)_ohos_notification_11_ohos_bundle_installer_13_ohos_account_osAccount_1M_ohos_resourceschedule_workScheduler_1!_ohos_net_http_11__webpack_module_cache__'__webpack_modules___ohos_hilog_1 workIdabilityNameFormAbilityisKeepDataSlotNumberZ7Z7Z7Z 7Z7Z7Z-7Z7Z7Z7Z7Z/7Z7Z7Z 7Z&7Z7Z7Z7Z"7|DpDDa`=aa`=3a`= a3} 3 3z 3 |z `a`=a`=< a> a`*a`#e DDDEEa`=a>s`a $Q`a ` B&M` a#Q 3{M`a?a ` B6a`a >%a a ` a `0 `abC ma ` B ea>Ha `. a`=pa 5 aa `B`a `a`a`a >"a  Ce.D`DqDD`$Q`a`B%$Q`Ma`z5`dD@DQDbeDEEEEEaaa ` =@>s`a $Q`a ` B&M` a #Q 3~M` a?a ` B6a `a >%a a`a` 0 ma ` B ea >a ` . a`a >a ` * ma ` Bea >Za ` . a ` =@`a > a ` * a ` =`a >a ` * >a ` =ba ` =0>Ia >  a ` = a a ` =P`a 5 a a ` B`a ` ama ` B=a `C5 e.D`DqDD`$Q`a`B%$Q`Ma`z5`d DDDD`a`Bga<1 ($< !a`B a`Bia< @a`a`Bha`/ < !a`B a`B ba>8a>Sa>9a `0 s`a $Q`a ` B&M` a #Q 3M` a?a ` B6a `a >%a a ` a ` 0 `a bC ma ` B ea >?a ` . a ` =ma ` Bea >Za ` . a ` =0ma ` Bea >+a ` . a ` =Pma ` Bea >'a ` . a ` =`ma ` Bea >fa ` . a ` ma ` Bea >Wa ` .! a ` `a >a ` *# a ` = >a ` =%a a ` =@ba ` =p3&a `a ` B' a #Q`a C) M` aa ` *+ e.D`DqDD`$Q`a`B%$Q`Ma`z5`d vDDDD3a3a3a3a3a3a `a `Ci `a ` CG `a `C b `a `C M `a `Ck `a `CE e TDDDD`a ` Bda`B1a`BYa`Bpa>S($Q? a`B a>Taa`/ e DDDDEPa< a> a`.Na`a ` B 0 a> a?a ` Bna `a ` . a> a`.e@D`DqDD`a`a>CA`a`C_`abC7`d@DpDDDa`aaba``BUa``a``a`dDEEE3aaaama >$a ` 7 $Qma >$a ` 7 a `a ` 7 Ma`$Q `a ` B=d<a `a ` 7 a`a ' $Q `a ` B =d<a `a a z= ` 8 ama >$a ` 7 a $Q2?a `a` *a ` BJa >a ` . a b M` $Q+`a `a ` * $Qma >$a ` 7 a `a `8! <a `a ` 7# a ` B%.a `a ` B'=a `a `a ` B)=a < a` 1+ `a ` B-=d HDDDDa<a`B4a`a`B7a`a`B_a`a ` BAa `a `1e HDDDDa<a`B;a`a`B7a`a`B_a`a ` BAa `a `1e!DP`=`=#3ya`)e DDDDa a`B3a`-a`Bda`aa a ` Ba ` B z <`a`/ `a`ab$Q``a`dMUa< a`Ba`B;a>Ba`a ` B0 a> a`a ` BV a> a`.dad o|S  D` =` =DӮa<1a`BRaa`z*`a`.`a`ab$Q``a`#QM$QH<1a`B:a a`z *`aa `/  `a`ab$Q``<1a`Boaa3z[`aa Oa`a ` B0 a> a`a ` B V "a> #a`.$dadS DDDEma>wa`7$ma>wa`7a`BUa`ab'$Qb'$Q:Nma >wa ` 7 a ba ` 7 aba ` 7 a`a`7dma >wa ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >wa ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd yDDDD`a ` Bda`B1a`BYa`Bpa>)($QD aa`a`B ca< @a`. < !a`B a`BMa`a`.e D` =` = D?a`B^a`a`B]a`.a`B@a`=? a`B ^a`a ` B ]a `. a`Bua< ($QC< !a`B a`BEaa<a ` Bxa`a `a `/ <a ` B /a`a `. MUa< a ` Ba`B;a>ja `a ` B0  a >  a `a ` BV  a >  a `. e rS DDDDEEaa`z,a ` Ba ` BzX a `z u `z @ ` z]`aa ` Bla`a `. MUa< a ` Ba ` B;a>ma `a ` B0  a >  a `a ` BV  a >  a `. dad[nS HDDDDa<a`Bva`a`B7a`a`B_a`a ` BAa `a `1e  p               /  N# """""""""#""$z$$~$}$)-$8$.   ?       1             /          r#"""$""$""$""%""""""   8-  ,%"" !1#"""$""$""%""   % +8+  #""""""#""   ?       1         /   \    k    k   \  k  k \ <  l   /        #$""$""%""""%""$""%"""""""   8- - D-* 3X+  %""#I I             0#"""$""$""%""   % +8+    z   z     k Z k i  v ;#""""""#""&""/ *GQ R^i 3#3% x  ?       1            k    k    k    k    z    z    k  k  k  l         #$""""$""%""""$"""""""2  8- # . 3 7 ! 8!. E. /<9W9~1#"""$""$""%""   % +8+                f#$""$"""""""""""""""""""*#-.(,$    k   x *#""""""#""&""$9+;         k             M# """#"""""&""&""%BK%K%%>J%JYhY w%w%  M   \  \  X ^ .#"""$""$""""  #"""$""$""&""8            /  !    /  k  "   m                  >      N        m  # """$""$""&""&""&""&""'""$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V   ,#"""$""$""&""    ) 6 C,#"""$""$""&""    ) 6 C l  '#"""      k     x  /             K S#"""$""$""""?D D  "" "@I"IXd"d" z    k -    1   k - ;    k Z k i   @#"""¬""""% PP %   ::  ''  z w    /      ,#"""$""$""&""    ( 5 B    /   /   k - ] h u   /             K V#"""""Ԭ""&   ",,, ""  "CL"L[g"g" s     >    / M  l  g ?          !                 Z    u# """$""$""'""*"",7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"    /  /   k   8#""""""#""&""4 $E ""+$ * X      k    /    /    6#"""""+"   8 ""M     k k  ] k - ] , ^ + w x  <#$""$""""""""""" %%      /       /    z    /             u# """$""$""""""""""% .8>8 &* & "" ">G"GVb"b" y  l , _  ` k - ] ,   8     /             K o#$""""$"""""""""""{ = u""  "?H"HWc"c" r ,#"""$""$""&""    ( 5 BxpmknooRqq]s"txturuufww3xyyz8{{*|}PK !:@ˋBB0ets/WorkSchedulerAbility/WorkSchedulerAbility.jsvar _3acf90a509f14590cec9be8c1cf8e5ea; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\WorkSchedulerAbility\\WorkSchedulerAbility.ets?entry": /*!*********************************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\WorkSchedulerAbility\WorkSchedulerAbility.ets?entry ***! \*********************************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_WorkSchedulerExtensionAbility_1 = globalThis.requireNapi('WorkSchedulerExtensionAbility'); __webpack_require__(/*! @ohos.net.http */ "../../api/@ohos.net.http.d.ts"); var _ohos_notification_1 = globalThis.requireNapi('notification'); const WorkSchedulerSystem_1 = __webpack_require__(/*! ../feature/WorkSchedulerSystem */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets"); __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); const VERSION = '1.0'; const HTTP_STATUS_CODE = 200; const URL = 'https://gitee.com/openharmony/applications_app_samples/raw/' + 'OpenHarmony_4.X_Dev/DataMock/WorkScheduler/UpdateWorkScheduler.hap'; const BUNDLE_NAME = ['ohos.samples.workschedulerextensionability']; class WorkSchedulerAbility extends _ohos_WorkSchedulerExtensionAbility_1 { onWorkStart(workInfo) { let filePath = JSON.parse(workInfo.parameters).filePath; if (JSON.parse(workInfo.parameters).version === VERSION) { let result = WorkSchedulerSystem_1.WorkSchedulerSystem.getNewHap(URL); result.then(data => { if (data.responseCode === HTTP_STATUS_CODE) { WorkSchedulerSystem_1.WorkSchedulerSystem.saveFile(filePath, data.result); WorkSchedulerSystem_1.WorkSchedulerSystem.publishNotification('download', 'isReady', 'download hap to update the application'); _ohos_notification_1.subscribe({ onConsume: (data) => { if (data.request.content.normal.text === 'allow') { let path = []; path.push(filePath); WorkSchedulerSystem_1.WorkSchedulerSystem.installBundle(path); } } }, { bundleNames: BUNDLE_NAME }); } }); } } } globalThis.exports.default = WorkSchedulerAbility; /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets": /*!*************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\feature\WorkSchedulerSystem.ets ***! \*************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WorkSchedulerSystem = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_file_fs_1 = globalThis.requireNapi('file.fs'); var _ohos_notification_1 = globalThis.requireNapi('notification'); var _ohos_bundle_installer_1 = globalThis.requireNapi('bundle.installer'); var _ohos_account_osAccount_1 = globalThis.requireNapi('account.osAccount'); var _ohos_resourceschedule_workScheduler_1 = globalThis.requireNapi('resourceschedule.workScheduler'); var _ohos_net_http_1 = globalThis.requireNapi('net.http'); const Logger_1 = __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); const FILE_NAME = '/UpdateWorkScheduler.hap'; const BUNDLE_NAMES = ['ohos.samples.workschedulerextensionability']; const INSTALL_PARAMETER = 1; var WorkSchedulerSystem; (function (WorkSchedulerSystem) { /** * Store the file to the specified directory. * * @param pathDir Path to save the file. * @param content The contents of the file to be saved. */ function saveFile(pathDir, content) { try { let filePath = pathDir + FILE_NAME; let fd = _ohos_file_fs_1.openSync(filePath, 0o2 | 0o100).fd; _ohos_file_fs_1.writeSync(fd, content); _ohos_file_fs_1.closeSync(fd); } catch (err) { Logger_1.Logger.error(`saveFile failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.saveFile = saveFile; /** * Sending a Notification. * * @param bundleName Check the name of the application that has permission. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ async function handleNotification(bundleName) { let isHavePermission = await _ohos_notification_1.isNotificationEnabled({ bundle: bundleName }); if (!isHavePermission) { await _ohos_notification_1.enableNotification({ bundle: bundleName }, true); } _ohos_notification_1.subscribe({ onConsume: (data) => { if (data.request.content.normal.text === 'isReady') { AppStorage.SetOrCreate('isShowDialog', true); } } }, { bundleNames: BUNDLE_NAMES }); } WorkSchedulerSystem.handleNotification = handleNotification; /** * Publishes a notification of the specified content. * * @param title Title of Notice. * @param text Content of Notification Text. * @param additionalText Additional text. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ function publishNotification(title, text, additionalText) { _ohos_notification_1.publish({ content: { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title, text, additionalText } } }); } WorkSchedulerSystem.publishNotification = publishNotification; /** * Install the application package in the specified path. * * @param filePath An array of paths to hold the installation package. * @permission ohos.permission.INSTALL_BUNDLE */ async function installBundle(filePath) { try { let bundleInstall = await _ohos_bundle_installer_1.getBundleInstaller(); let userId = await _ohos_account_osAccount_1.getAccountManager().getOsAccountLocalIdFromProcess(); bundleInstall.install(filePath, { userId: userId, installFlag: INSTALL_PARAMETER, isKeepData: false }, (status, statusMessage) => { Logger_1.Logger.info(`installBundle filepath is ${filePath}`); Logger_1.Logger.info(`installBundle code is ${status.code}, message is ${JSON.stringify(statusMessage)}`); }); } catch (err) { Logger_1.Logger.error(`installBundle failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.installBundle = installBundle; /** * Register the delayed task and pass the parameters. * * @param version Current application version. * @param bundleName The name of the application package for which the task needs to be registered. * @param filePath Storage address of the application package. */ async function startUpdateSample(version, bundleName, filePath) { try { let workInfo = { workId: 1, bundleName: bundleName, abilityName: 'FormAbility', networkType: _ohos_resourceschedule_workScheduler_1.NetworkType.NETWORK_TYPE_WIFI, parameters: { version: version, filePath: filePath } }; _ohos_resourceschedule_workScheduler_1.startWork(workInfo); } catch (err) { Logger_1.Logger.error(`startWork failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.startUpdateSample = startUpdateSample; /** * Register the delayed task and pass the parameters. * * @param url Url of the application package. * @permission ohos.permission.INTERNET */ async function getNewHap(url) { try { return await _ohos_net_http_1.createHttp().request(url, { expectDataType: _ohos_net_http_1.HttpDataType.ARRAY_BUFFER }); } catch (err) { Logger_1.Logger.error(`get result failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.getNewHap = getNewHap; })(WorkSchedulerSystem = exports.WorkSchedulerSystem || (exports.WorkSchedulerSystem = {})); /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets": /*!**********************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\utils\Logger.ets ***! \**********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Logger = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_hilog_1 = globalThis.requireNapi('hilog'); class LoggerModel { constructor(prefix) { this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports.Logger = new LoggerModel('[Sample_workSchedulerExtensionAbility]'); /***/ }), /***/ "../../api/@ohos.net.http.d.ts": /*!*************************************!*\ !*** ../../api/@ohos.net.http.d.ts ***! \*************************************/ /***/ (() => { /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] ? globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"]) { /******/ const length = globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId] || /******/ globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\WorkSchedulerAbility\\WorkSchedulerAbility.ets?entry"); /******/ _3acf90a509f14590cec9be8c1cf8e5ea = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=WorkSchedulerAbility.js.mapPK !:54ets/WorkSchedulerAbility/WorkSchedulerAbility.js.map{"version":3,"file":"./WorkSchedulerAbility/WorkSchedulerAbility.js","mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;AAEH;AACA,2EAAiC;AACjC;AACA,iPAAoE;AACpE,qLAAwC;AAExC,MAAM,OAAO,GAAW,KAAK;AAC7B,MAAM,gBAAgB,GAAW,GAAG;AACpC,MAAM,GAAG,GAAW,6DAA6D;IAC/E,oEAAoE;AACtE,MAAM,WAAW,GAAG,CAAC,4CAA4C,CAAC;AAElE,MAAqB,oBAAqB,SAAQ;IAChD,WAAW,CAAC,QAAQ;QAClB,IAAI,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,QAAQ;QACvD,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC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IX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\WorkSchedulerAbility\\WorkSchedulerAbility.ets","webpack:///E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets","webpack:///E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets","webpack:///C:\\Users\\Administrator\\AppData\\Local\\OpenHarmony\\3.2.11.9full\\9\\ets\\api\\@ohos.net.http.d.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":"","nameMap":["_ohos_WorkSchedulerExtensionAbility_1","WorkSchedulerExtensionAbility","_ohos_notification_1","Notification"]}PK !:эo!ets/pages/Index.abcPANDAdu <1XKLxX~R+^+6 ߷j=2NT F8~= SY|޲yвoij/̰7<bԷ׳pAX7 Q V \ a i w u t    6 C K P ] k r  * R u +7>k|#/BIRbjr1EPp?[h #,7@JS_gsx &+FQdoAHS#?[w;Ws7So 3Ok'C_{I 7[v@SN̰/b7jв޲Y׳ =p~8Fy <T2=j|Է߷  +6S^i+Ro"lf'L_ESTypeAnnotation;-%{public}s, %{public}s, message is .#1# .#10# .#11# .#12# .#13# .#14# .#15# .#16# .#17# .#18# .#19# .#2# .#20# .#21# .#22# .#23# .#24# .#25# .#26# .#27# .#28# .#29# .#3# .#30# .#31# .#32# .#33# .#34# .#35# .#36# .#37# .#38# .#39# .#4# .#40# .#41# .#42# .#43# .#44# .#45# .#46# .#47# .#48# .#49# .#5# .#50# .#6# .#7#!.#8#isShowDialog .#9# .Index.LoggerModel).__webpack_require__.getNewHap'.handleNotification.initialRender.installBundle.isCommonModue.isShowDialog.onConsume).publishNotification.rerender.saveFile%.startUpdateSample1/UpdateWorkScheduler.hap1.1 100%50% ?name=ARRAY_BUFFEREAllocateNewElmetIdForNextComponentAppStorageBUNDLE_NAMES Black Center Color ColumnContentTypeDividerE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\feature\WorkSchedulerSystem.etsE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\pages\Index.ets?entryE:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\utils\Logger.etsFILE_NAMEFONT_WEIGHTFlexAlignGetHorizontalAlignHttpDataType#INSTALL_PARAMETERIf Image JSONLASTEST_VERSION LoggerLogger_1#NETWORK_TYPE_WIFI?NOTIFICATION_CONTENT_BASIC_TEXTNetworkType ObjectRowSetOrCreateSpaceBetween Start5StartGetAccessRecordingFor-StopGetAccessRecording String#SubscriberManager TextTextAlignVERSION ViewPU%ViewStackProcessor White'WorkSchedulerSystem+WorkSchedulerSystem_1M[Sample_workSchedulerExtensionAbility]C_3acf90a509f14590cec9be8c1cf8e5eaq__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea__esModule__importDefault__isShowDialog!aboutToBeDeleted1aboutToBeDeletedInternal#account.osAccountadditionalTextalignItems allowWallow install hap to update the applicationbackgroundColorborderColorborderRadiusborderWidthbranchId bundle!bundle.installerbundleNamebundleNames call clipcloseSync code colorcontentcontentType createcreateHttp#createStorageLink debugdefaultdefineProperty delete domain%enableNotification errorexpectDataTypeexportsfdfile.fsfilePathflexGrowflexShrinkfontColorfontSizefontWeight formatget7get result failed, code is #getAccountManager%getBundleInstallergetNewHap=getOsAccountLocalIdFromProcess%handleNotification height hilog5https://www.openharmony.cn id__5ifElseBranchUpdateFunctionindexOf infoinitialRenderinstallinstallBundle-installBundle code is =installBundle failed, code is 5installBundle filepath is installFlag+isNotificationEnabledisReadyisShowDialogjustifyContent lengthletterSpacingloadDocument marginmessagenet.httpnetworkType normalnotification1observeComponentCreationonClickonConsumeopacityopenSyncpaddingparameters paramspermissionpopposition prefixpromptActionprototypepublish'publishNotificationrequestrequireNapirerender=resourceschedule.workSchedulersaveFile3saveFile failed, code is set3setInitiallyProvidedValueshowToast#startUpdateSamplestartWork5startWork failed, code is stringifystrokeWidthsubscribe texttextAlign title'updateDirtyElementsuse strict userIdversion warn%web@openharmony.io[webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea widthwriteSync:3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;IZܻb{*Zx/ (H pg3t,*K<P\»!ϻ&E,~ϻ28\ܻ>ϻDEAJnϻPTV 4\zp!ܻvlϻ|\ϻk"$h-K1"t7h1 wDQ%Dx|^k+ Ƽ#Ƽ!xZB@ Ƽgt Ƽ^E ,Zy  1 Ӽ}9l -}  Qnp YN +T+}}4funcObjany0newTarget'__webpack_exports__ 0thisE:/ROUTE_FIX/applications_app_samples_5/code/BasicFeature/TaskManagement/WorkScheduler/entry/build/default/intermediates/loader_out/default/ets/pages/Index_.js #10# elmtIdisInitialRender #11# #12# #13# #14# #15# #16# #17# #18# #19##2# this4newTarget'__webpack_require__/__unused_webpack_module #20# #21# #22# #23# #24# #25# #26# #27# #28# #29##3#mod #30# #31# #32# #33# #34# #35# #36# #37# #38# #39##4# #40# #41# #42# #43# #44# #45# #46# #47# #48# #49#LoggerModel#5#statusMessage status #50##6# Index#7##8#isShowDialognewValue#9#__localStorage parentisCommonModue modulecachedModule%commonCachedModulemoduleId argsfunc_main_0var _3acf90a509f14590cec9be8c1cf8e5ea; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets": /*!*************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\feature\WorkSchedulerSystem.ets ***! \*************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WorkSchedulerSystem = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_file_fs_1 = globalThis.requireNapi('file.fs'); var _ohos_notification_1 = globalThis.requireNapi('notification'); var _ohos_bundle_installer_1 = globalThis.requireNapi('bundle.installer'); var _ohos_account_osAccount_1 = globalThis.requireNapi('account.osAccount'); var _ohos_resourceschedule_workScheduler_1 = globalThis.requireNapi('resourceschedule.workScheduler'); var _ohos_net_http_1 = globalThis.requireNapi('net.http'); const Logger_1 = __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); const FILE_NAME = '/UpdateWorkScheduler.hap'; const BUNDLE_NAMES = ['ohos.samples.workschedulerextensionability']; const INSTALL_PARAMETER = 1; var WorkSchedulerSystem; (function (WorkSchedulerSystem) { /** * Store the file to the specified directory. * * @param pathDir Path to save the file. * @param content The contents of the file to be saved. */ function saveFile(pathDir, content) { try { let filePath = pathDir + FILE_NAME; let fd = _ohos_file_fs_1.openSync(filePath, 0o2 | 0o100).fd; _ohos_file_fs_1.writeSync(fd, content); _ohos_file_fs_1.closeSync(fd); } catch (err) { Logger_1.Logger.error(`saveFile failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.saveFile = saveFile; /** * Sending a Notification. * * @param bundleName Check the name of the application that has permission. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ async function handleNotification(bundleName) { let isHavePermission = await _ohos_notification_1.isNotificationEnabled({ bundle: bundleName }); if (!isHavePermission) { await _ohos_notification_1.enableNotification({ bundle: bundleName }, true); } _ohos_notification_1.subscribe({ onConsume: (data) => { if (data.request.content.normal.text === 'isReady') { AppStorage.SetOrCreate('isShowDialog', true); } } }, { bundleNames: BUNDLE_NAMES }); } WorkSchedulerSystem.handleNotification = handleNotification; /** * Publishes a notification of the specified content. * * @param title Title of Notice. * @param text Content of Notification Text. * @param additionalText Additional text. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ function publishNotification(title, text, additionalText) { _ohos_notification_1.publish({ content: { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title, text, additionalText } } }); } WorkSchedulerSystem.publishNotification = publishNotification; /** * Install the application package in the specified path. * * @param filePath An array of paths to hold the installation package. * @permission ohos.permission.INSTALL_BUNDLE */ async function installBundle(filePath) { try { let bundleInstall = await _ohos_bundle_installer_1.getBundleInstaller(); let userId = await _ohos_account_osAccount_1.getAccountManager().getOsAccountLocalIdFromProcess(); bundleInstall.install(filePath, { userId: userId, installFlag: INSTALL_PARAMETER, isKeepData: false }, (status, statusMessage) => { Logger_1.Logger.info(`installBundle filepath is ${filePath}`); Logger_1.Logger.info(`installBundle code is ${status.code}, message is ${JSON.stringify(statusMessage)}`); }); } catch (err) { Logger_1.Logger.error(`installBundle failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.installBundle = installBundle; /** * Register the delayed task and pass the parameters. * * @param version Current application version. * @param bundleName The name of the application package for which the task needs to be registered. * @param filePath Storage address of the application package. */ async function startUpdateSample(version, bundleName, filePath) { try { let workInfo = { workId: 1, bundleName: bundleName, abilityName: 'FormAbility', networkType: _ohos_resourceschedule_workScheduler_1.NetworkType.NETWORK_TYPE_WIFI, parameters: { version: version, filePath: filePath } }; _ohos_resourceschedule_workScheduler_1.startWork(workInfo); } catch (err) { Logger_1.Logger.error(`startWork failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.startUpdateSample = startUpdateSample; /** * Register the delayed task and pass the parameters. * * @param url Url of the application package. * @permission ohos.permission.INTERNET */ async function getNewHap(url) { try { return await _ohos_net_http_1.createHttp().request(url, { expectDataType: _ohos_net_http_1.HttpDataType.ARRAY_BUFFER }); } catch (err) { Logger_1.Logger.error(`get result failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.getNewHap = getNewHap; })(WorkSchedulerSystem = exports.WorkSchedulerSystem || (exports.WorkSchedulerSystem = {})); /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\pages\\Index.ets?entry": /*!***************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\pages\Index.ets?entry ***! \***************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const WorkSchedulerSystem_1 = __webpack_require__(/*! ../feature/WorkSchedulerSystem */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets"); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction'); const VERSION = '1.1'; const FONT_WEIGHT = 700; const LASTEST_VERSION = '1.1'; class Index extends ViewPU { constructor(parent, params, __localStorage, elmtId = -1) { super(parent, __localStorage, elmtId); this.__isShowDialog = this.createStorageLink('isShowDialog', false, "isShowDialog"); this.setInitiallyProvidedValue(params); } setInitiallyProvidedValue(params) { } updateStateVars(params) { } purgeVariableDependenciesOnElmtId(rmElmtId) { } aboutToBeDeleted() { this.__isShowDialog.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id__()); this.aboutToBeDeletedInternal(); } get isShowDialog() { return this.__isShowDialog.get(); } set isShowDialog(newValue) { this.__isShowDialog.set(newValue); } initialRender() { this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.width('100%'); Column.height('100%'); Column.alignItems(HorizontalAlign.Center); Column.backgroundColor({ "id": 16777236, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Column.padding({ left: 12, right: 12 }); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.width('100%'); Row.padding({ top: 10 }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777231, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(20); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontWeight(FONT_WEIGHT); Text.margin({ top: 10 }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Image.create({ "id": 16777217, "type": 20000, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Image.width(100); Image.height(100); Image.margin({ top: 100 }); if (!isInitialRender) { Image.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.margin({ top: 10 }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777235, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(20); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create(`:${VERSION}`); Text.fontSize(20); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.width('100%'); Column.padding(12); Column.margin({ top: 50 }); Column.backgroundColor(Color.White); Column.borderRadius(16); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.width('100%'); Row.justifyContent(FlexAlign.SpaceBetween); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create({ space: 10 }); Column.flexShrink(1); Column.flexGrow(1); Column.alignItems(HorizontalAlign.Start); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777232, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(16); Text.fontWeight(FONT_WEIGHT); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create(VERSION === LASTEST_VERSION ? { "id": 16777229, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" } : LASTEST_VERSION); Text.fontSize(16); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Image.create({ "id": 16777242, "type": 20000, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Image.width(20); Image.height(20); if (!isInitialRender) { Image.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Divider.create(); Divider.width('100%'); Divider.strokeWidth(0.5); Divider.color({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Divider.margin({ top: 12, bottom: 12 }); if (!isInitialRender) { Divider.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.width('100%'); Row.justifyContent(FlexAlign.SpaceBetween); Row.onClick(() => { _ohos_promptAction_1.showToast({ message: { "id": 16777230, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" } }); }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create({ space: 10 }); Column.flexShrink(1); Column.flexGrow(1); Column.alignItems(HorizontalAlign.Start); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777233, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(16); Text.fontWeight(FONT_WEIGHT); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create('https://www.openharmony.cn'); Text.fontSize(16); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Image.create({ "id": 16777242, "type": 20000, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Image.width(20); Image.height(20); if (!isInitialRender) { Image.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Divider.create(); Divider.width('100%'); Divider.strokeWidth(0.5); Divider.color({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Divider.margin({ top: 12, bottom: 12 }); if (!isInitialRender) { Divider.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.width('100%'); Row.justifyContent(FlexAlign.SpaceBetween); Row.onClick(() => { _ohos_promptAction_1.showToast({ message: { "id": 16777230, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" } }); }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create({ space: 10 }); Column.flexShrink(1); Column.flexGrow(1); Column.alignItems(HorizontalAlign.Start); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777234, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(16); Text.fontWeight(FONT_WEIGHT); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create('web@openharmony.io'); Text.fontSize(16); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Image.create({ "id": 16777242, "type": 20000, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Image.width(20); Image.height(20); if (!isInitialRender) { Image.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Row.pop(); Column.pop(); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); If.create(); if (this.isShowDialog) { this.ifElseBranchUpdateFunction(0, () => { this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor(Color.Black); Column.opacity(.5); Column.position({ x: 0, y: 0 }); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.padding(20); Column.position({ x: 0, y: '40%' }); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.borderWidth(1); Column.borderColor({ "id": 16777238, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Column.borderRadius(20); Column.backgroundColor(Color.White); Column.clip(true); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.padding({ top: 30, bottom: 30 }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777225, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(20); Text.letterSpacing(1); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777222, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.width('50%'); Text.padding({ top: 10, bottom: 10 }); Text.textAlign(TextAlign.Center); Text.fontSize(16); Text.letterSpacing(1); Text.backgroundColor({ "id": 16777237, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.onClick(() => { this.isShowDialog = false; WorkSchedulerSystem_1.WorkSchedulerSystem.publishNotification('permission', 'allow', 'allow install hap to update the application'); }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777223, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.width('50%'); Text.textAlign(TextAlign.Center); Text.padding({ top: 10, bottom: 10 }); Text.fontSize(16); Text.letterSpacing(1); Text.backgroundColor({ "id": 16777238, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.onClick(() => { this.isShowDialog = false; }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Row.pop(); Column.pop(); Column.pop(); }); } else { If.branchId(1); } if (!isInitialRender) { If.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); If.pop(); Column.pop(); } rerender() { this.updateDirtyElements(); } } ViewStackProcessor.StartGetAccessRecordingFor(ViewStackProcessor.AllocateNewElmetIdForNextComponent()); loadDocument(new Index(undefined, {})); ViewStackProcessor.StopGetAccessRecording(); /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets": /*!**********************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\utils\Logger.ets ***! \**********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Logger = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_hilog_1 = globalThis.requireNapi('hilog'); class LoggerModel { constructor(prefix) { this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports.Logger = new LoggerModel('[Sample_workSchedulerExtensionAbility]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] ? globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"]) { /******/ const length = globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId] || /******/ globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\pages\\Index.ets?entry"); /******/ _3acf90a509f14590cec9be8c1cf8e5ea = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=Index.js.mapurlerr!isHavePermissionbundleInstall dataCpurgeVariableDependenciesOnElmtIdrmElmtIdpathDirworkInfoupdateStateVarsI'_Ĺ '_Ĺ'_Ĺ N_Ĺ'_Ĺ'_Ĺ "'_Ĺ'_Ĺ   N_Ĺ'_Ĺ'_Ĺ '_ĹBd  .  '_Ĺ   N_Ĺ '_Ĺ'_Ĺ'_Ĺ 2'_Ĺ'_Ĺ)'_Ĺ  N_Ĺd'_Ĺ'_Ĺ  '_Ĺ8 > '_Ĺ I"+o        E [cpS [}   , I"'_ĹĹ* t   ʺ    u  9 '_Ĺ  id typeUohos.samples.workschedulerextensionabilitymoduleName entrytop bottomxy40% space value_ohos_hilog_1 left right)_ohos_promptAction_1 workIdabilityNameFormAbilityisKeepData_ohos_file_fs_1)_ohos_notification_11_ohos_bundle_installer_13_ohos_account_osAccount_1M_ohos_resourceschedule_workScheduler_1!_ohos_net_http_11__webpack_module_cache__'__webpack_modules__SlotNumberN7N57N7N17N(7N7N&7N$7N!7N'7N-7N"7N 7N7N 7NP7N7N47ND7N7N7N7N7N/7N7N7N7N7N 7N7N7N7N7u=DpDDa`=aa`=3a`= ><a333 `a`=a`=< a>a`* a` 7e DDDDD?2a`B*a`a`.?a`BSa`-? a`B a>a`. ?a`Boa>a`.?a`B@a?a`B a`.?a`BCa!a a z!`a`.#?%a`B&a("a`a`.)`#QM$Q?+a`B,a`-.?02a`B1+a`-3e DDDDD?2a`B*a`a`.?&a`BSa`-? &a`B a>a`. ?&a`Ba a`a`.`#QM$Q?&a`Ba`-?2a`B+a`-e DDDDD?2a`B*a`a`.?.a`BSaa a z `a`. ?.a`Beaba`.?.a`Bdaaa z`a`.?.a`Bfa< a`.?!.a`B"a$a`a`.%`#QM$Q?'.a`B(a`-*?,2a`B-+a`-/e DDDDD?2a`B*a`a`.?a`BSaa a z `a`. ?a`Babda`.?a`Boabda`.?a`Baa`a`.`#QM$Q?a`Ba`-!?#2a`B$+a`-&e DDDDD?2a`B*a`a`.?&a`BSa`-? &a`B a a`a`.`#QM$Q?&a`Ba`-?2a`B+a`-e DDDDD?2a`B*a`a`.?.a`BSaa a z `a`. ?.a`Beaba`.?.a`Bdaaa z`a`.`#QM$Q?.a`Ba`-?!2a`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`zW`d(EEEEEEaa`=0`a $Q`a ` B:M` a #Q 3M` a?%a ` BXa `a >9a &a ` a ` 0 `a >a ` * a ` =@ma ` B a >a ` . a ` =0>a ` =ba ` =>a ` = ?1a 5' a a ` Ba >a a` 4a >a a` 4a ` 4zv ` 4z ` a?2a ` B*a ?2a ` B a ` -! a ` .# ?%a `a a a & a ` *( ?*2a ` B++a ` -- e.D`DqDD`$Q`a`B9$Q`M%a`zW`d(DDDD`a`B;a`Ba`a`.e iDDDDD?2a`B*a`a`.?a`BSa`-`#QM$Q? a`B a`- ?2a`B+a`-eDDEEEEE`a(Oba`a`a`a`a `a 2a``a`a`a ` BUa >a a >a ` 0 C;`a ` B a`a `. `d@D`DqDD`a`a>Cg`a`C`abCZ`dDEEE3aaaama >8a ` 7 $Qma >8a ` 7 a `a ` 7 Ma`$Q `a ` B^d<a `a ` 7 a`a ' $Q `a ` B ^d<a `a a z^ ` 8 ama >8a ` 7 a $Q2?,a `a` *a ` Bta >a ` . a b M` $Q+`a `a ` * $Qma >8a ` 7 a `a `8! <a `a ` 7# a ` B%La `a ` B'^a `a `a ` B)^a < a` 1+ `a ` B-^dhDDD`a`B;a`B<a`-?-a`Ba`- a`B Ya`a`B ra`-a`.`a`B=a`-e HDDDDa<a`BVa`a`BZa`a`Ba`a ` Bga `a `1e HDDDDa<a`B\a`a`BZa`a`Ba`a ` Bga `a `1e!>DP`=`=73a`)e DDDDa a`BTa`-a`Ba`a)a a ` Ba ` B z ]`a`/ `a`ab$Q``a`dMUa< !a`B a`B\a>ia`a ` BO a> a`a ` B a> a`.dad o|S  6D` =` =DӮa<1a`B}a2a`zH`a`.`a`ab$Q``a`#QM$QH<1a`B[a 3a`z H`aa `/  `a`ab$Q``<1a`Ba4a3z`a5a za`a ` BO a> a`a ` B "a> #a`.$dadS DDDEma>a`7$ma>a`7a`Ba`ab'$Qb'$Q:Nma >a ` 7 a ba ` 7 aba ` 7 a`a`7dma >a ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >a ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd DpDD`a`B;a`Bha`-d TDDDD`a ` Ba`BQa`Ba`Ba>~($Q? a`B 'a>aa`/ e sDDDEEE<0a`Ba/a 0a <0a ` Ba ` B#zR  1a `z `z `z? ` z ` zQ ` a `. eD`DqD`a`Ba`-e DDDEE`a<  a<a ` Ba `a ba b@ a ` / a`B_a<a ` Ba`a `a `/ <a ` B Na`a `. MUa< !a ` B a`B\a>a `a ` BO  a >  a `a ` B  a >  a `. e rS DDDDEEa*a`zJa ` B$a ` B"z +a `z `z a ` z`aa ` Ba`a `. MUa< !a ` B a ` B\a>a `a ` BO  a >  a `a ` B  a >  a `. dad[nS DPDaDrDe HDDDDa<a`Ba`a`BZa`a`Ba`a ` Bga `a `1e  > p             /  G9 999999999999 $z$~$z$)-$8$.     k  k  k  k    k  k   G9 999999;99999;99 :    #L#       k  k  k   79 999999;99999;99 :        k    k  k    k  k  k   J9 999999;99999;99 : A  D        k    k  k  k  k   B9 999999;99999;99 : B         k  k   39 999999;99999;99 :       k    k  k    k   B9 999999;99999;99 : A  D      k       k  k    k   H9 999999;99999;99 :  $$  D      k  k  k  k  k  k   C9 999999;99999;99 :    #    79 999999;99999;99 :        k  k  k  k  k   >9 999999;99999;99 :              1            k    k    k    k    z    z    k  k  k  l         9;9999;99;9999<99999992   8- # . 3 7 ! 8!. E. /<9W9~    k    k  k  k   >9 999999;99999;99 : A        k          k  k    k   O9 999999;99999;99 : $6_6  D  >9 999999;99999;99 : B        k  k  k    k  k   C9 999999;99999;99 :   C       k  k  k  m   ;9 999999;99999;99 :             %9999999999 /:c:/  >9 999999;99999;99 :      >9 999999;99999;99 : A        k  k  k    k   >9 999999;99999;99 :   D   >9 999999;99999;99 : B               09999;99;99<99   % +8+C9 999999;99999;99 :   C   ;9 999999;99999;99 :      %9999999999 /:c:/  >9 999999;99999;99 :      >9 999999;99999;99 : A    >9 999999;99999;99 :   D   >9 999999;99999;99 : B        k      l   =9 999999;99999;99 :  03        t    s  t  r    H9999999999 2  2 2 2 2 2 2 2C9 999999;99999;99F%&/' (                 e9;99;99 99999&99!99%99&99 9999*=#-.(,$79 999999;99999;99F'(     k  k    k  k  k  k   G9 999999;99999;99F++T+ ,/$39 999999;99999;99F$ >9 999999;99999;99F$M$ &+/9 999999;99999;99F    k    k  k  k  k  k  k    k  n   V9 999999;99999;99F$M$ #% '&+-V- %    \    %99999999990Zhq     k    k  k  k  k  k  k    k  m   V9 999999;99999;99F$M$ #'% &+-V- %    99999999990        1             /          q9999;99;99<99=999999   8-  ,=99 !         k             M9 999999999=99>99%BK%K%%>J%JYhY w%w%19999;99;99<99   % +8+        1         k    k  k  k   /                      k       \9999;99;9999>9999;99<99   8- X 3>99 oolli |.  " 19999;99;99<99   % +8+    #9999;99;99>99     k   /9 999999;99999;99 :         M          \  g ^ T9999;99>99>99;99;99$990:90&5EL'!  M   \  \  X ^ .9999;99;99%99"            /  !    /  k  "   m                  >      N        m  9 999;99;99>99>99?99?99?99$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V  #    k9999;99;99'$,9999;99;99?99    ) 6 C,9999;99;99?99    ) 6 C l  ?9999  %    k     x  /             K S9999;99;9999?D D  99 "@I"IXd"d" z &   k -    1   k - ;    k Z k i   @99999999% PP %   ::  ''  z w '   /      ,9999;99;99?99    ( 5 B    r    t      s  t  t    t    t  t  t        t  t  t        t  t  t  9999 & & & &  & & & & & & & & & & & & & & & & & & & & & & &(    /   /   k - ] h u   /             K V9999'9999&   ",,, 99  "CL"L[g"g" s )    >    / M  l  g ?          !                 Z    u9 999;99;99?99*#99,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"*   9999;99;99+    k   x +999999999999$9+;,   k k  ] k - ] , ^ + w x  <9;99;99'9999999'99 %% - 9999;99;99990  9999;99;99.     /       /    z    /             t9 999;99;99999999994% .8>8 &* & 99 ">G"GVb"b" y/9999;99;99$99&  l , _  ` k - ] ,   8     /             K o9;99'99;99999999999{ = u99  "?H"HWc"c" r 0  9999;99;99$99,9999;99;99?99    ( 5 B "Gkr g4r^aceRN   u _  PK !:"ets/pages/Index.jsvar _3acf90a509f14590cec9be8c1cf8e5ea; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets": /*!*************************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\feature\WorkSchedulerSystem.ets ***! \*************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WorkSchedulerSystem = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_file_fs_1 = globalThis.requireNapi('file.fs'); var _ohos_notification_1 = globalThis.requireNapi('notification'); var _ohos_bundle_installer_1 = globalThis.requireNapi('bundle.installer'); var _ohos_account_osAccount_1 = globalThis.requireNapi('account.osAccount'); var _ohos_resourceschedule_workScheduler_1 = globalThis.requireNapi('resourceschedule.workScheduler'); var _ohos_net_http_1 = globalThis.requireNapi('net.http'); const Logger_1 = __webpack_require__(/*! ../utils/Logger */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets"); const FILE_NAME = '/UpdateWorkScheduler.hap'; const BUNDLE_NAMES = ['ohos.samples.workschedulerextensionability']; const INSTALL_PARAMETER = 1; var WorkSchedulerSystem; (function (WorkSchedulerSystem) { /** * Store the file to the specified directory. * * @param pathDir Path to save the file. * @param content The contents of the file to be saved. */ function saveFile(pathDir, content) { try { let filePath = pathDir + FILE_NAME; let fd = _ohos_file_fs_1.openSync(filePath, 0o2 | 0o100).fd; _ohos_file_fs_1.writeSync(fd, content); _ohos_file_fs_1.closeSync(fd); } catch (err) { Logger_1.Logger.error(`saveFile failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.saveFile = saveFile; /** * Sending a Notification. * * @param bundleName Check the name of the application that has permission. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ async function handleNotification(bundleName) { let isHavePermission = await _ohos_notification_1.isNotificationEnabled({ bundle: bundleName }); if (!isHavePermission) { await _ohos_notification_1.enableNotification({ bundle: bundleName }, true); } _ohos_notification_1.subscribe({ onConsume: (data) => { if (data.request.content.normal.text === 'isReady') { AppStorage.SetOrCreate('isShowDialog', true); } } }, { bundleNames: BUNDLE_NAMES }); } WorkSchedulerSystem.handleNotification = handleNotification; /** * Publishes a notification of the specified content. * * @param title Title of Notice. * @param text Content of Notification Text. * @param additionalText Additional text. * @permission ohos.permission.NOTIFICATION_CONTROLLER */ function publishNotification(title, text, additionalText) { _ohos_notification_1.publish({ content: { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title, text, additionalText } } }); } WorkSchedulerSystem.publishNotification = publishNotification; /** * Install the application package in the specified path. * * @param filePath An array of paths to hold the installation package. * @permission ohos.permission.INSTALL_BUNDLE */ async function installBundle(filePath) { try { let bundleInstall = await _ohos_bundle_installer_1.getBundleInstaller(); let userId = await _ohos_account_osAccount_1.getAccountManager().getOsAccountLocalIdFromProcess(); bundleInstall.install(filePath, { userId: userId, installFlag: INSTALL_PARAMETER, isKeepData: false }, (status, statusMessage) => { Logger_1.Logger.info(`installBundle filepath is ${filePath}`); Logger_1.Logger.info(`installBundle code is ${status.code}, message is ${JSON.stringify(statusMessage)}`); }); } catch (err) { Logger_1.Logger.error(`installBundle failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.installBundle = installBundle; /** * Register the delayed task and pass the parameters. * * @param version Current application version. * @param bundleName The name of the application package for which the task needs to be registered. * @param filePath Storage address of the application package. */ async function startUpdateSample(version, bundleName, filePath) { try { let workInfo = { workId: 1, bundleName: bundleName, abilityName: 'FormAbility', networkType: _ohos_resourceschedule_workScheduler_1.NetworkType.NETWORK_TYPE_WIFI, parameters: { version: version, filePath: filePath } }; _ohos_resourceschedule_workScheduler_1.startWork(workInfo); } catch (err) { Logger_1.Logger.error(`startWork failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.startUpdateSample = startUpdateSample; /** * Register the delayed task and pass the parameters. * * @param url Url of the application package. * @permission ohos.permission.INTERNET */ async function getNewHap(url) { try { return await _ohos_net_http_1.createHttp().request(url, { expectDataType: _ohos_net_http_1.HttpDataType.ARRAY_BUFFER }); } catch (err) { Logger_1.Logger.error(`get result failed, code is ${err.code}, message is ${err.message}`); } } WorkSchedulerSystem.getNewHap = getNewHap; })(WorkSchedulerSystem = exports.WorkSchedulerSystem || (exports.WorkSchedulerSystem = {})); /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\pages\\Index.ets?entry": /*!***************************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\pages\Index.ets?entry ***! \***************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const WorkSchedulerSystem_1 = __webpack_require__(/*! ../feature/WorkSchedulerSystem */ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets"); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction'); const VERSION = '1.1'; const FONT_WEIGHT = 700; const LASTEST_VERSION = '1.1'; class Index extends ViewPU { constructor(parent, params, __localStorage, elmtId = -1) { super(parent, __localStorage, elmtId); this.__isShowDialog = this.createStorageLink('isShowDialog', false, "isShowDialog"); this.setInitiallyProvidedValue(params); } setInitiallyProvidedValue(params) { } updateStateVars(params) { } purgeVariableDependenciesOnElmtId(rmElmtId) { } aboutToBeDeleted() { this.__isShowDialog.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id__()); this.aboutToBeDeletedInternal(); } get isShowDialog() { return this.__isShowDialog.get(); } set isShowDialog(newValue) { this.__isShowDialog.set(newValue); } initialRender() { this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.width('100%'); Column.height('100%'); Column.alignItems(HorizontalAlign.Center); Column.backgroundColor({ "id": 16777236, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Column.padding({ left: 12, right: 12 }); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.width('100%'); Row.padding({ top: 10 }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777231, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(20); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontWeight(FONT_WEIGHT); Text.margin({ top: 10 }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Image.create({ "id": 16777217, "type": 20000, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Image.width(100); Image.height(100); Image.margin({ top: 100 }); if (!isInitialRender) { Image.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.margin({ top: 10 }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777235, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(20); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create(`:${VERSION}`); Text.fontSize(20); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.width('100%'); Column.padding(12); Column.margin({ top: 50 }); Column.backgroundColor(Color.White); Column.borderRadius(16); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.width('100%'); Row.justifyContent(FlexAlign.SpaceBetween); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create({ space: 10 }); Column.flexShrink(1); Column.flexGrow(1); Column.alignItems(HorizontalAlign.Start); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777232, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(16); Text.fontWeight(FONT_WEIGHT); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create(VERSION === LASTEST_VERSION ? { "id": 16777229, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" } : LASTEST_VERSION); Text.fontSize(16); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Image.create({ "id": 16777242, "type": 20000, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Image.width(20); Image.height(20); if (!isInitialRender) { Image.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Divider.create(); Divider.width('100%'); Divider.strokeWidth(0.5); Divider.color({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Divider.margin({ top: 12, bottom: 12 }); if (!isInitialRender) { Divider.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.width('100%'); Row.justifyContent(FlexAlign.SpaceBetween); Row.onClick(() => { _ohos_promptAction_1.showToast({ message: { "id": 16777230, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" } }); }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create({ space: 10 }); Column.flexShrink(1); Column.flexGrow(1); Column.alignItems(HorizontalAlign.Start); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777233, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(16); Text.fontWeight(FONT_WEIGHT); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create('https://www.openharmony.cn'); Text.fontSize(16); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Image.create({ "id": 16777242, "type": 20000, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Image.width(20); Image.height(20); if (!isInitialRender) { Image.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Divider.create(); Divider.width('100%'); Divider.strokeWidth(0.5); Divider.color({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Divider.margin({ top: 12, bottom: 12 }); if (!isInitialRender) { Divider.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.width('100%'); Row.justifyContent(FlexAlign.SpaceBetween); Row.onClick(() => { _ohos_promptAction_1.showToast({ message: { "id": 16777230, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" } }); }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create({ space: 10 }); Column.flexShrink(1); Column.flexGrow(1); Column.alignItems(HorizontalAlign.Start); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777234, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(16); Text.fontWeight(FONT_WEIGHT); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create('web@openharmony.io'); Text.fontSize(16); Text.fontColor({ "id": 16777239, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Image.create({ "id": 16777242, "type": 20000, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Image.width(20); Image.height(20); if (!isInitialRender) { Image.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Row.pop(); Column.pop(); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); If.create(); if (this.isShowDialog) { this.ifElseBranchUpdateFunction(0, () => { this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor(Color.Black); Column.opacity(.5); Column.position({ x: 0, y: 0 }); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Column.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.padding(20); Column.position({ x: 0, y: '40%' }); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Column.create(); Column.borderWidth(1); Column.borderColor({ "id": 16777238, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Column.borderRadius(20); Column.backgroundColor(Color.White); Column.clip(true); if (!isInitialRender) { Column.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); Row.padding({ top: 30, bottom: 30 }); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777225, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.fontSize(20); Text.letterSpacing(1); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Row.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Row.create(); if (!isInitialRender) { Row.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777222, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.width('50%'); Text.padding({ top: 10, bottom: 10 }); Text.textAlign(TextAlign.Center); Text.fontSize(16); Text.letterSpacing(1); Text.backgroundColor({ "id": 16777237, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.onClick(() => { this.isShowDialog = false; WorkSchedulerSystem_1.WorkSchedulerSystem.publishNotification('permission', 'allow', 'allow install hap to update the application'); }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); this.observeComponentCreation((elmtId, isInitialRender) => { ViewStackProcessor.StartGetAccessRecordingFor(elmtId); Text.create({ "id": 16777223, "type": 10003, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.width('50%'); Text.textAlign(TextAlign.Center); Text.padding({ top: 10, bottom: 10 }); Text.fontSize(16); Text.letterSpacing(1); Text.backgroundColor({ "id": 16777238, "type": 10001, params: [], "bundleName": "ohos.samples.workschedulerextensionability", "moduleName": "entry" }); Text.onClick(() => { this.isShowDialog = false; }); if (!isInitialRender) { Text.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); Text.pop(); Row.pop(); Column.pop(); Column.pop(); }); } else { If.branchId(1); } if (!isInitialRender) { If.pop(); } ViewStackProcessor.StopGetAccessRecording(); }); If.pop(); Column.pop(); } rerender() { this.updateDirtyElements(); } } ViewStackProcessor.StartGetAccessRecordingFor(ViewStackProcessor.AllocateNewElmetIdForNextComponent()); loadDocument(new Index(undefined, {})); ViewStackProcessor.StopGetAccessRecording(); /***/ }), /***/ "E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets": /*!**********************************************************************************************************************************!*\ !*** E:\ROUTE_FIX\applications_app_samples_5\code\BasicFeature\TaskManagement\WorkScheduler\entry\src\main\ets\utils\Logger.ets ***! \**********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Logger = void 0; /* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_hilog_1 = globalThis.requireNapi('hilog'); class LoggerModel { constructor(prefix) { this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports.Logger = new LoggerModel('[Sample_workSchedulerExtensionAbility]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] ? globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"]) { /******/ const length = globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][0][1][moduleId] || /******/ globalThis["webpackChunk_3acf90a509f14590cec9be8c1cf8e5ea"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___3acf90a509f14590cec9be8c1cf8e5ea"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\pages\\Index.ets?entry"); /******/ _3acf90a509f14590cec9be8c1cf8e5ea = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=Index.js.mapPK !:ON%%ets/pages/Index.js.map{"version":3,"file":"./pages/Index.js","mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,sMAAwC;AAExC,MAAM,SAAS,GAAG,0BAA0B;AAC5C,MAAM,YAAY,GAAG,CAAC,4CAA4C,CAAC;AACnE,MAAM,iBAAiB,GAAG,CAAC;AAE3B,IAAiB,mBAAmB,CAmInC;AAnID,WAAiB,mBAAmB;IAClC;;;;;OAKG;IACH,SAAgB,QAAQ,CAAC,OAAe,EAAE,OAAoB;QAC5D,IAAI;YACF,IAAI,QAAQ,GAAG,OAAO,GAAG,SAAS;YAClC,IAAI,EAAE,GAAG,uBAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,GAAG;YACrC,uBAAE,CAAC,SAAS,CAAC,EAAE,EAAE;YACjB,uBAAE,CAAC;SACJ;QAAC,OAAO,GAAG,EAAE;YACZ,eAAM,CAAC,KAAK,CAAC,4BAA4B,GAAG,CAAC,IAAI,gBAAgB,GAAG,CAAC,OAAO,EAAE,CAAC;SAChF;IACH,CAAC;IATe,4BAAQ,WASvB;IAED;;;;;OAKG;IACI,KAAK,UAAU,kBAAkB,CAAC,UAAkB;QACzD,IAAI,gBAAgB,GAAG,MAAM,4BAAY,CAAC;YACxC,MAAM,EAAE,UAAU;SACnB,CAAC;QACF,IAAI,CAAC,gBAAgB,EAAE;YACrB,MAAM,4BAAY,CAAC;gBACjB,MAAM,EAAE,UAAU;aACnB,EAAE,IAAI,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;KAgLP;;;;;;;;;;;;;;;;;;;;;;;;AC5MH;;;;;;;;;;;;;GAaG;AAEH;AAEA,MAAM,WAAW;IAKf,YAAY,MAAc;QAFlB,WAAM,GAAW,wBAAwB;QAG/C,IAAI,CAAC,MAAM,GAAG,MAAM;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM;IACtB,CAAC;IAED,KAAK,CAAC,GAAG,IAAc;QACrB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;IAED,IAAI,CAAC,GAAG,IAAc;QACpB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,IAAI,CAAC,GAAG,IAAc;QACpB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAc;QACrB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAEU,cAAM,GAAG,IAAI,WAAW,CAAC,wCAAwC,CAAC;;;;;;;UC5C7E;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\feature\\WorkSchedulerSystem.ets","webpack:///E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\pages\\Index.ets","webpack:///E:\\ROUTE_FIX\\applications_app_samples_5\\code\\BasicFeature\\TaskManagement\\WorkScheduler\\entry\\src\\main\\ets\\utils\\Logger.ets","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":"","nameMap":["_ohos_promptAction_1","promptAction"]}PK !: ] module.json{"app" :{"apiReleaseType" : "Release","bundleName" : "ohos.samples.workschedulerextensionability","debug" : true,"distributedNotificationEnabled" : true,"icon" : "$media:app_icon","iconId" : 16777217,"label" : "$string:app_name","labelId" : 16777216,"minAPIVersion" : 9,"targetAPIVersion" : 9,"vendor" : "samples","versionCode" : 1000000,"versionName" : "1.0.0"},"module" :{"abilities" :[{"description" : "$string:MainAbility_desc","descriptionId" : 16777218,"icon" : "$media:icon","iconId" : 16777241,"label" : "$string:MainAbility_label","labelId" : 16777219,"name" : "MainAbility","skills" :[{"actions" :["action.system.home"],"entities" :["entity.system.home"]}],"srcEntrance" : "./ets/MainAbility/MainAbility.ets","startWindowBackground" : "$color:white","startWindowBackgroundId" : 16777240,"startWindowIcon" : "$media:icon","startWindowIconId" : 16777241,"visible" : true}],"compileMode" : "jsbundle","deliveryWithInstall" : true,"description" : "$string:entry_desc","descriptionId" : 16777226,"deviceTypes" :["default","tablet"],"extensionAbilities" :[{"description" : "$string:form_FormAbility_desc","descriptionId" : 16777227,"label" : "$string:form_FormAbility_label","labelId" : 16777228,"metadata" :[{"name" : "ohos.extension.form","resource" : "$profile:form_config","resourceId" : 16777243}],"name" : "FormAbility","srcEntrance" : "./ets/WorkSchedulerAbility/WorkSchedulerAbility.ets","type" : "workScheduler"}],"installationFree" : false,"mainElement" : "MainAbility","name" : "entry","pages" : "$profile:main_pages","requestPermissions" :[{"name" : "ohos.permission.INTERNET"},{"name" : "ohos.permission.INSTALL_BUNDLE"},{"name" : "ohos.permission.NOTIFICATION_CONTROLLER"}],"srcEntrance" : "./ets/Application/MyAbilityStage.ets","type" : "entry","virtualMachine" : "ark9.0.0.0"}}PK !: pack.info{"summary":{"app":{"bundleName":"ohos.samples.workschedulerextensionability","version":{"code":1000000,"name":"1.0.0"}},"modules":[{"mainAbility":"MainAbility","deviceType":["default","tablet"],"abilities":[{"name":"MainAbility","label":"$string:MainAbility_label","visible":true}],"extensionAbilities":[{"name":"FormAbility","forms":[{"name":"WorkSchedulerAbility","type":"JS","updateEnabled":true,"scheduledUpdateTime":"10:30","updateDuration":1,"supportDimensions":["2*2"],"defaultDimension":"2*2"}]}],"distro":{"moduleType":"entry","installationFree":false,"deliveryWithInstall":true,"moduleName":"entry"},"apiVersion":{"compatible":9,"releaseType":"Release","target":9}}]},"packages":[{"deviceType":["default","tablet"],"moduleType":"entry","deliveryWithInstall":true,"name":"entry-default"}]} PK !:M7Eresources.indexRestool 2.010KEYSKEYSneKEYSDhzIDSST5Q    V #Hg<uIDSSBo # ?    D v    6 U w IDSS   % W s    5 h    *Nl3 workSchedulerExtensionAbility app_name=(entry/resources/base/media/app_icon.png app_icon)  descriptionMainAbility_desc, WorkSchedulerMainAbility_label2  descriptionWorkSchedulerAbility_desc- labelWorkSchedulerAbility_label confirmbtn1 cancelbtn2J 3Features in development, please look forward to! dialogTextU =A new version has been downloaded. Do you want to update it? dialogTitle#  description entry_desc3 form_descriptionform_FormAbility_desc.  form_labelform_FormAbility_label. It is the latest version isLatest< %Features are still under development is_develop% workScheduler sampleName! versionUpdatetitle1 websitetitle2  contact ustitle3 versionversion#f2f2f2bg1#65cce1btn1#cccbtn2#66696d fontColor#FFFFFFwhite5$entry/resources/base/media/icon.pngicon7%entry/resources/base/media/right.pngrightF.entry/resources/base/profile/form_config.json form_configD-entry/resources/base/profile/main_pages.json main_pages)  descriptionMainAbility_desc, WorkSchedulerMainAbility_label2  descriptionWorkSchedulerAbility_desc- labelWorkSchedulerAbility_label confirmbtn1 cancelbtn2J 3Features in development, please look forward to! dialogTextU =A new version has been downloaded. Do you want to update it? dialogTitle#  description entry_desc3 form_descriptionform_FormAbility_desc.  form_labelform_FormAbility_label. It is the latest version isLatest< %Features are still under development is_develop% workScheduler sampleName! versionUpdatetitle1 websitetitle2  contact ustitle3 versionversion*  能力描述MainAbility_desc+  延时任务MainAbility_label- 描述WorkSchedulerAbility_desc. 标签WorkSchedulerAbility_label 确定btn1 取消btn29 "功能开发中,敬请期待! dialogText= %已下载新版本,是否更新? dialogTitle$  入口描述 entry_desc/  表单描述form_FormAbility_desc0  表单标签form_FormAbility_label+ 已经是最新版本 isLatest- 功能尚在开发中 is_develop* 延迟任务调度 sampleName  版本更新title1 官网title2  联系我们title3 版本versionPK !:.І!resources/base/media/app_icon.pngPNG  IHDRrr݅}KiTXtXML:com.adobe.xmp -CDIDATxyp\ŝ?$- CH VH6ne7GmŁ$$E6TͲTb 0a;6^la[u?4Q?Io$VM4{ݯ׿_@)F1߁2 x  Yw!hl o솠u뾆Y4# $ %m<{ORuddbNx8R[O屃yЄHsW$:KPD@ |}PsvԱfnïہ(:H*j}-pԷycZF6&֢8E *ߌ"(J)Oxx <cȿ!(qT \կ?&c4T/'PxD03 OQI`܍.ӋLku^oq=OچԽA fNPT >6Zon,#|"l0w3$@[2hhP; ml>E㢻S<.>q\q, })vuj{/b@P@ٛ5?*ƴFG)L=$7抄*\& a@>%)<1WZeHN 6i[] =P|QX"W-Ȍl@/CCoJűeޭ=K+˄+|&Н ,2>4eB[6R bYN0t`Z6ď_]h^nUsjZJC* \unY%8(&e限2` EvR ¢K9zVm9|GZD`wk̕,ܡ'WqU'?syXBKuv Ku!OM#Eç0|V"O"f ma%*K : 6!}FœK(EÅ5҇tnOr)aP9&E~'L-6!%XB!+!>5)WTxMk̥p)!0K/Oj:4S\亊$ڇ*O`SH# +"ɔh chņT\2"LDAq9ΎTmӅbZ'[)g|Th)P /Q,lY0N(,5Z(6!m w-Հ#гq8JH 2_u{S.e)#܏ X&|mW~R2@EHo+e+ eOQPhtB-@ \ Y= VqBoU&7חN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']w|_r} >}lwwżM9x5$Bep!EFA28"gp# nhDH3@7 @A" ZG R n -#@)r7↖ H9qC$Bep!EFA28"gp# nhDH3@7 @A" ZG R n -#@)r7↖ H9qC$Bep!EFA28"gp# nhDH3@7 @A" ZG غIENDB`PK !:q) jj'resources/base/profile/form_config.json{"forms": [{"name": "WorkSchedulerAbility","description": "This is a service widget.","src": "./js/WorkSchedulerAbility/pages/index/index","window": {"designWidth": 720,"autoDesignWidth": true},"colorMode": "auto","isDefault": true,"updateEnabled": true,"scheduledUpdateTime": "10:30","updateDuration": 1,"defaultDimension": "2*2","supportDimensions": ["2*2"]}]}PK !:wr&resources/base/profile/main_pages.json{"src": ["pages/Index"]}   0  *H  0 1 0  `He0U *H FB{"version-name":"2.0.0","version-code":2,"app-distribution-type":"os_integration","uuid":"5027b99e-5f9e-465d-9508-a9e0134ffe18","validity":{"not-before":1594865258,"not-after":1689473258},"app-privilege-capabilities":["AllowAppUsePrivilegeExtension"],"type":"release","bundle-info":{"developer-id":"OpenHarmony","distribution-certificate":"-----BEGIN CERTIFICATE-----\nMIICFTCCAZmgAwIBAgIEVfoowTAMBggqhkjOPQQDAwUAMGMxCzAJBgNVBAYTAkNO\nMRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh\nbTEjMCEGA1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwHhcNMjMwNDI1\nMDc1NTE3WhcNMzMwNDIyMDc1NTE3WjBKMRUwEwYDVQQDDAxpZGVfZGVtb19hcHAx\nDTALBgNVBAsTBFVuaXQxFTATBgNVBAoTDE9yZ2FuaXphdGlvbjELMAkGA1UEBhMC\nQ04wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARWRKE8cPqvBNQuSxJg753sZnEV\nrJgL4bHxCJXUujyYshAm/iDtjZLyYOI7xUElvc0x+yhn1Wt9zNswGvaQHIOZo1Iw\nUDAdBgNVHQ4EFgQUIBZ+TPuPkCDnvz4TsCVELZcPoeUwDgYDVR0PAQH/BAQDAgeA\nMB8GA1UdIwQYMBaAFNuGtyIW1QuhS7fdJXu58QV9oi1HMAwGCCqGSM49BAMDBQAD\naAAwZQIwXrF9+uv+eFqUY8jCumv8aUFHZE1Iifiz1FubIXOTeON8yklNyjsL0J4o\nnL21JyTbAjEAsT3piy1BGEqSTUduFG04W4S5loCm76vnqBATuunRcjTXWQNxdagw\n2L+LPLG0c4+F\n-----END CERTIFICATE-----\n","bundle-name":"ohos.samples.workschedulerextensionability","apl":"system_core","app-feature":"hos_system_app"},"acls":{"allowed-acls":[""]},"permissions":{"restricted-permissions":[]},"issuer":"pki_internal"}0<07m0 *H=0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA0 210202122105Z 491231122105Z0p1 0 UCN10U  OpenHarmony10U OpenHarmony Team100.U'OpenHarmony Application Profile Release0Y0*H=*H=BW빦Aqɒ(F7 *ČM7n+T?ȠQ Ó4nR0P0U#0ۆ" K%{}-G0U0Ua齧zNϕ_ R0 *H=i0f1 byH$BehwF>좘Bdf6`1jz :A$]L!O0D&RC$5xs~0D0ɠ80 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121418Z 491231121418Z0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0v0*H=+"bM6yk J(ocAmK{- vYY[@YGMGpB_T cG ޸_&r )QsYI~7GB0@0U00U0U:|Oј'Zw0 *H=g0d0wZw'1w>X' :*5z\-o#iY't0$$o]#R0J?yDuEpv0qOy֧+G0a0e=0 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121532Z 491231121532Z0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA0v0*H=+"b!ǝ5ʤ_A%'tC'֓ 7~pX~pvR0Wڗ(6P›ј!`+-Uc0a0U#0:|Oј'Zw0U00U0Uۆ" K%{}-G0 *H=h0e0m^8t:h_6}fOHU߉hI1ow:rR&-XŖl;NrapYtg4;.1A0=0k0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA7m0  `Hei0 *H  1  *H 0 *H  1 230425085408Z0/ *H  1" I3s4̈z,Zdז1J<0 *H=G0E!͎ON8y׽)^ɼ5sL Q JŞ+CGx6,IioW3q0 *H 01 0  `He0C *H 64( k-M XGC;n0D0ɠ80 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121418Z 491231121418Z0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0v0*H=+"bM6yk J(ocAmK{- vYY[@YGMGpB_T cG ޸_&r )QsYI~7GB0@0U00U0U:|Oј'Zw0 *H=g0d0wZw'1w>X' :*5z\-o#iY't0$$o]#R0J?yDuEpv0qOy֧+G0I0ΠALf0 *H=0c1 0 UCN10U OpenHarmony10U OpenHarmony Team1#0!U OpenHarmony Application CA0 230425085357Z 240424085357Z0h1 0 UCN10U OpenHarmony10U OpenHarmony Team1(0&U OpenHarmony Application Release0Y0*H=*H=B$_q8 ѳSB~MeC`R47f46L]dJ.x>>]xk0i0UH1rc Rojқ0 U00U0U% 0 +0 +[x0 0 *H=i0f1~XwcFlC*nQt~rez9Eܿ5ME̦g4С1|sw,3얘mf{G:V`٫(|:r0a0e=0 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121532Z 491231121532Z0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA0v0*H=+"b!ǝ5ʤ_A%'tC'֓ 7~pX~pvR0Wڗ(6P›ј!`+-Uc0a0U#0:|Oј'Zw0U00U0Uۆ" K%{}-G0 *H=h0e0m^8t:h_6}fOHU߉hI1ow:rR&-XŖl;NrapYtg4;.1B0>0k0c1 0 UCN10U OpenHarmony10U OpenHarmony Team1#0!U OpenHarmony Application CAALf0  `Hei0 *H  1  *H 0 *H  1 230425085546Z0/ *H  1" :U eB^xrOpyPw(Gʎi0 *H=H0F!lR>Ӈb_eAreGQui! 6K{ @%b^(PK !:Np  "ets/Application/MyAbilityStage.abcPK !:F !Pets/Application/MyAbilityStage.jsPK !:j[D  %iets/Application/MyAbilityStage.js.mapPK !:Jj||ets/MainAbility/MainAbility.abcPK !:9AAets/MainAbility/MainAbility.jsPK !:R0"ets/MainAbility/MainAbility.js.mapPK !:J~~1ets/WorkSchedulerAbility/WorkSchedulerAbility.abcPK !:@ˋBB0vets/WorkSchedulerAbility/WorkSchedulerAbility.jsPK !:54oets/WorkSchedulerAbility/WorkSchedulerAbility.js.mapPK !:эo!ets/pages/Index.abcPK !:"ets/pages/Index.jsPK !:ON%%sets/pages/Index.js.mapPK !: ] ޙmodule.jsonPK !: pack.infoPK !:M7ESresources.indexPK !:.І!/resources/base/media/app_icon.pngPK !:.Іresources/base/media/icon.pngPK !:$ $ resources/base/media/right.pngPK !:q) jj'resources/base/profile/form_config.jsonPK !:wr&resources/base/profile/main_pages.jsonPK