diff --git a/Hmos/Muhammed Fazil K/Userlogin/.gitignore b/Hmos/Muhammed Fazil K/Userlogin/.gitignore
new file mode 100644
index 00000000..37a4eb8b
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/.gitignore
@@ -0,0 +1,15 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+/entry/.preview
+.cxx
diff --git a/Hmos/Muhammed Fazil K/Userlogin/.idea/.gitignore b/Hmos/Muhammed Fazil K/Userlogin/.idea/.gitignore
new file mode 100644
index 00000000..26d33521
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/Hmos/Muhammed Fazil K/Userlogin/.idea/compiler.xml b/Hmos/Muhammed Fazil K/Userlogin/.idea/compiler.xml
new file mode 100644
index 00000000..61a9130c
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/.idea/gradle.xml b/Hmos/Muhammed Fazil K/Userlogin/.idea/gradle.xml
new file mode 100644
index 00000000..0efd9bc1
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/.idea/gradle.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/.idea/jarRepositories.xml b/Hmos/Muhammed Fazil K/Userlogin/.idea/jarRepositories.xml
new file mode 100644
index 00000000..1dfcd020
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/.idea/jarRepositories.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/.idea/misc.xml b/Hmos/Muhammed Fazil K/Userlogin/.idea/misc.xml
new file mode 100644
index 00000000..58918f50
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/.idea/misc.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/.idea/previewer/phone/phoneSettingConfig_1809599381.json b/Hmos/Muhammed Fazil K/Userlogin/.idea/previewer/phone/phoneSettingConfig_1809599381.json
new file mode 100644
index 00000000..69beee7f
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/.idea/previewer/phone/phoneSettingConfig_1809599381.json
@@ -0,0 +1,25 @@
+{
+ "setting": {
+ "1.0.1": {
+ "Language": {
+ "args": {
+ "Language": "zh_CN"
+ }
+ }
+ }
+ },
+ "frontend": {
+ "1.0.0": {
+ "Resolution": {
+ "args": {
+ "Resolution": "360*780"
+ }
+ },
+ "DeviceType": {
+ "args": {
+ "DeviceType": "phone"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/.idea/previewer/previewConfig.json b/Hmos/Muhammed Fazil K/Userlogin/.idea/previewer/previewConfig.json
new file mode 100644
index 00000000..fabab7ee
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/.idea/previewer/previewConfig.json
@@ -0,0 +1,9 @@
+{
+ "1.0.0": {
+ "LastPreviewDevice": {
+ "X:\\hmosProjects\\Userlogin\\entry": [
+ "phone"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/build.gradle b/Hmos/Muhammed Fazil K/Userlogin/build.gradle
new file mode 100644
index 00000000..9ec29b00
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/build.gradle
@@ -0,0 +1,37 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+apply plugin: 'com.huawei.ohos.app'
+
+ohos {
+ compileSdkVersion 5
+ defaultConfig {
+ compatibleSdkVersion 4
+ }
+}
+
+buildscript {
+ repositories {
+ maven {
+ url 'https://repo.huaweicloud.com/repository/maven/'
+ }
+ maven {
+ url 'https://developer.huawei.com/repo/'
+ }
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.huawei.ohos:hap:2.4.2.7'
+ classpath 'com.huawei.ohos:decctest:1.0.0.7'
+ }
+}
+
+allprojects {
+ repositories {
+ maven {
+ url 'https://repo.huaweicloud.com/repository/maven/'
+ }
+ maven {
+ url 'https://developer.huawei.com/repo/'
+ }
+ jcenter()
+ }
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/.gitignore b/Hmos/Muhammed Fazil K/Userlogin/entry/.gitignore
new file mode 100644
index 00000000..796b96d1
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/build.gradle b/Hmos/Muhammed Fazil K/Userlogin/entry/build.gradle
new file mode 100644
index 00000000..cce82705
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/build.gradle
@@ -0,0 +1,29 @@
+apply plugin: 'com.huawei.ohos.hap'
+apply plugin: 'com.huawei.ohos.decctest'
+ohos {
+ compileSdkVersion 5
+ defaultConfig {
+ compatibleSdkVersion 4
+ }
+ buildTypes {
+ release {
+ proguardOpt {
+ proguardEnabled false
+ rulesFiles 'proguard-rules.pro'
+ }
+ }
+ }
+ compileOptions{
+ annotationEnabled true
+ }
+
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
+ testImplementation 'junit:junit:4.13'
+ ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100'
+}
+decc {
+ supportType = ['html','xml']
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/proguard-rules.pro b/Hmos/Muhammed Fazil K/Userlogin/entry/proguard-rules.pro
new file mode 100644
index 00000000..f7666e47
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/proguard-rules.pro
@@ -0,0 +1 @@
+# config module specific ProGuard rules here.
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/config.json b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/config.json
new file mode 100644
index 00000000..86493781
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/config.json
@@ -0,0 +1,49 @@
+{
+ "app": {
+ "bundleName": "com.example.userlogin",
+ "vendor": "example",
+ "version": {
+ "code": 1000000,
+ "name": "1.0.0"
+ },
+ "apiVersion": {
+ "compatible": 4,
+ "target": 5,
+ "releaseType": "Release"
+ }
+ },
+ "deviceConfig": {},
+ "module": {
+ "package": "com.example.userlogin",
+ "name": ".MyApplication",
+ "deviceType": [
+ "phone"
+ ],
+ "distro": {
+ "deliveryWithInstall": true,
+ "moduleName": "entry",
+ "moduleType": "entry"
+ },
+ "abilities": [
+ {
+ "skills": [
+ {
+ "entities": [
+ "entity.system.home"
+ ],
+ "actions": [
+ "action.system.home"
+ ]
+ }
+ ],
+ "orientation": "unspecified",
+ "name": "com.example.userlogin.MainAbility",
+ "icon": "$media:icon",
+ "description": "$string:mainability_description",
+ "label": "$string:app_name",
+ "type": "page",
+ "launchType": "standard"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/MainAbility.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/MainAbility.java
new file mode 100644
index 00000000..298902d2
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/MainAbility.java
@@ -0,0 +1,13 @@
+package com.example.userlogin;
+
+import com.example.userlogin.slice.MainAbilitySlice;
+import ohos.aafwk.ability.Ability;
+import ohos.aafwk.content.Intent;
+
+public class MainAbility extends Ability {
+ @Override
+ public void onStart(Intent intent) {
+ super.onStart(intent);
+ super.setMainRoute(MainAbilitySlice.class.getName());
+ }
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/MyApplication.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/MyApplication.java
new file mode 100644
index 00000000..0c95d6a2
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/MyApplication.java
@@ -0,0 +1,10 @@
+package com.example.userlogin;
+
+import ohos.aafwk.ability.AbilityPackage;
+
+public class MyApplication extends AbilityPackage {
+ @Override
+ public void onInitialize() {
+ super.onInitialize();
+ }
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/Utils/Constants.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/Utils/Constants.java
new file mode 100644
index 00000000..7f607db2
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/Utils/Constants.java
@@ -0,0 +1,20 @@
+package com.example.userlogin.Utils;
+
+public class Constants {
+ public static final String FIRSTNAMEPATTERN = "[A-Z][a-z]*";
+ public static final String LASTNAMEPATTERN = "[A-Z][a-z]*";
+ public static final String EMAILPATTERN = "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6}$";
+ public static final String MOBILEPATTERN = "^\\d{10}$";
+
+ public static final String DB_NAME="UserDetailsDB.db";
+ public static String DB_ALIAS="UserdetailsDB.db";
+ public static final String FIRSTNAME_COLUMN="firstName";
+ public static final String LASTNAME_COLUMN="lastname";
+ public static final String EMAIL_COLUMN="email";
+ public static final String PASSWORD_COLUMN="password";
+ public static final String MOBILE_COLUMN="mobile";
+ public static final String GENDER_COLUMN="gender";
+
+
+
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/data/User.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/data/User.java
new file mode 100644
index 00000000..3c43e6da
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/data/User.java
@@ -0,0 +1,70 @@
+package com.example.userlogin.data;
+
+import ohos.data.orm.OrmObject;
+import ohos.data.orm.annotation.Column;
+import ohos.data.orm.annotation.Entity;
+import ohos.data.orm.annotation.PrimaryKey;
+
+@Entity(tableName = "User")
+public class User extends OrmObject {
+ @PrimaryKey
+ private String email;
+ @Column
+ private String firstName;
+ @Column
+ private String lastName;
+ @Column
+ private String password;
+ @Column
+ private String mobile;
+ @Column
+ private String gender;
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getMobile() {
+ return mobile;
+ }
+
+ public void setMobile(String mobile) {
+ this.mobile = mobile;
+ }
+
+ public String getGender() {
+ return gender;
+ }
+
+ public void setGender(String gender) {
+ this.gender = gender;
+ }
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/data/UserDatabase.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/data/UserDatabase.java
new file mode 100644
index 00000000..e2a8142f
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/data/UserDatabase.java
@@ -0,0 +1,8 @@
+package com.example.userlogin.data;
+
+import ohos.data.orm.OrmDatabase;
+import ohos.data.orm.annotation.Database;
+
+@Database(entities = {User.class},version = 1)
+public abstract class UserDatabase extends OrmDatabase {
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/LoginSlice.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/LoginSlice.java
new file mode 100644
index 00000000..2bcd76ce
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/LoginSlice.java
@@ -0,0 +1,114 @@
+package com.example.userlogin.slice;
+
+import com.example.userlogin.ResourceTable;
+import com.example.userlogin.Utils.Constants;
+import com.example.userlogin.data.User;
+import com.example.userlogin.data.UserDatabase;
+import ohos.aafwk.ability.AbilitySlice;
+import ohos.aafwk.content.Intent;
+import ohos.agp.components.Button;
+import ohos.agp.components.Component;
+import ohos.agp.components.Text;
+import ohos.agp.components.TextField;
+import ohos.agp.window.dialog.ToastDialog;
+import ohos.data.DatabaseHelper;
+import ohos.data.orm.OrmContext;
+import ohos.data.orm.OrmPredicates;
+
+import java.util.List;
+
+public class LoginSlice extends AbilitySlice {
+
+ OrmContext ormContext;
+
+ TextField loginEmail,loginPassword;
+ Text loginEmailError,loginPasswordError;
+ Button loginBtn;
+
+ Boolean loginError=true;
+
+
+ @Override
+ protected void onStart(Intent intent) {
+ super.onStart(intent);
+ super.setUIContent(ResourceTable.Layout_login_page);
+ initViews(intent);
+ setListeners();
+ DatabaseHelper databaseHelper=new DatabaseHelper(this);
+ ormContext=databaseHelper.getOrmContext(Constants.DB_ALIAS,Constants.DB_NAME, UserDatabase.class);
+
+
+
+ }
+
+ private void initViews(Intent intent) {
+ loginEmail=(TextField)findComponentById(ResourceTable.Id_login_email);
+ loginPassword=(TextField)findComponentById(ResourceTable.Id_login_password);
+
+ if(intent!=null){
+ loginEmail.setText(intent.getStringParam(Constants.EMAIL_COLUMN));
+ loginPassword.setText(intent.getStringParam(Constants.PASSWORD_COLUMN));
+ }
+
+ loginEmailError=(Text) findComponentById(ResourceTable.Id_loginerror_email);
+ loginEmailError.setVisibility(Component.INVISIBLE);
+ loginPasswordError=(Text) findComponentById(ResourceTable.Id_loginerror_password);
+ loginPasswordError.setVisibility(Component.INVISIBLE);
+
+ loginBtn=(Button)findComponentById(ResourceTable.Id_final_loginbtn);
+ }
+
+ private void setListeners() {
+
+ loginEmail.addTextObserver((s, i, i1, i2) -> checkError(s,loginEmailError));
+
+ loginPassword.addTextObserver((s, i, i1, i2) -> {
+ if(s.length()<5){
+ loginError=true;
+ loginPasswordError.setText("Enter a strong password");
+ loginPasswordError.setVisibility(Component.VISIBLE);
+ }
+ else{
+ loginError=false;
+ loginPasswordError.setVisibility(Component.INVISIBLE);
+ }
+ });
+
+ loginBtn.setClickedListener(component -> loginUser());
+ }
+
+ private void loginUser() {
+ if(!loginError){
+ OrmPredicates ormPredicates=ormContext.where(User.class);
+ ormPredicates.equalTo(Constants.EMAIL_COLUMN,loginEmail.getText());
+ ormPredicates.and();
+ ormPredicates.equalTo(Constants.PASSWORD_COLUMN,loginPassword.getText());
+
+ List users=ormContext.query(ormPredicates);
+ if (users == null || users.isEmpty()) {
+ new ToastDialog(this).setText("User no account").setDuration(2000).show();
+ } else {
+ new ToastDialog(this).setText("User Loggedt").setDuration(2000).show();
+ Intent intent=new Intent();
+ intent.setParam(Constants.FIRSTNAME_COLUMN,users.get(0).getFirstName());
+ present(new WelcomeSlice(), intent);
+ }
+ }
+ }
+
+ private void checkError(String s, Text errEmail) {
+ boolean matched = s.matches(Constants.EMAILPATTERN);
+ if (s.isEmpty()) {
+ errEmail.setText("It is Empty");
+ errEmail.setVisibility(Component.VISIBLE);
+ loginError = true;
+ } else if (matched) {
+ errEmail.setVisibility(Component.INVISIBLE);
+ loginError = false;
+ } else {
+ errEmail.setText("Enter Valid data");
+ errEmail.setVisibility(Component.VISIBLE);
+ loginError = true;
+ }
+ }
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/MainAbilitySlice.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/MainAbilitySlice.java
new file mode 100644
index 00000000..d1cc933b
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/MainAbilitySlice.java
@@ -0,0 +1,40 @@
+package com.example.userlogin.slice;
+
+import com.example.userlogin.ResourceTable;
+import ohos.aafwk.ability.AbilitySlice;
+import ohos.aafwk.content.Intent;
+import ohos.agp.components.Button;
+import ohos.agp.components.Component;
+
+public class MainAbilitySlice extends AbilitySlice {
+ Button login,signup;
+ @Override
+ public void onStart(Intent intent) {
+ super.onStart(intent);
+ super.setUIContent(ResourceTable.Layout_ability_main);
+ login=(Button)findComponentById(ResourceTable.Id_main_login_button);
+ signup=(Button)findComponentById(ResourceTable.Id_main_signup_button);
+ login.setClickedListener(new Component.ClickedListener() {
+ @Override
+ public void onClick(Component component) {
+ present(new LoginSlice(),new Intent());
+ }
+ });
+ signup.setClickedListener(new Component.ClickedListener() {
+ @Override
+ public void onClick(Component component) {
+ present(new SignupSlice(),new Intent());
+ }
+ });
+ }
+
+ @Override
+ public void onActive() {
+ super.onActive();
+ }
+
+ @Override
+ public void onForeground(Intent intent) {
+ super.onForeground(intent);
+ }
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/SignupSlice.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/SignupSlice.java
new file mode 100644
index 00000000..7ef633d6
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/SignupSlice.java
@@ -0,0 +1,193 @@
+package com.example.userlogin.slice;
+
+import com.example.userlogin.data.User;
+import com.example.userlogin.data.UserDatabase;
+import com.example.userlogin.ResourceTable;
+import com.example.userlogin.Utils.Constants;
+import ohos.aafwk.ability.AbilitySlice;
+import ohos.aafwk.content.Intent;
+import ohos.agp.components.*;
+import ohos.agp.window.dialog.CommonDialog;
+import ohos.agp.window.dialog.IDialog;
+import ohos.agp.window.dialog.ToastDialog;
+import ohos.data.DatabaseHelper;
+import ohos.data.orm.OrmContext;
+import ohos.data.orm.OrmPredicates;
+
+import java.util.List;
+
+import static ohos.agp.components.ComponentContainer.LayoutConfig.MATCH_CONTENT;
+
+public class SignupSlice extends AbilitySlice {
+
+ public static final int DIALOG_BOX_WIDTH = 984;
+
+ OrmContext ormContext;
+
+ TextField firstNameField,lastNameField,emailField,passwordField,mobileField;
+ Text firstNameError,lastNameError,emailError,passwordError,mobileError,genderError;
+ RadioButton maleBtn,femaleBtn;
+ Button signupBtn;
+
+ Boolean error=true;
+
+ @Override
+ protected void onStart(Intent intent) {
+ super.onStart(intent);
+ super.setUIContent(ResourceTable.Layout_signup_page);
+ intiViews();
+ setListeners();
+ DatabaseHelper databaseHelper=new DatabaseHelper(this);
+ ormContext=databaseHelper.getOrmContext(Constants.DB_ALIAS,Constants.DB_NAME, UserDatabase.class);
+
+ }
+
+
+
+ private void intiViews() {
+
+ firstNameField=(TextField)findComponentById(ResourceTable.Id_signup_firstname);
+ lastNameField=(TextField)findComponentById(ResourceTable.Id_signup_lastname);
+ emailField=(TextField)findComponentById(ResourceTable.Id_signup_email);
+ passwordField=(TextField)findComponentById(ResourceTable.Id_signup_password);
+ mobileField=(TextField)findComponentById(ResourceTable.Id_signup_mobile);
+
+ firstNameError=(Text) findComponentById(ResourceTable.Id_signuperror_firstname);
+ firstNameError.setVisibility(Component.INVISIBLE);
+ lastNameError=(Text) findComponentById(ResourceTable.Id_signuperror_lastname);
+ lastNameError.setVisibility(Component.INVISIBLE);
+ emailError=(Text) findComponentById(ResourceTable.Id_signuperror_email);
+ emailError.setVisibility(Component.INVISIBLE);
+ passwordError=(Text) findComponentById(ResourceTable.Id_signuperror_password);
+ passwordError.setVisibility(Component.INVISIBLE);
+ mobileError=(Text) findComponentById(ResourceTable.Id_signuperror_mobile);
+ mobileError.setVisibility(Component.INVISIBLE);
+ genderError=(Text) findComponentById(ResourceTable.Id_signuperror_gender);
+ genderError.setVisibility(Component.INVISIBLE);
+
+ maleBtn=(RadioButton)findComponentById(ResourceTable.Id_male_btn) ;
+ femaleBtn=(RadioButton)findComponentById(ResourceTable.Id_female_btn) ;
+
+ signupBtn=(Button)findComponentById(ResourceTable.Id_final_signupbtn);
+
+ }
+ private void setListeners() {
+
+ firstNameField.addTextObserver((s, i, i1, i2) -> checkError(s,firstNameError, Constants.FIRSTNAMEPATTERN));
+
+ lastNameField.addTextObserver((s, i, i1, i2) -> checkError(s,lastNameError,Constants.LASTNAMEPATTERN));
+
+ emailField.addTextObserver((s, i, i1, i2) -> checkError(s,emailError,Constants.EMAILPATTERN));
+
+ passwordField.addTextObserver((s, i, i1, i2) -> {
+ if(s.length()<5){
+ error=true;
+ passwordError.setText("Enter a strong password");
+ passwordError.setVisibility(Component.VISIBLE);
+ }else{
+ error=false;
+ passwordError.setVisibility(Component.INVISIBLE);
+ }
+ });
+
+ mobileField.addTextObserver((s, i, i1, i2) -> checkError(s,mobileError,Constants.MOBILEPATTERN));
+
+ if(maleBtn.isChecked()||femaleBtn.isChecked()){
+ error=false;
+ genderError.setVisibility(Component.INVISIBLE);
+
+ }
+ else {
+ error=true;
+ genderError.setText("Please choose a gender");
+ genderError.setVisibility(Component.VISIBLE);
+
+ }
+
+ signupBtn.setClickedListener(component -> registerUser());
+
+ }
+
+ private void registerUser() {
+ if(!error){
+ String gender;
+ if(maleBtn.isChecked())
+ gender="male";
+ else
+ gender="female";
+
+ User user=new User();
+ user.setFirstName(firstNameField.getText());
+ user.setLastName(lastNameField.getText());
+ user.setEmail(emailField.getText());
+ user.setPassword(passwordField.getText());
+ user.setMobile(mobileField.getText());
+ user.setGender(gender);
+ if(!userExist(user)){
+ ormContext.insert(user);
+ ormContext.flush();
+ new ToastDialog(this).setText("User Inserted Successfully");
+ gotoLogin();
+
+ }
+
+
+
+ }
+
+ }
+
+ private void gotoLogin() {
+ CommonDialog commonDialog = new CommonDialog(this);
+ commonDialog.setTitleText("Sign in Successfull");
+ commonDialog.setContentText("Go to login Page");
+ commonDialog.setAutoClosable(false);
+ commonDialog.setSize(DIALOG_BOX_WIDTH, MATCH_CONTENT);
+ commonDialog.setButton(IDialog.BUTTON1, "Yes", (iDialog, i) -> {
+ Intent intent = new Intent();
+ intent.setParam(Constants.EMAIL_COLUMN, emailField.getText());
+ intent.setParam(Constants.PASSWORD_COLUMN, passwordField.getText());
+ present(new LoginSlice(), intent);
+ iDialog.destroy();
+ });
+ commonDialog.setButton(IDialog.BUTTON2, "No", (iDialog, i) -> {
+ iDialog.destroy();
+ });
+ commonDialog.show();
+ }
+
+
+ private boolean userExist(User user) {
+ OrmPredicates ormPredicates=ormContext.where(User.class);
+ ormPredicates.equalTo(Constants.EMAIL_COLUMN,user.getEmail());
+ List users= ormContext.query(ormPredicates);
+ if(users.size()==0 || users==null){
+ new ToastDialog(this).setText("User Not Exist").setDuration(1000).show();
+ return false;
+ }
+
+ else
+ {
+ new ToastDialog(this).setText("User Already Exist").setDuration(1000).show();
+ return true;
+ }
+
+ }
+
+
+ private void checkError(String s, Text errEmail, String pattern) {
+ boolean matched = s.matches(pattern);
+ if (s.isEmpty()) {
+ errEmail.setText("It is Empty");
+ errEmail.setVisibility(Component.VISIBLE);
+ error = true;
+ } else if (matched) {
+ errEmail.setVisibility(Component.INVISIBLE);
+ error = false;
+ } else {
+ errEmail.setText("Enter Valid data");
+ errEmail.setVisibility(Component.VISIBLE);
+ error = true;
+ }
+ }
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/WelcomeSlice.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/WelcomeSlice.java
new file mode 100644
index 00000000..f52e926b
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/java/com/example/userlogin/slice/WelcomeSlice.java
@@ -0,0 +1,19 @@
+package com.example.userlogin.slice;
+
+import com.example.userlogin.ResourceTable;
+import com.example.userlogin.Utils.Constants;
+import ohos.aafwk.ability.AbilitySlice;
+import ohos.aafwk.content.Intent;
+import ohos.agp.components.Text;
+
+public class WelcomeSlice extends AbilitySlice {
+ Text welcome;
+ @Override
+ protected void onStart(Intent intent) {
+ super.onStart(intent);
+ super.setUIContent(ResourceTable.Layout_welcome_page);
+ welcome=(Text)findComponentById(ResourceTable.Id_welcome_text);
+ welcome.setText("Welcome "+intent.getStringParam(Constants.FIRSTNAME_COLUMN));
+
+ }
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/element/color.json b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/element/color.json
new file mode 100644
index 00000000..79bce704
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/element/color.json
@@ -0,0 +1,16 @@
+{
+ "color": [
+ {
+ "name": "red",
+ "value": "#ff0000"
+ },
+ {
+ "name": "brown",
+ "value": "#edddb2"
+ },
+ {
+ "name": "blue",
+ "value": "#8d96eb"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/element/float.json b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/element/float.json
new file mode 100644
index 00000000..2d4596f7
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/element/float.json
@@ -0,0 +1,44 @@
+{
+ "float": [
+ {
+ "name": "float_1",
+ "value": "30.6"
+ },
+ {
+ "name": "main_image_size",
+ "value": "200vp"
+ },
+ {
+ "name": "button_width",
+ "value": "100vp"
+ },
+ {
+ "name": "padding",
+ "value": "10vp"
+ },
+ {
+ "name": "text_size",
+ "value": "20vp"
+ },
+ {
+ "name": "error_text_size",
+ "value": "15vp"
+ },
+ {
+ "name": "margin_top",
+ "value": "10vp"
+ },
+ {
+ "name": "margin_bottom",
+ "value": "10vp"
+ },
+ {
+ "name": "field_size",
+ "value": "250vp"
+ },
+ {
+ "name": "big_margin",
+ "value": "100vp"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/element/string.json b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/element/string.json
new file mode 100644
index 00000000..1a2c3798
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/element/string.json
@@ -0,0 +1,76 @@
+{
+ "string": [
+ {
+ "name": "app_name",
+ "value": "Userlogin"
+ },
+ {
+ "name": "mainability_description",
+ "value": "Java_Phone_Empty Feature Ability"
+ },
+ {
+ "name": "mainability_HelloWorld",
+ "value": "Hello World"
+ },
+ {
+ "name": "mainpage_loginbutton",
+ "value": "Login"
+ },
+ {
+ "name": "mainpage_signupbutton",
+ "value": "SignUp"
+ },
+ {
+ "name": "firstname",
+ "value": "Firstname"
+ },
+ {
+ "name": "firstname_error",
+ "value": "Enter a valid Firstname"
+ },
+ {
+ "name": "lastname",
+ "value": "Lastname"
+ },
+ {
+ "name": "lastname_error",
+ "value": "Enter a valid Lastname"
+ },
+ {
+ "name": "email",
+ "value": "Email"
+ },
+ {
+ "name": "email_error",
+ "value": "Enter a valid Email"
+ },
+ {
+ "name": "password",
+ "value": "Password"
+ },
+ {
+ "name": "password_error",
+ "value": "Enter a valid Password"
+ },
+ {
+ "name": "mobile",
+ "value": "Mobile"
+ },
+ {
+ "name": "mobile_error",
+ "value": "Enter a valid Mobile Number"
+ },
+ {
+ "name": "gender",
+ "value": "Gender"
+ },
+ {
+ "name": "male",
+ "value": "Male"
+ },
+ {
+ "name": "female",
+ "value": "Female"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/graphic/background_ability_main.xml b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/graphic/background_ability_main.xml
new file mode 100644
index 00000000..e3a09a43
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/graphic/background_ability_main.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/graphic/button_bg.xml b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/graphic/button_bg.xml
new file mode 100644
index 00000000..ef71513b
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/graphic/button_bg.xml
@@ -0,0 +1,7 @@
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/ability_main.xml b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/ability_main.xml
new file mode 100644
index 00000000..0e0d0214
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/ability_main.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/login_page.xml b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/login_page.xml
new file mode 100644
index 00000000..5fe792ea
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/login_page.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/signup_page.xml b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/signup_page.xml
new file mode 100644
index 00000000..1b29fd4a
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/signup_page.xml
@@ -0,0 +1,194 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/welcome_page.xml b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/welcome_page.xml
new file mode 100644
index 00000000..c205ae2a
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/layout/welcome_page.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/media/icon.png b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/media/icon.png
new file mode 100644
index 00000000..ce307a88
Binary files /dev/null and b/Hmos/Muhammed Fazil K/Userlogin/entry/src/main/resources/base/media/icon.png differ
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/ohosTest/config.json b/Hmos/Muhammed Fazil K/Userlogin/entry/src/ohosTest/config.json
new file mode 100644
index 00000000..4fd9026e
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/ohosTest/config.json
@@ -0,0 +1,41 @@
+{
+ "app": {
+ "bundleName": "com.example.userlogin",
+ "vendor": "example",
+ "version": {
+ "code": 1000000,
+ "name": "1.0.0"
+ },
+ "apiVersion": {
+ "compatible": 4,
+ "target": 5,
+ "releaseType": "Release"
+ }
+ },
+ "deviceConfig": {},
+ "module": {
+ "package": "com.example.userlogin",
+ "name": "testModule",
+ "deviceType": [
+ "phone"
+ ],
+ "distro": {
+ "deliveryWithInstall": true,
+ "moduleName": "entry_test",
+ "moduleType": "feature",
+ "installationFree": true
+ },
+ "abilities": [
+ {
+ "name": "decc.testkit.runner.EntryAbility",
+ "description": "Test Entry Ability",
+ "icon": "$media:icon",
+ "label": "$string:app_name",
+ "launchType": "standard",
+ "orientation": "landscape",
+ "visible": true,
+ "type": "page"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/ohosTest/java/com/example/userlogin/ExampleOhosTest.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/ohosTest/java/com/example/userlogin/ExampleOhosTest.java
new file mode 100644
index 00000000..88d0375c
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/ohosTest/java/com/example/userlogin/ExampleOhosTest.java
@@ -0,0 +1,14 @@
+package com.example.userlogin;
+
+import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
+public class ExampleOhosTest {
+ @Test
+ public void testBundleName() {
+ final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName();
+ assertEquals("com.example.userlogin", actualBundleName);
+ }
+}
\ No newline at end of file
diff --git a/Hmos/Muhammed Fazil K/Userlogin/entry/src/test/java/com/example/userlogin/ExampleTest.java b/Hmos/Muhammed Fazil K/Userlogin/entry/src/test/java/com/example/userlogin/ExampleTest.java
new file mode 100644
index 00000000..03a2e558
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/entry/src/test/java/com/example/userlogin/ExampleTest.java
@@ -0,0 +1,9 @@
+package com.example.userlogin;
+
+import org.junit.Test;
+
+public class ExampleTest {
+ @Test
+ public void onStart() {
+ }
+}
diff --git a/Hmos/Muhammed Fazil K/Userlogin/gradle.properties b/Hmos/Muhammed Fazil K/Userlogin/gradle.properties
new file mode 100644
index 00000000..0daf1830
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/gradle.properties
@@ -0,0 +1,10 @@
+# Project-wide Gradle settings.
+# IDE (e.g. DevEco Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# If the Chinese output is garbled, please configure the following parameter.
+# org.gradle.jvmargs=-Dfile.encoding=GBK
diff --git a/Hmos/Muhammed Fazil K/Userlogin/gradle/wrapper/gradle-wrapper.jar b/Hmos/Muhammed Fazil K/Userlogin/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..490fda85
Binary files /dev/null and b/Hmos/Muhammed Fazil K/Userlogin/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/Hmos/Muhammed Fazil K/Userlogin/gradle/wrapper/gradle-wrapper.properties b/Hmos/Muhammed Fazil K/Userlogin/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..f59159e8
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://repo.huaweicloud.com/gradle/gradle-6.3-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/Hmos/Muhammed Fazil K/Userlogin/gradlew b/Hmos/Muhammed Fazil K/Userlogin/gradlew
new file mode 100644
index 00000000..2fe81a7d
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/gradlew
@@ -0,0 +1,183 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=`expr $i + 1`
+ done
+ case $i in
+ 0) set -- ;;
+ 1) set -- "$args0" ;;
+ 2) set -- "$args0" "$args1" ;;
+ 3) set -- "$args0" "$args1" "$args2" ;;
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"
diff --git a/Hmos/Muhammed Fazil K/Userlogin/gradlew.bat b/Hmos/Muhammed Fazil K/Userlogin/gradlew.bat
new file mode 100644
index 00000000..62bd9b9c
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/gradlew.bat
@@ -0,0 +1,103 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/Hmos/Muhammed Fazil K/Userlogin/settings.gradle b/Hmos/Muhammed Fazil K/Userlogin/settings.gradle
new file mode 100644
index 00000000..4773db73
--- /dev/null
+++ b/Hmos/Muhammed Fazil K/Userlogin/settings.gradle
@@ -0,0 +1 @@
+include ':entry'