Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate XML to Jetpack compose for screens: Shop, Product Details, Cart #172

Merged
merged 65 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
8b47320
Create composables
hieuwu Jun 13, 2023
64f0314
Implement product item
hieuwu Jun 13, 2023
0e1cf13
Update model
hieuwu Jun 19, 2023
70612c0
Remove unused files & create new ones
hieuwu Aug 12, 2023
4deb484
Replace view with composable
hieuwu Aug 12, 2023
a12dd48
Fix wrong update value
hieuwu Aug 12, 2023
7587f00
Add preview tooling
hieuwu Aug 12, 2023
a29c202
Create catalogue
hieuwu Aug 12, 2023
fb16cdf
Create carousel
hieuwu Aug 12, 2023
ed09b12
Implement shop screen
hieuwu Aug 12, 2023
5651bec
Implement product item
hieuwu Aug 12, 2023
c03b0f9
Implement carousel
hieuwu Aug 13, 2023
19efb1e
Tweak ui
hieuwu Aug 13, 2023
7ce6c52
Handle on item click
hieuwu Aug 13, 2023
e333487
Handle item click
hieuwu Aug 13, 2023
f138868
Remove unused modifier
hieuwu Aug 13, 2023
98dba39
Tweak ui
hieuwu Aug 13, 2023
7757acc
Tweak ui
hieuwu Aug 13, 2023
d8bf958
Tweak ui
hieuwu Aug 14, 2023
9e015f8
Update Ui spacing
hieuwu Aug 15, 2023
ce38deb
Remove unused code
hieuwu Aug 15, 2023
3839b54
Update spacing
hieuwu Aug 15, 2023
ddc9d07
Remove unused import
hieuwu Aug 16, 2023
22e46a9
Remove unused import
hieuwu Aug 16, 2023
01b5b6e
Navigate to details
hieuwu Aug 18, 2023
e3d9010
Navigate to details
hieuwu Aug 18, 2023
de883d9
Navigate to details
hieuwu Aug 18, 2023
1731728
Remove unused code
hieuwu Aug 18, 2023
35411ee
Add dependency
hieuwu Aug 18, 2023
36d7302
Show snack bar
hieuwu Aug 18, 2023
9b0845c
Remove unused layout
hieuwu Aug 18, 2023
9479343
Create composable
hieuwu Aug 19, 2023
6a37f0f
Implement screen
hieuwu Aug 19, 2023
2b515f7
Handle event
hieuwu Aug 20, 2023
4ab2fa2
Refactor code
hieuwu Aug 20, 2023
9f61845
Remove unused code
hieuwu Aug 20, 2023
11f010c
Handle navigate back
hieuwu Aug 20, 2023
bba4ca1
Remove unused code
hieuwu Aug 20, 2023
5a7e9f0
Remove nav declaration
hieuwu Aug 20, 2023
6eef799
Create composables
hieuwu Aug 21, 2023
daa8ad2
Add composables
hieuwu Aug 21, 2023
2817f80
Add composables
hieuwu Aug 21, 2023
cfd3c25
Implement item ui
hieuwu Aug 22, 2023
bdcc0de
Refactor code with call back
hieuwu Aug 24, 2023
d633273
Replace with composable
hieuwu Aug 24, 2023
8d7d5d5
Display composable
hieuwu Aug 24, 2023
24d6998
Handle remove item
hieuwu Aug 24, 2023
4d111b1
Collect cart
hieuwu Aug 25, 2023
df9f116
Collect cart
hieuwu Aug 25, 2023
8a4a0e2
Update image
hieuwu Aug 25, 2023
698367f
Swipe to delete
hieuwu Aug 25, 2023
14589a2
Remove unused code
hieuwu Aug 25, 2023
71ec1ba
Create composables
hieuwu Aug 26, 2023
71614bf
Rename
hieuwu Aug 26, 2023
980435d
Implement item
hieuwu Aug 26, 2023
7bb9662
Remove unused file
hieuwu Aug 28, 2023
2d350c9
Update spacing
hieuwu Aug 28, 2023
bd2adfa
Remove unused code
hieuwu Aug 28, 2023
80a7ab3
Implement screen
hieuwu Aug 28, 2023
f2b333d
Creare sharedprf module
hieuwu Aug 29, 2023
cdbd1d9
Refactor view model
hieuwu Aug 29, 2023
502c8aa
Remove unused code
hieuwu Aug 29, 2023
dba0088
Provide share pref
hieuwu Aug 29, 2023
0588b04
Remove unused code
hieuwu Aug 29, 2023
733b7f9
Remove unused code
hieuwu Sep 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,14 @@ dependencies {
implementation "androidx.compose.ui:ui-tooling"
implementation "com.google.accompanist:accompanist-themeadapter-material:0.28.0"
implementation("androidx.hilt:hilt-navigation-compose:1.0.0")
implementation "com.github.bumptech.glide:compose:1.0.0-alpha.1"
implementation "androidx.compose.material3:material3:1.1.1"


debugImplementation "androidx.compose.ui:ui-tooling:1.4.2"
implementation "androidx.compose.ui:ui-tooling-preview:1.4.2"
def nav_version = "2.5.3"
implementation("androidx.navigation:navigation-compose:$nav_version")
implementation "androidx.compose.material:material-icons-extended:1.0.0"

implementation libs.caruilib

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

25 changes: 25 additions & 0 deletions app/src/main/java/com/hieuwu/groceriesstore/di/SharePrefModule.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.hieuwu.groceriesstore.di

import android.content.Context
import android.content.SharedPreferences
import com.hieuwu.groceriesstore.R
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@InstallIn(SingletonComponent::class)
@Module
object SharePrefModule {

@Provides
@Singleton
fun provideSharePrefs(@ApplicationContext context: Context): SharedPreferences {
return context.getSharedPreferences(
context.getString(R.string.sync_status_pref_name),
Context.MODE_PRIVATE
)
}
}

This file was deleted.

This file was deleted.

Loading
Loading