Skip to content

Commit 1028d84

Browse files
committed
Remove sample assets
1 parent 3c36855 commit 1028d84

File tree

6 files changed

+73
-84
lines changed

6 files changed

+73
-84
lines changed

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ buildNumber.properties
232232
.mvn/timing.properties
233233
report.xml
234234

235-
testapp/src/main/assets/products.revision
236-
testapp/src/main/assets/products.major
237-
testapp/src/main/assets/products.minor
238-
testapp/src/main/assets/products.sqlite3
239-
testapp/src/main/assets/metadata.json
235+
sample/src/main/assets/products.revision
236+
sample/src/main/assets/products.major
237+
sample/src/main/assets/products.minor
238+
sample/src/main/assets/products.sqlite3
239+
sample/src/main/assets/metadata.json
240240
maven-repository
Lines changed: 61 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
{
22
"links": {
33
"appdb": {
4-
"href": "/api/demo/appdb"
4+
"href": "/api/billa-sk-staging-4f5581/appdb"
55
},
66
"checkoutInfo": {
7-
"href": "/demo/checkout/info"
8-
},
9-
"news": {
10-
"href": "https://snabble.io/media/news.json"
11-
},
12-
"offerCategories": {
13-
"href": "https://snabble.io/media/products/offers.json"
7+
"href": "/billa-sk-staging-4f5581/checkout/info"
148
},
159
"productByCode": {
16-
"href": "/api/demo/products/code/{code}"
10+
"href": "/api/billa-sk-staging-4f5581/products/code/{code}"
1711
},
1812
"productBySku": {
19-
"href": "/api/demo/products/sku/{sku}"
13+
"href": "/api/billa-sk-staging-4f5581/products/sku/{sku}"
2014
},
2115
"productByWeighItemId": {
22-
"href": "/api/demo/products/weighItemId/{id}"
16+
"href": "/api/billa-sk-staging-4f5581/products/weighItemId/{id}"
2317
},
2418
"self": {
25-
"href": "/api/demo/metadata/app/android/testapp"
19+
"href": "/api/billa-sk-staging-4f5581/metadata/app/android/testapp"
2620
},
2721
"shops": {
28-
"href": "/demo/shops"
22+
"href": "/billa-sk-staging-4f5581/shops"
2923
}
3024
},
3125
"metadata": {
@@ -34,73 +28,68 @@
3428
},
3529
"shops": [
3630
{
37-
"city": "Düsseldorf",
38-
"country": "Deutschland",
31+
"city": "Bratislava",
32+
"country": "",
3933
"email": "",
4034
"external": null,
4135
"externalId": null,
42-
"id": "7",
43-
"lat": 51.2564016,
36+
"id": "11",
37+
"lat": 48.140264,
4438
"links": {
4539
"self": {
46-
"href": "https://api.snabble-testing.io/demo/shops/7"
40+
"href": "https://api.snabble.io/billa-sk-staging-4f5581/shops/11"
4741
}
4842
},
49-
"lon": 6.7386981,
50-
"name": "EuroCIS",
51-
"openingHoursSpecification": [],
52-
"phone": "012345678",
53-
"project": "demo",
54-
"services": [],
55-
"state": "NRW",
56-
"street": "Stockumer Kirchstraße 61",
57-
"zip": "40474"
58-
},
59-
{
60-
"city": "Bonn",
61-
"country": "Deutschland",
62-
"email": "[email protected]",
63-
"external": null,
64-
"externalId": null,
65-
"id": "8",
66-
"lat": 50.7354364,
67-
"links": {
68-
"self": {
69-
"href": "https://api.snabble-testing.io/demo/shops/8"
43+
"lon": 17.119862,
44+
"name": "Eurovea",
45+
"openingHoursSpecification": [
46+
{
47+
"closes": "22:00:51",
48+
"dayOfWeek": "Thursday",
49+
"opens": "08:00:45"
50+
},
51+
{
52+
"closes": "22:00:12",
53+
"dayOfWeek": "Monday",
54+
"opens": "08:00:55"
55+
},
56+
{
57+
"closes": "22:00:49",
58+
"dayOfWeek": "Sunday",
59+
"opens": "08:00:42"
60+
},
61+
{
62+
"closes": "22:00:36",
63+
"dayOfWeek": "Saturday",
64+
"opens": "08:00:30"
65+
},
66+
{
67+
"closes": "22:00:17",
68+
"dayOfWeek": "Friday",
69+
"opens": "08:00:56"
70+
},
71+
{
72+
"closes": "22:00:27",
73+
"dayOfWeek": "Tuesday",
74+
"opens": "08:00:19"
75+
},
76+
{
77+
"closes": "22:00:39",
78+
"dayOfWeek": "Wednesday",
79+
"opens": "08:00:32"
7080
}
71-
},
72-
"lon": 7.0978723,
73-
"name": "snabble GmbH",
74-
"openingHoursSpecification": [],
75-
"phone": "+491717673249",
76-
"project": "demo",
77-
"services": [],
78-
"state": "NRW",
79-
"street": "Acherstraße 26",
80-
"zip": "53111"
81-
},
82-
{
83-
"city": "Bonn",
84-
"country": "Deutschland",
85-
"email": "[email protected]",
86-
"external": null,
87-
"externalId": null,
88-
"id": "9",
89-
"lat": 50.7225904,
90-
"links": {
91-
"self": {
92-
"href": "https://api.snabble-testing.io/demo/shops/9"
93-
}
94-
},
95-
"lon": 7.0594908,
96-
"name": "tarent solutions GmbH",
97-
"openingHoursSpecification": [],
98-
"phone": "+491717673249",
99-
"project": "demo",
100-
"services": [],
101-
"state": "NRW",
102-
"street": "Rochusstraße",
103-
"zip": "53123"
81+
],
82+
"phone": "+421268230520",
83+
"project": "billa-sk-staging-4f5581",
84+
"services": [
85+
"parking",
86+
"bakery",
87+
"butchery",
88+
"public toilets"
89+
],
90+
"state": "",
91+
"street": "Pribinova ul. 1/B",
92+
"zip": "81109"
10493
}
10594
]
10695
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4
1+
5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1219690
1+
16806622
6.04 MB
Binary file not shown.

sample/src/main/java/io/snabble/testapp/App.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ public void init(final InitCallback callback) {
5555
config.endpointBaseUrl = getString(R.string.endpoint);
5656
config.clientToken = getString(R.string.client_token);
5757
config.projectId = getString(R.string.project_id);
58-
// config.bundledMetadataAssetPath = "metadata.json";
58+
config.bundledMetadataAssetPath = "metadata.json";
5959
config.productDbName = "products.sqlite3";
60-
// config.productDbBundledAssetPath = "products.sqlite3";
61-
// config.productDbBundledRevisionId = getBundledRevisionId();
62-
// config.productDbBundledSchemaVersionMajor = getBundledMajor();
63-
// config.productDbBundledSchemaVersionMinor = getBundledMinor();
60+
config.productDbBundledAssetPath = "products.sqlite3";
61+
config.productDbBundledRevisionId = getBundledRevisionId();
62+
config.productDbBundledSchemaVersionMajor = getBundledMajor();
63+
config.productDbBundledSchemaVersionMinor = getBundledMinor();
6464

6565
SnabbleSdk.setup(this, config, new SnabbleSdk.SetupCompletionListener() {
6666
@Override

0 commit comments

Comments
 (0)