Skip to content

Commit

Permalink
Merge pull request #24 from nayram/master
Browse files Browse the repository at this point in the history
Token not available (dev branch)
  • Loading branch information
charlesagyemang authored Jan 23, 2018
2 parents 69a7347 + 90f8e9a commit d1327f1
Show file tree
Hide file tree
Showing 7 changed files with 200 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
![alt text](https://img.shields.io/badge/dv--android--sdk--1.0-official-blue.svg)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/7b3ca66eec8045158528d57a29ed37ad)](https://www.codacy.com/app/charlesagyemang/dv-android-sdk-1.0?utm_source=github.com&utm_medium=referral&utm_content=DevlessTeam/dv-android-sdk-1.0&utm_campaign=Badge_Grade)

[![](https://jitpack.io/v/DevlessTeam/dv-android-sdk-1.0.svg)](https://jitpack.io/#DevlessTeam/dv-android-sdk-1.0/1.0)
[![](https://jitpack.io/v/DevlessTeam/dv-android-sdk-1.0.svg)](https://jitpack.io/#DevlessTeam/dv-android-sdk-1.0/1.0.1)

# Devless_Android_SDK(dv-android-sdk-1.0)

Expand All @@ -23,7 +22,7 @@ Add the dependency to your build.gradle(Module: app)
```Java
dependencies {
...
compile 'com.github.DevlessTeam:dv-android-sdk-1.0:1.0'
compile 'com.github.DevlessTeam:dv-android-sdk-1.0:1.0.1'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);

//Create a shared preference like this
SharedPreferences sp = getSharedPreferences(getPackageName(), Context.MODE_PRIVATE);
// SharedPreferences sp = getSharedPreferences(getPackageName(), Context.MODE_PRIVATE);

//Now go ahead and set devless up
String appUrl = "http://buildgallery.herokuapp.com"; // remember no slash after the com just the absolute URL
Expand All @@ -45,7 +45,9 @@ protected void onCreate(Bundle savedInstanceState) {
setUpDevlessUserToken Right under the instance and pass in the
name of your shared preference variable. Im my case I called my shared preference *sp*
*/
devless.addUserToken(sp);
// devless.addUserToken(sp);

//Log.e("token", devless.getDevlessUserToken());


// Sign Up
Expand All @@ -64,19 +66,41 @@ public void onSignUpFailed(ErrorMessage errorMessage) {
*/


/*
devless.loginWithEmailAndPassword("[email protected]", "password", sp, new LoginResponse() {

// devless.loginWithEmailAndPassword("[email protected]", "password", new LoginResponse() {
// @Override
// public void onLogInSuccess(ResponsePayload response) {
// Log.e("==Success==", response.toString());
// }
//
// @Override
// public void onLogInFailed(ErrorMessage errorMessage) {
// Log.e("==Failure==", errorMessage.toString());
// }
// });

devless.getData("gitmo", "test_table", new GetDataResponse() {
@Override
public void onLogInSuccess(ResponsePayload response) {
Log.e("==Success==", response.toString());
public void onSuccess(ResponsePayload response) {
Log.e("Success", response.toString());
}

@Override
public void onLogInFailed(ErrorMessage errorMessage) {
Log.e("==Failure==", errorMessage.toString());
public void onFailed(ErrorMessage errorMessage) {
Log.e("Failure", errorMessage.toString());
}

@Override
public void userNotAuthenticated(ErrorMessage message) {
Log.e("UserNotAuth", message.toString());
}

@Override
public void fullRequestResponse(ResponsePayload response) {
Log.e("Full", response.toString());
}
});
*/




Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
public interface RequestResponse {
void onSuccess(ResponsePayload response);
void userNotAuthenticated(ErrorMessage message);
void fullRequestResponse(ResponsePayload response);
// void fullRequestResponse(ResponsePayload response);
}
Loading

0 comments on commit d1327f1

Please sign in to comment.