Home
last modified time | relevance | path

Searched refs:UpdatesUtils (Results 1 – 25 of 43) sorted by relevance

12

/expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/
H A DUpdatesUtilsInstrumentationTest.kt17 UpdatesUtils.parseDateString("2020-11-11T00:17:54.699Z") in testParseDateString_Z()
26 UpdatesUtils.parseDateString("2020-11-11T00:17:54.699+0000") in testParseDateString_writtenTimezone1()
35 UpdatesUtils.parseDateString("2020-11-11T00:17:54.699+0100") in testParseDateString_writtenTimezone2()
44 UpdatesUtils.parseDateString("2020-11-11T00:17:54.699+00:00") in testParseDateString_writtenTimezoneWithColon1()
53 UpdatesUtils.parseDateString("2020-11-11T00:17:54.699+01:00") in testParseDateString_writtenTimezoneWithColon2()
60 val emptyMap = UpdatesUtils.getMapFromJSONString("{}") in testgetHeadersMapFromJSONString_empty()
68 val emptyMap = UpdatesUtils.getMapFromJSONString("{\"expo-channel-name\":\"main\"}") in testgetHeadersMapFromJSONString_expectedFormat()
75 UpdatesUtils.getMapFromJSONString("{\"expo-channel-name\": 5}") in testgetHeadersMapFromJSONString_throwsIntegerValue()
81 UpdatesUtils.getMapFromJSONString("{\"expo-channel-name\":[\"main\"]}") in testgetHeadersMapFromJSONString_throwsNonStringValue()
87 UpdatesUtils.getMapFromJSONString("{7:[\"main\"]}") in testgetHeadersMapFromJSONString_throwsNonStringKey()
/expo/packages/expo-updates/android/src/test/java/expo/modules/updates/
H A DUpdatesUtilsTest.kt14 Assert.assertEquals("key.png", UpdatesUtils.createFilenameForAsset(assetEntity)) in testCreateFilenameForAsset()
20 Assert.assertEquals("key.png", UpdatesUtils.createFilenameForAsset(assetEntity)) in testCreateFilenameForAssetWhenMissingDotPrefix()
26 Assert.assertEquals("key", UpdatesUtils.createFilenameForAsset(assetEntity)) in testCreateFilenameForAssetWhenMissingExtension()
35 UpdatesUtils.createFilenameForAsset(asset1), in testCreateFilenameForAsset_NullKey()
36 UpdatesUtils.createFilenameForAsset(asset2) in testCreateFilenameForAsset_NullKey()
38 val asset1Name = UpdatesUtils.createFilenameForAsset(asset1) in testCreateFilenameForAsset_NullKey()
47 Assert.assertEquals("38.0.0", UpdatesUtils.getRuntimeVersion(sdkOnlyConfig)) in testGetRuntimeVersion()
51 Assert.assertEquals("1.0", UpdatesUtils.getRuntimeVersion(runtimeOnlyConfig)) in testGetRuntimeVersion()
57 Assert.assertEquals("1.0", UpdatesUtils.getRuntimeVersion(bothConfig)) in testGetRuntimeVersion()
65 Assert.assertEquals("1", UpdatesUtils.getRuntimeVersion(neitherConfig)) in testGetRuntimeVersion_neitherDefined()
/expo/packages/expo-updates/ios/EXUpdates/
H A DUpdatesModule.swift19 private let methodQueue = UpdatesUtils.methodQueue
66 "nativeDebug": UpdatesUtils.isNativeDebuggingEnabled() in definition()
92 UpdatesUtils.checkForUpdate { result in in definition()
197 UpdatesUtils.fetchUpdate { result in in definition()
216 promise.resolve(UpdatesUtils.defaultNativeStateMachineContextJson()) in definition()
219 UpdatesUtils.getNativeStateMachineContextJson { result in in definition()
H A DAppController.swift127 withRuntimeVersion: UpdatesUtils.getRuntimeVersion(withConfig: self.config) in appController()
171 withRuntimeVersion: UpdatesUtils.getRuntimeVersion(withConfig: config) in appController()
395 UpdatesUtils.runBlockOnMainThread { in appController()
499 updatesDirectory = try UpdatesUtils.initializeUpdatesDirectory() in appController()
522 UpdatesUtils.purgeUpdatesLogsOlderThanOneDay() in appController()
/expo/packages/expo-updates/android/src/main/java/expo/modules/updates/loader/
H A DLoaderFiles.kt6 import expo.modules.updates.UpdatesUtils in <lambda>()
48 ….use { inputStream -> return UpdatesUtils.verifySHA256AndWriteToFile(inputStream, destination, nul… in <lambda>()
68 ….use { inputStream -> return UpdatesUtils.verifySHA256AndWriteToFile(inputStream, destination, nul… in <lambda>()
H A DEmbeddedLoader.kt9 import expo.modules.updates.UpdatesUtils
78 val filename = UpdatesUtils.createFilenameForAsset(assetEntity) in loadAsset()
H A DRemoteUpdate.kt5 import expo.modules.updates.UpdatesUtils.parseDateString
H A DLoader.kt6 import expo.modules.updates.UpdatesUtils
258 val identifier = if (assetEntity.hash != null) "hash " + UpdatesUtils.bytesToHex( in downloadAllAssets()
304 hash = UpdatesUtils.sha256(File(updatesDirectory, asset.relativePath)) in handleAssetDownloadCompleted()
/expo/ios/versioned/sdk49/EXUpdates/EXUpdates/
H A DUpdatesModule.swift19 private let methodQueue = UpdatesUtils.methodQueue
66 "nativeDebug": UpdatesUtils.isNativeDebuggingEnabled() in definition()
92 UpdatesUtils.checkForUpdate { result in in definition()
186 UpdatesUtils.fetchUpdate { result in in definition()
H A DAppController.swift127 withRuntimeVersion: UpdatesUtils.getRuntimeVersion(withConfig: self.config) in appController()
387 UpdatesUtils.runBlockOnMainThread { in appController()
494 updatesDirectory = try UpdatesUtils.initializeUpdatesDirectory() in appController()
517 UpdatesUtils.purgeUpdatesLogsOlderThanOneDay() in appController()
/expo/packages/expo-updates/ios/Tests/
H A DUpdatesConfigSpec.swift69 expect(UpdatesUtils.getRuntimeVersion(withConfig: sdkOnlyConfig)) == "38.0.0" in spec()
77 expect(UpdatesUtils.getRuntimeVersion(withConfig: runtimeOnlyConfig)) == "1.0" in spec()
86 expect(UpdatesUtils.getRuntimeVersion(withConfig: bothConfig)) == "1.0" in spec()
/expo/ios/versioned/sdk49/EXUpdates/EXUpdates/ReactDelegateHandler/
H A DExpoUpdatesAppDelegateSubscriber.swift13 if ABI49_0_0EXAppDefines.APP_DEBUG && !UpdatesUtils.isNativeDebuggingEnabled() { in application()
H A DExpoUpdatesReactDelegateHandler.swift20 if ABI49_0_0EXAppDefines.APP_DEBUG && !UpdatesUtils.isNativeDebuggingEnabled() {
/expo/packages/expo-updates/ios/EXUpdates/ReactDelegateHandler/
H A DExpoUpdatesAppDelegateSubscriber.swift13 if EXAppDefines.APP_DEBUG && !UpdatesUtils.isNativeDebuggingEnabled() { in application()
H A DExpoUpdatesReactDelegateHandler.swift20 if EXAppDefines.APP_DEBUG && !UpdatesUtils.isNativeDebuggingEnabled() {
/expo/packages/expo-updates/android/src/main/java/expo/modules/updates/manifest/
H A DBareUpdateManifest.kt6 import expo.modules.updates.UpdatesUtils
89 val runtimeVersion = UpdatesUtils.getRuntimeVersion(configuration) in fromBareManifest()
H A DNewUpdateManifest.kt8 import expo.modules.updates.UpdatesUtils in <lambda>()
100 UpdatesUtils.parseDateString(manifest.getCreatedAt()) ?: Date() in <lambda>()
H A DLegacyUpdateManifest.kt6 import expo.modules.updates.UpdatesUtils
109 UpdatesUtils.parseDateString(commitTimeString) in fromLegacyManifest()
/expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/selectionpolicy/
H A DSelectionPolicyFilterAwareTest.kt7 import expo.modules.updates.UpdatesUtils
151 …UpdateDirective.RollBackToEmbeddedUpdateDirective(UpdatesUtils.parseDateString("2022-01-12T19:39:2… in testShouldLoadRollBackToEmbeddedDirective_CommitTimeOfLaunchedUpdateBeforeRollBack()
164 …UpdateDirective.RollBackToEmbeddedUpdateDirective(UpdatesUtils.parseDateString("2020-01-12T19:39:2… in testShouldLoadRollBackToEmbeddedDirective_CommitTimeOfLaunchedUpdateAfterRollBack()
/expo/ios/versioned/sdk49/EXUpdates/EXUpdates/AppLauncher/
H A DAppLauncherNoDatabase.swift41 if let assetKey = asset.key, let localUrl = UpdatesUtils.url(forBundledAsset: asset) { in launchUpdate()
/expo/packages/expo-updates/ios/EXUpdates/AppLauncher/
H A DAppLauncherNoDatabase.swift41 if let assetKey = asset.key, let localUrl = UpdatesUtils.url(forBundledAsset: asset) { in launchUpdate()
/expo/packages/expo-updates/ios/EXUpdates/Update/
H A DBareUpdate.swift56 runtimeVersion: UpdatesUtils.getRuntimeVersion(withConfig: config),
/expo/ios/versioned/sdk49/EXUpdates/EXUpdates/Update/
H A DBareUpdate.swift56 runtimeVersion: UpdatesUtils.getRuntimeVersion(withConfig: config),
/expo/packages/expo-updates/android/src/main/java/expo/modules/updates/
H A DUpdatesConfiguration.kt88 UpdatesUtils.getMapFromJSONString(it) in <lambda>()
92 UpdatesUtils.getMapFromJSONString(it) in <lambda>()
/expo/tools/src/versioning/android/
H A Dandroid-packages-to-keep.txt27 expo.modules.updates.UpdatesUtils

12