Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/reactnativecn/react-native-update
/ functions
Functions
494 in github.com/reactnativecn/react-native-update
⨍
Functions
494
◇
Types & classes
78
↓ 73 callers
Method
resolve
()
src/client.ts:123
↓ 47 callers
Method
t
* Translate a key with optional interpolation * @param key - Translation key * @param values - Values for interpolation (optional) * @returns
src/i18n.ts:35
↓ 46 callers
Method
error
(...args: string[])
harmony/pushy/src/main/ets/Logger.ts:46
↓ 37 callers
Function
log
(...args: any[])
src/utils.ts:4
↓ 24 callers
Function
importFreshClient
(cacheKey: string)
src/__tests__/client.test.ts:3
↓ 18 callers
Method
debug
(...args: string[])
harmony/pushy/src/main/ets/Logger.ts:29
↓ 16 callers
Function
setupClientMocks
({ isFirstTime = false, markSuccess = mock(() => {}), reloadUpdate = mock(() => Promise.resolve()), se
src/__tests__/client.test.ts:13
↓ 14 callers
Function
convertCommands
(cmd, params)
Example/testHotUpdate/src/TestConsole.js:44
↓ 14 callers
Method
warn
(...args: string[])
harmony/pushy/src/main/ets/Logger.ts:41
↓ 13 callers
Function
murmurhash3_32_gc
(key: string, seed = 0)
src/isInRollout.ts:6
↓ 13 callers
Function
waitForBundleLabel
( expectedLabel: string, timeoutMs = RELOAD_TIMEOUT, )
Example/e2etest/e2e/local-merge.test.ts:40
↓ 13 callers
Function
waitForHash
(expectedHash: string)
Example/e2etest/e2e/local-merge.test.ts:77
↓ 11 callers
Function
joinUrls
(paths: string[], fileName?: string)
src/utils.ts:74
↓ 11 callers
Function
runCommand
(id, timeout = COMMAND_TIMEOUT)
Example/testHotUpdate/e2e/local-merge.test.js:21
↓ 10 callers
Function
computeProgress
(received: number, total: number)
src/utils.ts:111
↓ 10 callers
Function
dedupeEndpoints
( endpoints: Array<string | null | undefined>, )
src/endpoint.ts:28
↓ 10 callers
Function
getErrorMessage
(error: any)
harmony/pushy/src/main/ets/PushyTurboModule.ts:13
↓ 10 callers
Method
on
(event: string, callback: EventCallback)
harmony/pushy/src/main/ets/EventHub.ts:19
↓ 9 callers
Function
isInRollout
(rollout: number)
src/isInRollout.ts:75
↓ 9 callers
Method
persistEditor
(SharedPreferences.Editor editor, String reason)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:209
↓ 9 callers
Method
readString
(key: string)
harmony/pushy/src/main/ets/UpdateContext.ts:138
↓ 9 callers
Method
run
( @Nullable final Promise promise, final String operationName, final Operation operati
android/src/main/java/cn/reactnative/modules/update/UiThreadRunner.java:16
↓ 9 callers
Method
setLocale
* Set locale directly * @param locale - 'zh' or 'en'
src/i18n.ts:18
↓ 9 callers
Function
setupDownloadMocks
({ downloadPatchFromPpk = mock(() => Promise.resolve()), downloadPatchFromPackage = mock(() => Promise
src/__tests__/client.test.ts:377
↓ 8 callers
Function
fail
(message)
scripts/build-harmony-har.js:444
↓ 8 callers
Method
getStateSnapshot
()
harmony/pushy/src/main/ets/UpdateContext.ts:207
↓ 8 callers
Method
trace
* 诊断日志:打印本实例 id 与关键状态,用于定位 preferences 多实例 / 状态分裂问题。 * 通过 hilog 输出,prefix=pushy,可在 hilog 中按 "UpdateContext" 过滤。
harmony/pushy/src/main/ets/UpdateContext.ts:69
↓ 8 callers
Function
waitForReady
()
Example/e2etest/e2e/local-merge.test.ts:100
↓ 7 callers
Method
applyState
(SharedPreferences.Editor editor, StateCoreResult state)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:199
↓ 7 callers
Method
entries
()
android/src/main/java/cn/reactnative/modules/update/SafeZipFile.java:22
↓ 7 callers
Method
getStateSnapshot
()
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:175
↓ 7 callers
Function
relativeToProject
(filePath)
scripts/build-harmony-har.js:440
↓ 7 callers
Method
switchVersion
(hash: string)
harmony/pushy/src/main/ets/UpdateContext.ts:430
↓ 6 callers
Method
emit
(event: string, data: any)
harmony/pushy/src/main/ets/EventHub.ts:30
↓ 6 callers
Function
ensureFileExists
(filePath, message)
scripts/build-harmony-har.js:434
↓ 6 callers
Method
getName
()
android/src/newarch/cn/reactnative/modules/update/UpdateModule.java:26
↓ 6 callers
Method
runStateCore
( int operation, StateCoreResult state, String stringArg, boolean flagA,
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:50
↓ 6 callers
Function
tapCheckUpdate
()
Example/e2etest/e2e/local-merge.test.ts:33
↓ 6 callers
Function
waitForMarkSuccess
()
Example/e2etest/e2e/local-merge.test.ts:84
↓ 6 callers
Function
writeText
(relativePath, content)
Example/e2etest/scripts/create-rn077-oldarch-project.js:44
↓ 5 callers
Function
copyPath
(sourcePath, targetPath)
scripts/build-harmony-har.js:247
↓ 5 callers
Function
createRootResult
(overrides: Partial<CheckResult> = {})
src/__tests__/provider.test.ts:6
↓ 5 callers
Method
enqueue
(DownloadTaskParams params)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:113
↓ 5 callers
Method
getInstance
()
harmony/pushy/src/main/ets/EventHub.ts:12
↓ 5 callers
Function
getRealI18n
()
src/__tests__/i18n.test.ts:6
↓ 5 callers
Method
info
(...args: string[])
harmony/pushy/src/main/ets/Logger.ts:36
↓ 5 callers
Method
putNullableString
( SharedPreferences.Editor editor, String key, String value )
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:187
↓ 5 callers
Method
putNullableString
(key: string, value?: string)
harmony/pushy/src/main/ets/UpdateContext.ts:195
↓ 5 callers
Function
readText
(relativePath)
Example/e2etest/scripts/create-rn077-oldarch-project.js:40
↓ 5 callers
Function
relaunchAppPreservingData
()
Example/e2etest/e2e/local-merge.test.ts:26
↓ 5 callers
Function
resolveCheckResult
(rootInfo: CheckResult)
src/resolveCheckResult.ts:6
↓ 5 callers
Method
runStateOperation
( operation: number, stringArg: string = '', options: { removeStaleHash?: boolean; cle
harmony/pushy/src/main/ets/UpdateContext.ts:258
↓ 5 callers
Function
waitForCheckState
( expectedStatus: string, expectedResult: string, )
Example/e2etest/e2e/local-merge.test.ts:106
↓ 4 callers
Method
addTranslations
* Add or update translations for a specific locale * @param locale - Target locale * @param translations - Translation object to merge
src/i18n.ts:83
↓ 4 callers
Function
assertWeb
()
src/utils.ts:103
↓ 4 callers
Method
cleanUp
()
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:416
↓ 4 callers
Method
createTaskParams
( type: number, url: string, hash: string, )
harmony/pushy/src/main/ets/UpdateContext.ts:276
↓ 4 callers
Function
delay
(ms: number)
src/__tests__/endpoint.test.ts:4
↓ 4 callers
Method
downloadFile
()
android/src/main/java/cn/reactnative/modules/update/DownloadTask.java:76
↓ 4 callers
Method
downloadFile
(params: DownloadTaskParams)
harmony/pushy/src/main/ets/DownloadTask.ts:303
↓ 4 callers
Method
ensureDirectory
(path: string)
harmony/pushy/src/main/ets/DownloadTask.ts:107
↓ 4 callers
Method
executeTask
(params: DownloadTaskParams)
harmony/pushy/src/main/ets/UpdateContext.ts:288
↓ 4 callers
Method
getInstance
Get singleton instance of UpdateContext
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:337
↓ 4 callers
Method
getLocale
* Get current locale
src/i18n.ts:25
↓ 4 callers
Method
getReactNativeHost
()
Example/harmony_use_pushy/android/app/src/main/java/com/harmony_use_pushy/MainApplication.java:47
↓ 4 callers
Method
markSuccess
()
src/NativePushy.ts:21
↓ 4 callers
Method
normalizeArgs
(args: string[])
harmony/pushy/src/main/ets/Logger.ts:19
↓ 4 callers
Method
off
(event: string, callback: EventCallback)
harmony/pushy/src/main/ets/EventHub.ts:26
↓ 4 callers
Function
openTestConsole
()
Example/testHotUpdate/e2e/local-merge.test.js:7
↓ 4 callers
Method
restartApp
()
src/NativePushy.ts:19
↓ 4 callers
Function
verifyGeneratedFile
(label: string, filePath: string)
Example/e2etest/scripts/prepare-local-update-artifacts.ts:209
↓ 4 callers
Function
waitForStrategy
( expectedStrategy: 'silentAndNow' | 'silentAndLater', )
Example/e2etest/e2e/local-merge.test.ts:118
↓ 3 callers
Method
addListener
(eventName: string)
src/NativePushy.ts:40
↓ 3 callers
Function
bundleTo
(entryFile: string, outputFile: string)
Example/e2etest/scripts/prepare-local-update-artifacts.ts:188
↓ 3 callers
Function
bundleTo
(entryFile, outputFile)
Example/testHotUpdate/scripts/prepare-local-update-artifacts.js:91
↓ 3 callers
Function
compileNodeTs
()
Example/e2etest/scripts/compile-node-ts.js:9
↓ 3 callers
Method
createBundleLoader
( Context application, @Nullable String updateBundlePath, boolean loadAssetSynchronous
android/src/main/java/cn/reactnative/modules/update/ReactReloadManager.java:144
↓ 3 callers
Method
downloadFullUpdate
(options: { updateUrl: string; hash: string; })
src/NativePushy.ts:31
↓ 3 callers
Method
downloadPatchFromPpk
(options: { updateUrl: string; hash: string; originHash: string; })
src/NativePushy.ts:22
↓ 3 callers
Method
ensureDirectory
(File directory)
android/src/main/java/cn/reactnative/modules/update/UpdateFileUtils.java:15
↓ 3 callers
Method
ensureParentDirectory
(File file)
android/src/main/java/cn/reactnative/modules/update/UpdateFileUtils.java:21
↓ 3 callers
Method
ensureParentDirectory
(filePath: string)
harmony/pushy/src/main/ets/DownloadTask.ts:128
↓ 3 callers
Method
execute
(params: DownloadTaskParams)
harmony/pushy/src/main/ets/DownloadTask.ts:630
↓ 3 callers
Function
executeEndpointFallback
({ configuredEndpoints, getRemoteEndpoints, tryEndpoint, random = Math.random, now = Date.now, onF
src/endpoint.ts:111
↓ 3 callers
Function
fetchWithTimeout
( url: string, params: Parameters<typeof fetch>[1], timeoutMs = DEFAULT_FETCH_TIMEOUT_MS, )
src/utils.ts:116
↓ 3 callers
Function
findExistingPath
(candidates)
scripts/build-harmony-har.js:373
↓ 3 callers
Method
flushPreferences
(reason: string)
harmony/pushy/src/main/ets/UpdateContext.ts:181
↓ 3 callers
Method
getBundleUrl
(Context context)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:348
↓ 3 callers
Method
getCompatibleField
(Class<?> clazz, String fieldName)
android/src/main/java/cn/reactnative/modules/update/ReactReloadManager.java:84
↓ 3 callers
Method
getKv
(String key)
android/src/main/java/cn/reactnative/modules/update/UpdateContext.java:240
↓ 3 callers
Method
getKv
(key: string)
harmony/pushy/src/main/ets/UpdateContext.ts:328
↓ 3 callers
Method
hasMoreElements
()
android/src/main/java/cn/reactnative/modules/update/SafeZipFile.java:35
↓ 3 callers
Method
nextElement
()
android/src/main/java/cn/reactnative/modules/update/SafeZipFile.java:40
↓ 3 callers
Method
normalizeResPath
(String path)
android/src/main/java/cn/reactnative/modules/update/BundledResourceCopier.java:198
↓ 3 callers
Method
persistState
( state: StateCoreResult, options: { clearExisting?: boolean; removeStaleHash?: boolean;
harmony/pushy/src/main/ets/UpdateContext.ts:229
↓ 3 callers
Method
postProgress
(final long received, final long total)
android/src/main/java/cn/reactnative/modules/update/DownloadTask.java:63
↓ 3 callers
Method
recreateDirectory
(path: string)
harmony/pushy/src/main/ets/DownloadTask.ts:136
↓ 3 callers
Method
removeDirectory
(File file)
android/src/main/java/cn/reactnative/modules/update/UpdateFileUtils.java:28
↓ 3 callers
Method
restartApp
( final UpdateContext updateContext, final ReactApplicationContext reactContext, @Null
android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java:127
↓ 3 callers
Function
runCommand
(command, commandArgs, options)
scripts/build-harmony-har.js:383
next →
1–100 of 494, ranked by callers