├── app ├── .gitignore ├── src │ ├── main │ │ ├── ic_launcher-web.png │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── slider1.png │ │ │ │ ├── slider2.png │ │ │ │ ├── slider3.png │ │ │ │ ├── slider_background.png │ │ │ │ ├── drawable-ldpi │ │ │ │ │ └── Path 1.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── Path 1.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── Path 1.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ └── Path 1.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ │ └── Path 1.png │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── slider_background.png │ │ │ │ ├── ic_decrease_white_24dp.xml │ │ │ │ ├── ic_increase_white_24dp.xml │ │ │ │ ├── ic_add_black_24dp.xml │ │ │ │ ├── ic_home_black_24dp.xml │ │ │ │ ├── ic_logs_black_24dp.xml │ │ │ │ ├── gradient_rounded_button.xml │ │ │ │ ├── ic_request_black_24dp.xml │ │ │ │ ├── ic_logout_white_24dp.xml │ │ │ │ ├── ic_search_white_24dp.xml │ │ │ │ ├── ic_search_black_24dp.xml │ │ │ │ ├── ic_shopping_basket_black_24dp.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── menu │ │ │ │ ├── logout_menu.xml │ │ │ │ ├── components_search.xml │ │ │ │ ├── admin_bottom_navigation.xml │ │ │ │ └── user_bottom_navigation.xml │ │ │ ├── layout │ │ │ │ ├── activity_user__main.xml │ │ │ │ ├── user_home_fragment.xml │ │ │ │ ├── user_search_fragment.xml │ │ │ │ ├── user_logs_fragment.xml │ │ │ │ ├── admin_home_fragment.xml │ │ │ │ ├── admin_requests_fragment.xml │ │ │ │ ├── admin_logs_fragment.xml │ │ │ │ ├── activity_admin__main.xml │ │ │ │ ├── slider_layout.xml │ │ │ │ ├── admin_home_recycler_card.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── add_component_bottom_fragment.xml │ │ │ │ ├── user_return_dialog.xml │ │ │ │ ├── admin_logs_recycler_card.xml │ │ │ │ ├── admin_request_card.xml │ │ │ │ ├── user_search_recycler_card.xml │ │ │ │ ├── user_component_request_dialog.xml │ │ │ │ ├── admin_component_dialog.xml │ │ │ │ └── admin_requests_dialog.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── inventory │ │ │ │ ├── Models │ │ │ │ ├── LoginModel.java │ │ │ │ ├── ComponentModel.java │ │ │ │ ├── LogsModel.java │ │ │ │ ├── RequestModel.java │ │ │ │ └── FinalRequestModel.java │ │ │ │ ├── UserClass │ │ │ │ ├── User_Main.java │ │ │ │ ├── UserHomeFragment.java │ │ │ │ ├── UserLogsFragment.java │ │ │ │ └── UserSearchFragment.java │ │ │ │ ├── Adapter │ │ │ │ ├── Slider_Adapter.java │ │ │ │ ├── Admin_Logs_Adapter.java │ │ │ │ ├── Admin_Home_Adapter.java │ │ │ │ ├── User_Home_Adapter.java │ │ │ │ ├── User_Search_Adapter.java │ │ │ │ └── Admin_Requests_Adapter.java │ │ │ │ ├── AdminClass │ │ │ │ ├── Admin_Main.java │ │ │ │ ├── AdminLogsFragments.java │ │ │ │ ├── AdminRequestsFragment.java │ │ │ │ ├── AddComponentBottomSheet.java │ │ │ │ └── AdminHomeFragment.java │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── inventory │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── inventory │ │ └── ExampleInstrumentedTest.java ├── credentials.json ├── proguard-rules.pro ├── google-services.json └── build.gradle ├── settings.gradle ├── README.md ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── encodings.xml ├── vcs.xml ├── misc.xml ├── runConfigurations.xml └── gradle.xml ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SIESGST_Inventory 2 | An App To Maintain Inventory Items 3 | -------------------------------------------------------------------------------- /app/src/main/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/ic_launcher-web.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/slider1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/slider1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/slider2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/slider2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/slider3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/slider3.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/slider_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/slider_background.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldpi/Path 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/drawable-ldpi/Path 1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-mdpi/Path 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/drawable-mdpi/Path 1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xhdpi/Path 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/drawable-xhdpi/Path 1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxhdpi/Path 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/drawable-xxhdpi/Path 1.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxxhdpi/Path 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/drawable-xxxhdpi/Path 1.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-hdpi/slider_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kriticalflare/SIESGST_Inventory/master/app/src/main/res/drawable/drawable-hdpi/slider_background.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Jun 29 14:59:19 IST 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #8a00d4 4 | #d527b7 5 | #ff82c3 6 | #ffc46b 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/credentials.json: -------------------------------------------------------------------------------- 1 | {"web":{"client_id":"215751279497-81en9eht5q29e7bqj88v2qpljeou66iu.apps.googleusercontent.com","project_id":"siesgst-inventory","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"A1hb5b6xbFKKSz5kN3McyABp"}} -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_decrease_white_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_increase_white_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_add_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_home_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Inventory 3 | 4 | Equipments 5 | Chassis 6 | Motors 7 | ICs 8 | Modules 9 | Wires 10 | Components 11 | Others 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/menu/logout_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_logs_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/gradient_rounded_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/inventory/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_request_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_logout_white_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/components_search.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_search_white_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_search_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/menu/admin_bottom_navigation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 14 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/menu/user_bottom_navigation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 14 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/inventory/Models/LoginModel.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory.Models; 2 | 3 | public class LoginModel { 4 | public LoginModel(String email, String status) { 5 | this.email = email; 6 | this.status = status; 7 | } 8 | public LoginModel(){} 9 | 10 | String email; 11 | 12 | public String getEmail() { 13 | return email; 14 | } 15 | 16 | public void setEmail(String email) { 17 | this.email = email; 18 | } 19 | 20 | public String getStatus() { 21 | return status; 22 | } 23 | 24 | public void setStatus(String status) { 25 | this.status = status; 26 | } 27 | 28 | String status; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_shopping_basket_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | android.enableJetifier=true 10 | android.useAndroidX=true 11 | org.gradle.jvmargs=-Xmx1536m 12 | # When configured, Gradle will run in incubating parallel mode. 13 | # This option should only be used with decoupled projects. More details, visit 14 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 15 | # org.gradle.parallel=true 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/inventory/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory; 2 | 3 | import android.content.Context; 4 | import androidx.test.InstrumentationRegistry; 5 | import androidx.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.example.inventory", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/inventory/Models/ComponentModel.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory.Models; 2 | 3 | public class ComponentModel { 4 | public ComponentModel(){} 5 | 6 | public ComponentModel(String component, String adder, int count) { 7 | this.component = component; 8 | this.adder = adder; 9 | this.count = count; 10 | } 11 | 12 | public String getComponent() { 13 | return component; 14 | } 15 | 16 | public void setComponent(String component) { 17 | this.component = component; 18 | } 19 | 20 | public String getAdder() { 21 | return adder; 22 | } 23 | 24 | public void setAdder(String adder) { 25 | this.adder = adder; 26 | } 27 | 28 | public int getCount() { 29 | return count; 30 | } 31 | 32 | public void setCount(int count) { 33 | this.count = count; 34 | } 35 | 36 | String component,adder; 37 | int count; 38 | } 39 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_user__main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | 17 | 18 | 19 | 20 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/layout/user_home_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 19 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/user_search_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 18 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/user_logs_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 19 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/layout/admin_home_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 19 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/inventory/Models/LogsModel.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory.Models; 2 | 3 | public class LogsModel { 4 | 5 | public LogsModel(){} 6 | 7 | public LogsModel(String uname, String component, String datetime, int count,int logtype) { 8 | this.uname = uname; 9 | this.component = component; 10 | this.datetime = datetime; 11 | this.count = count; 12 | this.logtype =logtype; 13 | } 14 | 15 | public String getUname() { 16 | return uname; 17 | } 18 | 19 | public void setUname(String uname) { 20 | this.uname = uname; 21 | } 22 | 23 | public String getComponent() { 24 | return component; 25 | } 26 | 27 | public void setComponent(String component) { 28 | this.component = component; 29 | } 30 | 31 | public String getDatetime() { 32 | return datetime; 33 | } 34 | 35 | public void setDatetime(String datetime) { 36 | this.datetime = datetime; 37 | } 38 | 39 | public int getCount() { 40 | return count; 41 | } 42 | 43 | public void setCount(int count) { 44 | this.count = count; 45 | } 46 | 47 | public int getLogtype() { 48 | return logtype; 49 | } 50 | 51 | public void setLogtype(int logtype) { 52 | this.logtype = logtype; 53 | } 54 | String uname,component,datetime; 55 | int count,logtype; 56 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/admin_requests_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 19 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/layout/admin_logs_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 21 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 15 | 18 | 19 | 20 | 23 | 24 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "215751279497", 4 | "firebase_url": "https://siesgst-inventory.firebaseio.com", 5 | "project_id": "siesgst-inventory", 6 | "storage_bucket": "siesgst-inventory.appspot.com" 7 | }, 8 | "client": [ 9 | { 10 | "client_info": { 11 | "mobilesdk_app_id": "1:215751279497:android:3cded60a8ed0b07e", 12 | "android_client_info": { 13 | "package_name": "com.example.inventory" 14 | } 15 | }, 16 | "oauth_client": [ 17 | { 18 | "client_id": "215751279497-pg4sv4oaen27ivfppmbe7fo272sjt2pd.apps.googleusercontent.com", 19 | "client_type": 1, 20 | "android_info": { 21 | "package_name": "com.example.inventory", 22 | "certificate_hash": "3e65845c301c74477adb6cca8b11538012565a60" 23 | } 24 | }, 25 | { 26 | "client_id": "215751279497-ltejk56cd8ns1f9k0di1er4vpv4d6puc.apps.googleusercontent.com", 27 | "client_type": 3 28 | } 29 | ], 30 | "api_key": [ 31 | { 32 | "current_key": "AIzaSyARfpES228pdBmn731HGn1PWXyUI2lvsNE" 33 | } 34 | ], 35 | "services": { 36 | "appinvite_service": { 37 | "other_platform_oauth_client": [ 38 | { 39 | "client_id": "215751279497-ltejk56cd8ns1f9k0di1er4vpv4d6puc.apps.googleusercontent.com", 40 | "client_type": 3 41 | } 42 | ] 43 | } 44 | } 45 | } 46 | ], 47 | "configuration_version": "1" 48 | } -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'kotlin-android-extensions' 3 | apply plugin: 'kotlin-android' 4 | apply plugin: 'com.google.gms.google-services' 5 | 6 | android { 7 | compileSdkVersion 28 8 | defaultConfig { 9 | applicationId "com.example.inventory" 10 | minSdkVersion 21 11 | targetSdkVersion 28 12 | versionCode 1 13 | versionName "1.0" 14 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 15 | } 16 | buildTypes { 17 | release { 18 | minifyEnabled false 19 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 20 | } 21 | } 22 | } 23 | 24 | dependencies { 25 | implementation fileTree(dir: 'libs', include: ['*.jar']) 26 | //noinspection GradleCompatible 27 | implementation 'androidx.appcompat:appcompat:1.0.0' 28 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 29 | implementation 'com.google.firebase:firebase-database:18.0.0' 30 | testImplementation 'junit:junit:4.12' 31 | implementation 'com.google.android.material:material:1.0.0' 32 | androidTestImplementation 'androidx.test:runner:1.1.0' 33 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' 34 | implementation 'androidx.recyclerview:recyclerview:1.0.0' 35 | implementation 'androidx.cardview:cardview:1.0.0' 36 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 37 | implementation 'com.google.firebase:firebase-auth:17.0.0' 38 | implementation 'com.google.android.gms:play-services-auth:17.0.0' 39 | } 40 | repositories { 41 | mavenCentral() 42 | } 43 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/inventory/Models/RequestModel.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory.Models; 2 | 3 | public class RequestModel { 4 | String component; 5 | String requestcount; 6 | String uemail; 7 | String uname; 8 | String datetime; 9 | 10 | public String getRequesttype() { 11 | return requesttype; 12 | } 13 | 14 | public void setRequesttype(String requesttype) { 15 | this.requesttype = requesttype; 16 | } 17 | 18 | String requesttype; 19 | 20 | public RequestModel(){} 21 | 22 | public String getComponent() { 23 | return component; 24 | } 25 | 26 | public void setComponent(String component) { 27 | this.component = component; 28 | } 29 | 30 | public String getRequestcount() { 31 | return requestcount; 32 | } 33 | 34 | public void setRequestcount(String requestcount) { 35 | this.requestcount = requestcount; 36 | } 37 | 38 | public String getUemail() { 39 | return uemail; 40 | } 41 | 42 | public void setUemail(String uemail) { 43 | this.uemail = uemail; 44 | } 45 | 46 | public String getUname() { 47 | return uname; 48 | } 49 | 50 | public void setUname(String uname) { 51 | this.uname = uname; 52 | } 53 | 54 | public String getDatetime() { 55 | return datetime; 56 | } 57 | 58 | public void setDatetime(String datetime) { 59 | this.datetime = datetime; 60 | } 61 | 62 | public RequestModel(String component, String requestcount, String uemail, String uname, String datetime,String requesttype) { 63 | this.component = component; 64 | this.requestcount = requestcount; 65 | this.uemail = uemail; 66 | this.uname = uname; 67 | this.datetime = datetime; 68 | this.requesttype =requesttype; 69 | 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_admin__main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | 17 | 25 | 26 | 27 | 28 | 29 | 40 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/inventory/Models/FinalRequestModel.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory.Models; 2 | 3 | public class FinalRequestModel { 4 | String component; 5 | String requestcount; 6 | String uemail; 7 | String uname; 8 | String datetime; 9 | String requesttype; 10 | 11 | public String getRequesttype() { 12 | return requesttype; 13 | } 14 | 15 | public void setRequesttype(String requesttype) { 16 | this.requesttype = requesttype; 17 | } 18 | 19 | public FinalRequestModel() {} 20 | 21 | public String getComponent() { 22 | return component; 23 | } 24 | 25 | public void setComponent(String component) { 26 | this.component = component; 27 | } 28 | 29 | public String getRequestcount() { 30 | return requestcount; 31 | } 32 | 33 | public void setRequestcount(String requestcount) { 34 | this.requestcount = requestcount; 35 | } 36 | 37 | public String getUemail() { 38 | return uemail; 39 | } 40 | 41 | public void setUemail(String uemail) { 42 | this.uemail = uemail; 43 | } 44 | 45 | public String getUname() { 46 | return uname; 47 | } 48 | 49 | public void setUname(String uname) { 50 | this.uname = uname; 51 | } 52 | 53 | public String getDatetime() { 54 | return datetime; 55 | } 56 | 57 | public void setDatetime(String datetime) { 58 | this.datetime = datetime; 59 | } 60 | 61 | public Integer getCount() { 62 | return count; 63 | } 64 | 65 | public void setCount(Integer count) { 66 | this.count = count; 67 | } 68 | 69 | public FinalRequestModel(String component, String requestcount, String uemail, String uname, String datetime, Integer count,String requesttype) { 70 | this.component = component; 71 | this.requestcount = requestcount; 72 | this.uemail = uemail; 73 | this.uname = uname; 74 | this.datetime = datetime; 75 | this.count = count; 76 | this.requesttype =requesttype; 77 | } 78 | 79 | Integer count; 80 | } 81 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/inventory/UserClass/User_Main.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory.UserClass; 2 | 3 | import androidx.annotation.NonNull; 4 | import com.google.android.material.bottomnavigation.BottomNavigationView; 5 | import androidx.fragment.app.Fragment; 6 | import androidx.appcompat.app.AppCompatActivity; 7 | import android.os.Bundle; 8 | import android.view.MenuItem; 9 | 10 | import com.example.inventory.R; 11 | 12 | public class User_Main extends AppCompatActivity { 13 | 14 | private BottomNavigationView userBottomNav; 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | setContentView(R.layout.activity_user__main); 20 | 21 | userBottomNav = (BottomNavigationView)findViewById(R.id.bottom_navigation); 22 | userBottomNav.setOnNavigationItemSelectedListener(navListener); 23 | getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, 24 | new UserHomeFragment()).commit(); 25 | 26 | } 27 | 28 | private BottomNavigationView.OnNavigationItemSelectedListener navListener = 29 | new BottomNavigationView.OnNavigationItemSelectedListener() { 30 | @Override 31 | public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) { 32 | Fragment selectedFragment =null; 33 | 34 | switch ( menuItem.getItemId()){ 35 | case R.id.home_icon: 36 | selectedFragment = new UserHomeFragment(); 37 | break; 38 | case R.id.search_icon: 39 | selectedFragment = new UserSearchFragment(); 40 | break; 41 | case R.id.logs_icon: 42 | selectedFragment = new UserLogsFragment(); 43 | } 44 | getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, 45 | selectedFragment).commit(); 46 | return true; 47 | 48 | 49 | 50 | } 51 | }; 52 | 53 | 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/inventory/Adapter/Slider_Adapter.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory.Adapter; 2 | 3 | import android.content.Context; 4 | import androidx.annotation.NonNull; 5 | import androidx.viewpager.widget.PagerAdapter; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.ImageView; 10 | import android.widget.LinearLayout; 11 | import android.widget.TextView; 12 | 13 | import com.example.inventory.R; 14 | 15 | public class Slider_Adapter extends PagerAdapter { 16 | 17 | Context context; 18 | LayoutInflater layoutInflater; 19 | 20 | public Slider_Adapter(Context context){ 21 | this.context = context; 22 | } 23 | 24 | public int[] slider_images ={ 25 | R.drawable.slider1, 26 | R.drawable.slider2, 27 | R.drawable.slider3 28 | }; 29 | public String[] slider_headings ={ 30 | "Store", 31 | "Logs", 32 | "Save Time!" 33 | }; 34 | public String[] slider_texts ={ 35 | "Manage Database of All Components", 36 | "Manage Requests of Components", 37 | "Save Time in Organizing the Inventory " 38 | }; 39 | 40 | @Override 41 | public int getCount() { 42 | return slider_headings.length; 43 | } 44 | 45 | @Override 46 | public boolean isViewFromObject(@NonNull View view, @NonNull Object o) { 47 | return view == (LinearLayout)o; 48 | } 49 | 50 | @NonNull 51 | @Override 52 | public Object instantiateItem(@NonNull ViewGroup container, int position) { 53 | layoutInflater = (LayoutInflater)context.getSystemService(context.LAYOUT_INFLATER_SERVICE); 54 | View view =layoutInflater.inflate(R.layout.slider_layout,container,false); 55 | 56 | ImageView slider_image = (ImageView) view.findViewById(R.id.slider_image); 57 | TextView slider_heading = (TextView) view.findViewById(R.id.slider_heading); 58 | TextView slider_text =(TextView)view.findViewById(R.id.slider_text); 59 | slider_image.setImageResource(slider_images[position]); 60 | slider_heading.setText(slider_headings[position]); 61 | slider_text.setText(slider_texts[position] ); 62 | container.addView(view); 63 | return view; 64 | } 65 | 66 | @Override 67 | public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) { 68 | container.removeView((LinearLayout)object); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /app/src/main/res/layout/slider_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 18 | 19 | 33 | 34 | 35 | 44 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/inventory/AdminClass/Admin_Main.java: -------------------------------------------------------------------------------- 1 | package com.example.inventory.AdminClass; 2 | 3 | import androidx.annotation.NonNull; 4 | import com.google.android.material.bottomnavigation.BottomNavigationView; 5 | import com.google.android.material.floatingactionbutton.FloatingActionButton; 6 | import androidx.fragment.app.Fragment; 7 | import androidx.appcompat.app.AppCompatActivity; 8 | import android.os.Bundle; 9 | import android.view.MenuItem; 10 | import android.view.View; 11 | 12 | import com.example.inventory.R; 13 | 14 | public class Admin_Main extends AppCompatActivity { 15 | 16 | private BottomNavigationView bottomnavigate ; 17 | private FloatingActionButton addComp; 18 | // DatabaseHelper dbHelp; 19 | 20 | 21 | @Override 22 | protected void onCreate(Bundle savedInstanceState) { 23 | super.onCreate(savedInstanceState); 24 | setContentView(R.layout.activity_admin__main); 25 | 26 | // dbHelp = new DatabaseHelper(this); 27 | addComp = (FloatingActionButton)findViewById(R.id.add_components); 28 | bottomnavigate = (BottomNavigationView)findViewById(R.id.admin_bottom_navigation); 29 | bottomnavigate.setOnNavigationItemSelectedListener(admin_bottom_listener); 30 | 31 | getSupportFragmentManager().beginTransaction().replace(R.id.admin_fragment, new AdminHomeFragment()).commit(); 32 | 33 | addComp.setOnClickListener(new View.OnClickListener() { 34 | @Override 35 | public void onClick(View v) { 36 | AddComponentBottomSheet addCompSheet = new AddComponentBottomSheet(); 37 | addCompSheet.show(getSupportFragmentManager(),"Add Component Sheet"); 38 | } 39 | }); 40 | } 41 | private BottomNavigationView.OnNavigationItemSelectedListener admin_bottom_listener = 42 | new BottomNavigationView.OnNavigationItemSelectedListener() { 43 | @Override 44 | public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) { 45 | Fragment selectedFragment = null; 46 | switch (menuItem.getItemId()){ 47 | case R.id.home_icon: 48 | selectedFragment = new AdminHomeFragment(); 49 | break; 50 | case R.id.logs_icon: 51 | selectedFragment = new AdminLogsFragments(); 52 | break; 53 | case R.id.request_icon: 54 | selectedFragment = new AdminRequestsFragment(); 55 | break; 56 | 57 | } 58 | getSupportFragmentManager().beginTransaction().replace(R.id.admin_fragment,selectedFragment).commit(); 59 | return true; 60 | 61 | } 62 | }; 63 | } 64 | -------------------------------------------------------------------------------- /app/src/main/res/layout/admin_home_recycler_card.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 18 | 21 | 33 | 34 | 46 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 15 | 16 | 17 | 18 | 19 | 28 | 29 | 30 | 31 | 45 | 55 | 56 | 57 | 69 |