From 0ee174247d2783a227a7f46c05cf2c7841c5b061 Mon Sep 17 00:00:00 2001 From: Amartya Mondal Date: Fri, 21 Jun 2019 11:13:33 +0530 Subject: [PATCH] Release of Version 1.1 (#240) * Change profile photo update progress bar * Added Label for Edittext * added margin * Cache skip in Glide * Edit Profile back button handled * feat: Implement group notificatio * feat: Implement change password api * Added Utils class * reformat lines spacing * typo fix * Removed unnecessary toast * feat: Implement resend OTP API * feat: Refactor logout, unsubscribe notification * reformat spacing * Added back button in otp activity * Removed back button in Login page * feat: Handle offline mode in login signup * Handled empty edittext * fix: Display employment type * changed some fields * View fullscreen gallery image * Add signup error dialog * empty edittext * Fixed Nav issue on back pressed * Handle back from profile page * Add scrollview * Handled Orientation Change in Fragments * Updated Retrofit link (#202) * Added Videos Fragment (#203) * feat: Implement forgot password feature (#206) * Enhance UI of event details page (#208) * Visibility in View Profile incase of empty fields (#209) * feat: Add videos of saar (#211) * remove toast (#215) * Added Square Logo (#216) * fix: skip press issue in login page (#218) * Enhance ui of video fragment (#219) * Revert "fix: skip press issue in login page (#218)" (#220) This reverts commit 88f8666eb385d8f84cb011525d1c89f3b6ab35da. * fix: Few UI improvements (#222) * UI fix in Change password * Improved login UI * Otp pin (#223) * Clear otp pinview * Fix errors * remove log messages (#225) * remove log statements * fix team fragment * Update changes * Update changes * Mainactivity as opening screen (#230) * patch: CircleImageView issue (#231) * Encoded Bitmap * Improved Homepage and nav header * fix: Check Permission properly (#227) * Check Permission properly * recheck permission * feat: Implement skip login feature (#233) * Updated readme * fix: backbutton in login signup page (#235) * fix: Few Improvements (#237) * Fixed issue on Home Fragment * Improvement in Login Page * Deselected Selected item in NavDrawer * chore: Update readme (#238) * Added screenshots in Readme * Added Libraries list * Upgrade the version release in the app (#239) * fix: backbutton in login signup page * chnage version --- README.md | 44 ++++++++++++++++--- app/build.gradle | 2 +- .../Login_SignUp/LoginSignupActivity.java | 4 ++ .../java/com/example/saar/MainActivity.java | 5 ++- .../main/res/menu/activity_main_drawer.xml | 2 +- app/src/main/res/values/dimens.xml | 4 +- 6 files changed, 49 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1207e4d..cba802d 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,54 @@ # SAAR-Android-Client + Android app for [Students' Association for Alumni Relations](https://saar.iitp.ac.in/)-SAAR, IIT Patna ## Overview + The SAAR app is an android application to bring together all alumni and former faculties of IIT Patna to share their experiences with each other and with the current students and faculties. The app will maintain and update the database of all alumni of the college. SAAR aims to provide guidance to the present students in their endeavour for better employment and higher studies, improve campus placements with the help of the alumni working in reputed industries in India and abroad, organise seminars, debates, workshops as well as cultural and social welfare programs and publish periodical magazines or bulletins with valuable information useful to the members and students. The SAAR app would ease the process of collecting donations for alumni affairs and it would also send notifications for varios events. +## Screenshots + + + + + + + + + + + + + + +
+ ## TODO -- [ ] Create the basic UI of the app -- [ ] Build a perfect login and signup system -- [ ] Create a well maintained alumni database -- [ ] Send notifications for various events -- [ ] A working payment gateway to collect donations + +- [x] Create the basic UI of the app +- [x] Build a perfect login and signup system +- [x] Create a well maintained alumni database +- [x] Send notifications for various events ## Built With + - Client side - Java - - Room Persistence Library + - Firebase + - Retrofit + - Gson + - Timeline View + - Volley + - Glide + - CircleImageView + - Timber + - Pin View + - Photo View - Server side - PHP ## Installing + Clone the repository using the following command: `$ git clone https://github.com/dsciitpatna/SAAR-Android-Client.git` @@ -26,9 +56,11 @@ Clone the repository using the following command: Then open in Android Studio. ## Contributing + Please read [CONTRIBUTING.md](https://github.com/dsciitpatna/SAAR-Android-Client/blob/development/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us. ## Branch Policy + We have the following branches: - **master** The master branch contains all the stable and bug-free working code. The development branch once complete will be merged with this branch. diff --git a/app/build.gradle b/app/build.gradle index ff84a83..760029e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,7 +8,7 @@ android { minSdkVersion 21 targetSdkVersion 28 versionCode 1 - versionName "1.0" + versionName "1.1" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/main/java/com/example/saar/Login_SignUp/LoginSignupActivity.java b/app/src/main/java/com/example/saar/Login_SignUp/LoginSignupActivity.java index ec2cded..587a623 100644 --- a/app/src/main/java/com/example/saar/Login_SignUp/LoginSignupActivity.java +++ b/app/src/main/java/com/example/saar/Login_SignUp/LoginSignupActivity.java @@ -18,11 +18,13 @@ public class LoginSignupActivity extends AppCompatActivity implements BottomNavigationView.OnNavigationItemSelectedListener { SharedPreferences preferences; + SharedPreferences.Editor sharedPreferenceEditor; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); preferences = PreferenceManager.getDefaultSharedPreferences(this); + sharedPreferenceEditor = preferences.edit(); if (preferences.getBoolean(Constant.LOGIN_STATUS, false)) { //user logged in Intent intent = new Intent(this, MainActivity.class); @@ -75,6 +77,8 @@ private boolean loadFragment(Fragment fragment) { @Override public void onBackPressed() { super.onBackPressed(); + sharedPreferenceEditor.putBoolean(Constant.SKIP_LOGIN, true); + sharedPreferenceEditor.apply(); Intent intent = new Intent(getApplicationContext(), MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); diff --git a/app/src/main/java/com/example/saar/MainActivity.java b/app/src/main/java/com/example/saar/MainActivity.java index 1f07108..f2815ce 100644 --- a/app/src/main/java/com/example/saar/MainActivity.java +++ b/app/src/main/java/com/example/saar/MainActivity.java @@ -61,7 +61,7 @@ protected void onCreate(Bundle savedInstanceState) { preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); - if(!preferences.getBoolean(Constant.LOGIN_STATUS,false) && !preferences.getBoolean(Constant.SKIP_LOGIN,false)){ + if (!preferences.getBoolean(Constant.LOGIN_STATUS, false) && !preferences.getBoolean(Constant.SKIP_LOGIN, false)) { startActivity(new Intent(this, LoginSignupActivity.class)); } @@ -140,10 +140,11 @@ private void showHomeFragment() { @Override public void onBackPressed() { + Fragment currentFragment = getSupportFragmentManager().findFragmentById(R.id.content_frame); DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); if (drawer.isDrawerOpen(GravityCompat.START)) { drawer.closeDrawer(GravityCompat.START); - } else if (fragment instanceof HomeFragment) { + } else if (currentFragment instanceof HomeFragment) { super.onBackPressed(); } else { showHomeFragment(); diff --git a/app/src/main/res/menu/activity_main_drawer.xml b/app/src/main/res/menu/activity_main_drawer.xml index 31ad412..aaa842e 100644 --- a/app/src/main/res/menu/activity_main_drawer.xml +++ b/app/src/main/res/menu/activity_main_drawer.xml @@ -3,7 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" tools:showIn="navigation_view"> - + 56dp - 250dp + 200dp 10dp 10dp 20dp @@ -32,7 +32,7 @@ 5dp 10dp 30dp - 128dp + 100dp 32dp