Skip to content

Commit 2d1eb87

Browse files
authored
feat: add in cart functionality to UI (#10)
1 parent f51c9c2 commit 2d1eb87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+602
-47
lines changed

core-sdk-samples/higgs-shop-sample-app/app/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ dependencies {
5757
implementation("androidx.navigation:navigation-fragment-ktx:2.3.5")
5858
implementation("androidx.navigation:navigation-ui-ktx:2.3.5")
5959

60+
implementation("com.github.bumptech.glide:glide:4.11.0")
61+
6062
api("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.7")
6163
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
6264
api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1")

core-sdk-samples/higgs-shop-sample-app/app/src/androidTest/kotlin/com/mparticle/example/higgsshopsampleapp/ExampleInstrumentedTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
1313
import androidx.test.platform.app.InstrumentationRegistry
1414
import com.mparticle.example.higgsshopsampleapp.activities.LandingActivity
1515
import com.mparticle.example.higgsshopsampleapp.activities.MainActivity
16-
import com.mparticle.example.higgsshopsampleapp.repositories.network.ProductsRepository
16+
import com.mparticle.example.higgsshopsampleapp.repositories.ProductsRepository
1717
import org.junit.Assert.*
1818
import org.junit.Rule
1919
import org.junit.Test

core-sdk-samples/higgs-shop-sample-app/app/src/main/assets/products.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"products": [{
3+
"id": "128742",
4+
"label": "Pride Sticker",
5+
"imageUrl": "/products/128742.png",
6+
"altText": "Pride Sticker",
7+
"price": 1.50,
8+
"category": "Stickers",
9+
"brand": "mParticle",
10+
"description": "Description TBD"
11+
},
12+
{
313
"id": "128740",
414
"label": "mP Icon Full Zip",
515
"imageUrl": "/products/128740.png",
@@ -12,7 +22,7 @@
1222
"sizes": ["S", "M", "L", "XL", "2XL"]
1323
},
1424
"description": "Description TBD"
15-
},
25+
},
1626
{
1727
"id": "128744",
1828
"label": "Unisex Fleece Pullover",
@@ -154,16 +164,6 @@
154164
"brand": "Higgs",
155165
"description": "2' W x 2.25' H"
156166
},
157-
{
158-
"id": "128742",
159-
"label": "Pride Sticker",
160-
"imageUrl": "/products/128742.png",
161-
"altText": "Pride Sticker",
162-
"price": 2.0,
163-
"category": "Stickers",
164-
"brand": "mParticle",
165-
"description": "Description TBD"
166-
},
167167
{
168168
"id": "128743",
169169
"label": "Tennis Ball",
788 KB
Loading
704 KB
Loading
628 KB
Loading
554 KB
Loading
377 KB
Loading
1.05 MB
Loading
500 KB
Loading

0 commit comments

Comments
 (0)