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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions Qwerty/DoctorAppointment-master/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"

defaultConfig {
applicationId "com.blogspot.priyabratanaskar.firebaselogin"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation 'com.google.firebase:firebase-auth:19.3.2'

//Dependency for Firebase realtime database
implementation 'com.google.firebase:firebase-database:19.3.1'

//Dependency for FirebaseUI for firebase realtime database
implementation 'com.firebaseui:firebase-ui-database:6.2.1'

//adding glide library
implementation 'com.github.bumptech.glide:glide:3.7.0'

implementation 'com.google.firebase:firebase-storage:19.1.1'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.material:material:1.2.0'
}
40 changes: 40 additions & 0 deletions Qwerty/DoctorAppointment-master/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"project_info": {
"project_number": "414557573944",
"firebase_url": "https://fir-login-priyabrata.firebaseio.com",
"project_id": "fir-login-priyabrata",
"storage_bucket": "fir-login-priyabrata.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:414557573944:android:858bda02d0b093be5667cd",
"android_client_info": {
"package_name": "com.blogspot.priyabratanaskar.firebaselogin"
}
},
"oauth_client": [
{
"client_id": "414557573944-t6i0641arg6hkb19i5f32vp6b4huonvu.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBGLaVrO1Bsra_DundvB9nUgumQGyNxPxQ"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "414557573944-t6i0641arg6hkb19i5f32vp6b4huonvu.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
21 changes: 21 additions & 0 deletions Qwerty/DoctorAppointment-master/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.blogspot.priyabratanaskar.firebaselogin;

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.blogspot.priyabratanaskar.firebaselogin", appContext.getPackageName());
}
}
28 changes: 28 additions & 0 deletions Qwerty/DoctorAppointment-master/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.blogspot.priyabratanaskar.firebaselogin">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
android:allowBackup="true"
android:icon="@drawable/logo"
android:label="@string/dr_app_name"
android:roundIcon="@drawable/logo"
android:supportsRtl="true"
android:theme="@style/Theme.Dr">
<activity android:name=".DoctorDetailActivity"></activity>
<activity android:name=".ProfileActivity" />
<activity android:name=".SignUpActivity" />
<activity android:name=".MainActivity" />
<activity android:name=".LoginActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.blogspot.priyabratanaskar.firebaselogin;

/**
* Created by Priyabrata Naskar on 06-04-2021.
*/
public class Constants {
public static final String doctorName = "name";
public static String imageResource = "image";
public static String doctorExperience = "experience";
public static String doctorQualification = "qualification";
public static String tag ="tag";
public static String position ="position";
public static String fees ="fees";
public static String about ="about";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
package com.blogspot.priyabratanaskar.firebaselogin;

public class Doctor {
//Member variables representing doctor detail
private String imageResource;
private String doctorName;
private String doctorExperience;
private String doctorQualification;
private String tag;
private String about;
private String fees;
public Doctor() {
//Required Empty Constructor for Firebase UI
}

// public Doctor(int imageResource, String doctorName, String doctorExperience, String doctorQualification) {
// this.imageResource = imageResource;
// this.doctorName = doctorName;
// this.doctorExperience = doctorExperience;
// this.doctorQualification = doctorQualification;
// }

public String getDoctorName() {
return doctorName;
}

public String getDoctorExperience() {
return doctorExperience;
}

public String getDoctorQualification() {
return doctorQualification;
}

public String getImageResource() {
return imageResource;
}

public String getTag(){ return tag;}

public String getAbout() {
return about;
}

public String getFees() {
return fees;
}

public void setImageResource(String imageResource) {
this.imageResource = imageResource;
}

public void setDoctorName(String doctorName) {
this.doctorName = doctorName;
}

public void setDoctorExperience(String doctorExperience) {
this.doctorExperience = doctorExperience;
}

public void setDoctorQualification(String doctorQualification) {
this.doctorQualification = doctorQualification;
}
public void setTag(String tag){
this.tag = tag;
}

public void setAbout(String about) {
this.about = about;
}

public void setFees(String fees) {
this.fees = fees;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
package com.blogspot.priyabratanaskar.firebaselogin;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import java.util.ArrayList;

class DoctorAdapter extends RecyclerView.Adapter<DoctorAdapter.ViewHolder> {
private ArrayList<Doctor> mDoctorData;
private Context mContext;

/**
* Constructor that passes doctor data to the context
* @param mDoctorData
* @param mContext
*/
public DoctorAdapter(ArrayList<Doctor> mDoctorData, Context mContext) {
this.mDoctorData = mDoctorData;
this.mContext = mContext;
}

@NonNull
@Override
public DoctorAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return new ViewHolder(LayoutInflater.from(mContext).inflate(R.layout.doctor_list,parent,false));
}

/**
* Bind data to the view holder
* @param holder
* @param position
*/
@Override
public void onBindViewHolder(@NonNull DoctorAdapter.ViewHolder holder, int position) {
Doctor currentDoctor = mDoctorData.get(position);
holder.bindTo(currentDoctor);
}

@Override
public int getItemCount() {
return mDoctorData.size();
}
class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener{

private TextView doctorNameText;
private TextView doctorQualificationText;
private TextView doctorExperienceText;
private ImageView doctorImage;

ViewHolder(@NonNull View itemView) {
super(itemView);
doctorImage = itemView.findViewById(R.id.doctor_image);
doctorNameText = itemView.findViewById(R.id.doctor_name);
doctorQualificationText = itemView.findViewById(R.id.doctor_qualification);
doctorExperienceText = itemView.findViewById(R.id.doctor_experience);

//set onClickListener
itemView.setOnClickListener(this);
}

@Override
public void onClick(View v) {
Doctor currentDoctor = mDoctorData.get(getAdapterPosition());

//opening doctor detail activity
}

void bindTo(Doctor currentDoctor) {
doctorNameText.setText(currentDoctor.getDoctorName());
doctorQualificationText.setText(currentDoctor.getDoctorQualification());
doctorExperienceText.setText(currentDoctor.getDoctorExperience());

//Load doctor image
}
}
}
Loading