MCPcopy Create free account

hub / github.com/reactnativecn/react-native-update / functions

Functions494 in github.com/reactnativecn/react-native-update

↓ 73 callersMethodresolve
()
src/client.ts:123
↓ 47 callersMethodt
* Translate a key with optional interpolation * @param key - Translation key * @param values - Values for interpolation (optional) * @returns
src/i18n.ts:35
↓ 46 callersMethoderror
(...args: string[])
harmony/pushy/src/main/ets/Logger.ts:46
↓ 37 callersFunctionlog
(...args: any[])
src/utils.ts:4
↓ 24 callersFunctionimportFreshClient
(cacheKey: string)
src/__tests__/client.test.ts:3
↓ 18 callersMethoddebug
(...args: string[])
harmony/pushy/src/main/ets/Logger.ts:29
↓ 16 callersFunctionsetupClientMocks
({ isFirstTime = false, markSuccess = mock(() => {}), reloadUpdate = mock(() => Promise.resolve()), se
src/__tests__/client.test.ts:13
↓ 14 callersFunctionconvertCommands
(cmd, params)
Example/testHotUpdate/src/TestConsole.js:44
↓ 14 callersMethodwarn
(...args: string[])
harmony/pushy/src/main/ets/Logger.ts:41
↓ 13 callersFunctionmurmurhash3_32_gc
(key: string, seed = 0)
src/isInRollout.ts:6
↓ 13 callersFunctionwaitForBundleLabel
( expectedLabel: string, timeoutMs = RELOAD_TIMEOUT, )
Example/e2etest/e2e/local-merge.test.ts:40
↓ 13 callersFunctionwaitForHash
(expectedHash: string)
Example/e2etest/e2e/local-merge.test.ts:77
↓ 11 callersFunctionjoinUrls
(paths: string[], fileName?: string)
src/utils.ts:74
↓ 11 callersFunctionrunCommand
(id, timeout = COMMAND_TIMEOUT)
Example/testHotUpdate/e2e/local-merge.test.js:21
↓ 10 callersFunctioncomputeProgress
(received: number, total: number)
src/utils.ts:111
↓ 10 callersFunctiondedupeEndpoints
( endpoints: Array<string | null | undefined>, )
src/endpoint.ts:28
↓ 10 callersFunctiongetErrorMessage
(error: any)
harmony/pushy/src/main/ets/PushyTurboModule.ts:13
↓ 10 callersMethodon
(event: string, callback: EventCallback)
harmony/pushy/src/main/ets/EventHub.ts:19
↓ 9 callersFunctionisInRollout
(rollout: number)
src/isInRollout.ts:75
↓ 9 callersMethodpersistEditor
(SharedPreferences.Editor editor, String reason)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:209
↓ 9 callersMethodreadString
(key: string)
harmony/pushy/src/main/ets/UpdateContext.ts:138
↓ 9 callersMethodrun
( @Nullable final Promise promise, final String operationName, final Operation operati
android/src/main/java/cn/reactnative/modules/update/UiThreadRunner.java:16
↓ 9 callersMethodsetLocale
* Set locale directly * @param locale - 'zh' or 'en'
src/i18n.ts:18
↓ 9 callersFunctionsetupDownloadMocks
({ downloadPatchFromPpk = mock(() => Promise.resolve()), downloadPatchFromPackage = mock(() => Promise
src/__tests__/client.test.ts:377
↓ 8 callersFunctionfail
(message)
scripts/build-harmony-har.js:444
↓ 8 callersMethodgetStateSnapshot
()
harmony/pushy/src/main/ets/UpdateContext.ts:207
↓ 8 callersMethodtrace
* 诊断日志:打印本实例 id 与关键状态,用于定位 preferences 多实例 / 状态分裂问题。 * 通过 hilog 输出,prefix=pushy,可在 hilog 中按 "UpdateContext" 过滤。
harmony/pushy/src/main/ets/UpdateContext.ts:69
↓ 8 callersFunctionwaitForReady
()
Example/e2etest/e2e/local-merge.test.ts:100
↓ 7 callersMethodapplyState
(SharedPreferences.Editor editor, StateCoreResult state)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:199
↓ 7 callersMethodentries
()
android/src/main/java/cn/reactnative/modules/update/SafeZipFile.java:22
↓ 7 callersMethodgetStateSnapshot
()
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:175
↓ 7 callersFunctionrelativeToProject
(filePath)
scripts/build-harmony-har.js:440
↓ 7 callersMethodswitchVersion
(hash: string)
harmony/pushy/src/main/ets/UpdateContext.ts:430
↓ 6 callersMethodemit
(event: string, data: any)
harmony/pushy/src/main/ets/EventHub.ts:30
↓ 6 callersFunctionensureFileExists
(filePath, message)
scripts/build-harmony-har.js:434
↓ 6 callersMethodgetName
()
android/src/newarch/cn/reactnative/modules/update/UpdateModule.java:26
↓ 6 callersMethodrunStateCore
( int operation, StateCoreResult state, String stringArg, boolean flagA,
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:50
↓ 6 callersFunctiontapCheckUpdate
()
Example/e2etest/e2e/local-merge.test.ts:33
↓ 6 callersFunctionwaitForMarkSuccess
()
Example/e2etest/e2e/local-merge.test.ts:84
↓ 6 callersFunctionwriteText
(relativePath, content)
Example/e2etest/scripts/create-rn077-oldarch-project.js:44
↓ 5 callersFunctioncopyPath
(sourcePath, targetPath)
scripts/build-harmony-har.js:247
↓ 5 callersFunctioncreateRootResult
(overrides: Partial<CheckResult> = {})
src/__tests__/provider.test.ts:6
↓ 5 callersMethodenqueue
(DownloadTaskParams params)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:113
↓ 5 callersMethodgetInstance
()
harmony/pushy/src/main/ets/EventHub.ts:12
↓ 5 callersFunctiongetRealI18n
()
src/__tests__/i18n.test.ts:6
↓ 5 callersMethodinfo
(...args: string[])
harmony/pushy/src/main/ets/Logger.ts:36
↓ 5 callersMethodputNullableString
( SharedPreferences.Editor editor, String key, String value )
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:187
↓ 5 callersMethodputNullableString
(key: string, value?: string)
harmony/pushy/src/main/ets/UpdateContext.ts:195
↓ 5 callersFunctionreadText
(relativePath)
Example/e2etest/scripts/create-rn077-oldarch-project.js:40
↓ 5 callersFunctionrelaunchAppPreservingData
()
Example/e2etest/e2e/local-merge.test.ts:26
↓ 5 callersFunctionresolveCheckResult
(rootInfo: CheckResult)
src/resolveCheckResult.ts:6
↓ 5 callersMethodrunStateOperation
( operation: number, stringArg: string = '', options: { removeStaleHash?: boolean; cle
harmony/pushy/src/main/ets/UpdateContext.ts:258
↓ 5 callersFunctionwaitForCheckState
( expectedStatus: string, expectedResult: string, )
Example/e2etest/e2e/local-merge.test.ts:106
↓ 4 callersMethodaddTranslations
* Add or update translations for a specific locale * @param locale - Target locale * @param translations - Translation object to merge
src/i18n.ts:83
↓ 4 callersFunctionassertWeb
()
src/utils.ts:103
↓ 4 callersMethodcleanUp
()
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:416
↓ 4 callersMethodcreateTaskParams
( type: number, url: string, hash: string, )
harmony/pushy/src/main/ets/UpdateContext.ts:276
↓ 4 callersFunctiondelay
(ms: number)
src/__tests__/endpoint.test.ts:4
↓ 4 callersMethoddownloadFile
()
android/src/main/java/cn/reactnative/modules/update/DownloadTask.java:76
↓ 4 callersMethoddownloadFile
(params: DownloadTaskParams)
harmony/pushy/src/main/ets/DownloadTask.ts:303
↓ 4 callersMethodensureDirectory
(path: string)
harmony/pushy/src/main/ets/DownloadTask.ts:107
↓ 4 callersMethodexecuteTask
(params: DownloadTaskParams)
harmony/pushy/src/main/ets/UpdateContext.ts:288
↓ 4 callersMethodgetInstance
Get singleton instance of UpdateContext
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:337
↓ 4 callersMethodgetLocale
* Get current locale
src/i18n.ts:25
↓ 4 callersMethodgetReactNativeHost
()
Example/harmony_use_pushy/android/app/src/main/java/com/harmony_use_pushy/MainApplication.java:47
↓ 4 callersMethodmarkSuccess
()
src/NativePushy.ts:21
↓ 4 callersMethodnormalizeArgs
(args: string[])
harmony/pushy/src/main/ets/Logger.ts:19
↓ 4 callersMethodoff
(event: string, callback: EventCallback)
harmony/pushy/src/main/ets/EventHub.ts:26
↓ 4 callersFunctionopenTestConsole
()
Example/testHotUpdate/e2e/local-merge.test.js:7
↓ 4 callersMethodrestartApp
()
src/NativePushy.ts:19
↓ 4 callersFunctionverifyGeneratedFile
(label: string, filePath: string)
Example/e2etest/scripts/prepare-local-update-artifacts.ts:209
↓ 4 callersFunctionwaitForStrategy
( expectedStrategy: 'silentAndNow' | 'silentAndLater', )
Example/e2etest/e2e/local-merge.test.ts:118
↓ 3 callersMethodaddListener
(eventName: string)
src/NativePushy.ts:40
↓ 3 callersFunctionbundleTo
(entryFile: string, outputFile: string)
Example/e2etest/scripts/prepare-local-update-artifacts.ts:188
↓ 3 callersFunctionbundleTo
(entryFile, outputFile)
Example/testHotUpdate/scripts/prepare-local-update-artifacts.js:91
↓ 3 callersFunctioncompileNodeTs
()
Example/e2etest/scripts/compile-node-ts.js:9
↓ 3 callersMethodcreateBundleLoader
( Context application, @Nullable String updateBundlePath, boolean loadAssetSynchronous
android/src/main/java/cn/reactnative/modules/update/ReactReloadManager.java:144
↓ 3 callersMethoddownloadFullUpdate
(options: { updateUrl: string; hash: string; })
src/NativePushy.ts:31
↓ 3 callersMethoddownloadPatchFromPpk
(options: { updateUrl: string; hash: string; originHash: string; })
src/NativePushy.ts:22
↓ 3 callersMethodensureDirectory
(File directory)
android/src/main/java/cn/reactnative/modules/update/UpdateFileUtils.java:15
↓ 3 callersMethodensureParentDirectory
(File file)
android/src/main/java/cn/reactnative/modules/update/UpdateFileUtils.java:21
↓ 3 callersMethodensureParentDirectory
(filePath: string)
harmony/pushy/src/main/ets/DownloadTask.ts:128
↓ 3 callersMethodexecute
(params: DownloadTaskParams)
harmony/pushy/src/main/ets/DownloadTask.ts:630
↓ 3 callersFunctionexecuteEndpointFallback
({ configuredEndpoints, getRemoteEndpoints, tryEndpoint, random = Math.random, now = Date.now, onF
src/endpoint.ts:111
↓ 3 callersFunctionfetchWithTimeout
( url: string, params: Parameters<typeof fetch>[1], timeoutMs = DEFAULT_FETCH_TIMEOUT_MS, )
src/utils.ts:116
↓ 3 callersFunctionfindExistingPath
(candidates)
scripts/build-harmony-har.js:373
↓ 3 callersMethodflushPreferences
(reason: string)
harmony/pushy/src/main/ets/UpdateContext.ts:181
↓ 3 callersMethodgetBundleUrl
(Context context)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:348
↓ 3 callersMethodgetCompatibleField
(Class<?> clazz, String fieldName)
android/src/main/java/cn/reactnative/modules/update/ReactReloadManager.java:84
↓ 3 callersMethodgetKv
(String key)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:240
↓ 3 callersMethodgetKv
(key: string)
harmony/pushy/src/main/ets/UpdateContext.ts:328
↓ 3 callersMethodhasMoreElements
()
android/src/main/java/cn/reactnative/modules/update/SafeZipFile.java:35
↓ 3 callersMethodnextElement
()
android/src/main/java/cn/reactnative/modules/update/SafeZipFile.java:40
↓ 3 callersMethodnormalizeResPath
(String path)
android/src/main/java/cn/reactnative/modules/update/BundledResourceCopier.java:198
↓ 3 callersMethodpersistState
( state: StateCoreResult, options: { clearExisting?: boolean; removeStaleHash?: boolean;
harmony/pushy/src/main/ets/UpdateContext.ts:229
↓ 3 callersMethodpostProgress
(final long received, final long total)
android/src/main/java/cn/reactnative/modules/update/DownloadTask.java:63
↓ 3 callersMethodrecreateDirectory
(path: string)
harmony/pushy/src/main/ets/DownloadTask.ts:136
↓ 3 callersMethodremoveDirectory
(File file)
android/src/main/java/cn/reactnative/modules/update/UpdateFileUtils.java:28
↓ 3 callersMethodrestartApp
( final UpdateContext updateContext, final ReactApplicationContext reactContext, @Null
android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java:127
↓ 3 callersFunctionrunCommand
(command, commandArgs, options)
scripts/build-harmony-har.js:383
next →1–100 of 494, ranked by callers