Skip to content

Commit 03f2f67

Browse files
committed
fix offline startup with prefetched metadata
1 parent ad35d5d commit 03f2f67

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.67.1]
5+
6+
### Fixed
7+
- Offline startup with prefetched metadata
8+
49
## [0.67.0]
510

611
We now have a gradle plugin which supports snabble SDK version from this version and above:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ allprojects {
3333
}
3434

3535
project.ext {
36-
sdkVersion='0.67.0'
36+
sdkVersion='0.67.1'
3737
versionCode=1
3838

3939
compileSdkVersion=31

core/src/main/java/io/snabble/sdk/Snabble.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -424,16 +424,6 @@ object Snabble {
424424
private fun dispatchOnReady() {
425425
Dispatch.background {
426426
readMetadata()
427-
val appUser = userPreferences.appUser
428-
if (appUser == null && projects.isNotEmpty()) {
429-
val token = tokenRegistry.getToken(projects[0])
430-
if (token == null) {
431-
isInitializing.set(false)
432-
mutableInitializationState.value = InitializationState.ERROR
433-
return@background
434-
}
435-
}
436-
437427
isInitializing.set(false)
438428
mutableInitializationState.value = InitializationState.INITIALIZED
439429

0 commit comments

Comments
 (0)