Skip to content

Commit

Permalink
Combined all the presenters, views, activities into one.
Browse files Browse the repository at this point in the history
  • Loading branch information
vjs3 committed Jul 5, 2016
1 parent ca079b5 commit 36c51e1
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 38 deletions.
6 changes: 3 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
android:supportsRtl="true"
android:theme="@style/MaterialAppTheme">
<activity
android:name=".login.LoginActivity"
android:name=".ui.activities.LoginActivity"
android:label="@string/login"
android:screenOrientation="portrait">
<intent-filter>
Expand All @@ -20,11 +20,11 @@
</intent-filter>
</activity>
<activity
android:name=".home.HomeActivity"
android:name=".ui.activities.HomeActivity"
android:label="@string/home"
android:screenOrientation="portrait" />
<activity
android:name=".home.ClientAccountsActivity"
android:name=".ui.activities.ClientAccountsActivity"
android:label="@string/client_accounts"
android:screenOrientation="portrait" />
</application>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.presenters;

import android.util.Log;

import org.mifos.selfserviceapp.R;
import org.mifos.selfserviceapp.api.DataManager;
import org.mifos.selfserviceapp.data.Client;
import org.mifos.selfserviceapp.presenters.BasePresenter;
import org.mifos.selfserviceapp.ui.views.ClientListMvpView;

import retrofit2.Call;
import retrofit2.Callback;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.presenters;

import android.util.Log;

import org.mifos.selfserviceapp.R;
import org.mifos.selfserviceapp.api.DataManager;
import org.mifos.selfserviceapp.data.Client;
import org.mifos.selfserviceapp.data.accounts.LoanAccount;
import org.mifos.selfserviceapp.data.accounts.SavingAccount;
import org.mifos.selfserviceapp.presenters.BasePresenter;
import org.mifos.selfserviceapp.ui.views.LoanAccountsListView;

import retrofit2.Call;
import retrofit2.Callback;
Expand All @@ -21,7 +19,7 @@
public class LoanAccountsListPresenter extends BasePresenter<LoanAccountsListView>{
DataManager mDataManager;

protected LoanAccountsListPresenter(DataManager dataManager) {
public LoanAccountsListPresenter(DataManager dataManager) {
mDataManager = dataManager;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.mifos.selfserviceapp.login;
package org.mifos.selfserviceapp.presenters;

import android.util.Log;

import org.mifos.selfserviceapp.R;
import org.mifos.selfserviceapp.data.User;
import org.mifos.selfserviceapp.api.DataManager;
import org.mifos.selfserviceapp.presenters.BasePresenter;
import org.mifos.selfserviceapp.ui.views.LoginView;
import org.mifos.selfserviceapp.utils.PrefManager;

import retrofit2.Call;
Expand All @@ -21,7 +21,7 @@ public class LoginPresenter extends BasePresenter<LoginView> {
DataManager mDataManager;
PrefManager prefManager;

protected LoginPresenter(DataManager dataManager) {
public LoginPresenter(DataManager dataManager) {
mDataManager = dataManager;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.presenters;

import android.util.Log;

import org.mifos.selfserviceapp.R;
import org.mifos.selfserviceapp.api.DataManager;
import org.mifos.selfserviceapp.data.Client;
import org.mifos.selfserviceapp.data.accounts.SavingAccount;
import org.mifos.selfserviceapp.presenters.BasePresenter;
import org.mifos.selfserviceapp.ui.views.SavingAccountsListView;

import retrofit2.Call;
import retrofit2.Callback;
Expand All @@ -19,7 +18,7 @@
public class SavingAccountsListPresenter extends BasePresenter<SavingAccountsListView>{
DataManager mDataManager;

protected SavingAccountsListPresenter(DataManager dataManager) {
public SavingAccountsListPresenter(DataManager dataManager) {
mDataManager = dataManager;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.ui.activities;

import android.os.Bundle;
import android.support.design.widget.TabLayout;
Expand All @@ -7,6 +7,8 @@

import org.mifos.selfserviceapp.R;
import org.mifos.selfserviceapp.adapters.ViewPagerAdapter;
import org.mifos.selfserviceapp.ui.fragments.LoanAccountsListFragment;
import org.mifos.selfserviceapp.ui.fragments.SavingAccountsListFragment;
import org.mifos.selfserviceapp.utils.Constants;

import butterknife.BindView;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.ui.activities;

import android.content.Intent;
import android.os.Bundle;
Expand All @@ -19,6 +19,7 @@
import org.mifos.selfserviceapp.api.DataManager;
import org.mifos.selfserviceapp.data.Client;
import org.mifos.selfserviceapp.utils.Constants;
import org.mifos.selfserviceapp.ui.fragments.ClientListFragment;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
package org.mifos.selfserviceapp.login;
package org.mifos.selfserviceapp.ui.activities;

import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;

import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.AppCompatButton;
import android.widget.EditText;
import android.widget.Toast;

import org.mifos.selfserviceapp.data.User;
import org.mifos.selfserviceapp.R;
import org.mifos.selfserviceapp.api.BaseApiManager;
import org.mifos.selfserviceapp.api.DataManager;
import org.mifos.selfserviceapp.home.HomeActivity;
import org.mifos.selfserviceapp.presenters.LoginPresenter;
import org.mifos.selfserviceapp.ui.views.LoginView;
import org.mifos.selfserviceapp.utils.PrefManager;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import retrofit2.Response;

/**
* @author Vishwajeet
* @since 05/06/16
*/

public class LoginActivity extends AppCompatActivity implements LoginView{
public class LoginActivity extends AppCompatActivity implements LoginView {

private LoginPresenter mLoginPresenter;
private DataManager mDataManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.ui.fragments;

import android.app.ProgressDialog;
import android.content.Intent;
Expand All @@ -17,6 +17,9 @@
import org.mifos.selfserviceapp.api.BaseApiManager;
import org.mifos.selfserviceapp.api.DataManager;
import org.mifos.selfserviceapp.data.Client;
import org.mifos.selfserviceapp.presenters.ClientListPresenter;
import org.mifos.selfserviceapp.ui.views.ClientListMvpView;
import org.mifos.selfserviceapp.ui.activities.ClientAccountsActivity;
import org.mifos.selfserviceapp.utils.Constants;
import org.mifos.selfserviceapp.utils.RecyclerItemClickListener;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.ui.fragments;

import android.app.ProgressDialog;
import android.os.Bundle;
Expand All @@ -12,12 +12,11 @@

import org.mifos.selfserviceapp.R;
import org.mifos.selfserviceapp.adapters.LoanAccountsListAdapter;
import org.mifos.selfserviceapp.adapters.SavingAccountsListAdapter;
import org.mifos.selfserviceapp.api.BaseApiManager;
import org.mifos.selfserviceapp.api.DataManager;
import org.mifos.selfserviceapp.data.Client;
import org.mifos.selfserviceapp.data.accounts.LoanAccount;
import org.mifos.selfserviceapp.data.accounts.SavingAccount;
import org.mifos.selfserviceapp.presenters.LoanAccountsListPresenter;
import org.mifos.selfserviceapp.ui.views.LoanAccountsListView;
import org.mifos.selfserviceapp.utils.Constants;
import org.mifos.selfserviceapp.utils.RecyclerItemClickListener;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.ui.fragments;

import android.app.ProgressDialog;
import android.os.Bundle;
Expand All @@ -14,8 +14,9 @@
import org.mifos.selfserviceapp.adapters.SavingAccountsListAdapter;
import org.mifos.selfserviceapp.api.BaseApiManager;
import org.mifos.selfserviceapp.api.DataManager;
import org.mifos.selfserviceapp.data.Client;
import org.mifos.selfserviceapp.data.accounts.SavingAccount;
import org.mifos.selfserviceapp.presenters.SavingAccountsListPresenter;
import org.mifos.selfserviceapp.ui.views.SavingAccountsListView;
import org.mifos.selfserviceapp.utils.Constants;
import org.mifos.selfserviceapp.utils.RecyclerItemClickListener;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.ui.views;

import org.mifos.selfserviceapp.data.Client;
import org.mifos.selfserviceapp.ui.views.base.MVPView;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.ui.views;

import org.mifos.selfserviceapp.data.accounts.LoanAccount;
import org.mifos.selfserviceapp.ui.views.base.MVPView;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package org.mifos.selfserviceapp.login;
package org.mifos.selfserviceapp.ui.views;

import org.mifos.selfserviceapp.data.User;
import org.mifos.selfserviceapp.ui.views.base.MVPView;

import retrofit2.Response;

/**
* @author Vishwajeet
* @since 05/06/16
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.selfserviceapp.home;
package org.mifos.selfserviceapp.ui.views;

import org.mifos.selfserviceapp.data.accounts.SavingAccount;
import org.mifos.selfserviceapp.ui.views.base.MVPView;
Expand Down

0 comments on commit 36c51e1

Please sign in to comment.