Skip to content

Commit 6972d3e

Browse files
committed
Change initialization order
1 parent 5a38027 commit 6972d3e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
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.50.6]
5+
6+
### Fixed
7+
- Change initialization order within projects
8+
49
## [0.50.5]
510

611
### Changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ allprojects {
3131
}
3232

3333
project.ext {
34-
sdkVersion='0.50.5'
34+
sdkVersion='0.50.6'
3535
versionCode=1
3636

3737
compileSdkVersion=31

core/src/main/java/io/snabble/sdk/Project.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ public class Project {
9090
Project(JsonObject jsonObject) throws IllegalArgumentException {
9191
snabble = Snabble.getInstance();
9292
coupons = new Coupons(this);
93-
94-
parse(jsonObject);
95-
96-
internalStorageDirectory = new File(snabble.getInternalStorageDirectory(), id + "/");
9793
okHttpClient = Snabble.getInstance().getOkHttpClient()
9894
.newBuilder()
9995
.addInterceptor(new SnabbleAuthorizationInterceptor(this))
10096
.addInterceptor(new AcceptedLanguageInterceptor())
10197
.build();
10298

99+
parse(jsonObject);
100+
101+
internalStorageDirectory = new File(snabble.getInternalStorageDirectory(), id + "/");
102+
103103
boolean generateSearchIndex = snabble.getConfig().generateSearchIndex;
104104

105105
productDatabase = new ProductDatabase(this, id + ".sqlite3", generateSearchIndex);

0 commit comments

Comments
 (0)