diff --git a/build-profile.json5 b/build-profile.json5 index ee3ddd3964f340f47816fa09242fb41b5fbe022f..f8e3dff9bcb7c6645041a7856dad427f3d0a0fd5 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -36,8 +36,8 @@ ] }, { - "name": "okdownload", - "srcPath": "./okdownload" + "name": "library", + "srcPath": "./library" } ] } \ No newline at end of file diff --git a/entry/oh-package.json5 b/entry/oh-package.json5 index 1b94a35c8f8281c2117b14fdc65bfd8f08d081ea..05765e165028dce0e862f7e5da28cac135f63599 100644 --- a/entry/oh-package.json5 +++ b/entry/oh-package.json5 @@ -6,7 +6,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "@ohos/okdownload": "file:../okdownload" + "@ohos/okdownload": "file:../library" } } diff --git a/entry/src/main/ets/entryability/EntryAbility.ts b/entry/src/main/ets/entryability/EntryAbility.ts deleted file mode 100644 index c46c72971d83ca25051185d23df05bb4b84288ec..0000000000000000000000000000000000000000 --- a/entry/src/main/ets/entryability/EntryAbility.ts +++ /dev/null @@ -1,48 +0,0 @@ -import AbilityConstant from '@ohos.app.ability.AbilityConstant'; -import hilog from '@ohos.hilog'; -import UIAbility from '@ohos.app.ability.UIAbility'; -import Want from '@ohos.app.ability.Want'; -import window from '@ohos.window'; - -export default class EntryAbility extends UIAbility { - onCreate(want: Want, launchParam: AbilityConstant.LaunchParam) { - hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate'); - if(this.context.filesDir.endsWith('/')){ - globalThis.path = this.context.filesDir; - }else{ - globalThis.path = this.context.filesDir+'/'; - } - } - - onDestroy() { - hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy'); - } - - onWindowStageCreate(windowStage: window.WindowStage) { - // Main window is created, set main page for this ability - hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); - - windowStage.loadContent('pages/Index', (err, data) => { - if (err.code) { - hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); - return; - } - hilog.info(0x0000, 'testTag', 'Succeeded in loading the content. Data: %{public}s', JSON.stringify(data) ?? ''); - }); - } - - onWindowStageDestroy() { - // Main window is destroyed, release UI related resources - hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); - } - - onForeground() { - // Ability has brought to foreground - hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground'); - } - - onBackground() { - // Ability has back to background - hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground'); - } -} diff --git a/okdownload/.gitignore b/library/.gitignore similarity index 100% rename from okdownload/.gitignore rename to library/.gitignore diff --git a/okdownload/index.ets b/library/Index.ets similarity index 100% rename from okdownload/index.ets rename to library/Index.ets diff --git a/okdownload/build-profile.json5 b/library/build-profile.json5 similarity index 100% rename from okdownload/build-profile.json5 rename to library/build-profile.json5 diff --git a/okdownload/hvigorfile.ts b/library/hvigorfile.ts similarity index 100% rename from okdownload/hvigorfile.ts rename to library/hvigorfile.ts diff --git a/okdownload/oh-package.json5 b/library/oh-package.json5 similarity index 89% rename from okdownload/oh-package.json5 rename to library/oh-package.json5 index a6b256995f72bea711148369db67f3fa09da4cdf..048a6436e08b1fcbc962474798a6c60f2f5247d9 100644 --- a/okdownload/oh-package.json5 +++ b/library/oh-package.json5 @@ -1,6 +1,7 @@ { + "license": "Apache-2.0", "types": "", - "name": "@ohos/okdownload", + "devDependencies": {}, "keywords": [ "download", "SpeedCalculator", @@ -8,12 +9,11 @@ "OpenHarmony", "HarmonyOS" ], - "version": "2.0.0", + "author": "", + "name": "@ohos/okdownload", "description": "A Reliable, Flexible, Fast and Powerful download engine.", - "repository": "https://gitee.com/openharmony-sig/okdownload", "main": "index.ets", - "author": "", - "license": "Apache-2.0", - "dependencies": { - } -} + "repository": "https://gitee.com/openharmony-sig/okdownload", + "version": "2.0.0", + "dependencies": {} +} \ No newline at end of file diff --git a/okdownload/src/main/ets/common/GlobalContext.ts b/library/src/main/ets/common/GlobalContext.ts similarity index 100% rename from okdownload/src/main/ets/common/GlobalContext.ts rename to library/src/main/ets/common/GlobalContext.ts diff --git a/okdownload/src/main/ets/common/http/DownloadHttpConnection.ts b/library/src/main/ets/common/http/DownloadHttpConnection.ts similarity index 100% rename from okdownload/src/main/ets/common/http/DownloadHttpConnection.ts rename to library/src/main/ets/common/http/DownloadHttpConnection.ts diff --git a/okdownload/src/main/ets/common/okdownload/Builder.ts b/library/src/main/ets/common/okdownload/Builder.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/Builder.ts rename to library/src/main/ets/common/okdownload/Builder.ts diff --git a/okdownload/src/main/ets/common/okdownload/DownloadContext.ts b/library/src/main/ets/common/okdownload/DownloadContext.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/DownloadContext.ts rename to library/src/main/ets/common/okdownload/DownloadContext.ts diff --git a/okdownload/src/main/ets/common/okdownload/DownloadContextListener.ts b/library/src/main/ets/common/okdownload/DownloadContextListener.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/DownloadContextListener.ts rename to library/src/main/ets/common/okdownload/DownloadContextListener.ts diff --git a/okdownload/src/main/ets/common/okdownload/DownloadListener.ts b/library/src/main/ets/common/okdownload/DownloadListener.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/DownloadListener.ts rename to library/src/main/ets/common/okdownload/DownloadListener.ts diff --git a/okdownload/src/main/ets/common/okdownload/DownloadMonitor.ts b/library/src/main/ets/common/okdownload/DownloadMonitor.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/DownloadMonitor.ts rename to library/src/main/ets/common/okdownload/DownloadMonitor.ts diff --git a/okdownload/src/main/ets/common/okdownload/DownloadSerialQueue.ts b/library/src/main/ets/common/okdownload/DownloadSerialQueue.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/DownloadSerialQueue.ts rename to library/src/main/ets/common/okdownload/DownloadSerialQueue.ts diff --git a/okdownload/src/main/ets/common/okdownload/DownloadTask.ts b/library/src/main/ets/common/okdownload/DownloadTask.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/DownloadTask.ts rename to library/src/main/ets/common/okdownload/DownloadTask.ts diff --git a/okdownload/src/main/ets/common/okdownload/FileUtils.ts b/library/src/main/ets/common/okdownload/FileUtils.ts similarity index 97% rename from okdownload/src/main/ets/common/okdownload/FileUtils.ts rename to library/src/main/ets/common/okdownload/FileUtils.ts index dc99f336ea6d1dc50ba55ffead09cf85a9bc65e8..0ef8a25ced5770562c5458b567e61c4e358da008 100644 --- a/okdownload/src/main/ets/common/okdownload/FileUtils.ts +++ b/library/src/main/ets/common/okdownload/FileUtils.ts @@ -32,19 +32,19 @@ export class FileUtils { } /** - * 新建文件 - * @param path 文件绝对路径及文件名 - * @return number 文件句柄id - */ + * 新建文件 + * @param path 文件绝对路径及文件名 + * @return number 文件句柄id + */ createFile(path: string): number{ let file = fileio.openSync(path, fileio.OpenMode.READ_WRITE | fileio.OpenMode.CREATE); return file.fd } /** - * 删除文件 - * @param path 文件绝对路径及文件名 - */ + * 删除文件 + * @param path 文件绝对路径及文件名 + */ deleteFile(path: string):void { fileio.unlinkSync(path); } diff --git a/okdownload/src/main/ets/common/okdownload/IdentifiedTask.ts b/library/src/main/ets/common/okdownload/IdentifiedTask.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/IdentifiedTask.ts rename to library/src/main/ets/common/okdownload/IdentifiedTask.ts diff --git a/okdownload/src/main/ets/common/okdownload/Interceptor/BreakpointInterceptor.ts b/library/src/main/ets/common/okdownload/Interceptor/BreakpointInterceptor.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/Interceptor/BreakpointInterceptor.ts rename to library/src/main/ets/common/okdownload/Interceptor/BreakpointInterceptor.ts diff --git a/okdownload/src/main/ets/common/okdownload/Interceptor/Interceptor.ts b/library/src/main/ets/common/okdownload/Interceptor/Interceptor.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/Interceptor/Interceptor.ts rename to library/src/main/ets/common/okdownload/Interceptor/Interceptor.ts diff --git a/okdownload/src/main/ets/common/okdownload/Interceptor/connect/CallServerInterceptor.ts b/library/src/main/ets/common/okdownload/Interceptor/connect/CallServerInterceptor.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/Interceptor/connect/CallServerInterceptor.ts rename to library/src/main/ets/common/okdownload/Interceptor/connect/CallServerInterceptor.ts diff --git a/okdownload/src/main/ets/common/okdownload/Interceptor/connect/HeaderInterceptor.ts b/library/src/main/ets/common/okdownload/Interceptor/connect/HeaderInterceptor.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/Interceptor/connect/HeaderInterceptor.ts rename to library/src/main/ets/common/okdownload/Interceptor/connect/HeaderInterceptor.ts diff --git a/okdownload/src/main/ets/common/okdownload/OkDownload.ts b/library/src/main/ets/common/okdownload/OkDownload.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/OkDownload.ts rename to library/src/main/ets/common/okdownload/OkDownload.ts diff --git a/okdownload/src/main/ets/common/okdownload/SpeedCalculator.ts b/library/src/main/ets/common/okdownload/SpeedCalculator.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/SpeedCalculator.ts rename to library/src/main/ets/common/okdownload/SpeedCalculator.ts diff --git a/okdownload/src/main/ets/common/okdownload/StatusUtil.ts b/library/src/main/ets/common/okdownload/StatusUtil.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/StatusUtil.ts rename to library/src/main/ets/common/okdownload/StatusUtil.ts diff --git a/okdownload/src/main/ets/common/okdownload/Util.ts b/library/src/main/ets/common/okdownload/Util.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/Util.ts rename to library/src/main/ets/common/okdownload/Util.ts diff --git a/okdownload/src/main/ets/common/okdownload/breakpoint/BlockInfo.ts b/library/src/main/ets/common/okdownload/breakpoint/BlockInfo.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/breakpoint/BlockInfo.ts rename to library/src/main/ets/common/okdownload/breakpoint/BlockInfo.ts diff --git a/okdownload/src/main/ets/common/okdownload/breakpoint/BreakpointInfo.ts b/library/src/main/ets/common/okdownload/breakpoint/BreakpointInfo.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/breakpoint/BreakpointInfo.ts rename to library/src/main/ets/common/okdownload/breakpoint/BreakpointInfo.ts diff --git a/okdownload/src/main/ets/common/okdownload/breakpoint/BreakpointStore.ts b/library/src/main/ets/common/okdownload/breakpoint/BreakpointStore.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/breakpoint/BreakpointStore.ts rename to library/src/main/ets/common/okdownload/breakpoint/BreakpointStore.ts diff --git a/okdownload/src/main/ets/common/okdownload/breakpoint/BreakpointStoreOnCache.ts b/library/src/main/ets/common/okdownload/breakpoint/BreakpointStoreOnCache.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/breakpoint/BreakpointStoreOnCache.ts rename to library/src/main/ets/common/okdownload/breakpoint/BreakpointStoreOnCache.ts diff --git a/okdownload/src/main/ets/common/okdownload/breakpoint/DownloadStore.ts b/library/src/main/ets/common/okdownload/breakpoint/DownloadStore.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/breakpoint/DownloadStore.ts rename to library/src/main/ets/common/okdownload/breakpoint/DownloadStore.ts diff --git a/okdownload/src/main/ets/common/okdownload/breakpoint/KeyToIdMap.ts b/library/src/main/ets/common/okdownload/breakpoint/KeyToIdMap.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/breakpoint/KeyToIdMap.ts rename to library/src/main/ets/common/okdownload/breakpoint/KeyToIdMap.ts diff --git a/okdownload/src/main/ets/common/okdownload/cause/EndCause.ts b/library/src/main/ets/common/okdownload/cause/EndCause.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/cause/EndCause.ts rename to library/src/main/ets/common/okdownload/cause/EndCause.ts diff --git a/okdownload/src/main/ets/common/okdownload/cause/ResumeFailedCause.ts b/library/src/main/ets/common/okdownload/cause/ResumeFailedCause.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/cause/ResumeFailedCause.ts rename to library/src/main/ets/common/okdownload/cause/ResumeFailedCause.ts diff --git a/okdownload/src/main/ets/common/okdownload/connection/DownloadConnection.ts b/library/src/main/ets/common/okdownload/connection/DownloadConnection.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/connection/DownloadConnection.ts rename to library/src/main/ets/common/okdownload/connection/DownloadConnection.ts diff --git a/okdownload/src/main/ets/common/okdownload/dispatcher/CallbackDispatcher.ts b/library/src/main/ets/common/okdownload/dispatcher/CallbackDispatcher.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/dispatcher/CallbackDispatcher.ts rename to library/src/main/ets/common/okdownload/dispatcher/CallbackDispatcher.ts diff --git a/okdownload/src/main/ets/common/okdownload/dispatcher/DownloadDispatcher.ts b/library/src/main/ets/common/okdownload/dispatcher/DownloadDispatcher.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/dispatcher/DownloadDispatcher.ts rename to library/src/main/ets/common/okdownload/dispatcher/DownloadDispatcher.ts diff --git a/okdownload/src/main/ets/common/okdownload/download/BreakpointLocalCheck.ts b/library/src/main/ets/common/okdownload/download/BreakpointLocalCheck.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/download/BreakpointLocalCheck.ts rename to library/src/main/ets/common/okdownload/download/BreakpointLocalCheck.ts diff --git a/okdownload/src/main/ets/common/okdownload/download/BreakpointRemoteCheck.ts b/library/src/main/ets/common/okdownload/download/BreakpointRemoteCheck.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/download/BreakpointRemoteCheck.ts rename to library/src/main/ets/common/okdownload/download/BreakpointRemoteCheck.ts diff --git a/okdownload/src/main/ets/common/okdownload/download/ConnectTrial.ts b/library/src/main/ets/common/okdownload/download/ConnectTrial.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/download/ConnectTrial.ts rename to library/src/main/ets/common/okdownload/download/ConnectTrial.ts diff --git a/okdownload/src/main/ets/common/okdownload/download/DownloadCache.ts b/library/src/main/ets/common/okdownload/download/DownloadCache.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/download/DownloadCache.ts rename to library/src/main/ets/common/okdownload/download/DownloadCache.ts diff --git a/okdownload/src/main/ets/common/okdownload/download/DownloadCall.ts b/library/src/main/ets/common/okdownload/download/DownloadCall.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/download/DownloadCall.ts rename to library/src/main/ets/common/okdownload/download/DownloadCall.ts diff --git a/okdownload/src/main/ets/common/okdownload/download/DownloadChain.ts b/library/src/main/ets/common/okdownload/download/DownloadChain.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/download/DownloadChain.ts rename to library/src/main/ets/common/okdownload/download/DownloadChain.ts diff --git a/okdownload/src/main/ets/common/okdownload/download/DownloadStrategy.ts b/library/src/main/ets/common/okdownload/download/DownloadStrategy.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/download/DownloadStrategy.ts rename to library/src/main/ets/common/okdownload/download/DownloadStrategy.ts diff --git a/okdownload/src/main/ets/common/okdownload/exception/DownloadSecurityException.ts b/library/src/main/ets/common/okdownload/exception/DownloadSecurityException.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/exception/DownloadSecurityException.ts rename to library/src/main/ets/common/okdownload/exception/DownloadSecurityException.ts diff --git a/okdownload/src/main/ets/common/okdownload/exception/FileBusyAfterRunException.ts b/library/src/main/ets/common/okdownload/exception/FileBusyAfterRunException.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/exception/FileBusyAfterRunException.ts rename to library/src/main/ets/common/okdownload/exception/FileBusyAfterRunException.ts diff --git a/okdownload/src/main/ets/common/okdownload/exception/InterruptException.ts b/library/src/main/ets/common/okdownload/exception/InterruptException.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/exception/InterruptException.ts rename to library/src/main/ets/common/okdownload/exception/InterruptException.ts diff --git a/okdownload/src/main/ets/common/okdownload/exception/NetworkPolicyException.ts b/library/src/main/ets/common/okdownload/exception/NetworkPolicyException.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/exception/NetworkPolicyException.ts rename to library/src/main/ets/common/okdownload/exception/NetworkPolicyException.ts diff --git a/okdownload/src/main/ets/common/okdownload/exception/PreAllocateException.ts b/library/src/main/ets/common/okdownload/exception/PreAllocateException.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/exception/PreAllocateException.ts rename to library/src/main/ets/common/okdownload/exception/PreAllocateException.ts diff --git a/okdownload/src/main/ets/common/okdownload/exception/ResumeFailedException.ts b/library/src/main/ets/common/okdownload/exception/ResumeFailedException.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/exception/ResumeFailedException.ts rename to library/src/main/ets/common/okdownload/exception/ResumeFailedException.ts diff --git a/okdownload/src/main/ets/common/okdownload/exception/RetryException.ts b/library/src/main/ets/common/okdownload/exception/RetryException.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/exception/RetryException.ts rename to library/src/main/ets/common/okdownload/exception/RetryException.ts diff --git a/okdownload/src/main/ets/common/okdownload/exception/ServerCanceledException.ts b/library/src/main/ets/common/okdownload/exception/ServerCanceledException.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/exception/ServerCanceledException.ts rename to library/src/main/ets/common/okdownload/exception/ServerCanceledException.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/DownloadListenerBunch.ts b/library/src/main/ets/common/okdownload/listener/DownloadListenerBunch.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/DownloadListenerBunch.ts rename to library/src/main/ets/common/okdownload/listener/DownloadListenerBunch.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/DownloadListenerWithSpeed.ts b/library/src/main/ets/common/okdownload/listener/DownloadListenerWithSpeed.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/DownloadListenerWithSpeed.ts rename to library/src/main/ets/common/okdownload/listener/DownloadListenerWithSpeed.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/EndCauseListener.ts b/library/src/main/ets/common/okdownload/listener/EndCauseListener.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/EndCauseListener.ts rename to library/src/main/ets/common/okdownload/listener/EndCauseListener.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/SampleListener.ts b/library/src/main/ets/common/okdownload/listener/SampleListener.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/SampleListener.ts rename to library/src/main/ets/common/okdownload/listener/SampleListener.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/SpeedListener.ts b/library/src/main/ets/common/okdownload/listener/SpeedListener.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/SpeedListener.ts rename to library/src/main/ets/common/okdownload/listener/SpeedListener.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/StartEndListener.ts b/library/src/main/ets/common/okdownload/listener/StartEndListener.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/StartEndListener.ts rename to library/src/main/ets/common/okdownload/listener/StartEndListener.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/assist/Listener1Assist.ts b/library/src/main/ets/common/okdownload/listener/assist/Listener1Assist.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/assist/Listener1Assist.ts rename to library/src/main/ets/common/okdownload/listener/assist/Listener1Assist.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/assist/Listener4Assist.ts b/library/src/main/ets/common/okdownload/listener/assist/Listener4Assist.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/assist/Listener4Assist.ts rename to library/src/main/ets/common/okdownload/listener/assist/Listener4Assist.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/assist/Listener4SpeedAssistExtend.ts b/library/src/main/ets/common/okdownload/listener/assist/Listener4SpeedAssistExtend.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/assist/Listener4SpeedAssistExtend.ts rename to library/src/main/ets/common/okdownload/listener/assist/Listener4SpeedAssistExtend.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/assist/ListenerAssist.ts b/library/src/main/ets/common/okdownload/listener/assist/ListenerAssist.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/assist/ListenerAssist.ts rename to library/src/main/ets/common/okdownload/listener/assist/ListenerAssist.ts diff --git a/okdownload/src/main/ets/common/okdownload/listener/assist/ListenerModelHandler.ts b/library/src/main/ets/common/okdownload/listener/assist/ListenerModelHandler.ts similarity index 100% rename from okdownload/src/main/ets/common/okdownload/listener/assist/ListenerModelHandler.ts rename to library/src/main/ets/common/okdownload/listener/assist/ListenerModelHandler.ts diff --git a/okdownload/src/main/ets/common/sqlite/BreakpointInfoRow.ts b/library/src/main/ets/common/sqlite/BreakpointInfoRow.ts similarity index 100% rename from okdownload/src/main/ets/common/sqlite/BreakpointInfoRow.ts rename to library/src/main/ets/common/sqlite/BreakpointInfoRow.ts diff --git a/okdownload/src/main/ets/common/sqlite/BreakpointSQLiteHelper.ts b/library/src/main/ets/common/sqlite/BreakpointSQLiteHelper.ts similarity index 100% rename from okdownload/src/main/ets/common/sqlite/BreakpointSQLiteHelper.ts rename to library/src/main/ets/common/sqlite/BreakpointSQLiteHelper.ts diff --git a/okdownload/src/main/ets/common/sqlite/BreakpointSQLiteKey.ts b/library/src/main/ets/common/sqlite/BreakpointSQLiteKey.ts similarity index 100% rename from okdownload/src/main/ets/common/sqlite/BreakpointSQLiteKey.ts rename to library/src/main/ets/common/sqlite/BreakpointSQLiteKey.ts diff --git a/okdownload/src/main/ets/common/sqlite/BreakpointStoreOnSQLite.ts b/library/src/main/ets/common/sqlite/BreakpointStoreOnSQLite.ts similarity index 100% rename from okdownload/src/main/ets/common/sqlite/BreakpointStoreOnSQLite.ts rename to library/src/main/ets/common/sqlite/BreakpointStoreOnSQLite.ts diff --git a/okdownload/src/main/ets/components/okdownload/DownloadTest.ts b/library/src/main/ets/components/okdownload/DownloadTest.ts similarity index 100% rename from okdownload/src/main/ets/components/okdownload/DownloadTest.ts rename to library/src/main/ets/components/okdownload/DownloadTest.ts diff --git a/okdownload/src/main/ets/workers/FileWorker.ts b/library/src/main/ets/workers/FileWorker.ts similarity index 100% rename from okdownload/src/main/ets/workers/FileWorker.ts rename to library/src/main/ets/workers/FileWorker.ts diff --git a/okdownload/src/main/module.json5 b/library/src/main/module.json5 similarity index 77% rename from okdownload/src/main/module.json5 rename to library/src/main/module.json5 index c6f1c7ecc30120cf0aba9d7f1b30e42ae394d8d9..0204bcbe104d49753055cfe84e63bf81a404cf62 100644 --- a/okdownload/src/main/module.json5 +++ b/library/src/main/module.json5 @@ -1,10 +1,10 @@ { "module": { - "name": "okdownload", + "name": "library", "type": "har", "deviceTypes": [ "default", "tablet" ] } -} +} \ No newline at end of file diff --git a/okdownload/src/main/resources/base/element/string.json b/library/src/main/resources/base/element/string.json similarity index 100% rename from okdownload/src/main/resources/base/element/string.json rename to library/src/main/resources/base/element/string.json diff --git a/okdownload/src/main/resources/en_US/element/string.json b/library/src/main/resources/en_US/element/string.json similarity index 100% rename from okdownload/src/main/resources/en_US/element/string.json rename to library/src/main/resources/en_US/element/string.json diff --git a/okdownload/src/main/resources/zh_CN/element/string.json b/library/src/main/resources/zh_CN/element/string.json similarity index 100% rename from okdownload/src/main/resources/zh_CN/element/string.json rename to library/src/main/resources/zh_CN/element/string.json