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
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# ⚡ **Dcryptor** ⚡

###Images

![Screenshot_2021-07-15-17-03-32-579_com anshagrawal dcmlkit](https://user-images.githubusercontent.com/72314518/125781836-610d1d57-9455-4eed-96e5-76cf16311236.jpg)
![Screenshot_2021-07-15-17-05-52-505_com anshagrawal dcmlkit](https://user-images.githubusercontent.com/72314518/125781860-30e49b76-462f-4a32-8202-108bf74256c9.jpg)
![Screenshot_2021-07-15-17-03-38-114_com anshagrawal dcmlkit](https://user-images.githubusercontent.com/72314518/125781977-529be48d-0b18-4fdd-aadc-997870a1acda.jpg)
![Screenshot_2021-07-15-17-05-36-942_com anshagrawal dcmlkit](https://user-images.githubusercontent.com/72314518/125781985-4771204b-0caf-44bc-b781-a276f9c86ad2.jpg)
![Screenshot_2021-07-15-17-05-36-942_com anshagrawal dcmlkit](https://user-images.githubusercontent.com/72314518/125782000-05344339-37e4-4350-bb1a-0c33e153d388.jpg)
![Screenshot_2021-07-15-17-03-35-678_com anshagrawal dcmlkit](https://user-images.githubusercontent.com/72314518/125782064-0de4d5cc-bd63-46f2-a496-a20fcb6e0d7f.jpg)

## Images
<div style="display:flex;">
<img src = "https://user-images.githubusercontent.com/72314518/125781836-610d1d57-9455-4eed-96e5-76cf16311236.jpg" width = "180px" height = "320px">
<img src = "https://user-images.githubusercontent.com/72314518/125781977-529be48d-0b18-4fdd-aadc-997870a1acda.jpg" width = "180px" height = "320px">
<img src = "https://user-images.githubusercontent.com/72314518/125782064-0de4d5cc-bd63-46f2-a496-a20fcb6e0d7f.jpg" width = "180px" height = "320px">
<img src = "https://user-images.githubusercontent.com/72314518/125781985-4771204b-0caf-44bc-b781-a276f9c86ad2.jpg" width = "180px" height = "320px">
<img src = "https://user-images.githubusercontent.com/72314518/125781860-30e49b76-462f-4a32-8202-108bf74256c9.jpg" width = "180px" height = "320px">
</div>

## 🏁 Overview

Expand Down Expand Up @@ -54,4 +53,5 @@ __*You can also access your previously decrypted results and share them too!*__



###Images


Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.android.volley.toolbox.HttpHeaderParser;
import com.android.volley.toolbox.JsonObjectRequest;
import com.anshagrawal.dcmlkit.Adapters.CypherAdapter;
import com.anshagrawal.dcmlkit.BuildConfig;
import com.anshagrawal.dcmlkit.Models.CypherModel;
import com.anshagrawal.dcmlkit.MySingleton;
import com.anshagrawal.dcmlkit.R;
Expand Down Expand Up @@ -118,8 +119,8 @@ protected void onActivityResult(int requestCode, int resultCode, @Nullable Inten
//Api for fetching the data of a particular user
private void getTask() {
arrayList = new ArrayList<>();
String url = "https://acm-dcryptor.herokuapp.com/api/v2/history";
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {

JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, BuildConfig.HISTORYLINK, null, new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.android.volley.VolleyError;
import com.android.volley.toolbox.HttpHeaderParser;
import com.android.volley.toolbox.JsonObjectRequest;
import com.anshagrawal.dcmlkit.BuildConfig;
import com.anshagrawal.dcmlkit.MySingleton;
import com.anshagrawal.dcmlkit.UtilsService.SharedPreferencesClass;
import com.anshagrawal.dcmlkit.UtilsService.UtilService;
Expand Down Expand Up @@ -93,9 +94,9 @@ private void loginUser(View view) {
params.put("password", password);


String url = "https://acm-dcryptor.herokuapp.com/api/v1/login";

//Json Object and Post method
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, url, new JSONObject(params), new Response.Listener<JSONObject>() {
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, BuildConfig.LOGINLINK, new JSONObject(params), new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.android.volley.toolbox.HttpHeaderParser;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.Volley;
import com.anshagrawal.dcmlkit.BuildConfig;
import com.anshagrawal.dcmlkit.UtilsService.SharedPreferencesClass;
import com.anshagrawal.dcmlkit.UtilsService.UtilService;
import com.anshagrawal.dcmlkit.databinding.ActivitySignUpBinding;
Expand Down Expand Up @@ -98,9 +99,8 @@ private void registerUser() {
}


String url = "https://acm-dcryptor.herokuapp.com/api/v1/signup";

JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, url, params, new Response.Listener<JSONObject>() {
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, BuildConfig.SIGNUPLINK, params, new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
try {
Expand Down