├── README.md
├── Master
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── themes.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ │ ├── ic_launcher.xml
│ │ │ │ │ └── ic_launcher_round.xml
│ │ │ │ ├── mipmap-anydpi-v33
│ │ │ │ │ └── ic_launcher.xml
│ │ │ │ ├── xml
│ │ │ │ │ ├── backup_rules.xml
│ │ │ │ │ └── data_extraction_rules.xml
│ │ │ │ ├── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ │ ├── values-night
│ │ │ │ │ └── themes.xml
│ │ │ │ └── drawable-v24
│ │ │ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── myapplication
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── myapplication
│ │ │ │ └── ExampleUnitTest.kt
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── myapplication
│ │ │ └── ExampleInstrumentedTest.kt
│ ├── proguard-rules.pro
│ └── build.gradle
├── .idea
│ ├── .name
│ ├── .gitignore
│ ├── compiler.xml
│ ├── misc.xml
│ └── gradle.xml
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── build.gradle
├── settings.gradle
├── gradle.properties
└── gradlew.bat
├── Shop Management
├── .idea
│ ├── .name
│ ├── .gitignore
│ ├── compiler.xml
│ ├── vcs.xml
│ ├── misc.xml
│ └── gradle.xml
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── style.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── themes.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ │ ├── ic_launcher.xml
│ │ │ │ │ └── ic_launcher_round.xml
│ │ │ │ ├── mipmap-anydpi-v33
│ │ │ │ │ └── ic_launcher.xml
│ │ │ │ ├── drawable
│ │ │ │ │ ├── baseline_store2_24.xml
│ │ │ │ │ ├── baseline_store_24.xml
│ │ │ │ │ ├── baseline_person.xml
│ │ │ │ │ ├── baseline_person_24.xml
│ │ │ │ │ ├── baseline_email_24.xml
│ │ │ │ │ ├── baseline_edit_24.xml
│ │ │ │ │ ├── wave.xml
│ │ │ │ │ ├── baseline_lock_24.xml
│ │ │ │ │ ├── baseline_settings_backup_restore_24.xml
│ │ │ │ │ ├── baseline_my_location_24.xml
│ │ │ │ │ ├── baseline_call_24.xml
│ │ │ │ │ └── baseline_attach_money_24.xml
│ │ │ │ ├── layout
│ │ │ │ │ ├── activity_new.xml
│ │ │ │ │ ├── activity_item_list.xml
│ │ │ │ │ ├── activity_update.xml
│ │ │ │ │ └── activity_view_items.xml
│ │ │ │ ├── xml
│ │ │ │ │ ├── backup_rules.xml
│ │ │ │ │ └── data_extraction_rules.xml
│ │ │ │ ├── values-night
│ │ │ │ │ └── themes.xml
│ │ │ │ └── drawable-v24
│ │ │ │ │ └── ic_launcher_foreground.xml
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── userlogin
│ │ │ │ ├── models
│ │ │ │ └── ItemModel.kt
│ │ │ │ ├── activities
│ │ │ │ ├── New.kt
│ │ │ │ ├── test.kt
│ │ │ │ ├── Update.kt
│ │ │ │ ├── item_list.kt
│ │ │ │ ├── edit_items.kt
│ │ │ │ ├── shop_profile.kt
│ │ │ │ ├── home_page.kt
│ │ │ │ ├── shop_login.kt
│ │ │ │ ├── shop_register.kt
│ │ │ │ ├── add_items.kt
│ │ │ │ └── view_items.kt
│ │ │ │ └── adapters
│ │ │ │ └── ItemAdapters.kt
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── userlogin
│ │ │ │ └── ExampleUnitTest.kt
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── userlogin
│ │ │ └── ExampleInstrumentedTest.kt
│ ├── proguard-rules.pro
│ ├── build.gradle
│ └── google-services.json
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
├── build.gradle
├── gradle.properties
└── gradlew.bat
├── Comment Management
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ │ ├── ic_launcher.xml
│ │ │ │ │ └── ic_launcher_round.xml
│ │ │ │ ├── mipmap-anydpi-v33
│ │ │ │ │ └── ic_launcher.xml
│ │ │ │ ├── values
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── themes.xml
│ │ │ │ ├── xml
│ │ │ │ │ ├── backup_rules.xml
│ │ │ │ │ └── data_extraction_rules.xml
│ │ │ │ ├── values-night
│ │ │ │ │ └── themes.xml
│ │ │ │ ├── layout
│ │ │ │ │ ├── activity_update_dialog.xml
│ │ │ │ │ ├── activity_manage_review.xml
│ │ │ │ │ ├── activity_comment_list.xml
│ │ │ │ │ ├── shop_comment_list.xml
│ │ │ │ │ ├── shop_commentpreview.xml
│ │ │ │ │ ├── activity_add_comment.xml
│ │ │ │ │ └── activity_edit_review.xml
│ │ │ │ └── drawable-v24
│ │ │ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── myapplication
│ │ │ │ │ ├── model
│ │ │ │ │ └── CommentModel.kt
│ │ │ │ │ ├── activities
│ │ │ │ │ ├── Update_dialog.kt
│ │ │ │ │ ├── Comment_list_activity.kt
│ │ │ │ │ ├── ShopCommentListActivity.kt
│ │ │ │ │ ├── Shop_commentpreview.kt
│ │ │ │ │ ├── AddComment.kt
│ │ │ │ │ └── ManageReview.kt
│ │ │ │ │ └── adapter
│ │ │ │ │ ├── CommentAdapter.kt
│ │ │ │ │ └── CommentManagerAdapter.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── myapplication
│ │ │ │ └── ExampleUnitTest.kt
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── myapplication
│ │ │ └── ExampleInstrumentedTest.kt
│ ├── proguard-rules.pro
│ ├── google-services.json
│ └── build.gradle
├── .idea
│ ├── .name
│ ├── .gitignore
│ ├── compiler.xml
│ ├── vcs.xml
│ ├── render.experimental.xml
│ ├── misc.xml
│ └── gradle.xml
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
├── build.gradle
├── gradle.properties
└── gradlew.bat
├── Customer Management
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── styles.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── themes.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ ├── drawable
│ │ │ │ │ ├── roundbgred.xml
│ │ │ │ │ ├── round_bg.xml
│ │ │ │ │ ├── roundbgscendory.xml
│ │ │ │ │ ├── round_border.xml
│ │ │ │ │ ├── baseline_add_24.xml
│ │ │ │ │ ├── baseline_store.xml
│ │ │ │ │ ├── baseline_store_24.xml
│ │ │ │ │ ├── ic_person.xml
│ │ │ │ │ ├── baseline_person_24.xml
│ │ │ │ │ ├── ic_email.xml
│ │ │ │ │ ├── ic_lock.xml
│ │ │ │ │ ├── baseline_phone_24.xml
│ │ │ │ │ ├── wave.xml
│ │ │ │ │ ├── baseline_lock_reset_24.xml
│ │ │ │ │ └── ic_launcher_foreground.xml
│ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ │ ├── ic_launcher.xml
│ │ │ │ │ └── ic_launcher_round.xml
│ │ │ │ ├── mipmap-anydpi-v33
│ │ │ │ │ └── ic_launcher.xml
│ │ │ │ ├── xml
│ │ │ │ │ ├── backup_rules.xml
│ │ │ │ │ └── data_extraction_rules.xml
│ │ │ │ ├── values-night
│ │ │ │ │ └── themes.xml
│ │ │ │ ├── drawable-v24
│ │ │ │ │ └── ic_launcher_foreground.xml
│ │ │ │ └── layout
│ │ │ │ │ ├── activity_main.xml
│ │ │ │ │ ├── activity_new_shopping_list.xml
│ │ │ │ │ ├── activity_not_signedin.xml
│ │ │ │ │ └── activity_login.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── myapplication
│ │ │ │ │ ├── Constants.kt
│ │ │ │ │ ├── Utils.kt
│ │ │ │ │ ├── Models.kt
│ │ │ │ │ ├── NotSignedinActivity.kt
│ │ │ │ │ ├── NewShoppingListActivity.kt
│ │ │ │ │ ├── LoginActivity.kt
│ │ │ │ │ ├── NewShoppingListItemActivity.kt
│ │ │ │ │ ├── RegisterActivity.kt
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── myapplication
│ │ │ │ └── ExampleUnitTest.kt
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── myapplication
│ │ │ └── ExampleInstrumentedTest.kt
│ ├── proguard-rules.pro
│ ├── build.gradle
│ └── google-services.json
├── .idea
│ ├── .gitignore
│ ├── compiler.xml
│ ├── vcs.xml
│ ├── misc.xml
│ └── gradle.xml
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
├── build.gradle
├── gradle.properties
└── gradlew.bat
└── .gitattributes
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Master/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/Master/.idea/.name:
--------------------------------------------------------------------------------
1 | My Application
--------------------------------------------------------------------------------
/Shop Management/.idea/.name:
--------------------------------------------------------------------------------
1 | User Login
--------------------------------------------------------------------------------
/Shop Management/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/Comment Management/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/Customer Management/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/Comment Management/.idea/.name:
--------------------------------------------------------------------------------
1 | My Application
--------------------------------------------------------------------------------
/Master/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/Shop Management/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/Comment Management/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/Customer Management/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/Master/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | My Application
3 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | User
3 |
--------------------------------------------------------------------------------
/Master/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Shop Management/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Comment Management/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Customer Management/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | FoodPriceTracker
3 |
4 |
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Master/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Shop Management/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Shop Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Comment Management/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Comment Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Customer Management/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Comment Management/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rusith-S/Food-Price-Tracker-Mobile-Application/HEAD/Customer Management/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Shop Management/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Comment Management/.idea/render.experimental.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/java/com/example/myapplication/model/CommentModel.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication.model
2 |
3 | data class commentModel (
4 | var commentId: String? = null,
5 | var newComment: String? = null
6 | )
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/roundbgred.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/round_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/roundbgscendory.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/models/ItemModel.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.models
2 |
3 | data class ItemModel(
4 | var itemId: String? = null,
5 | var itemName: String? = null,
6 | var itemPrice:String? = null,
7 | var outOrIn:String? = null,
8 | )
--------------------------------------------------------------------------------
/Master/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Apr 30 13:37:42 IST 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/Comment Management/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Apr 30 13:37:42 IST 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/Shop Management/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Mar 18 23:45:02 IST 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/Customer Management/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu May 04 00:53:56 IST 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/Master/.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 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/Shop Management/.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 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/Comment Management/.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 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/Customer Management/.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 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/round_border.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/Master/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | plugins {
3 | id 'com.android.application' version '7.4.1' apply false
4 | id 'com.android.library' version '7.4.1' apply false
5 | id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
6 | }
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/baseline_add_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Master/app/src/main/java/com/example/myapplication/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 |
6 | class MainActivity : AppCompatActivity() {
7 | override fun onCreate(savedInstanceState: Bundle?) {
8 | super.onCreate(savedInstanceState)
9 | setContentView(R.layout.activity_main)
10 | }
11 | }
--------------------------------------------------------------------------------
/Master/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Master/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 | rootProject.name = "My Application"
16 | include ':app'
17 |
--------------------------------------------------------------------------------
/Shop Management/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 | rootProject.name = "User Login"
16 | include ':app'
17 |
--------------------------------------------------------------------------------
/Comment Management/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 | rootProject.name = "My Application"
16 | include ':app'
17 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/baseline_store.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 | rootProject.name = "FoodPriceTracker"
16 | include ':app'
17 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_store2_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_store_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/New.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import com.example.userlogin.R
6 |
7 | class New : AppCompatActivity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_new)
11 | }
12 | }
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/baseline_store_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Master/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/test.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import com.example.userlogin.R
6 |
7 | class test : AppCompatActivity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_test)
11 | }
12 | }
--------------------------------------------------------------------------------
/Shop Management/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | dependencies {
3 | classpath 'com.google.gms:google-services:4.3.15'
4 | }
5 | }// Top-level build file where you can add configuration options common to all sub-projects/modules.
6 | plugins {
7 | id 'com.android.application' version '7.4.2' apply false
8 | id 'com.android.library' version '7.4.2' apply false
9 | id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
10 | }
--------------------------------------------------------------------------------
/Comment Management/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | dependencies {
3 | classpath 'com.google.gms:google-services:4.3.15'
4 | }
5 | }// Top-level build file where you can add configuration options common to all sub-projects/modules.
6 | plugins {
7 | id 'com.android.application' version '7.4.1' apply false
8 | id 'com.android.library' version '7.4.1' apply false
9 | id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
10 | }
--------------------------------------------------------------------------------
/Customer Management/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | dependencies {
3 | classpath 'com.google.gms:google-services:4.3.15'
4 | }
5 | }// Top-level build file where you can add configuration options common to all sub-projects/modules.
6 | plugins {
7 | id 'com.android.application' version '7.4.1' apply false
8 | id 'com.android.library' version '7.4.1' apply false
9 | id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
10 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/Update.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import com.example.userlogin.R
6 |
7 | class Update : AppCompatActivity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_update)
11 | }
12 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/item_list.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import com.example.userlogin.R
6 |
7 | class item_list : AppCompatActivity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_item_list)
11 | }
12 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/values/style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/ic_person.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/edit_items.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import com.example.userlogin.R
6 |
7 | class edit_items : AppCompatActivity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_edit_items)
11 | }
12 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_person.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/shop_profile.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import com.example.userlogin.R
6 |
7 | class shop_profile : AppCompatActivity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_shop_profile)
11 | }
12 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_person_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_email_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Master/app/src/test/java/com/example/myapplication/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/test/java/com/example/userlogin/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/java/com/example/myapplication/activities/Update_dialog.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import com.example.myapplication.R
6 |
7 | class update_dialog : AppCompatActivity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_update_dialog)
11 | }
12 | }
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/baseline_person_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/ic_email.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Comment Management/app/src/test/java/com/example/myapplication/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
--------------------------------------------------------------------------------
/Customer Management/app/src/main/java/com/example/myapplication/Constants.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import com.google.firebase.auth.FirebaseAuth
4 | import com.google.firebase.auth.FirebaseUser
5 | import com.google.firebase.database.DatabaseReference
6 |
7 | class Constants {
8 | companion object {
9 | lateinit var auth: FirebaseAuth
10 | var user: FirebaseUser? = null
11 | lateinit var database: DatabaseReference
12 | }
13 | }
--------------------------------------------------------------------------------
/Customer Management/app/src/test/java/com/example/myapplication/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/layout/activity_new.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/java/com/example/myapplication/activities/Comment_list_activity.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import com.example.myapplication.R
6 |
7 | class comment_list_activity : AppCompatActivity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.activity_comment_list)
11 | }
12 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/java/com/example/myapplication/activities/ShopCommentListActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import com.example.myapplication.R
6 |
7 | class ShopCommentListActivity : AppCompatActivity() {
8 | override fun onCreate(savedInstanceState: Bundle?) {
9 | super.onCreate(savedInstanceState)
10 | setContentView(R.layout.shop_comment_list)
11 | }
12 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_edit_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Master/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Comment Management/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Customer Management/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Shop Management/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #32cd32
4 | #32cd32
5 | #32cd32
6 | #32cd32
7 | #32cd32
8 | #FF000000
9 | #FFFFFFFF
10 | #32cd32
11 | #FFF44336
12 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/java/com/example/myapplication/Utils.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import android.view.View
4 | import android.view.Window
5 | import androidx.core.view.WindowCompat
6 | import androidx.core.view.WindowInsetsCompat
7 | import com.google.android.material.snackbar.Snackbar
8 |
9 | fun hideKeyboard(window: Window, view: View) = WindowCompat.getInsetsController(window, view)?.hide(WindowInsetsCompat.Type.ime())
10 |
11 | fun popup(message: String, view: View) = Snackbar.make(view, message, Snackbar.LENGTH_LONG).show()
--------------------------------------------------------------------------------
/Master/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/wave.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 | #009245
11 | #009245
12 | #8cc63f
13 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_lock_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_settings_backup_restore_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/ic_lock.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/baseline_phone_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/wave.xml:
--------------------------------------------------------------------------------
1 |
6 |
10 |
11 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FF0000
10 | #FFFFFFFF
11 |
12 | #009245
13 | #009245
14 | #8cc63f
15 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_my_location_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Master/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_call_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Master/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/baseline_lock_reset_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable/baseline_attach_money_24.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Food-Price_Tracker
3 | Shop Name
4 | Add Comment
5 | Submit
6 | View Comments History
7 | Review History
8 | Edit Review
9 | Delete
10 | Update
11 | User Name
12 | Shop Name
13 | Comment
14 | Save
15 |
--------------------------------------------------------------------------------
/Shop Management/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Comment Management/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Customer Management/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/java/com/example/myapplication/Models.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | class ShoppingList(val id: String = "",
4 | var name: String = "",
5 | var items: List? = listOf(),
6 | var timestamp: Long = System.currentTimeMillis() ) {
7 |
8 | override fun toString(): String {
9 | return name
10 | }
11 | }
12 |
13 | class ShoppingListItem(val id: String = "",
14 | var product: String = "",
15 | var quantity: Int = 0,
16 | var timestamp: Long = System.currentTimeMillis() ) {
17 |
18 | override fun toString(): String {
19 | return "$product - $quantity"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/Master/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import androidx.test.platform.app.InstrumentationRegistry
4 | import androidx.test.ext.junit.runners.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | assertEquals("com.example.myapplication", appContext.packageName)
23 | }
24 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/androidTest/java/com/example/userlogin/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin
2 |
3 | import androidx.test.platform.app.InstrumentationRegistry
4 | import androidx.test.ext.junit.runners.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | assertEquals("com.example.userlogin", appContext.packageName)
23 | }
24 | }
--------------------------------------------------------------------------------
/Master/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
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/Comment Management/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
--------------------------------------------------------------------------------
/Comment Management/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import androidx.test.platform.app.InstrumentationRegistry
4 | import androidx.test.ext.junit.runners.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | assertEquals("com.example.myapplication", appContext.packageName)
23 | }
24 | }
--------------------------------------------------------------------------------
/Customer Management/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
--------------------------------------------------------------------------------
/Customer Management/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import androidx.test.platform.app.InstrumentationRegistry
4 | import androidx.test.ext.junit.runners.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | assertEquals("com.example.myapplication", appContext.packageName)
23 | }
24 | }
--------------------------------------------------------------------------------
/Shop Management/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
--------------------------------------------------------------------------------
/Master/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
--------------------------------------------------------------------------------
/Master/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/Master/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Master/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/java/com/example/myapplication/NotSignedinActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.view.View
7 | import android.widget.Button
8 |
9 | class NotSignedinActivity : AppCompatActivity() {
10 | private lateinit var signupButton: Button
11 | private lateinit var signinButton: Button
12 |
13 | override fun onCreate(savedInstanceState: Bundle?) {
14 | super.onCreate(savedInstanceState)
15 | setContentView(R.layout.activity_not_signedin)
16 |
17 | signupButton = findViewById(R.id.signupButton)
18 | signinButton = findViewById(R.id.signinButton)
19 |
20 | signupButton.setOnClickListener(View.OnClickListener {
21 | startActivity(Intent(this, RegisterActivity::class.java))
22 | })
23 |
24 | signinButton.setOnClickListener(View.OnClickListener {
25 | startActivity(Intent(this, LoginActivity::class.java))
26 | })
27 | }
28 | }
--------------------------------------------------------------------------------
/Comment Management/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "716245204261",
4 | "firebase_url": "https://food-price-tracker-default-rtdb.asia-southeast1.firebasedatabase.app",
5 | "project_id": "food-price-tracker",
6 | "storage_bucket": "food-price-tracker.appspot.com"
7 | },
8 | "client": [
9 | {
10 | "client_info": {
11 | "mobilesdk_app_id": "1:716245204261:android:c0e0deb39c2b402badaecc",
12 | "android_client_info": {
13 | "package_name": "com.example.myapplication"
14 | }
15 | },
16 | "oauth_client": [
17 | {
18 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
19 | "client_type": 3
20 | }
21 | ],
22 | "api_key": [
23 | {
24 | "current_key": "AIzaSyDSpspgSkPUUgv4-FbRoYauulf4FZvbby8"
25 | }
26 | ],
27 | "services": {
28 | "appinvite_service": {
29 | "other_platform_oauth_client": [
30 | {
31 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
32 | "client_type": 3
33 | }
34 | ]
35 | }
36 | }
37 | }
38 | ],
39 | "configuration_version": "1"
40 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/java/com/example/myapplication/adapter/CommentAdapter.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication.adapter
2 |
3 | import android.view.LayoutInflater
4 | import android.view.View
5 | import android.view.ViewGroup
6 | import android.widget.TextView
7 | import androidx.recyclerview.widget.RecyclerView
8 | import com.example.myapplication.R
9 | import com.example.myapplication.model.commentModel
10 |
11 | class CommentAdapter(private val cmtList: ArrayList) :
12 | RecyclerView.Adapter() {
13 |
14 |
15 | override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CommentAdapter.ViewHolder {
16 | val itemView = LayoutInflater.from(parent.context)
17 | .inflate(R.layout.activity_comment_list, parent, false)
18 | return ViewHolder(itemView)
19 | }
20 |
21 | override fun onBindViewHolder(holder: ViewHolder, position: Int) {
22 | val currentCmt = cmtList[position]
23 | holder.tvCmt.text = currentCmt.newComment
24 | }
25 |
26 |
27 | override fun getItemCount(): Int {
28 | return cmtList.size
29 | }
30 |
31 | class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
32 | val tvCmt: TextView = itemView.findViewById(R.id.shopComment)
33 | }
34 |
35 |
36 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/home_page.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.widget.Button
7 | import com.example.userlogin.R
8 |
9 | class home_page : AppCompatActivity() {
10 | private lateinit var btnEditProf: Button
11 | private lateinit var btnAddItems: Button
12 | private lateinit var btnViewItems: Button
13 |
14 |
15 | override fun onCreate(savedInstanceState: Bundle?) {
16 | super.onCreate(savedInstanceState)
17 | setContentView(R.layout.activity_home_page)
18 |
19 | btnEditProf = findViewById(R.id.button)
20 | btnAddItems = findViewById(R.id.btnAddItems)
21 | btnViewItems = findViewById(R.id.btnViewItems)
22 |
23 | btnEditProf.setOnClickListener{
24 | val intent = Intent(this, shop_profile::class.java)
25 | startActivity(intent)
26 | }
27 | btnAddItems.setOnClickListener {
28 | val intent = Intent(this, add_items::class.java)
29 | startActivity(intent)
30 | }
31 | btnViewItems.setOnClickListener {
32 | val intent = Intent(this, view_items::class.java)
33 | startActivity(intent)
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/Master/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | id 'org.jetbrains.kotlin.android'
4 | }
5 |
6 | android {
7 | namespace 'com.example.myapplication'
8 | compileSdk 33
9 |
10 | defaultConfig {
11 | applicationId "com.example.myapplication"
12 | minSdk 24
13 | targetSdk 33
14 | versionCode 1
15 | versionName "1.0"
16 |
17 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18 | }
19 |
20 | buildTypes {
21 | release {
22 | minifyEnabled false
23 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
24 | }
25 | }
26 | compileOptions {
27 | sourceCompatibility JavaVersion.VERSION_1_8
28 | targetCompatibility JavaVersion.VERSION_1_8
29 | }
30 | kotlinOptions {
31 | jvmTarget = '1.8'
32 | }
33 | }
34 |
35 | dependencies {
36 |
37 | implementation 'androidx.core:core-ktx:1.7.0'
38 | implementation 'androidx.appcompat:appcompat:1.6.1'
39 | implementation 'com.google.android.material:material:1.8.0'
40 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
41 | testImplementation 'junit:junit:4.13.2'
42 | androidTestImplementation 'androidx.test.ext:junit:1.1.5'
43 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
44 | }
--------------------------------------------------------------------------------
/Master/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 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Kotlin code style for this project: "official" or "obsolete":
19 | kotlin.code.style=official
20 | # Enables namespacing of each library's R class so that its R class includes only the
21 | # resources declared in the library itself and none from the library's dependencies,
22 | # thereby reducing the size of the R class for that library
23 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/Shop Management/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 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Kotlin code style for this project: "official" or "obsolete":
19 | kotlin.code.style=official
20 | # Enables namespacing of each library's R class so that its R class includes only the
21 | # resources declared in the library itself and none from the library's dependencies,
22 | # thereby reducing the size of the R class for that library
23 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/Comment Management/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 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Kotlin code style for this project: "official" or "obsolete":
19 | kotlin.code.style=official
20 | # Enables namespacing of each library's R class so that its R class includes only the
21 | # resources declared in the library itself and none from the library's dependencies,
22 | # thereby reducing the size of the R class for that library
23 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/Customer Management/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 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Kotlin code style for this project: "official" or "obsolete":
19 | kotlin.code.style=official
20 | # Enables namespacing of each library's R class so that its R class includes only the
21 | # resources declared in the library itself and none from the library's dependencies,
22 | # thereby reducing the size of the R class for that library
23 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/layout/activity_update_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
19 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/layout/activity_item_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
17 |
18 |
23 |
24 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/layout/activity_update.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
23 |
24 |
32 |
33 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/Comment Management/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | id 'org.jetbrains.kotlin.android'
4 | id 'com.google.gms.google-services'
5 | }
6 |
7 | android {
8 | namespace 'com.example.myapplication'
9 | compileSdk 33
10 |
11 | defaultConfig {
12 | applicationId "com.example.myapplication"
13 | minSdk 24
14 | targetSdk 33
15 | versionCode 1
16 | versionName "1.0"
17 |
18 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19 | }
20 |
21 | buildTypes {
22 | release {
23 | minifyEnabled false
24 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
25 | }
26 | }
27 | compileOptions {
28 | sourceCompatibility JavaVersion.VERSION_1_8
29 | targetCompatibility JavaVersion.VERSION_1_8
30 | }
31 | kotlinOptions {
32 | jvmTarget = '1.8'
33 | }
34 | }
35 |
36 | dependencies {
37 |
38 | implementation 'androidx.core:core-ktx:1.10.0'
39 | implementation 'androidx.appcompat:appcompat:1.6.1'
40 | implementation 'com.google.android.material:material:1.8.0'
41 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
42 | implementation 'com.google.firebase:firebase-database-ktx:20.2.1'
43 | testImplementation 'junit:junit:4.13.2'
44 | androidTestImplementation 'androidx.test.ext:junit:1.1.5'
45 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
46 |
47 | //implementation 'com.google.android.material:material:1.8.0'
48 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/layout/activity_manage_review.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
24 |
25 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/Shop Management/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | id 'org.jetbrains.kotlin.android'
4 | id 'com.google.gms.google-services'
5 | }
6 |
7 | android {
8 | namespace 'com.example.userlogin'
9 | compileSdk 33
10 |
11 | defaultConfig {
12 | applicationId "com.example.userlogin"
13 | minSdk 24
14 | targetSdk 33
15 | versionCode 1
16 | versionName "1.0"
17 |
18 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19 | }
20 |
21 | buildTypes {
22 | release {
23 | minifyEnabled false
24 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
25 | }
26 | }
27 | compileOptions {
28 | sourceCompatibility JavaVersion.VERSION_1_8
29 | targetCompatibility JavaVersion.VERSION_1_8
30 | }
31 | kotlinOptions {
32 | jvmTarget = '1.8'
33 | }
34 | buildFeatures{
35 | viewBinding = true
36 | }
37 | }
38 |
39 | dependencies {
40 |
41 | implementation 'androidx.core:core-ktx:1.10.0'
42 | implementation 'androidx.appcompat:appcompat:1.6.1'
43 | implementation 'com.google.android.material:material:1.8.0'
44 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
45 | implementation 'com.google.firebase:firebase-database:20.2.1'
46 | implementation 'com.google.firebase:firebase-database-ktx:20.2.1'
47 | implementation 'com.google.firebase:firebase-auth-ktx:22.0.0'
48 | testImplementation 'junit:junit:4.13.2'
49 | androidTestImplementation 'androidx.test.ext:junit:1.1.5'
50 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
51 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/layout/activity_view_items.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
22 |
23 |
36 |
37 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/adapters/ItemAdapters.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.adapters
2 |
3 | import android.view.LayoutInflater
4 | import android.view.View
5 | import android.view.ViewGroup
6 | import android.widget.TextView
7 | import androidx.recyclerview.widget.RecyclerView
8 | import com.example.userlogin.R
9 | import com.example.userlogin.models.ItemModel
10 |
11 |
12 | class ItemAdapters (private val itemList: ArrayList):
13 | RecyclerView.Adapter(){
14 |
15 | private lateinit var mListener:onItemClickListener
16 |
17 | interface onItemClickListener{
18 | fun onItemClick(position: Int)
19 | }
20 |
21 | fun setOnItemClickListener(clickListener: onItemClickListener){
22 | mListener = clickListener
23 | }
24 |
25 | override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
26 | val itemView = LayoutInflater.from(parent.context).inflate(R.layout.activity_item_list, parent, false)
27 | return ViewHolder(itemView, mListener)
28 | }
29 |
30 | override fun onBindViewHolder(holder: ViewHolder, position: Int) {
31 | val currentEmp = itemList[position]
32 | holder.tvEmpName.text = currentEmp.itemName
33 | }
34 |
35 | override fun getItemCount(): Int {
36 | return itemList.size
37 | }
38 |
39 | class ViewHolder(itemView: View, clickListener: onItemClickListener) : RecyclerView.ViewHolder(itemView){
40 |
41 | val tvEmpName : TextView = itemView.findViewById(R.id.tvItemName)
42 |
43 | init{
44 | itemView.setOnClickListener{
45 | clickListener.onItemClick(adapterPosition)
46 | }
47 | }
48 |
49 | }
50 |
51 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/layout/activity_comment_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
17 |
18 |
23 |
24 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
14 |
17 |
20 |
23 |
26 |
29 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/Master/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
14 |
15 |
18 |
21 |
24 |
27 |
30 |
33 |
36 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/Shop Management/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/java/com/example/myapplication/adapter/CommentManagerAdapter.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication.adapter
2 |
3 | import android.view.LayoutInflater
4 | import android.view.View
5 | import android.view.ViewGroup
6 | import android.widget.TextView
7 | import androidx.recyclerview.widget.RecyclerView
8 | import com.example.myapplication.R
9 | import com.example.myapplication.model.commentModel
10 |
11 | class CommentManagerAdapter(private val userCmtList: ArrayList) :
12 | RecyclerView.Adapter() {
13 |
14 | private lateinit var mListener: onItemClickListener
15 |
16 | interface onItemClickListener {
17 | fun onItemClick(position: Int)
18 | }
19 |
20 | fun setOnItemClickListener(clickListener: onItemClickListener) {
21 | mListener = clickListener
22 | }
23 |
24 |
25 | override fun onCreateViewHolder(
26 | parent: ViewGroup,
27 | viewType: Int
28 | ): CommentManagerAdapter.ViewHolder {
29 | val itemView2 =
30 | LayoutInflater.from(parent.context).inflate(R.layout.shop_comment_list, parent, false)
31 | return ViewHolder(itemView2, mListener)
32 | }
33 |
34 | override fun onBindViewHolder(holder: CommentManagerAdapter.ViewHolder, position: Int) {
35 | val currentCmt = userCmtList[position]
36 | holder.tvUCmt.text = currentCmt.newComment
37 | }
38 |
39 |
40 | override fun getItemCount(): Int {
41 | return userCmtList.size
42 | }
43 |
44 | class ViewHolder(itemView2: View, clickListener: onItemClickListener) :
45 | RecyclerView.ViewHolder(itemView2) {
46 | val tvUCmt: TextView = itemView2.findViewById(R.id.userComment)
47 |
48 | init {
49 | itemView2.setOnClickListener {
50 | clickListener.onItemClick(adapterPosition)
51 | }
52 | }
53 | }
54 |
55 |
56 | }
--------------------------------------------------------------------------------
/Customer Management/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | id 'org.jetbrains.kotlin.android'
4 | id 'com.google.gms.google-services'
5 | }
6 |
7 | android {
8 | namespace 'com.example.myapplication'
9 | compileSdk 33
10 |
11 | defaultConfig {
12 | applicationId "com.example.myapplication"
13 | minSdk 24
14 | targetSdk 33
15 | versionCode 1
16 | versionName "1.0"
17 |
18 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19 | }
20 |
21 | buildTypes {
22 | release {
23 | minifyEnabled false
24 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
25 | }
26 | }
27 | compileOptions {
28 | sourceCompatibility JavaVersion.VERSION_1_8
29 | targetCompatibility JavaVersion.VERSION_1_8
30 | }
31 | kotlinOptions {
32 | jvmTarget = '1.8'
33 | }
34 | }
35 |
36 | dependencies {
37 |
38 | // Import the BoM for the Firebase platform
39 | implementation platform('com.google.firebase:firebase-bom:32.0.0')
40 |
41 | // Add the dependency for the Realtime Database library
42 | // When using the BoM, you don't specify versions in Firebase library dependencies
43 | implementation 'com.google.firebase:firebase-database-ktx'
44 | implementation 'com.google.firebase:firebase-firestore-ktx:24.6.0-ktx'
45 |
46 | implementation 'androidx.core:core-ktx:1.7.0'
47 | implementation 'androidx.appcompat:appcompat:1.6.0'
48 | implementation 'com.google.android.material:material:1.8.0'
49 | implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
50 | implementation 'com.google.firebase:firebase-auth-ktx:22.0.0'
51 | testImplementation 'junit:junit:4.13.2'
52 | androidTestImplementation 'androidx.test.ext:junit:1.1.5'
53 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
54 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/shop_login.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.widget.Button
7 | import android.widget.TextView
8 | import android.widget.Toast
9 | import com.example.userlogin.R
10 | import com.example.userlogin.databinding.ActivityShopLoginBinding
11 | import com.google.firebase.auth.FirebaseAuth
12 |
13 | class shop_login : AppCompatActivity() {
14 |
15 | private lateinit var binding:ActivityShopLoginBinding
16 | private lateinit var firebaseAuth: FirebaseAuth
17 |
18 |
19 | override fun onCreate(savedInstanceState: Bundle?) {
20 | super.onCreate(savedInstanceState)
21 | binding = ActivityShopLoginBinding.inflate(layoutInflater)
22 | setContentView(binding.root)
23 | firebaseAuth = FirebaseAuth.getInstance()
24 |
25 | binding.redirectSignup.setOnClickListener{
26 | val intent = Intent(this, shop_register::class.java)
27 | startActivity(intent)
28 | }
29 |
30 | binding.button.setOnClickListener {
31 |
32 | val email = binding.addemail.text.toString()
33 | val Password = binding.addpassword.text.toString()
34 | if(email.isNotEmpty() && Password.isNotEmpty() ){
35 | firebaseAuth.signInWithEmailAndPassword(email,Password).addOnCompleteListener {
36 | if(it.isSuccessful){
37 | val intent = Intent(this , home_page::class.java)
38 | startActivity(intent)
39 | }else{
40 | Toast.makeText(this,it.exception.toString() , Toast.LENGTH_SHORT).show()
41 | }
42 | }
43 |
44 | }else{
45 | Toast.makeText(this , "Empty Fields are not allowed", Toast.LENGTH_SHORT).show()
46 | }
47 | }
48 | }
49 | }
--------------------------------------------------------------------------------
/Customer Management/app/src/main/java/com/example/myapplication/NewShoppingListActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import android.view.View
6 | import android.widget.Button
7 | import android.widget.EditText
8 | import com.google.android.material.snackbar.Snackbar
9 | import com.google.firebase.database.DatabaseReference
10 |
11 | class NewShoppingListActivity : AppCompatActivity() {
12 | private lateinit var rootLayout: View
13 | private lateinit var nameEditText: EditText
14 | private lateinit var createButton: Button
15 |
16 | private lateinit var shoppingListId: String
17 | private lateinit var shoppingListDatabaseReference: DatabaseReference
18 |
19 | override fun onCreate(savedInstanceState: Bundle?) {
20 | super.onCreate(savedInstanceState)
21 | setContentView(R.layout.activity_new_shopping_list)
22 |
23 | shoppingListId = intent.extras!!.getString("shoppingListId")!!
24 |
25 | shoppingListDatabaseReference = Constants.database.child("users").child(Constants.user!!.uid)
26 | .child("shopping-lists").child(shoppingListId)
27 |
28 | // Initialize UI components
29 | rootLayout = findViewById(R.id.rootLayout)
30 | nameEditText = findViewById(R.id.nameEditText)
31 | createButton = findViewById(R.id.createButton)
32 |
33 | createButton.setOnClickListener(View.OnClickListener {
34 | hideKeyboard(window, rootLayout)
35 |
36 | // Validate user inputs
37 | if (nameEditText.text.isNullOrBlank()) {
38 | val snackBar = Snackbar.make(rootLayout, "Shopping List Name cannot be empty", Snackbar.LENGTH_LONG)
39 | snackBar.show()
40 | return@OnClickListener
41 | }
42 |
43 | val name = nameEditText.text.toString()
44 |
45 | val shoppingList = ShoppingList(shoppingListId, name)
46 | shoppingListDatabaseReference.setValue(shoppingList)
47 |
48 | finish() // Destroy this screen
49 | })
50 | }
51 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/layout/shop_comment_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
24 |
25 |
30 |
31 |
32 |
39 |
40 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/Customer Management/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "716245204261",
4 | "firebase_url": "https://food-price-tracker-default-rtdb.asia-southeast1.firebasedatabase.app",
5 | "project_id": "food-price-tracker",
6 | "storage_bucket": "food-price-tracker.appspot.com"
7 | },
8 | "client": [
9 | {
10 | "client_info": {
11 | "mobilesdk_app_id": "1:716245204261:android:c0e0deb39c2b402badaecc",
12 | "android_client_info": {
13 | "package_name": "com.example.myapplication"
14 | }
15 | },
16 | "oauth_client": [
17 | {
18 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
19 | "client_type": 3
20 | }
21 | ],
22 | "api_key": [
23 | {
24 | "current_key": "AIzaSyDSpspgSkPUUgv4-FbRoYauulf4FZvbby8"
25 | }
26 | ],
27 | "services": {
28 | "appinvite_service": {
29 | "other_platform_oauth_client": [
30 | {
31 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
32 | "client_type": 3
33 | }
34 | ]
35 | }
36 | }
37 | },
38 | {
39 | "client_info": {
40 | "mobilesdk_app_id": "1:716245204261:android:65fc7c597f0b39dfadaecc",
41 | "android_client_info": {
42 | "package_name": "com.example.searchitem"
43 | }
44 | },
45 | "oauth_client": [
46 | {
47 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
48 | "client_type": 3
49 | }
50 | ],
51 | "api_key": [
52 | {
53 | "current_key": "AIzaSyDSpspgSkPUUgv4-FbRoYauulf4FZvbby8"
54 | }
55 | ],
56 | "services": {
57 | "appinvite_service": {
58 | "other_platform_oauth_client": [
59 | {
60 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
61 | "client_type": 3
62 | }
63 | ]
64 | }
65 | }
66 | }
67 | ],
68 | "configuration_version": "1"
69 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/shop_register.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.widget.Button
7 | import android.widget.Toast
8 | import com.example.userlogin.R
9 | import com.example.userlogin.databinding.ActivityShopRegisterBinding
10 | import com.google.firebase.auth.FirebaseAuth
11 |
12 | class shop_register : AppCompatActivity() {
13 |
14 |
15 | private lateinit var binding:ActivityShopRegisterBinding
16 | private lateinit var firebaseAuth: FirebaseAuth
17 | override fun onCreate(savedInstanceState: Bundle?) {
18 | super.onCreate(savedInstanceState)
19 | binding = ActivityShopRegisterBinding.inflate(layoutInflater)
20 | setContentView(binding.root)
21 |
22 | firebaseAuth = FirebaseAuth.getInstance()
23 |
24 | binding.signin.setOnClickListener {
25 | val intent = Intent(this, shop_login::class.java)
26 | startActivity(intent)
27 | }
28 | binding.button.setOnClickListener {
29 |
30 | val email = binding.addemail.text.toString()
31 | val Password = binding.addpassword.text.toString()
32 | val Repassword = binding.rePassword.text.toString()
33 | if(email.isNotEmpty() && Password.isNotEmpty() && Repassword.isNotEmpty()){
34 | if(Password == Repassword){
35 |
36 | firebaseAuth.createUserWithEmailAndPassword(email,Password).addOnCompleteListener {
37 | if(it.isSuccessful){
38 | val intent = Intent(this , shop_login::class.java)
39 | startActivity(intent)
40 | }else{
41 | Toast.makeText(this,it.exception.toString() , Toast.LENGTH_SHORT).show()
42 | }
43 | }
44 | }else{
45 | Toast.makeText(this , "Password is not matching",Toast.LENGTH_SHORT).show()
46 | }
47 | }else{
48 | Toast.makeText(this , "Empty Fields are not allowed", Toast.LENGTH_SHORT).show()
49 | }
50 |
51 | }
52 | }
53 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/layout/shop_commentpreview.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
25 |
26 |
37 |
38 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/java/com/example/myapplication/activities/Shop_commentpreview.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication.activities
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.view.View
7 | import android.widget.Button
8 | import androidx.recyclerview.widget.LinearLayoutManager
9 | import androidx.recyclerview.widget.RecyclerView
10 | import com.example.myapplication.R
11 | import com.example.myapplication.adapter.CommentAdapter
12 | import com.example.myapplication.model.commentModel
13 | import com.google.firebase.database.*
14 |
15 | class Shop_commentpreview : AppCompatActivity() {
16 |
17 | //declaire variable
18 | private lateinit var btnAddComment: Button
19 | private lateinit var cmtRecycleView: RecyclerView
20 | private lateinit var cmtList: ArrayList
21 | private lateinit var dbRef: DatabaseReference
22 |
23 | override fun onCreate(savedInstanceState: Bundle?) {
24 | super.onCreate(savedInstanceState)
25 | setContentView(R.layout.shop_commentpreview)
26 |
27 | btnAddComment = findViewById(R.id.addComment)
28 |
29 | cmtRecycleView = findViewById(R.id.rvscomments)
30 | cmtRecycleView.layoutManager = LinearLayoutManager(this)
31 | cmtRecycleView.setHasFixedSize(true)
32 |
33 | btnAddComment.setOnClickListener {
34 | val intent = Intent(this, addComment::class.java)
35 | startActivity(intent)
36 | }
37 |
38 | cmtList = arrayListOf()
39 |
40 | getComments()
41 |
42 | }
43 |
44 | private fun getComments() {
45 |
46 | dbRef = FirebaseDatabase.getInstance().getReference("comments")
47 |
48 | dbRef.addValueEventListener(object : ValueEventListener {
49 | override fun onDataChange(snapshot: DataSnapshot) {
50 | cmtList.clear()
51 | if (snapshot.exists()) {
52 | for (cmtSnap in snapshot.children) {
53 | val cmtData = cmtSnap.getValue(commentModel::class.java)
54 | cmtList.add(cmtData!!)
55 | }
56 | val cAdapter = CommentAdapter(cmtList)
57 | cmtRecycleView.adapter = cAdapter
58 |
59 | cmtRecycleView.visibility = View.VISIBLE
60 | }
61 | }
62 |
63 | override fun onCancelled(error: DatabaseError) {
64 | TODO("Not yet implemented")
65 | }
66 |
67 | })
68 | }
69 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/add_items.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import android.widget.Button
6 | import android.widget.EditText
7 | import android.widget.Toast
8 | import com.example.userlogin.models.ItemModel
9 | import com.example.userlogin.R
10 | import com.google.firebase.database.DatabaseReference
11 | import com.google.firebase.database.FirebaseDatabase
12 |
13 | class add_items : AppCompatActivity() {
14 |
15 |
16 | private lateinit var addItemName: EditText
17 | private lateinit var addUnitPrice: EditText
18 | private lateinit var addstockStatus: EditText
19 |
20 | private lateinit var btnItemsAdding: Button
21 |
22 | private lateinit var dbRef: DatabaseReference
23 |
24 | override fun onCreate(savedInstanceState: Bundle?) {
25 | super.onCreate(savedInstanceState)
26 | setContentView(R.layout.activity_add_items)
27 |
28 | addItemName = findViewById(R.id.addemail)
29 | addUnitPrice= findViewById(R.id.addpassword)
30 | addstockStatus= findViewById(R.id.addstockStatus)
31 | btnItemsAdding = findViewById(R.id.button)
32 |
33 | dbRef = FirebaseDatabase.getInstance().getReference("Items")
34 |
35 | btnItemsAdding.setOnClickListener {
36 | saveItemsData()
37 | }
38 | }
39 |
40 | private fun saveItemsData(){
41 | //getting items
42 | val itemName = addItemName.text.toString()
43 | val itemPrice = addUnitPrice.text.toString()
44 | val outOrIn = addstockStatus.text.toString()
45 |
46 | if (itemName.isEmpty()){
47 | addItemName.error = "Please Enter Item Name"
48 | }
49 | if (itemPrice.isEmpty()){
50 | addUnitPrice.error = "Please Enter Unit Price"
51 | }
52 | if (outOrIn.isEmpty()){
53 | addstockStatus.error = "Please Stock Status"
54 | }
55 | val itemId = dbRef.push().key!!
56 |
57 | val item = ItemModel(itemId,itemName,itemPrice,outOrIn)
58 |
59 | dbRef.child(itemId).setValue(item)
60 | .addOnCompleteListener {
61 | Toast.makeText(this,"Item Added Successfully", Toast.LENGTH_LONG).show()
62 |
63 | addItemName.text.clear()
64 | addUnitPrice.text.clear()
65 | addstockStatus.text.clear()
66 |
67 | }.addOnFailureListener{ err ->
68 | Toast.makeText(this, "Error ${err.message}", Toast.LENGTH_LONG).show()
69 | }
70 | }
71 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/layout/activity_add_comment.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
24 |
25 |
39 |
40 |
51 |
52 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/java/com/example/myapplication/LoginActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.view.View
7 | import android.widget.Button
8 | import android.widget.EditText
9 | import com.google.android.material.snackbar.Snackbar
10 |
11 | class LoginActivity : AppCompatActivity() {
12 | private lateinit var rootLayout: View
13 | private lateinit var emailEditText: EditText
14 | private lateinit var passwordEditText: EditText
15 | private lateinit var signinButton: Button
16 |
17 | override fun onCreate(savedInstanceState: Bundle?) {
18 | super.onCreate(savedInstanceState)
19 | setContentView(R.layout.activity_login)
20 |
21 | // Initialize UI components
22 | rootLayout = findViewById(R.id.rootLayout)
23 | emailEditText = findViewById(R.id.emailEditText)
24 | passwordEditText = findViewById(R.id.passwordEditText)
25 | signinButton = findViewById(R.id.signinButton)
26 |
27 | signinButton.setOnClickListener(View.OnClickListener {
28 | hideKeyboard(window, rootLayout)
29 |
30 | // Validate user inputs
31 | if (emailEditText.text.isNullOrBlank()) {
32 | val snackBar = Snackbar.make(rootLayout, "Email cannot be empty", Snackbar.LENGTH_LONG)
33 | snackBar.show()
34 | return@OnClickListener
35 | }
36 |
37 | if (passwordEditText.text.isNullOrBlank()) {
38 | val snackBar = Snackbar.make(rootLayout, "Password cannot be empty", Snackbar.LENGTH_LONG)
39 | snackBar.show()
40 | return@OnClickListener
41 | }
42 |
43 | var email: String = emailEditText.text.toString()
44 | var password: String = passwordEditText.text.toString()
45 |
46 | // Sign-in user with email and password
47 | Constants.auth.signInWithEmailAndPassword(email, password)
48 | .addOnCompleteListener(this) { task ->
49 | if (task.isSuccessful) {
50 | // Sign in success
51 | Constants.user = Constants.auth.currentUser
52 |
53 | // Open MainActivity screen
54 | startActivity(Intent(this, MainActivity::class.java)
55 | .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)) // Get rid of all previous stacked screens
56 | finish() // Destroy this screen
57 | } else {
58 | // Sign in failed
59 | val snackBar = Snackbar.make(rootLayout, "User sign-in failed. " + task.exception?.message, Snackbar.LENGTH_LONG)
60 | snackBar.show()
61 | }
62 | }
63 | })
64 | }
65 | }
--------------------------------------------------------------------------------
/Master/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/Shop Management/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/Comment Management/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/Customer Management/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
26 |
27 |
42 |
43 |
53 |
54 |
68 |
69 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/layout/activity_new_shopping_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
18 |
19 |
27 |
28 |
43 |
44 |
57 |
58 |
70 |
71 |
--------------------------------------------------------------------------------
/Shop Management/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "716245204261",
4 | "firebase_url": "https://food-price-tracker-default-rtdb.asia-southeast1.firebasedatabase.app",
5 | "project_id": "food-price-tracker",
6 | "storage_bucket": "food-price-tracker.appspot.com"
7 | },
8 | "client": [
9 | {
10 | "client_info": {
11 | "mobilesdk_app_id": "1:716245204261:android:c0e0deb39c2b402badaecc",
12 | "android_client_info": {
13 | "package_name": "com.example.myapplication"
14 | }
15 | },
16 | "oauth_client": [
17 | {
18 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
19 | "client_type": 3
20 | }
21 | ],
22 | "api_key": [
23 | {
24 | "current_key": "AIzaSyDSpspgSkPUUgv4-FbRoYauulf4FZvbby8"
25 | }
26 | ],
27 | "services": {
28 | "appinvite_service": {
29 | "other_platform_oauth_client": [
30 | {
31 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
32 | "client_type": 3
33 | }
34 | ]
35 | }
36 | }
37 | },
38 | {
39 | "client_info": {
40 | "mobilesdk_app_id": "1:716245204261:android:65fc7c597f0b39dfadaecc",
41 | "android_client_info": {
42 | "package_name": "com.example.searchitem"
43 | }
44 | },
45 | "oauth_client": [
46 | {
47 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
48 | "client_type": 3
49 | }
50 | ],
51 | "api_key": [
52 | {
53 | "current_key": "AIzaSyDSpspgSkPUUgv4-FbRoYauulf4FZvbby8"
54 | }
55 | ],
56 | "services": {
57 | "appinvite_service": {
58 | "other_platform_oauth_client": [
59 | {
60 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
61 | "client_type": 3
62 | }
63 | ]
64 | }
65 | }
66 | },
67 | {
68 | "client_info": {
69 | "mobilesdk_app_id": "1:716245204261:android:6229b6311e259b36adaecc",
70 | "android_client_info": {
71 | "package_name": "com.example.userlogin"
72 | }
73 | },
74 | "oauth_client": [
75 | {
76 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
77 | "client_type": 3
78 | }
79 | ],
80 | "api_key": [
81 | {
82 | "current_key": "AIzaSyDSpspgSkPUUgv4-FbRoYauulf4FZvbby8"
83 | }
84 | ],
85 | "services": {
86 | "appinvite_service": {
87 | "other_platform_oauth_client": [
88 | {
89 | "client_id": "716245204261-5dht0gtep5r49srv5j8200pert9i5edv.apps.googleusercontent.com",
90 | "client_type": 3
91 | }
92 | ]
93 | }
94 | }
95 | }
96 | ],
97 | "configuration_version": "1"
98 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/java/com/example/myapplication/activities/AddComment.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication.activities
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.widget.Button
7 | import android.widget.EditText
8 | import android.widget.Toast
9 | import com.example.myapplication.R
10 | import com.example.myapplication.model.commentModel
11 | import com.google.firebase.database.DatabaseReference
12 | import com.google.firebase.database.FirebaseDatabase
13 |
14 | //difine the activity class
15 | class addComment : AppCompatActivity() {
16 |
17 | //declair UI Elements
18 | private lateinit var comment: EditText
19 | private lateinit var btnSave: Button
20 | private lateinit var btnManage: Button
21 |
22 | //declair firebase database reference
23 | private lateinit var dbRef: DatabaseReference
24 |
25 |
26 | //define the onCreate reference
27 | override fun onCreate(savedInstanceState: Bundle?) {
28 | super.onCreate(savedInstanceState)
29 | setContentView(R.layout.activity_add_comment)
30 |
31 | //initialize UI element
32 | comment = findViewById(R.id.comment)
33 | btnSave = findViewById(R.id.sumbitbutton)
34 | btnManage = findViewById(R.id.btnreviweComment)
35 |
36 | //initialize firebase database reference
37 | dbRef = FirebaseDatabase.getInstance().getReference("comments")
38 |
39 | //set a click listener for the "save button"
40 | btnSave.setOnClickListener {
41 | saveComments()
42 | }
43 |
44 |
45 | //set a click listner for the "Manage" button
46 | btnManage.setOnClickListener {
47 | val intent = Intent(this, manageReview::class.java)
48 | startActivity(intent)
49 | }
50 |
51 |
52 | }
53 |
54 | //define the saveComment method
55 | private fun saveComments() {
56 |
57 | //getting comment
58 | val newComment = comment.text.toString()
59 |
60 | //check if comment is empty
61 | if (newComment.isEmpty()) {
62 | //display error message
63 | comment.error = "Please Enter Comment"
64 | Toast.makeText(this, "Please Enter Comment", Toast.LENGTH_LONG).show()
65 | return
66 | }
67 |
68 | //generate unique key for comment
69 | val commentId = dbRef.push().key!!
70 |
71 | //create commentModel with id and comment
72 | val shopComment = commentModel(commentId, newComment)
73 |
74 | //save the CommentModel object to the Firebase RealTime database
75 | dbRef.child(commentId).setValue(shopComment).addOnCompleteListener {
76 | Toast.makeText(this, "Comment Added Successfully", Toast.LENGTH_LONG).show()
77 | comment.text.clear()
78 | val intent = Intent(this, manageReview::class.java)
79 | startActivity(intent)
80 |
81 | //display error message if the save option faild
82 | }.addOnFailureListener { err ->
83 | Toast.makeText(this, "Error ${err.message}", Toast.LENGTH_LONG).show()
84 | }
85 | }
86 | }
--------------------------------------------------------------------------------
/Shop Management/app/src/main/java/com/example/userlogin/activities/view_items.kt:
--------------------------------------------------------------------------------
1 | package com.example.userlogin.activities
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.view.View
7 | import android.widget.TextView
8 | import androidx.recyclerview.widget.LinearLayoutManager
9 | import androidx.recyclerview.widget.RecyclerView
10 | import com.example.userlogin.R
11 | import com.example.userlogin.adapters.ItemAdapters
12 | import com.example.userlogin.models.ItemModel
13 | import com.google.firebase.database.*
14 |
15 | class view_items : AppCompatActivity() {
16 |
17 | private lateinit var empRecyclerView: RecyclerView
18 | private lateinit var tvLoadingData:TextView
19 | private lateinit var itemList: ArrayList
20 | private lateinit var dbRef: DatabaseReference
21 |
22 |
23 | override fun onCreate(savedInstanceState: Bundle?) {
24 | super.onCreate(savedInstanceState)
25 | setContentView(R.layout.activity_view_items)
26 |
27 | empRecyclerView = findViewById(R.id.rvEmp)
28 | empRecyclerView.layoutManager = LinearLayoutManager(this)
29 | empRecyclerView.setHasFixedSize(true)
30 | tvLoadingData = findViewById(R.id.tvLoadingData)
31 |
32 | itemList = arrayListOf()
33 |
34 | getItemdata()
35 |
36 | }
37 |
38 | private fun getItemdata(){
39 | empRecyclerView.visibility = View.GONE
40 | tvLoadingData.visibility = View.VISIBLE
41 |
42 | dbRef = FirebaseDatabase.getInstance().getReference("Items")
43 |
44 | dbRef.addValueEventListener(object : ValueEventListener{
45 | override fun onDataChange(snapshot: DataSnapshot) {
46 | itemList.clear()
47 | if (snapshot.exists()){
48 | for (ItemSnap in snapshot.children){
49 | val Itemdata = ItemSnap.getValue(ItemModel::class.java)
50 | itemList.add(Itemdata!!)
51 | }
52 | val mAdapter = ItemAdapters(itemList)
53 | empRecyclerView.adapter = mAdapter
54 |
55 | mAdapter.setOnItemClickListener(object : ItemAdapters.onItemClickListener {
56 | override fun onItemClick(position: Int) {
57 | val intent = Intent(this@view_items, ItemDetails::class.java)
58 |
59 | intent.putExtra("itemId", itemList[position].itemId)
60 | intent.putExtra("itemName", itemList[position].itemName)
61 | intent.putExtra("itemPrice", itemList[position].itemPrice)
62 | intent.putExtra("outOrIn", itemList[position].outOrIn)
63 | startActivity(intent)
64 | }
65 |
66 | })
67 |
68 | empRecyclerView.visibility = View.VISIBLE
69 | tvLoadingData.visibility = View.GONE
70 | }
71 | }
72 |
73 | override fun onCancelled(error: DatabaseError) {
74 | TODO("Not yet implemented")
75 | }
76 |
77 | })
78 |
79 | }
80 | }
--------------------------------------------------------------------------------
/Customer Management/app/src/main/java/com/example/myapplication/NewShoppingListItemActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 | import android.view.View
6 | import android.widget.Button
7 | import android.widget.EditText
8 | import androidx.core.text.isDigitsOnly
9 | import com.google.android.material.snackbar.Snackbar
10 | import com.google.firebase.database.DatabaseReference
11 |
12 | class NewShoppingListItemActivity : AppCompatActivity() {
13 | private lateinit var rootLayout: View
14 | private lateinit var productEditText: EditText
15 | private lateinit var quantityEditText: EditText
16 | private lateinit var addButton: Button
17 |
18 | private lateinit var shoppingListId: String
19 | private lateinit var shoppingListItemId: String
20 | private lateinit var shoppingListDatabaseReference: DatabaseReference
21 | private lateinit var shoppingListItemDatabaseReference: DatabaseReference
22 |
23 | override fun onCreate(savedInstanceState: Bundle?) {
24 | super.onCreate(savedInstanceState)
25 | setContentView(R.layout.activity_new_shopping_list_item)
26 |
27 | shoppingListId = intent.extras!!.getString("shoppingListId")!!
28 | shoppingListItemId = intent.extras!!.getString("shoppingListItemId")!!
29 |
30 | shoppingListDatabaseReference = Constants.database.child("users").child(Constants.user!!.uid)
31 | .child("shopping-lists").child(shoppingListId)
32 |
33 | shoppingListItemDatabaseReference = Constants.database.child("users").child(Constants.user!!.uid)
34 | .child("shopping-lists").child(shoppingListId)
35 | .child("items").child(shoppingListItemId)
36 |
37 | // Initialize UI components
38 | rootLayout = findViewById(R.id.rootLayout)
39 | productEditText = findViewById(R.id.productEditText)
40 | quantityEditText = findViewById(R.id.quantityEditText)
41 | addButton = findViewById(R.id.addButton)
42 |
43 | addButton.setOnClickListener(View.OnClickListener {
44 | hideKeyboard(window, rootLayout)
45 |
46 | // Validate user inputs
47 | // Validate user inputs
48 | if (productEditText.text.isNullOrBlank()) {
49 | popup("Product Name cannot be empty", rootLayout)
50 | return@OnClickListener
51 | }
52 |
53 | if (quantityEditText.text.isNullOrBlank()) {
54 | popup("Quantity cannot be empty", rootLayout)
55 | return@OnClickListener
56 | }
57 |
58 | if (!quantityEditText.text.isDigitsOnly()) {
59 | popup("Quantity should be a number", rootLayout)
60 | return@OnClickListener
61 | }
62 |
63 | val product = productEditText.text.toString()
64 | val quantity = quantityEditText.text.toString().toInt()
65 |
66 | // Create new shopping list item
67 | val shoppingListItem = ShoppingListItem(shoppingListItemId, product, quantity)
68 | shoppingListItemDatabaseReference.setValue(shoppingListItem)
69 |
70 | // Update shopping list timestamp because it was updated with a new item
71 | shoppingListDatabaseReference.child("timestamp").setValue(System.currentTimeMillis())
72 |
73 | finish() // Destroy this screen
74 | })
75 | }
76 | }
--------------------------------------------------------------------------------
/Customer Management/app/src/main/java/com/example/myapplication/RegisterActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.view.View
7 | import android.widget.Button
8 | import android.widget.EditText
9 | import com.google.android.material.snackbar.Snackbar
10 |
11 | class RegisterActivity : AppCompatActivity() {
12 | private lateinit var rootLayout: View
13 | private lateinit var emailEditText: EditText
14 | private lateinit var passwordEditText: EditText
15 | private lateinit var rePasswordEditText: EditText
16 | private lateinit var signupButton: Button
17 |
18 | override fun onCreate(savedInstanceState: Bundle?) {
19 | super.onCreate(savedInstanceState)
20 | setContentView(R.layout.activity_register)
21 |
22 | // Initialize UI components
23 | rootLayout = findViewById(R.id.rootLayout)
24 | emailEditText = findViewById(R.id.emailEditText)
25 | passwordEditText = findViewById(R.id.passwordEditText)
26 | rePasswordEditText = findViewById(R.id.rePasswordEditText)
27 | signupButton = findViewById(R.id.signupButton)
28 |
29 | signupButton.setOnClickListener(View.OnClickListener {
30 | hideKeyboard(window, rootLayout)
31 |
32 | // Validate user inputs
33 | if (emailEditText.text.isNullOrBlank()) {
34 | val snackBar = Snackbar.make(rootLayout, "Email cannot be empty", Snackbar.LENGTH_LONG)
35 | snackBar.show()
36 | return@OnClickListener
37 | }
38 |
39 | if (passwordEditText.text.isNullOrBlank()) {
40 | val snackBar = Snackbar.make(rootLayout, "Password cannot be empty", Snackbar.LENGTH_LONG)
41 | snackBar.show()
42 | return@OnClickListener
43 | }
44 |
45 | if (passwordEditText.text.toString() != rePasswordEditText.text.toString()) {
46 | val snackBar = Snackbar.make(rootLayout, "Password and Confirm Password mismatch", Snackbar.LENGTH_LONG)
47 | snackBar.show()
48 | return@OnClickListener
49 | }
50 |
51 | var email: String = emailEditText.text.toString()
52 | var password: String = passwordEditText.text.toString()
53 |
54 | // Sign-up user with email and password
55 | Constants.auth.createUserWithEmailAndPassword(email, password)
56 | .addOnCompleteListener(this) { task ->
57 | if (task.isSuccessful) {
58 | // Sign up/in success
59 | Constants.user = Constants.auth.currentUser
60 |
61 | // Open MainActivity screen
62 | startActivity(Intent(this, MainActivity::class.java)
63 | .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)) // Get rid of all previous stacked screens
64 | finish() // Destroy this screen
65 | } else {
66 | // Sign up failed
67 | val snackBar = Snackbar.make(rootLayout, "User sign-up failed. " + task.exception?.message, Snackbar.LENGTH_LONG)
68 | snackBar.show()
69 | }
70 | }
71 | })
72 | }
73 | }
--------------------------------------------------------------------------------
/Comment Management/app/src/main/res/layout/activity_edit_review.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
24 |
25 |
26 |
39 |
40 |
52 |
53 |
64 |
65 |
77 |
78 |
--------------------------------------------------------------------------------
/Comment Management/app/src/main/java/com/example/myapplication/activities/ManageReview.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication.activities
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.view.View
7 | import android.widget.TextView
8 | import androidx.recyclerview.widget.LinearLayoutManager
9 | import androidx.recyclerview.widget.RecyclerView
10 | import com.example.myapplication.R
11 | import com.example.myapplication.adapter.CommentManagerAdapter
12 | import com.example.myapplication.model.commentModel
13 | import com.google.firebase.database.*
14 |
15 | class manageReview : AppCompatActivity() {
16 |
17 |
18 | //declair variable for RecycleView, ArrayList of commants, and database ref
19 | private lateinit var userCmtRecycleView: RecyclerView
20 | private lateinit var userCmtList: ArrayList
21 | private lateinit var dbURef: DatabaseReference
22 |
23 | override fun onCreate(savedInstanceState: Bundle?) {
24 | super.onCreate(savedInstanceState)
25 | setContentView(R.layout.activity_manage_review)
26 |
27 |
28 | //Intialize RV and set properties
29 | userCmtRecycleView = findViewById(R.id.rvucomments)
30 | userCmtRecycleView.layoutManager = LinearLayoutManager(this)
31 | userCmtRecycleView.setHasFixedSize(true)
32 |
33 | //set arrayList for comments
34 | userCmtList = arrayListOf()
35 |
36 | //call funtions to get comments from db
37 | getUserComments()
38 | }
39 |
40 | private fun getUserComments() {
41 |
42 | //get ref to db
43 | dbURef = FirebaseDatabase.getInstance().getReference("comments")
44 |
45 | //attach valueEventLister to retrive commentss from db
46 | dbURef.addValueEventListener(object : ValueEventListener {
47 | override fun onDataChange(snapshot: DataSnapshot) {
48 | //clear arrayList of comments
49 | userCmtList.clear()
50 |
51 | //if comments are exist in the db retrive them and add them to arrayList
52 | if (snapshot.exists()) {
53 | for (ucmtSnap in snapshot.children) {
54 | val userCmtData = ucmtSnap.getValue(commentModel::class.java)
55 | userCmtList.add(userCmtData!!)
56 | }
57 | //intialize CommenetManagerAdapter with arraylist of comments
58 | val ucAdapter = CommentManagerAdapter(userCmtList)
59 | userCmtRecycleView.adapter = ucAdapter
60 |
61 | //set click lister for RecycleView items
62 | ucAdapter.setOnItemClickListener(object :
63 | CommentManagerAdapter.onItemClickListener {
64 | override fun onItemClick(position: Int) {
65 |
66 | //when a RV item clicked open edit_Review activity
67 | val intent = Intent(this@manageReview, Edit_Review::class.java)
68 |
69 | //pass commentId and comment to editReview activity
70 | intent.putExtra("commentId", userCmtList[position].commentId)
71 | intent.putExtra("newComment", userCmtList[position].newComment)
72 | startActivity(intent)
73 | }
74 |
75 | })
76 | //make RV Visible
77 | userCmtRecycleView.visibility = View.VISIBLE
78 | }
79 | }
80 |
81 | override fun onCancelled(error: DatabaseError) {
82 | TODO("Not yet implemented")
83 | }
84 |
85 | })
86 | }
87 | }
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/layout/activity_not_signedin.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
27 |
28 |
42 |
43 |
58 |
59 |
72 |
73 |
87 |
88 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/res/layout/activity_login.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
18 |
19 |
28 |
29 |
40 |
41 |
49 |
50 |
66 |
67 |
83 |
84 |
99 |
100 |
--------------------------------------------------------------------------------
/Customer Management/app/src/main/java/com/example/myapplication/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.myapplication
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.widget.ArrayAdapter
7 | import android.widget.Button
8 | import android.widget.ListView
9 | import com.google.firebase.auth.ktx.auth
10 | import com.google.firebase.database.DataSnapshot
11 | import com.google.firebase.database.DatabaseError
12 | import com.google.firebase.database.DatabaseReference
13 | import com.google.firebase.database.ValueEventListener
14 | import com.google.firebase.database.ktx.database
15 | import com.google.firebase.database.ktx.getValue
16 | import com.google.firebase.ktx.Firebase
17 |
18 | class MainActivity : AppCompatActivity() {
19 | private lateinit var createANewShoppingListButton: Button
20 | private lateinit var listView: ListView
21 |
22 | private lateinit var shoppingListsDatabaseReference: DatabaseReference
23 | private lateinit var shoppingListsValueListener: ValueEventListener
24 |
25 | private var shoppingLists: List? = null
26 |
27 | override fun onCreate(savedInstanceState: Bundle?) {
28 | super.onCreate(savedInstanceState)
29 | setContentView(R.layout.activity_main)
30 |
31 | // Initialize Firebase
32 | Constants.auth = Firebase.auth
33 | // Get signed-in user
34 | Constants.user = Constants.auth.currentUser
35 | // Get Firebase Realtime Database reference
36 | Constants.database = Firebase.database.reference
37 |
38 | // Initialize UI components
39 | createANewShoppingListButton = findViewById(R.id.createANewShoppingListButton)
40 | listView = findViewById(R.id.listView)
41 |
42 | createANewShoppingListButton.setOnClickListener {
43 | if (shoppingLists != null) {
44 | // Open NewShoppingListActivity screen
45 | startActivity(Intent(this, NewShoppingListActivity::class.java)
46 | .putExtra("shoppingListId", shoppingLists!!.size.toString()))
47 | }
48 | }
49 |
50 | listView.setOnItemClickListener { parent, view, position, id ->
51 | val shoppingList = parent.getItemAtPosition(position) as ShoppingList
52 |
53 | // Open NewShoppingListActivity screen
54 | startActivity(Intent(this, ShoppingListActivity::class.java)
55 | .putExtra("shoppingListId", shoppingList!!.id))
56 | }
57 |
58 | // Firebase value listener
59 | shoppingListsValueListener = object : ValueEventListener {
60 | override fun onDataChange(dataSnapshot: DataSnapshot) {
61 | // Get user's shopping lists
62 | shoppingLists = dataSnapshot.getValue>()?.sortedByDescending { it.timestamp } // Latest modified shopping list comes first
63 | // User's shopping lists are available?
64 | if (shoppingLists != null) {
65 | // List user's shopping lists in the ListView
66 | listView.adapter = ArrayAdapter(baseContext, android.R.layout.simple_list_item_1, shoppingLists!!)
67 | }
68 | // User has not created any shopping lists
69 | else {
70 | shoppingLists = listOf()
71 | listView.adapter = null
72 | }
73 | }
74 |
75 | override fun onCancelled(databaseError: DatabaseError) {}
76 | }
77 | }
78 |
79 | override fun onStart() {
80 | super.onStart()
81 |
82 | // Is a user signed-in?
83 | if (Constants.user != null) {
84 | // Add listener to signed-in user's shopping lists
85 | shoppingListsDatabaseReference = Constants.database.child("users").child(Constants.user!!.uid).child("shopping-lists")
86 | shoppingListsDatabaseReference.addValueEventListener(shoppingListsValueListener)
87 | }
88 | // User has not signed-in?
89 | else {
90 | // Open NotSignedinActivity screen
91 | startActivity(Intent(this, NotSignedinActivity::class.java))
92 | finish() // Destroy this screen
93 | }
94 | }
95 |
96 | override fun onPause() {
97 | // Is a user signed-in?
98 | if (Constants.user != null) {
99 | // Remove the listener to signed-in user's shopping lists
100 | shoppingListsDatabaseReference.removeEventListener(shoppingListsValueListener)
101 | }
102 | super.onPause()
103 | }
104 | }
105 |
--------------------------------------------------------------------------------