Skip to content

Commit

Permalink
Feature/add discount price (#43)
Browse files Browse the repository at this point in the history
* Add discount price information to PXLProduct

* add tranlations for discount price

* Refactor price UI

* Add sales price to UI

* Fix translations

* Fix lint errors

* Add discount layout

* Add Discount layout with a demo

* Add an Unit test for discount percentage

* Add images for document

* change comments

* Fix a typo

* Improve conditionals in PXLProduct.hasAvailableSalesPrice() as well as its tests

* Move mock server related codes to a class

* improve comments

* improve comments

* fix typo

Co-authored-by: sungjun <[email protected]>
  • Loading branch information
SungjunApp and sungjun authored Apr 30, 2021
1 parent f8f62a2 commit 16423ba
Show file tree
Hide file tree
Showing 42 changed files with 2,306 additions and 362 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ dependencies {
implementation "androidx.constraintlayout:constraintlayout:$androidxConstraint"
implementation "com.google.android.material:material:$material"
implementation 'androidx.cardview:cardview:1.0.0'

implementation "com.squareup.okhttp3:mockwebserver:$okhttp3"

/**
* Architecture Component
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<uses-permission android:name="android.permission.INTERNET" />

<application
android:networkSecurityConfig="@xml/network_security_config"
android:name=".AppApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand Down
Loading

0 comments on commit 16423ba

Please sign in to comment.