- About
- Getting started
- Running
- Showcasing
- Notes about the code
- File structure
- Unit tests
- Functional documentation
- See also
Oud's android app. Oud is a mimic of spotify with all its features and functionalities.
- Install Android Studio.
- Import project & let gradle do its magic!!
- Install node.js.
- Install json-server.
npm install -g json-server
or head to their github page for more detailes. https://github.com/typicode/json-server - Change the local ip address of your machine(labtop/pc) to
192.168.1.198
. Or you can alternatively openConstants
class and change a constat calledYAMANI_MOCK_BASE_URL
to match your local ip. Make sure to also change the port number in this constant if you changed the default one when running the server. - Open
json-server
folder in the terminal & copy paste the command found interminal_command.txt
file (exists injson-server
folder) in your terminal window to run the server.
- make sure that private networks is allowed. (This depends on your os)
- Simply change a constant named
MOCK
(insideConstants
class) tofalse
. - Currently shutdown unfortunately.
Login/signup navigation | Login | Home |
---|---|---|
Playlist | Artist | Library |
---|---|---|
Player | Settings | Premium |
---|---|---|
connectionaware
is a package containing a very important set of class that evey fragment/activity use.- When they sense a failed server connection, they prompt the user with a message saying
You are offline
and a refresh button. - All of this happens consistently across the entire app whitout any intervention from any fragement.
- Fragments must inherit from
ConnectionAwareFragment
. - Activities must implement
ConnectionStatusListener
. - Every server call must be done using the
FailureSuccessHandledCallback
class.
- When they sense a failed server connection, they prompt the user with a message saying
.
├── app
│ └── src
│ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── oud
│ │ │ ├── api
│ │ │ ├── artist
│ │ │ │ └── fragments
│ │ │ │ ├── albums
│ │ │ │ ├── bio
│ │ │ │ ├── home
│ │ │ │ └── settings
│ │ │ ├── authentication
│ │ │ ├── connectionaware
│ │ │ ├── dummy
│ │ │ └── user
│ │ │ ├── fragments
│ │ │ │ ├── artist
│ │ │ │ ├── home
│ │ │ │ │ └── nestedrecyclerview
│ │ │ │ │ ├── adapters
│ │ │ │ │ └── decorations
│ │ │ │ ├── library
│ │ │ │ │ ├── artists
│ │ │ │ │ ├── likedtracks
│ │ │ │ │ ├── notifications
│ │ │ │ │ ├── playlists
│ │ │ │ │ └── savedalbums
│ │ │ │ ├── playlist
│ │ │ │ ├── premium
│ │ │ │ │ ├── database
│ │ │ │ │ ├── offlinetracks
│ │ │ │ │ └── redeemsubscribe
│ │ │ │ ├── profile
│ │ │ │ ├── search
│ │ │ │ └── settings
│ │ │ ├── player
│ │ │ │ └── smallplayer
│ │ │ └── ui
│ │ │ └── main
│ │ └── res
│ │ ├── anim
│ │ ├── layout
│ │ ├── menu
│ │ ├── navigation
│ │ └── values
│ └── test
├── json-server
│ ├── db.json
│ └── routes.json
└── tryingstuff
└── src
└── main
└── java
└── com
└── example
└── tryingstuff
└── OudApiJsonGenerator.java
- Write click on
oud.example.oud (test)
and chooseRun tests in Oud
orRun test in Oud with coverage
.
In Android Studio Tools -> Generate JavaDoc...