Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

22 changes: 0 additions & 22 deletions .idea/gradle.xml

This file was deleted.

35 changes: 0 additions & 35 deletions .idea/jarRepositories.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore → Android-SourceCode/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
/build
/captures
.externalNativeBuild
'.idea'
'.idea'
.cxx
local.properties
78 changes: 78 additions & 0 deletions Android-SourceCode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# DrugStore

<img src="screen/drugstore.png"/>

DrugStore - Android app is the client side app for ordering medicines.
It is free and open source.
DrugStore for Android is a companion app for [Drugstore Web](https://drugstore.frontendsourcecode.com/).
DrugStore WebApp is for administration of orders on the admin(DrugStore) side.



## About

With this app, customers can order medicines from the pharmacy it is connected to.
The pharmacy has to host the companion administration web-app [Drugstore Web](https://drugstore.frontendsourcecode.com/).


## Admin Details

[Admin Panel](https://drugstore.frontendsourcecode.com/)

UserName: Admin

Password: Admin@2020

OTP For Android Verification: 000000

## Features
The android app lets you:
- Authenticate via phone and password.
- Super simple sign up process with auto verification of OTP.
- Completely ad-free.
- Material Design.
- Specify medicine names.
- Or take picture of prescription and order.
- Realtime update.
- Update minimum order value in realtime.
- Block specific users from ordering.
- Multiple order statuses.
- Push notification to notifiy order status change.



## Screenshots

| Splash | Login | Register |
| ------ | ---- | ------ |
|<img src="screen/1.png" width="230" height="500"/>|<img src="screen/login.png" width="230" height="500"/>|<img src="screen/register.png" width="230" height="500"/>|

| Home | Category | Detail |
| ------ | ---- | ------ |
|<img src="screen/2.png" width="230" height="500"/>|<img src="screen/5.png" width="230" height="500"/>|<img src="screen/4.png" width="230" height="500"/>|

| Products | Cart | Checkout |
| ------ | ---- | ------ |
|<img src="screen/6.png" width="230" height="500"/>|<img src="screen/7.png" width="230" height="500"/>|<img src="screen/9.png" width="230" height="500"/>|

| Order | Order Details | Prescription |
| ------ | ---- | ------ |
|<img src="screen/11.png" width="230" height="500"/>|<img src="screen/12.png" width="230" height="500"/>|<img src="screen/13.png" width="250" height="500"/>|


## Permissions

On Android versions prior to Android 6.0, pharmrmacy android requires the following permissions:
- Full Network Access.
- Read and write access to external storage - To access prescription images
- Camera access - To capture image of prescription
- Receive sms - To access OTP code and verify automatically

## Contributing
You are free to use and modify the app.


## License

This application is released under GNU GPLv3 (see [LICENSE](LICENSE)).
Some of the used libraries are released under different licenses.
1 change: 1 addition & 0 deletions Android-SourceCode/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
62 changes: 62 additions & 0 deletions Android-SourceCode/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
plugins {
id 'com.android.application'
id 'com.google.gms.google-services'

}

android {
compileSdk 32

defaultConfig {
applicationId "com.frontendsource.drugstore"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

dataBinding {
enabled = true
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'com.frontendsource.drugstore'

}



dependencies {

implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.squareup.retrofit2:retrofit:2.6.2'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
implementation 'com.google.android.play:core:1.10.3'
implementation 'com.github.IamIsPra:Sheriff:1.0.2'
implementation 'com.google.firebase:firebase-messaging:23.1.0'
implementation 'com.google.firebase:firebase-analytics:21.2.0'
implementation 'com.google.android.play:core:1.10.3'
implementation 'io.github.ParkSangGwon:tedimagepicker:1.2.8'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
Binary file added Android-SourceCode/app/debug/app-debug.aab
Binary file not shown.
47 changes: 47 additions & 0 deletions Android-SourceCode/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"project_info": {
"project_number": "668965673854",
"project_id": "drugstore-9b873",
"storage_bucket": "drugstore-9b873.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:668965673854:android:574de1cb1ea76aa84f712f",
"android_client_info": {
"package_name": "com.frontendsource.drugstore"
}
},
"oauth_client": [
{
"client_id": "668965673854-tgognipqa37skaj9ns9ivnnp70r4brav.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.frontendsource.drugstore",
"certificate_hash": "2c1e00f377a13de073b109062b69fe650cf3729f"
}
},
{
"client_id": "668965673854-q0ceredo4h3m7j7i10ff9p8b9q4vq51n.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBrdCh1jNwCBTbRd0iWJnOfiItImZ8h23E"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "668965673854-q0ceredo4h3m7j7i10ff9p8b9q4vq51n.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
Binary file added Android-SourceCode/app/release/app-release.aab
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.frontendsource.drugstore;

import android.content.Context;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.frontendsource.drugstore", appContext.getPackageName());
}
}
Loading