Граф коммитов

51 Коммитов

Автор SHA1 Сообщение Дата
Cristian Verdes 76577bf9cb
Update README.md 2024-08-29 08:29:52 +03:00
Bianca Miron 778faae6b5
Fix WebView issues from DevMode in app version 1.0.10 (#73)
* Fix WebView showing error when trying to open the code of a file in Github from DevMode

* Fix single-screen DevContentFragment always showing design pattern page instead of the button which was clicked in DevControlFragment
2023-07-12 12:20:43 +03:00
Bianca Miron 2631715a8d
Update version code and name, dependency lockfile and webview link fix (#72)
* Added new MS docs links to be accepted by our internal WebView

* Updated dependencies lockfile and bump version number and name
2023-07-11 16:32:25 +03:00
Craig Dunn 10533d5c12
Update OSS licenses dependency (#71)
The new update includes a fix to remove extraneous license info from the library itself - https://developers.google.com/android/guides/releases#april_20_2023
2023-07-11 14:35:22 +03:00
Kristen Halper 385b601b9b
Update social links table (#68) 2022-09-26 10:07:48 -07:00
Bianca Miron 7811e12fda
Updated dependency lockfile after adding Jetpack Compose to the app (#65) 2022-08-25 13:54:23 +03:00
Alin-Mihai Argeanu 19d293499a
Personal/catalog animation (#64)
* add Animation for catalog pages

* increase version code and version name

* replace global variable with a local variable
2022-08-24 17:33:07 +03:00
Kristen Halper 4545760517
Bump version code and name (#63) 2022-08-12 13:29:30 -07:00
Kristen Halper 76cf7dff05
Add order history tab (#59)
* Move Compose theme files to presentation package

* Move catalog composables to ui package

* Update compose theme name, colors, and typography

* Add order history tab and fragments

* Create empty order history page

* Create order history list page

* Create order details page

* Create view model and pass pages into fragments

* Pull order history from database

* Set up dev mode

* Adjust LazyColumn content padding

* Change padding in landscape mode

* Overlap guitars instead of aligning to edges

* Remove unnecessary handler from viewmodel

* Extract string formatting logic to utils file

* Refactor use case name to be more descriptive

* Add tests for new use case

* Prompt user to check out order history instead of other stores in the tutorial

* Update list order and fix nav issue

* Update UI for better tablet experience

* Create "add to order" dialog

* Navigate to details when order is selected in single screen mode

* Make sure default selected order is the most recent order

* Update UI for better compatability with other devices

* Clean up history viewmodel

* Add comments

* Create WindowState extensions

* Split up placeholder text/image when spanned

* Add screenshots to readme

* Make add to order dialog scrollable

* Finalize image/box placement and size

* testing - add log statements to trace navigation

* Revert "testing - add log statements to trace navigation"

This reverts commit 794ae3b1d8.

* Refactor showTwoPages to isDualMode

* Code cleanup/PR comments

* Update composable names for clarity

* Fix flashing bug when switching between orders in the list
2022-08-11 14:37:28 -07:00
Alin-Mihai Argeanu b27b34168d
Catalog Jetpack Compose refactor (#57)
* Updated gradle dependencies to support jetpack compose

* Added Catalog screen and ViewPager component

* Added catalog pages composable functions

* Added coil dependency

* Move some dependendies from androidx to compose dependencies

* Use composeUiVersion in build.gradle instead of harcoded value

* Added missing Copyright

* Move padding to BottomPageNumber composable function

* Created GuitarImage composable function

* Added pager state saver to preserve the state when configuration changes occurs

* Fixed lint issue

* Updated Dagger Hilt version from 2.39.1 to 2.42 and removed lintOptions

* Added PageLayout composable to hold page ui

* Updated ui to support small width devices

* Removed background color for seventh page

* Added selectPageNumber function in order to jump to a specific page number

* Replaced hardcoded values for destinationPage

* Updated Copyright for ViewPager class

* Added page number as last character for ContentTextItem

* Removed all files related to Catalog UI View System

* Avoid adding one more page for view pager when the current page is max page
and configuration change occurs
2022-06-14 20:33:04 +03:00
Bianca Miron 73d62cf1cf
Updated README with social links and light theme screenshots (#56)
* Added light theme screenshots to README

* Updated images with errors

* Updated dark theme screenshots as well

* Updated order ink screenshot to match the signature

* Added social links, controls used and removed rows because they don't work in README files

* Resized screenshots so they fit maximum 50% width

* Because pictures get pixelated if resized before, added full-size images back and resized using HTML

* Trying to add images in paragraph so they get aligned side-by-side

* Added youtube URL for accessibility social link
2022-05-20 13:34:00 +03:00
Bianca Miron 9c65a8889a
Add light theme, bug fixes and updated app version (#55)
* Added light theme, colors and styles and replaced the components' colors to attrs, also renamed some colors/drawables

* Fixed shadows and paddings for buttons and cards

* Fixed illustrations and colors to work with both themes

* Changed color background data binding to setting it programatically because it doesn't have support for attrs

* Added a function which checks for night theme and changed WebView and Map themes based on it

* Updated app version to prepare for release

* Fixed links buttons and removed click listener from Store item View button (to have the parent one work)

* Removed support library option for vector drawables which brings issues on API 23 and changed the remove drawable (removed fillType)

* Made the hinge/fold line invisible so it doesn't show up on the emulator

* Refactored the isNightMode() function to only return non-null results
2022-04-26 13:53:50 +03:00
Bianca Miron 7d98990d8a
Accessibility TalkBack improvements (#54)
* Removed clickable and focusable attributes from root container which are not needed anymore because of the NavComponent update to add() instead of replace() fragments

* Removed stateDescription from custom views because TalkBack already mentions the selected/unselected state

* Added contentDescription for terms of conditions items and ink view, and labels for Product Customize sections

* Added a method to replace the click action label to something more specific for suitable components, used focusable to group views, added content descriptions with labels

* Added a title for the order ink dialog for accessibility and changed the focus order of the ink buttons

* Fixed issues found by UI tests - feedback link has small touch target size so changed the style of about and feedback description, used forceClick on dual launch button
2022-04-14 09:26:50 +03:00
Bianca Miron 5118d19da3
Update Jetpack Window Manager to 1.0.0 and dual-screen SDK components to latest versions (#53)
* Updated WM version to 1.0.0 and SDK to latest versions

* Added the Snackbar dual-screen component and refactored the old Toast from order confirmed to this Snackbar 

* Fixed launch tests failing because of accessibility issues on emulator Map Surface - suppressed the SpeakableTextPresentCheck error

* Code review changes - added checks after rotations to cover more cases
2022-04-11 15:08:13 +03:00
Cesar Valiente 79a52517b4
PR and issue templates (#51)
* Added PR and issue templates

* Added correct assignees and deleted new lines
2022-03-31 16:04:50 +02:00
Bianca Miron fc135a9a1d
Improve dependency notice generation (#48)
* Added separate notice html files for non open-source dependencies and refactored the list to 3 items - privacy, open-source licenses, other notices

* Fixed about navigation and removed gray margins from the notice webview

* Fixed About UI tests

* Removed unused components from old license list

* Added gradle task to generate the gradle dependency lockfile for all buildTypes

* Updated gson to latest version in order to prevent security issues

* Re-generated a new NOTICE file and moved it to the main folder so we only have to change one file when updating dependencies

* Used the Google OSS licenses library instead of the CG Notice generator, but kept the CG setup in case we want to have periodic/manual checks
2022-03-31 15:31:58 +03:00
Kristen Halper 225ae3e42a
Use test-kit for UI tests (#49)
* Add kotlin testing dependency

* Remove local test utility methods

* Update tests to use test-kit methods
2022-03-17 16:20:26 +02:00
Bianca Miron 3cc068ad86
Moved all WindowLayoutInfo listeners to RESUMED lifecycle (#50)
Moved all WindowLayoutInfo listeners to RESUMED lifecycle instead of STARTED to sync with the binding of the Navigator and also take into account split-screen and resuming from recents
2022-03-04 14:18:48 +02:00
Bianca Miron 712d5dd7f6
Catalog ellipsize fix for Android API 23-26 (#47)
On Android 23-26 the Catalog ToC middle ellipsize was not working because of the font, so updated the font to Roboto just for the ToC
2022-02-25 17:17:42 +02:00
Bianca Miron e958f66307
Improve accessibility (#46)
* Replaced AppCompat components from xml layouts with normal Android ones because they were hiding lint issues (such as missing contentDescription)

"This will automatically be used when you use Button/TextView/ImageView/ImageButton in your layouts and the top-level activity / dialog is provided by appcompat. You should only need to manually use this class when writing custom views."

* Added Accessibility Checks inside Espresso UI tests

* Used drawable compound instead of TextView + ImageView in a container to improve performance

* Catalog accessibility - Added content descriptions for images and made ToC text have target size of 48dp using paddings

* Moved lambda argument for observer listener out of paranthesis for better readability

* Updated menu, navigation and toolbar labels to have them readable and unique, replaced deprecated app:theme attribute to android:theme

* Fixed target size for clickable items to be min 48dp

* Added content description for components, importantForAccessibility="no" for illustrations, and state description for custom views

* Fixed accessibility issues found - duplicate label for "About", "Rating:" should be attached to text instead of image

* Moved enum to readable string mapping to the enum class to make the tests run successfully again
2022-02-18 16:02:15 +02:00
Bianca Miron 4a98b7bf50
Prepare new release - update versionCode to 7 (#45)
* Add ink license to NOTICE files

* Fixed Notice html issues because some items were missing the start tag for details

* Updated versionName and versionCode for new Google Play Store release

* Updated Readme Order screenshot and added a new one displaying the ink dialog
2022-02-08 20:03:35 +02:00
Bianca Miron 85f81f0bcc
UX improvements for WebView, Ink dialog, and network listener fixes (#44)
* Moved signature line closer to the bottom of the color container to match the Figma design

* Fixed the network connection listener and added a way to customize the No Internet Connection layout's background

* Improvements for DevMode WebView - added progress until page is loaded and handled no internet and slow internet by showing our layout

* Updated UI tests and fixes for testing dialog on Android 11

* Fixed the tutorial trying to show when the activity is finishing or finished to prevent android.view.WindowManager$BadTokenException

* Combined the No Internet layout visibleIf attribute to existing one to prevent flickering

* Fixed User Mode toolbar item not appearing sometimes because when onCreateOptionsMenu is called, isDualMode is false

* Added attributes to permit install to external SD cards for low-end devices and prevent keyboard from moving the layout when opened on both screens

* Code review changes - added a name for the observer parameter to improve readability
2022-01-31 11:50:53 +02:00
Bianca Miron c886d138f5
Created a Sign & Confirm Order dialog using the Inking SDK (#43)
* Fixed RecyclerView issues where we used the normal ItemDecoration instead of the Staggered one

* Added inking SDK and created InkColorView for the color selection

* Created InkDialogFragment which is opened from the Order submit button

* Added ink color and stroke width controls logic, using a view model to remember state of selected options and a popupWindow for stroke width

* Updated Order UI tests to include the sign dialog when submitting
2022-01-18 12:22:35 +02:00
Bianca Miron d88a582abd
Update README screenshots with device-framed ones (#41) 2021-12-15 17:23:02 +02:00
Bianca Miron 0ea63c235b
Updated README and added icons for each buildType (#40)
* Renamed the emulator buildType and the suffix so it's different from the one pre-installed on the emulator

* Added different icons for each buildType

* Update README file and added screenshots

* Added Google Play badge to link to the app from Play Store
2021-12-10 10:49:03 +02:00
Bianca Miron 5ef33327b3
Added Navigation Component docs to the DevMode and set it to specific screens (#39) 2021-12-08 17:54:14 +02:00
Bianca Miron ec25dda5a2
Update SDK version to include foldable fixes (#38)
* Updated SDK with latest versions and added explicit dependency to layotus and wm-utils in order to have the foldable fixes

* UI fixes for Order details submitted and Customize button

* Added applicationIdSuffix for releaseEmulator so all buildTypes can be installed at the same time

* Updated versionName and versionCode
2021-12-08 17:41:18 +02:00
Bianca Miron 9ca27baa7a
Updated AppScreen links from DevMode in order to use the app's Github repository (#36) 2021-12-08 12:51:21 +02:00
Bianca Miron 3225276ea6
Feedback changes after responsive UI (#37)
* Product&Catalog changes - removed bass guitars and the Customize type toggle and only used 6-string guitars

* Store changes - added item list click listener on the whole row instead of just the View button

* Order changes - removed Order header and moved the Details to the top instead, so the Submit button is always visible

* About changes - fixed licenses and notices list UI so it's easier to see which items are clickable and which are not

* Fixed UI and unit tests after feedback changes

* Fixed a bug where the tutorial was still showing after un-span to single screen mode

* Fixed a bug where the unselecting of the color views was not working properly because the color index was not the same with the view index

* Updated the Maps keys files with instructions
2021-12-08 12:50:59 +02:00
Bianca Miron b8e004d407
Catalog responsive UI (#35)
* Renamed RotationViewModel to LayoutInfoViewModel and changed some strings

* Refactored Catalog section - always used horizontal scrolling, no more content under the hinge in dual landscape, better UI on small widths, one page on small foldables

* Removed proguard rule which is not needed anymore for WM-beta

* CR changes - extracted constant to a value for improved readability
2021-12-02 10:05:35 +02:00
Bianca Miron 83c7321771
Merge base-navigation (now with WM-beta02 migration, public artifacts integration, and responsive UI) into main (#34)
* Added the nav component and built the Find Stores functionality (#4)

* Added dependencies for private artifact of NavComponent, added a toolbar and bottom bar on MainActivity, created separate navigation graphs and included the basic values and fonts files

* Added data layer for Stores, changed the db file for pre-population and created tests for the repository class

* Added the domain layer for the Stores (models and usecases) and created unit tests

* Created the MapUtils for storing helper functions and the StoreNavigator & StoreViewModel which are used to connect the fragments

* Created the StoreMapFragment using BingMaps and a MapMarkerFactory which generates the bitmap needed for the selected/unselected marker

* Created the StoreListFragment which uses a RecyclerViewAdapter and some dataBindingAdapters to map the imageIds to the resources and show/hide the empty state

* Created the StoreDetailsFragment which uses a tabLayout and a ViewPagerAdapter for the About/Contact tabs

* Added UI tests for the navigation between the Store Map, List and Details fragments

* Code improvements for StoreMapFragment, BingMaps and observers

- Renamed markerList from MapFragment to selectableMarkerMap to be more specific
- Returned true from BingMapListeners to prevent other listeners from being triggered
- Changed fab listener behaviour to a specific method for recentering the map instead of also changing the zoom to prevent the balloon markers behind the circle marker to appear on top of it
- Changed the selectedCity value only when needed to prevent unecessary observer activation

* Update BingMaps SDK to latest version

- Added necessary null checks and improved the UI testutils marker click

* Updated to the newest SDK version and added the new nav-component artifact to make the CI build work again

* Code review changes - codestyle improvements for readability, refactored FragmentToolbarHandler into Activity and Fragment extension functions, renamed test methods to remove the underscore

* Created the launch screens and a tutorial component (#5)

* Improvements - Moved store button attributes to its style so it can be reused, changed the UI based on new design, renamed the id of the map container from camelCase to underscore for consistency

* Added Tutorial Component data layer in order to store using SharedPreferences whether it should be displayed

* Added LaunchTutorial domain layer to keep the logic of when the component should be displayed in the launch screen, and a cache value to prevent unecessary SharedPrefs edits

* Added Tutorial Component presentation layer using a PopupWindow, drawables for all positions, also the ViewModel which saves the value to false when the app is spanned

* Created the UI part for the LaunchTitleFragment and LaunchDescriptionFragment

* Created the LaunchActivity which uses FragmentsHandler, SurfaceDuoLayout libraries, ViewPager with TabLayout and Qualifiers to make both single screen and dual screen mode look as expected

* Added launch tutorial logic into the activities for showing and hiding and fixed a back button issue when going back from MainActivity to LaunchActivity

* Added UI tests for single and dual screen mode and both orientations

* Tutorial improvement - added a bigger offset when the device is rotated so the tutorial won't be too close to the launch description

* Moved animation drawable from LaunchDescription to an animation-list in an xml file and stopped the animation in onPause

* Fixed the back button from Main to Launch which should take into account the navController

* As discussed with Mehul, raised the duration of each frame so it animation will slow down

* Code review changes - refactored magic number to constant value

* Code review changes - refactored TutorialPreferences into a common package and created a PreferenceManager to handle them, used SingleLiveEvent for opening a new activity, renaming and added @Ignore to test which fails

* Code review changes - refactored findViewById with View Binding and renamed some ids

* Create Product and Customization feature (#6)

* Updated the product data layer with needed fields and methods, updated the pre-populated db and removed sample tests

* Updated the product domain layer with necessary fields, methods, usecases and tests

* Improvements - added a default value for SingleLiveEvent, removed unecessary view parameter, added new dimens and removed the duplicate ones from dual screen qualifier

* Created custom views for the product rating and customize item and some helper functions

* Updated the product presentation layer (List and Details fragments) to match the design, also renamed the classes to be more specific

* Created a rotation view model to help modify the design accordingly

* Created the customize activity and fragments according to design, opened them from the ProductDetailsFragment's Customize button and introduced the lottie library for the Place Order button animation

* Created some navigation tests for the product feature, left some commented lines for future integrations or SDK issues

* Created tests for the Customize products feature using content descriptions

* Fixed a lint issue and updated gradle and koltin versions

* CR changes - Updated tests names to be more descriptive and explained why commented checks exist and linked to Github issue

* CR changes - extracted a class with Float extensions for dpToPx conversion and price formatting, extracted separate methods from onViewCreated

* Create order feature (#8)

* UI improvements - removed nullable type for color and bodyShape, added focusable and clickable for each fragment so listeners from startDestination will not be activated

* Tutorial improvements - moved it as a singleton component so it can be used everywhere and added support to anchor a view

* Added data layer and testing for the Orders feature, used LiveData because we need the db values inserted or changed in real time

* Added domain layer and testing for the Order feature

* Added logic for Place Order button and small improvements

* Renamed cart to orders and added the hinge-aware recycler view component

* Added the presentation layer of the Orders feature - adapter for the dual-list which also handles the empty state and the order details using viewTypes & recommendations logic

* Added tutorial and toast logic which should be displayed after an order is submitted

* Added UI tests for the presentation layer, using an InMemoryDatabase in order to have a clean orders table for each test

* Products improvement - added the Place Order button also for single mode, updated tests

* Refactoring to implement latest design changes, created a StaggeredSurfaceDuoLayoutManager in order to have items of different sizes and made the components reusable

* Created a separate fragment for the Order Receipt, used the same OrderListAdapter but with different data and handlers

* Order - toast bug fix (#9)

Moved the Order success toast message to be displayed from OrderReceiptFragment instead of the OrderFragment in order to prevent a delay in the navigation, changed length to short

* Created DevMode feature and added tutorial (#10)

* Added toolbar for all fragments and the ProductCustomizeActivity, removed Cancel button and fixes for Orders

* Created DevModeActivity which is opened from a toolbar menu item and has two fragments, added tutorial logic, set the positions for the animation and the WebView links inside intent extras

* Updated UI tests and added new ones for the toolbar and DevMode, set animationsDisabled for tests inside the build.gradle file

* Integration with bottom navigation support (#11)

* Integrated with latest Navigation Component artifacts, which add support for bottomNavView and fixed some issues

* Fixed app navigation issues

- Removed fragments handler and used nav-graphs for Launch and DevMode
- Refactored ProductCustomize to a fragment instead of activity and added customize sync with ProductDetailsFragment
- Removed ScreenInfoListener from MainActivity fragmnets and used rotationViewModel instead
- Fixed back behaviour and toolbar titles
- Changed Product Details-Customize dual-screen order to be in sync with nav-component (when Customize is opened, Details moves to start screen and Customize is opened on end screen)

* UI changes for the bottom navigation view - added top border and modified item tint color

* Updated UI tests to work with latest changes and removed ".xml" from auto-generated navigation ids

* Navigation improvements - moved LaunchActivity to use activity navigator, made use of arguments to hide/show the BottomNavBar

- Didn't refactor DevModeActivity to use activity navigator because it needs the activity and the menu item view for the shared element transition from the circular reveal animation. Since activities cannot have actions to other activities by design from the Android Navigation Component, the only option was to navigate to DevMode from each one of MainActivity's fragments.

* Renamed AppNavigator to MainNavigator to prevent confusion because it only handles the navigation for MainActivity and its fragments

* Refactored deprecated import for the assertThat function used in unit tests and updated junit version to 4.13.2

* About & OSS licenses (#12)

* Created Resources&Links section of the About page with specific icons and urls

* Created OSS licenses section of the About page

* Created the AboutActivity, the fragments and the navigator

* Added about menu item in both single and dual screen mode and opened the AboutActivity from the MainActivity

* Added UI tests for opening and checking the About screen from each main feature

* Lint does not have support for Flow so it needs tools:ignore="MissingConstraints" for all references, otherwise it fails

* CR changes - added Gson as library and license, refactored licenses and terms to json files, added data source which reads from json files and used them in the AboutViewModel

* Changed app name & icon, added release part (#13)

* Changed app name to Dual Screen Experience

* Added adaptive and legacy app icons

* Small improvements - removed animations for first time loading of the map to reduce number of tiles needed, prevented app install from external storage and set allowBackup to false

* Added new buildType for release and the proguard rules and keep resources file to make it work properly

* Retrieved the map token differently based on the build type, added Firebase for release

* Added Third Party License items for the Firebase and KotlinX Coroutines libraries

* Sorin/feature catalog (#14)

* Create catalog feature

* CR changes for catalog and integration

- Replaced deprecated kotlin.extensions plugin with kotlin-parcelize
- Refactored tests to remove Thread.sleep
- Renamings for better readability
- Displayed toolbar also in HostProductsFragment
- Dev mode changes for Catalog
- Added Glide license in the About list
- Created new interface which only provides a list of data

* Updated old products tests - renamed the old function to navigateToProductsSection() to prevent confusion and extracted openCatalogTab() and openProductsTab() functions

* Added proguard rule for Catalog models required by Gson, improvement for to remove viewpager animations from the HostProductsFragment only when testing

* Added some comments to CatalogItem.ViewType enum to describe what each layout type means

* CR changes - code improvements

- Removed CatalogItem fragments with same logic and generated the binding based on the viewtype in CatalogItemFragment
- Moved model transformation to domain to prevent domain imports in data layer

Co-authored-by: EUROPE\bimiron <bimiron@microsoft.com>

* Update libraries (#15)

* Updated libraries to latest version, including Surface Duo SDK and fixed navigation/toolbar issues, removed jcenter

* Fixed some issues regarding Dev Mode and opening Store List from Store details and added tests

- Setup programatically the navigation graph for dev mode after the 3 controls are set from activity bundle
- Changed some AppScreen URLs in order to have unique paths
- Added a navigation action from details to list in case the circle pin is tapped after the marker pin
- Added some tests for the above use case

* Fixed some UI issues which appeared after showing the toolbar on Catalog pages and saved selected state of the Catalog/Products tabs (#16)

* Integration with navigation component for fragments displayed on both screens (#17)

* Added Bing Maps Terms of Use and Privacy Statement to the About screen in the Licenses section

* Added new navigation component artifacts with support for launchScreen = both and updated Stores and Orders navigation

* Updated Mehul's store with new lat and lng coordinates and the buildCenterMarker() method to prevent the city marker from being displayed under the hinge

* Split Catalog and Products into two separate bottom nav items, added nav-graph, navigator and icon for Catalog, updated toolbar title, added DevMode changes

* Removed HostProducts and everything related to the Catalog-Products tabs

* Added scrollable list to the CatalogItemFragments for single landscape mode and VerticalViewPager for dual landscape mode

* Fixed a navigation issue when opening the About Screen

* Updated tests with latest changes and removed all ignored ones

* Moved catalog out of the products package

* CR changes - removed "en-us" part from Privacy Statement url to prevent issues, but the one from Terms of Use cannot be removed since the redirect is broken

* Updated package and application name (#18)

* Changed package name from "com.microsoft.device.display.sampleheroapp" to "com.microsoft.device.samples.dualscreenexperience"

* Updated github workflows and application class name

* Fixes for the feedback received (#19)

* Fixed same products being counted as two separate items using equals() and hashCode() and added unit tests

* Removed "en-us" also from other links, created a RestrictedWebViewClient which opens in the WebView only URLs with accepted hosts, otherwise opens side-by-side with app

* Fixed layer-list item order which caused problems for Android API level 22

* Removed fling gesture and animation from the bottom bar

* Fixed some UI issues - made the Submit Order and Add recommendation buttons bigger, added top padding for Store Details and List so they look ok in DLM

* Removed launch tutorial which recommends to span the app from non-SurfaceDuo devices

* Changed catalog texts to new ones Mehul provided from Wikipedia, added some spaces to make it look better in dual-screen

* Added support for unselecting a map marker when clicking on the map in a point without markers and when clicking on an already selected marker

* Handle No internet Connection on Stores Map (#20)

* Added no internet connection layout which is displayed/hidden based on a LiveData, also the ACCESS_NETWORK_STATE permission needed for the network listener

* Restricted animations only to zoom-in/out when the app is in dual screen mode and the user has clicked a marker

- Fixed an issue where map stops loading if it is tapped when animating
- Disabled more unused map features

* Fixed updated package also for the TokenProvider class from the release

* Refactored Stores and Products data tables to json and added fictious data (#21)

* Refactored stores and products to use data from a json file instead of the pre-populated database in order to change the data faster and easier, updated tests

* Changed store data to fictious data, moved pngs to assets and removed StoreImage enums by including the path in the object, removed pre-populated db

* Added proguard rules to keep Store and Product models so they can be seen by Gson when deserializing

* Added trademarks section to README file

* Feedback improvements for DevMode and added open-source repo NOTICE file (#22)

* Used the updated LiveDataTestUtil class from the google repo and added NOTICES.md for the two embedded third party classes we use in our open-source repo

* Added the design pattern to the Dev Mode name in case it exists to make it more visible that the content changes for each screen, improved strings

* Changed About licenses to be more compliant as discussed with OSS CELA - since I was not able to generate the whole NOTICE file, I manually created it, so it might need to be updated later

* Fixed tutorial position for the new DevMode with design pattern

* Create a map city tutorial to show that the circle marker is clickable (#23)

* Added a tutorial to make it visible that the map circle marker for the city is visible - used a Bing Maps Flyout and a touch icon integrated in the bitmap

- Used shared preferences to only show it for the first time and disable it after the user taps on the circle
- Changed the city coordinates so that the Map Flyout text fits also in landscape mode

* Updated mock city coordinates to make the tests work

* Changed product and store assets and the new app name (#24)

* Replaced guitar assets and renamed ProductType enums to prevent trademarks issues

* Changed Store items and Details About assets with vector ones

* Updated product NOTICE file name after reading the docs more carefully

* Updated minSdkVersion to 22 in order to have consistency with the Dual-Screen SDK

* Updated app and project name to approved one

* Replace Catalog text and assets to our own (#25)

* Updated Catalog text to our own and assets to vector generated ones

* Updated Catalog tests

* Removed Wikipedia from licesnse list since now we are using our own text

* Refactor Bing Maps to Google Maps and update NOTICE section (#26)

* Replaced Bing Maps with Google Maps in the StoreMapFragment, layout, MapUtils and tests

* Removed all Bing Maps and Firebase usages

* Removed licenses since there were no items in that list anymore and refactored displaying the NOTICE file to WebView rendering a local HTML, updated NOTICE file

* Added TODO and updated string for the code button in DevMode

* Feedback changes (#27)

* Updated dependencies to prepare for WM-beta and added debug app suffix so it can be installed alongside the release one

* Product feedback changes - replaced Purchase Order button to Add to Order, added support for deliveryDays and guitarType - bass and normal, changed toolbar title

* Catalog feedback changes - added normal guitar images to catalog, changed toolbar title, made ToC items clickable to go to specific page

* Store feedback changes - removed InfoWindow and always displayed Store Tutorial with new text, changed store Description and street names, fixed No Internet bug when List/Details was opened, handled no Google Services case

* Launch feedback changes - removed viewpager and displayed title, image, description, button in single screen as the new design

* About feedback changes - added Google legal and privacy terms in NOTICE.md and other notices, added MS Privacy Statement, added link to Github issue as feedback mechanism

* DevMode feedback changes - reordered toolbar icons, added ripple effect to DevMode buttons, replaced deprecated webview function

* Replaced Github issue page with correct one from Dual Screen Experience Example Github repository

* Refactored the github actions yml file to use Java 11, which is required by the new gradle versions

* Code review changes - made ProductResUtils more readable, added trim to ToC to fit more screen sizes, added DistinctValueLiveData class and guitarType UI tests

* Refactored StoreMapFragment to make it easier to change the map library based on buildType (#28)

* Updated libraries and navigation component to 2.3.5

* Split StoreMapFragment into business logic and map component and used an IMapComponent abstraction with two implementations - one using Google and another using Bing Maps for non-gms emulators

* Refactored licenses back to dynamic ones read from json file and split them and NOTICE.md files based on buildType

* Fixed some tests and found a way to run the UI tests for BingMaps (without having to duplicate the code in debug) using the testBuildType "releaseEmulator" in build.gradle

* Code review improvements - better naming of classes, only left the meta-data in buildType's manifest files because they are merged with the main one

* Update everything to WM beta2 (#30)

* Update to window manager beta2

* Updated  layouts, wm-utils, navigation-common, navigation-fragment libraries

* Fix for tutorial position and for the crash "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?"

* Removed ScreenManager from UI tests

* Launch improvements - used STARTED lifecycle and the isDualMode from rotationViewModel for consistency, moved the tutorial show trigger in onResume

* Refactored rotation to orientation of fragment/activity for UI logic

Co-authored-by: Andrei Cirja <andrei.cirja@microsoft.com>

* Integration with the latest navigation component (#31)

Co-authored-by: Andrei Cirja <andrei.cirja@microsoft.com>

* Refactored layouts to match multiple screen sizes (#32)

* UI changes for Launch screen layouts and Stores map, no internet connection, list, empty list, details

* UI changes for DevMode and About layouts

* Small UI changes for the Catalog layouts, this feature will be refactored in the next PR

* UI changes for the Product layouts - list, details, customization

* UI changes for the Order layouts

* Updated UI tests - fixed the ones for Launch, added scrolling to the components before checking the views so they also work on smaller screens, checked if it is Surface Duo device before spanning and unspanning

* Code cleanup and removed unused resources

* Added aternative for the only dual-screen test which fails on non-SurfaceDuo foldables using if-else, until we find a better solution

* Added dimens for item_product & fixed an issue with About not appearing in the toolbar popup for Orders for 6.7" emulator

* Added public dependencies for navigation component and re-generate NOTICE files (#33)

* Added public artifacts

* Used public libraries instead of artifacts after release

* Updated the versions after Google Play Store beta release 2

* Re-generate NOTICE files for all flavors

Co-authored-by: Andrei Cirja <andrei.cirja@microsoft.com>

Co-authored-by: Sorin Albu <74547562+soalb-m@users.noreply.github.com>
Co-authored-by: Andrei Cirja <72752597+ancirja-m@users.noreply.github.com>
Co-authored-by: Andrei Cirja <andrei.cirja@microsoft.com>
2021-11-22 17:49:02 +02:00
Bianca Miron 74d389e521
Merge into main without navigation library (#29)
* Added the nav component and built the Find Stores functionality (#4)

* Added dependencies for private artifact of NavComponent, added a toolbar and bottom bar on MainActivity, created separate navigation graphs and included the basic values and fonts files

* Added data layer for Stores, changed the db file for pre-population and created tests for the repository class

* Added the domain layer for the Stores (models and usecases) and created unit tests

* Created the MapUtils for storing helper functions and the StoreNavigator & StoreViewModel which are used to connect the fragments

* Created the StoreMapFragment using BingMaps and a MapMarkerFactory which generates the bitmap needed for the selected/unselected marker

* Created the StoreListFragment which uses a RecyclerViewAdapter and some dataBindingAdapters to map the imageIds to the resources and show/hide the empty state

* Created the StoreDetailsFragment which uses a tabLayout and a ViewPagerAdapter for the About/Contact tabs

* Added UI tests for the navigation between the Store Map, List and Details fragments

* Code improvements for StoreMapFragment, BingMaps and observers

- Renamed markerList from MapFragment to selectableMarkerMap to be more specific
- Returned true from BingMapListeners to prevent other listeners from being triggered
- Changed fab listener behaviour to a specific method for recentering the map instead of also changing the zoom to prevent the balloon markers behind the circle marker to appear on top of it
- Changed the selectedCity value only when needed to prevent unecessary observer activation

* Update BingMaps SDK to latest version

- Added necessary null checks and improved the UI testutils marker click

* Updated to the newest SDK version and added the new nav-component artifact to make the CI build work again

* Code review changes - codestyle improvements for readability, refactored FragmentToolbarHandler into Activity and Fragment extension functions, renamed test methods to remove the underscore

* Created the launch screens and a tutorial component (#5)

* Improvements - Moved store button attributes to its style so it can be reused, changed the UI based on new design, renamed the id of the map container from camelCase to underscore for consistency

* Added Tutorial Component data layer in order to store using SharedPreferences whether it should be displayed

* Added LaunchTutorial domain layer to keep the logic of when the component should be displayed in the launch screen, and a cache value to prevent unecessary SharedPrefs edits

* Added Tutorial Component presentation layer using a PopupWindow, drawables for all positions, also the ViewModel which saves the value to false when the app is spanned

* Created the UI part for the LaunchTitleFragment and LaunchDescriptionFragment

* Created the LaunchActivity which uses FragmentsHandler, SurfaceDuoLayout libraries, ViewPager with TabLayout and Qualifiers to make both single screen and dual screen mode look as expected

* Added launch tutorial logic into the activities for showing and hiding and fixed a back button issue when going back from MainActivity to LaunchActivity

* Added UI tests for single and dual screen mode and both orientations

* Tutorial improvement - added a bigger offset when the device is rotated so the tutorial won't be too close to the launch description

* Moved animation drawable from LaunchDescription to an animation-list in an xml file and stopped the animation in onPause

* Fixed the back button from Main to Launch which should take into account the navController

* As discussed with Mehul, raised the duration of each frame so it animation will slow down

* Code review changes - refactored magic number to constant value

* Code review changes - refactored TutorialPreferences into a common package and created a PreferenceManager to handle them, used SingleLiveEvent for opening a new activity, renaming and added @Ignore to test which fails

* Code review changes - refactored findViewById with View Binding and renamed some ids

* Create Product and Customization feature (#6)

* Updated the product data layer with needed fields and methods, updated the pre-populated db and removed sample tests

* Updated the product domain layer with necessary fields, methods, usecases and tests

* Improvements - added a default value for SingleLiveEvent, removed unecessary view parameter, added new dimens and removed the duplicate ones from dual screen qualifier

* Created custom views for the product rating and customize item and some helper functions

* Updated the product presentation layer (List and Details fragments) to match the design, also renamed the classes to be more specific

* Created a rotation view model to help modify the design accordingly

* Created the customize activity and fragments according to design, opened them from the ProductDetailsFragment's Customize button and introduced the lottie library for the Place Order button animation

* Created some navigation tests for the product feature, left some commented lines for future integrations or SDK issues

* Created tests for the Customize products feature using content descriptions

* Fixed a lint issue and updated gradle and koltin versions

* CR changes - Updated tests names to be more descriptive and explained why commented checks exist and linked to Github issue

* CR changes - extracted a class with Float extensions for dpToPx conversion and price formatting, extracted separate methods from onViewCreated

* Create order feature (#8)

* UI improvements - removed nullable type for color and bodyShape, added focusable and clickable for each fragment so listeners from startDestination will not be activated

* Tutorial improvements - moved it as a singleton component so it can be used everywhere and added support to anchor a view

* Added data layer and testing for the Orders feature, used LiveData because we need the db values inserted or changed in real time

* Added domain layer and testing for the Order feature

* Added logic for Place Order button and small improvements

* Renamed cart to orders and added the hinge-aware recycler view component

* Added the presentation layer of the Orders feature - adapter for the dual-list which also handles the empty state and the order details using viewTypes & recommendations logic

* Added tutorial and toast logic which should be displayed after an order is submitted

* Added UI tests for the presentation layer, using an InMemoryDatabase in order to have a clean orders table for each test

* Products improvement - added the Place Order button also for single mode, updated tests

* Refactoring to implement latest design changes, created a StaggeredSurfaceDuoLayoutManager in order to have items of different sizes and made the components reusable

* Created a separate fragment for the Order Receipt, used the same OrderListAdapter but with different data and handlers

* Order - toast bug fix (#9)

Moved the Order success toast message to be displayed from OrderReceiptFragment instead of the OrderFragment in order to prevent a delay in the navigation, changed length to short

* Created DevMode feature and added tutorial (#10)

* Added toolbar for all fragments and the ProductCustomizeActivity, removed Cancel button and fixes for Orders

* Created DevModeActivity which is opened from a toolbar menu item and has two fragments, added tutorial logic, set the positions for the animation and the WebView links inside intent extras

* Updated UI tests and added new ones for the toolbar and DevMode, set animationsDisabled for tests inside the build.gradle file

* Integration with bottom navigation support (#11)

* Integrated with latest Navigation Component artifacts, which add support for bottomNavView and fixed some issues

* Fixed app navigation issues

- Removed fragments handler and used nav-graphs for Launch and DevMode
- Refactored ProductCustomize to a fragment instead of activity and added customize sync with ProductDetailsFragment
- Removed ScreenInfoListener from MainActivity fragmnets and used rotationViewModel instead
- Fixed back behaviour and toolbar titles
- Changed Product Details-Customize dual-screen order to be in sync with nav-component (when Customize is opened, Details moves to start screen and Customize is opened on end screen)

* UI changes for the bottom navigation view - added top border and modified item tint color

* Updated UI tests to work with latest changes and removed ".xml" from auto-generated navigation ids

* Navigation improvements - moved LaunchActivity to use activity navigator, made use of arguments to hide/show the BottomNavBar

- Didn't refactor DevModeActivity to use activity navigator because it needs the activity and the menu item view for the shared element transition from the circular reveal animation. Since activities cannot have actions to other activities by design from the Android Navigation Component, the only option was to navigate to DevMode from each one of MainActivity's fragments.

* Renamed AppNavigator to MainNavigator to prevent confusion because it only handles the navigation for MainActivity and its fragments

* Refactored deprecated import for the assertThat function used in unit tests and updated junit version to 4.13.2

* About & OSS licenses (#12)

* Created Resources&Links section of the About page with specific icons and urls

* Created OSS licenses section of the About page

* Created the AboutActivity, the fragments and the navigator

* Added about menu item in both single and dual screen mode and opened the AboutActivity from the MainActivity

* Added UI tests for opening and checking the About screen from each main feature

* Lint does not have support for Flow so it needs tools:ignore="MissingConstraints" for all references, otherwise it fails

* CR changes - added Gson as library and license, refactored licenses and terms to json files, added data source which reads from json files and used them in the AboutViewModel

* Changed app name & icon, added release part (#13)

* Changed app name to Dual Screen Experience

* Added adaptive and legacy app icons

* Small improvements - removed animations for first time loading of the map to reduce number of tiles needed, prevented app install from external storage and set allowBackup to false

* Added new buildType for release and the proguard rules and keep resources file to make it work properly

* Retrieved the map token differently based on the build type, added Firebase for release

* Added Third Party License items for the Firebase and KotlinX Coroutines libraries

* Sorin/feature catalog (#14)

* Create catalog feature

* CR changes for catalog and integration

- Replaced deprecated kotlin.extensions plugin with kotlin-parcelize
- Refactored tests to remove Thread.sleep
- Renamings for better readability
- Displayed toolbar also in HostProductsFragment
- Dev mode changes for Catalog
- Added Glide license in the About list
- Created new interface which only provides a list of data

* Updated old products tests - renamed the old function to navigateToProductsSection() to prevent confusion and extracted openCatalogTab() and openProductsTab() functions

* Added proguard rule for Catalog models required by Gson, improvement for to remove viewpager animations from the HostProductsFragment only when testing

* Added some comments to CatalogItem.ViewType enum to describe what each layout type means

* CR changes - code improvements

- Removed CatalogItem fragments with same logic and generated the binding based on the viewtype in CatalogItemFragment
- Moved model transformation to domain to prevent domain imports in data layer

Co-authored-by: EUROPE\bimiron <bimiron@microsoft.com>

* Update libraries (#15)

* Updated libraries to latest version, including Surface Duo SDK and fixed navigation/toolbar issues, removed jcenter

* Fixed some issues regarding Dev Mode and opening Store List from Store details and added tests

- Setup programatically the navigation graph for dev mode after the 3 controls are set from activity bundle
- Changed some AppScreen URLs in order to have unique paths
- Added a navigation action from details to list in case the circle pin is tapped after the marker pin
- Added some tests for the above use case

* Fixed some UI issues which appeared after showing the toolbar on Catalog pages and saved selected state of the Catalog/Products tabs (#16)

* Integration with navigation component for fragments displayed on both screens (#17)

* Added Bing Maps Terms of Use and Privacy Statement to the About screen in the Licenses section

* Added new navigation component artifacts with support for launchScreen = both and updated Stores and Orders navigation

* Updated Mehul's store with new lat and lng coordinates and the buildCenterMarker() method to prevent the city marker from being displayed under the hinge

* Split Catalog and Products into two separate bottom nav items, added nav-graph, navigator and icon for Catalog, updated toolbar title, added DevMode changes

* Removed HostProducts and everything related to the Catalog-Products tabs

* Added scrollable list to the CatalogItemFragments for single landscape mode and VerticalViewPager for dual landscape mode

* Fixed a navigation issue when opening the About Screen

* Updated tests with latest changes and removed all ignored ones

* Moved catalog out of the products package

* CR changes - removed "en-us" part from Privacy Statement url to prevent issues, but the one from Terms of Use cannot be removed since the redirect is broken

* Updated package and application name (#18)

* Changed package name from "com.microsoft.device.display.sampleheroapp" to "com.microsoft.device.samples.dualscreenexperience"

* Updated github workflows and application class name

* Fixes for the feedback received (#19)

* Fixed same products being counted as two separate items using equals() and hashCode() and added unit tests

* Removed "en-us" also from other links, created a RestrictedWebViewClient which opens in the WebView only URLs with accepted hosts, otherwise opens side-by-side with app

* Fixed layer-list item order which caused problems for Android API level 22

* Removed fling gesture and animation from the bottom bar

* Fixed some UI issues - made the Submit Order and Add recommendation buttons bigger, added top padding for Store Details and List so they look ok in DLM

* Removed launch tutorial which recommends to span the app from non-SurfaceDuo devices

* Changed catalog texts to new ones Mehul provided from Wikipedia, added some spaces to make it look better in dual-screen

* Added support for unselecting a map marker when clicking on the map in a point without markers and when clicking on an already selected marker

* Handle No internet Connection on Stores Map (#20)

* Added no internet connection layout which is displayed/hidden based on a LiveData, also the ACCESS_NETWORK_STATE permission needed for the network listener

* Restricted animations only to zoom-in/out when the app is in dual screen mode and the user has clicked a marker

- Fixed an issue where map stops loading if it is tapped when animating
- Disabled more unused map features

* Fixed updated package also for the TokenProvider class from the release

* Refactored Stores and Products data tables to json and added fictious data (#21)

* Refactored stores and products to use data from a json file instead of the pre-populated database in order to change the data faster and easier, updated tests

* Changed store data to fictious data, moved pngs to assets and removed StoreImage enums by including the path in the object, removed pre-populated db

* Added proguard rules to keep Store and Product models so they can be seen by Gson when deserializing

* Added trademarks section to README file

* Feedback improvements for DevMode and added open-source repo NOTICE file (#22)

* Used the updated LiveDataTestUtil class from the google repo and added NOTICES.md for the two embedded third party classes we use in our open-source repo

* Added the design pattern to the Dev Mode name in case it exists to make it more visible that the content changes for each screen, improved strings

* Changed About licenses to be more compliant as discussed with OSS CELA - since I was not able to generate the whole NOTICE file, I manually created it, so it might need to be updated later

* Fixed tutorial position for the new DevMode with design pattern

* Create a map city tutorial to show that the circle marker is clickable (#23)

* Added a tutorial to make it visible that the map circle marker for the city is visible - used a Bing Maps Flyout and a touch icon integrated in the bitmap

- Used shared preferences to only show it for the first time and disable it after the user taps on the circle
- Changed the city coordinates so that the Map Flyout text fits also in landscape mode

* Updated mock city coordinates to make the tests work

* Changed product and store assets and the new app name (#24)

* Replaced guitar assets and renamed ProductType enums to prevent trademarks issues

* Changed Store items and Details About assets with vector ones

* Updated product NOTICE file name after reading the docs more carefully

* Updated minSdkVersion to 22 in order to have consistency with the Dual-Screen SDK

* Updated app and project name to approved one

* Replace Catalog text and assets to our own (#25)

* Updated Catalog text to our own and assets to vector generated ones

* Updated Catalog tests

* Removed Wikipedia from licesnse list since now we are using our own text

* Refactor Bing Maps to Google Maps and update NOTICE section (#26)

* Replaced Bing Maps with Google Maps in the StoreMapFragment, layout, MapUtils and tests

* Removed all Bing Maps and Firebase usages

* Removed licenses since there were no items in that list anymore and refactored displaying the NOTICE file to WebView rendering a local HTML, updated NOTICE file

* Added TODO and updated string for the code button in DevMode

* Feedback changes (#27)

* Updated dependencies to prepare for WM-beta and added debug app suffix so it can be installed alongside the release one

* Product feedback changes - replaced Purchase Order button to Add to Order, added support for deliveryDays and guitarType - bass and normal, changed toolbar title

* Catalog feedback changes - added normal guitar images to catalog, changed toolbar title, made ToC items clickable to go to specific page

* Store feedback changes - removed InfoWindow and always displayed Store Tutorial with new text, changed store Description and street names, fixed No Internet bug when List/Details was opened, handled no Google Services case

* Launch feedback changes - removed viewpager and displayed title, image, description, button in single screen as the new design

* About feedback changes - added Google legal and privacy terms in NOTICE.md and other notices, added MS Privacy Statement, added link to Github issue as feedback mechanism

* DevMode feedback changes - reordered toolbar icons, added ripple effect to DevMode buttons, replaced deprecated webview function

* Replaced Github issue page with correct one from Dual Screen Experience Example Github repository

* Refactored the github actions yml file to use Java 11, which is required by the new gradle versions

* Code review changes - made ProductResUtils more readable, added trim to ToC to fit more screen sizes, added DistinctValueLiveData class and guitarType UI tests

* Refactored StoreMapFragment to make it easier to change the map library based on buildType (#28)

* Updated libraries and navigation component to 2.3.5

* Split StoreMapFragment into business logic and map component and used an IMapComponent abstraction with two implementations - one using Google and another using Bing Maps for non-gms emulators

* Refactored licenses back to dynamic ones read from json file and split them and NOTICE.md files based on buildType

* Fixed some tests and found a way to run the UI tests for BingMaps (without having to duplicate the code in debug) using the testBuildType "releaseEmulator" in build.gradle

* Code review improvements - better naming of classes, only left the meta-data in buildType's manifest files because they are merged with the main one

* Removed the private artifacts from the project to merge the current state to main

* Updated .gitignore file

Co-authored-by: Sorin Albu <74547562+soalb-m@users.noreply.github.com>
2021-11-01 16:13:50 +02:00
Bianca Miron 03656ad727
Merge pull request #3 from microsoft/bimiron/update-md-files
Update Readme.md and Support.md files to include links to other repos, the CI badge and how to contact us
2021-02-09 13:48:41 +02:00
EUROPE\bimiron 879881a473 Update Readme.md and Support.md files to include links to other repos, the CI badge and how to contact us 2021-02-09 13:38:13 +02:00
Bianca Miron a329f6643e
Merge pull request #1 from microsoft/bimiron/setup-project
Create setup of the Android project
2021-02-09 13:26:16 +02:00
Cesar Valiente 3695e7d33f
Merge pull request #2 from microsoft/cevalien/add_github_flow
Github workflow
2021-02-09 12:22:35 +01:00
EUROPE\bimiron 83d30c75ee Code review changes
- Moved versionCode, versionName and applicationId to dependencies.gradle
- Renamed CustomTestRunner to HiltJUnitRunner
- Renamed SampleApplication to HeroApplication
- Moved database config strings to a separate Config object
- Removed direct interaction between ViewModel and RecyclerAdapter
2021-02-08 15:04:24 +02:00
EUROPE\bimiron 2eb7b0ee99 Code review changes & renamed ProductDatabase to AppDatabase
- Renamed ProductDatabase to AppDatabase because it will include all DAOs, not just the Product one
- Removed unused appContext dependency from the AppNavigator
- Used in build.gradle the minSdkVersion defined in dependencies.gradle
- Removed dummy tests
- Refactored the return value of the db calls to emptyList instead of null because it never returns null and updated test
2021-02-05 12:08:33 +02:00
Cesar Valiente cd8636d91a Added github workflow to build and run tests on the app. 2021-02-03 12:57:32 +01:00
EUROPE\bimiron f9620b9c12 Added pre-populating the db, added one more db field and fixed test 2021-01-29 18:17:40 +02:00
EUROPE\bimiron d18e9bc7ce Added the presentation layer with one Activity and two Fragments, with databinding, navigation, a common viewModel and a basic test
(cherry picked from commit 7175bcabec7e941a8e992ff91149874c81db652f)
(cherry picked from commit c6fd2d2eedb6507e91abae158582c02f0fe7643f)
2021-01-29 12:15:08 +02:00
EUROPE\bimiron d5536ac547 Add domain layer with a GetProducts usecase, created di module, renamed the db model to ProductEntity and created a domain model called Product 2021-01-29 12:15:00 +02:00
EUROPE\bimiron 7e7567fd3f Add dependency injection layer through Hilt, the DatabaseModule in order to create the db and a custom hilt test runner 2021-01-29 12:11:11 +02:00
EUROPE\bimiron de1e71ba16 Add data layer with Room Database, using Coroutines suspend functions and a basic test 2021-01-28 19:35:54 +02:00
EUROPE\bimiron 97d96bffa0 Created empty Android project 2021-01-28 19:15:52 +02:00
Microsoft Open Source 7f144b9cf0 Initial SUPPORT.md commit 2021-01-27 09:33:13 -08:00
Microsoft Open Source b15f0f3112 Initial SECURITY.md commit 2021-01-27 09:33:12 -08:00
Microsoft Open Source 1f659360aa Initial README.md commit 2021-01-27 09:33:10 -08:00
Microsoft Open Source 68891f53ac Initial LICENSE commit 2021-01-27 09:33:09 -08:00
Microsoft Open Source 94c653a3d8 Initial CODE_OF_CONDUCT.md commit 2021-01-27 09:33:08 -08:00