Home
last modified time | relevance | path

Searched refs:allUpdates (Results 1 – 20 of 20) sorted by relevance

/expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/db/
H A DDatabaseIntegrityCheckTest.kt56 val allUpdates = db.updateDao().loadAllUpdates() in testFilterEmbeddedUpdates() constant
57 Assert.assertEquals(1, allUpdates.size.toLong()) in testFilterEmbeddedUpdates()
58 Assert.assertEquals(embeddedUpdate2.id, allUpdates[0].id) in testFilterEmbeddedUpdates()
61 db.updateDao().deleteUpdates(allUpdates) in testFilterEmbeddedUpdates()
84 val allUpdates = db.updateDao().loadAllUpdates() in testMissingAssets() constant
86 Assert.assertEquals(1, allUpdates.size.toLong()) in testMissingAssets()
91 db.updateDao().deleteUpdates(allUpdates) in testMissingAssets()
114 val allUpdates = db.updateDao().loadAllUpdates() in testNoMissingAssets() constant
116 Assert.assertEquals(1, allUpdates.size.toLong()) in testNoMissingAssets()
117 Assert.assertEquals(UpdateStatus.READY, allUpdates[0].status) in testNoMissingAssets()
[all …]
H A DBuildDataTest.kt79 val allUpdates = db.updateDao().loadAllUpdates() in clearAllUpdatesFromDatabase() constant
80 assertEquals(0, allUpdates.size) in clearAllUpdatesFromDatabase()
117 val allUpdates = db.updateDao().loadAllUpdates() in ensureBuildDataIsConsistent_buildDataIsInconsistent_channel() constant
118 assertEquals(0, allUpdates.size) in ensureBuildDataIsConsistent_buildDataIsInconsistent_channel()
141 val allUpdates = db.updateDao().loadAllUpdates() in ensureBuildDataIsConsistent_buildDataIsInconsistent_releaseChannel() constant
142 assertEquals(0, allUpdates.size) in ensureBuildDataIsConsistent_buildDataIsInconsistent_releaseChannel()
166 val allUpdates = db.updateDao().loadAllUpdates() in ensureBuildDataIsConsistent_buildDataIsConsistent_channel() constant
167 assertEquals(1, allUpdates.size) in ensureBuildDataIsConsistent_buildDataIsConsistent_channel()
191 val allUpdates = db.updateDao().loadAllUpdates() in ensureBuildDataIsConsistent_buildDataIsConsistent_releaseChannel() constant
192 assertEquals(1, allUpdates.size) in ensureBuildDataIsConsistent_buildDataIsConsistent_releaseChannel()
H A DUpdatesDatabaseTest.kt127 val allUpdates = updateDao.loadAllUpdates() in testDeleteUnusedAssets() constant
128 Assert.assertEquals(2, allUpdates.size.toLong()) in testDeleteUnusedAssets()
129 for (update in allUpdates) { in testDeleteUnusedAssets()
H A DUpdatesDatabaseMigrationTest.kt250 val allUpdates = db.query("SELECT * FROM `updates`") in testMigrate6To7() constant
251 Assert.assertEquals(1, allUpdates.count.toLong()) in testMigrate6To7()
/expo/packages/expo-updates/ios/Tests/
H A DUpdatesBuildDataSpec.swift98 expect(try! db.allUpdates(withConfig: configChannelTest).count) > 0 in spec()
106 expect(try! db.allUpdates(withConfig: configChannelTest).count) == 0 in spec()
115 expect(try! db.allUpdates(withConfig: configChannelTest).count) == 1 in spec()
122 expect(try! db.allUpdates(withConfig: configChannelTest).count) == 1 in spec()
128 expect(try! db.allUpdates(withConfig: configChannelTest).count) == 1 in spec()
139 expect(try! db.allUpdates(withConfig: configChannelTest).count) == 1 in spec()
145 expect(try! db.allUpdates(withConfig: configReleaseChannelTest).count) == 1 in spec()
156 expect(try! db.allUpdates(withConfig: configReleaseChannelTest).count) == 1 in spec()
162 expect(try! db.allUpdates(withConfig: configChannelTest).count) == 1 in spec()
173 expect(try! db.allUpdates(withConfig: configChannelTestTwo).count) == 0 in spec()
[all …]
H A DDatabaseIntegrityCheckSpec.swift88 expect(try! db.allUpdates(withConfig: config).count) == 2 in spec()
92 let allUpdates = try! db.allUpdates(withConfig: config) in spec() variable
93 expect(allUpdates.count) == 1 in spec()
94 expect(update2.updateId) == allUpdates.first?.updateId in spec()
148 expect(try! db.allUpdates(withConfig: config).count) == 2 in spec()
158 let allUpdates = try! db.allUpdates(withConfig: config) in spec() variable
/expo/ios/versioned/sdk49/EXUpdates/EXUpdates/Database/
H A DUpdatesBuildData.swift74 let allUpdates: [Update] in clearAllUpdatesAndSetStaticBuildData() variable
76 allUpdates = try database.allUpdates(withConfig: config) in clearAllUpdatesAndSetStaticBuildData()
83 try database.deleteUpdates(allUpdates) in clearAllUpdatesAndSetStaticBuildData()
H A DUpdatesReaper.swift32 var allUpdates: [Update] variable
34 allUpdates = try database.allUpdates(withConfig: config)
48 …ionPolicy.updatesToDelete(withLaunchedUpdate: launchedUpdate, updates: allUpdates, filters: manife…
H A DUpdatesDatabaseIntegrityCheck.swift24 …let updatesWithEmbeddedStatus = try database.allUpdates(withStatus: .StatusEmbedded, config: confi…
H A DUpdatesDatabase.swift388 public func allUpdates(withConfig config: UpdatesConfig) throws -> [Update] { in allUpdates() function
396 …public func allUpdates(withStatus status: UpdateStatus, config: UpdatesConfig) throws -> [Update] { in allUpdates() function
/expo/packages/expo-updates/ios/EXUpdates/Database/
H A DUpdatesBuildData.swift74 let allUpdates: [Update] in clearAllUpdatesAndSetStaticBuildData() variable
76 allUpdates = try database.allUpdates(withConfig: config) in clearAllUpdatesAndSetStaticBuildData()
83 try database.deleteUpdates(allUpdates) in clearAllUpdatesAndSetStaticBuildData()
H A DUpdatesReaper.swift32 var allUpdates: [Update] variable
34 allUpdates = try database.allUpdates(withConfig: config)
48 …ionPolicy.updatesToDelete(withLaunchedUpdate: launchedUpdate, updates: allUpdates, filters: manife…
H A DUpdatesDatabaseIntegrityCheck.swift24 …let updatesWithEmbeddedStatus = try database.allUpdates(withStatus: .StatusEmbedded, config: confi…
H A DUpdatesDatabase.swift388 public func allUpdates(withConfig config: UpdatesConfig) throws -> [Update] { in allUpdates() function
396 …public func allUpdates(withStatus status: UpdateStatus, config: UpdatesConfig) throws -> [Update] { in allUpdates() function
/expo/ios/versioned/sdk48/EXUpdates/EXUpdates/Database/
H A DABI48_0_0EXUpdatesReaper.m26 …NSArray<ABI48_0_0EXUpdatesUpdate *> *allUpdates = [database allUpdatesWithConfig:config error:&err…
27 if (!allUpdates || error) {
39 …lectionPolicy updatesToDeleteWithLaunchedUpdate:launchedUpdate updates:allUpdates filters:manifest…
H A DABI48_0_0EXUpdatesBuildData.m80 …NSArray<ABI48_0_0EXUpdatesUpdate *> *allUpdates = [database allUpdatesWithConfig:config error:&que…
87 [database deleteUpdates:allUpdates error:&deletionError];
/expo/ios/versioned/sdk47/EXUpdates/EXUpdates/Database/
H A DABI47_0_0EXUpdatesReaper.m26 …NSArray<ABI47_0_0EXUpdatesUpdate *> *allUpdates = [database allUpdatesWithConfig:config error:&err…
27 if (!allUpdates || error) {
39 …lectionPolicy updatesToDeleteWithLaunchedUpdate:launchedUpdate updates:allUpdates filters:manifest…
H A DABI47_0_0EXUpdatesBuildData.m80 …NSArray<ABI47_0_0EXUpdatesUpdate *> *allUpdates = [database allUpdatesWithConfig:config error:&que…
87 [database deleteUpdates:allUpdates error:&deletionError];
/expo/packages/expo-updates/android/src/main/java/expo/modules/updates/db/
H A DReaper.kt32 val allUpdates = database.updateDao().loadAllUpdates() in reapUnusedUpdates() constant
35 …val updatesToDelete = selectionPolicy.selectUpdatesToDelete(allUpdates, launchedUpdate, manifestFi… in reapUnusedUpdates()
H A DBuildData.kt50 val allUpdates = database.updateDao().loadAllUpdates() in clearAllUpdatesFromDatabase() constant
51 database.updateDao().deleteUpdates(allUpdates) in clearAllUpdatesFromDatabase()