@@ -68,33 +68,33 @@ dependencies {
6868
6969## Usage
7070``` kotlin
71- val config = Config (
72- appId = YOUR_APP_ID ,
73- secret = YOUR_SECRET ,
74- )
75-
76- // you may enable debug logging
77- Snabble .setDebugLoggingEnabled(BuildConfig .DEBUG )
78-
79- Snabble .setup(application, config, object : Snabble .SetupCompletionListener {
80- override fun onReady () {
81- // an application can have multiple projects, for example for
82- // multiple independent regions / countries
83- val project = Snabble .projects.first()
84-
85- // check in to the first shop - you can use CheckInManager if you want
86- // to use geofencing
87- Snabble .checkedInShop = project.shops.first()
88-
89- // this is done on the background and can be done at any time
90- // a fully downloaded product database allows for scanning products while
91- // being offline
92- //
93- // if the product database is still downloading or you did not call update()
94- // online request will be used in the mean time
95- project.productDatabase.update()
96- }
97- })
71+ val config = Config (
72+ appId = YOUR_APP_ID ,
73+ secret = YOUR_SECRET ,
74+ )
75+
76+ // you may enable debug logging
77+ Snabble .setDebugLoggingEnabled(BuildConfig .DEBUG )
78+
79+ Snabble .setup(application, config, object : Snabble .SetupCompletionListener {
80+ override fun onReady () {
81+ // an application can have multiple projects, for example for
82+ // multiple independent regions / countries
83+ val project = Snabble .projects.first()
84+
85+ // check in to the first shop - you can use CheckInManager if you want
86+ // to use geofencing
87+ Snabble .checkedInShop = project.shops.first()
88+
89+ // this is done on the background and can be done at any time
90+ // a fully downloaded product database allows for scanning products while
91+ // being offline
92+ //
93+ // if the product database is still downloading or you did not call update()
94+ // online request will be used in the mean time
95+ project.productDatabase.update()
96+ }
97+ })
9898```
9999
100100## Light mode themes
0 commit comments