-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from hieuwu/feature/compose-shop-screen
Migrate XML to Jetpack compose for screens: Shop, Product Details, Cart
- Loading branch information
Showing
32 changed files
with
1,120 additions
and
1,310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
app/src/androidTest/java/com/hieuwu/groceriesstore/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
148 changes: 0 additions & 148 deletions
148
app/src/androidTest/java/com/hieuwu/groceriesstore/GroceriesStoreDatabaseTest.kt
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
app/src/androidTest/java/com/hieuwu/groceriesstore/LiveDataTestUtil.kt
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
app/src/main/java/com/hieuwu/groceriesstore/di/SharePrefModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) | ||
} | ||
} |
67 changes: 0 additions & 67 deletions
67
app/src/main/java/com/hieuwu/groceriesstore/presentation/adapters/SwipeGestures.kt
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
app/src/main/java/com/hieuwu/groceriesstore/presentation/adapters/ViewPagerAdapter.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.