commit c6d6eeef42126dacfc72fedc93fabb3573b087ba Author: Hells Hound Date: Tue Oct 3 13:50:36 2023 +0400 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5906577 --- /dev/null +++ b/.gitignore @@ -0,0 +1,187 @@ +# Created by https://www.toptal.com/developers/gitignore/api/android,androidstudio,java +# Edit at https://www.toptal.com/developers/gitignore?templates=android,androidstudio,java + +### Android ### +# Gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Log/OS Files +*.log + +# Android Studio generated files and folders +captures/ +.externalNativeBuild/ +.cxx/ +*.apk +output.json + +# IntelliJ +*.iml +.idea/ +misc.xml +deploymentTargetDropDown.xml +render.experimental.xml + +# Keystore files +*.jks +*.keystore + +# Google Services (e.g. APIs or Firebase) +google-services.json + +# Android Profiling +*.hprof + +### Android Patch ### +gen-external-apklibs + +# Replacement of .externalNativeBuild directories introduced +# with Android Studio 3.5. + +### Java ### +# Compiled class file +*.class + +# Log file + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* + +### AndroidStudio ### +# Covers files to be ignored for android development using Android Studio. + +# Built application files +*.ap_ +*.aab + +# Files for the ART/Dalvik VM +*.dex + +# Java class files + +# Generated files +bin/ +gen/ +out/ + +# Gradle files +.gradle + +# Signing files +.signing/ + +# Local configuration file (sdk path, etc) + +# Proguard folder generated by Eclipse +proguard/ + +# Log Files + +# Android Studio +/*/build/ +/*/local.properties +/*/out +/*/*/build +/*/*/production +.navigation/ +*.ipr +*~ +*.swp + +# Keystore files + +# Google Services (e.g. APIs or Firebase) +# google-services.json + +# Android Patch + +# External native build folder generated in Android Studio 2.2 and later +.externalNativeBuild + +# NDK +obj/ + +# IntelliJ IDEA +*.iws +/out/ + +# User-specific configurations +.idea/caches/ +.idea/libraries/ +.idea/shelf/ +.idea/workspace.xml +.idea/tasks.xml +.idea/.name +.idea/compiler.xml +.idea/copyright/profiles_settings.xml +.idea/encodings.xml +.idea/misc.xml +.idea/modules.xml +.idea/scopes/scope_settings.xml +.idea/dictionaries +.idea/vcs.xml +.idea/jsLibraryMappings.xml +.idea/datasources.xml +.idea/dataSources.ids +.idea/sqlDataSources.xml +.idea/dynamic.xml +.idea/uiDesigner.xml +.idea/assetWizardSettings.xml +.idea/gradle.xml +.idea/jarRepositories.xml +.idea/navEditor.xml + +# Legacy Eclipse project files +.classpath +.project +.cproject +.settings/ + +# Mobile Tools for Java (J2ME) + +# Package Files # + +# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml) + +## Plugin-specific files: + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Mongo Explorer plugin +.idea/mongoSettings.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +### AndroidStudio Patch ### + +!/gradle/wrapper/gradle-wrapper.jar + +# End of https://www.toptal.com/developers/gitignore/api/android,androidstudio,java \ No newline at end of file diff --git a/AppMobile/.gitignore b/AppMobile/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/AppMobile/.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 +.cxx +local.properties diff --git a/AppMobile/app/.gitignore b/AppMobile/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/AppMobile/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/AppMobile/app/build.gradle b/AppMobile/app/build.gradle new file mode 100644 index 0000000..605d18c --- /dev/null +++ b/AppMobile/app/build.gradle @@ -0,0 +1,48 @@ +plugins { + id 'com.android.application' +} + +android { + namespace 'com.example.appmobile' + compileSdk 34 + + defaultConfig { + applicationId "com.example.appmobile" + minSdk 24 + targetSdk 34 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } + buildFeatures { + viewBinding true + } +} + +dependencies { + implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0")) + implementation 'androidx.appcompat:appcompat:1.6.1' + implementation 'com.google.android.material:material:1.9.0' + implementation 'androidx.appcompat:appcompat:1.6.1' + implementation 'com.google.android.material:material:1.9.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2' + implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2' + implementation 'androidx.navigation:navigation-fragment:2.7.3' + implementation 'androidx.navigation:navigation-ui:2.7.3' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.5' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' +} \ No newline at end of file diff --git a/AppMobile/app/proguard-rules.pro b/AppMobile/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/AppMobile/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/AppMobile/app/src/androidTest/java/com/example/appmobile/ExampleInstrumentedTest.java b/AppMobile/app/src/androidTest/java/com/example/appmobile/ExampleInstrumentedTest.java new file mode 100644 index 0000000..4613b5a --- /dev/null +++ b/AppMobile/app/src/androidTest/java/com/example/appmobile/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.example.appmobile; + +import android.content.Context; + +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.ext.junit.runners.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + assertEquals("com.example.appmobile", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/AppMobile/app/src/main/AndroidManifest.xml b/AppMobile/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..81dc69c --- /dev/null +++ b/AppMobile/app/src/main/AndroidManifest.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AppMobile/app/src/main/java/com/example/appmobile/MainActivity.java b/AppMobile/app/src/main/java/com/example/appmobile/MainActivity.java new file mode 100644 index 0000000..f497518 --- /dev/null +++ b/AppMobile/app/src/main/java/com/example/appmobile/MainActivity.java @@ -0,0 +1,40 @@ +package com.example.appmobile; + +import androidx.appcompat.app.AppCompatActivity; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; + +public class MainActivity extends AppCompatActivity { + + private EditText Email, Password; + private Button Enter, SignUp, ForgotPassword; + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + Email = findViewById(R.id.logEmail); + Password = findViewById(R.id.logPassword); + Enter = findViewById(R.id.buttonEnter); + SignUp = findViewById(R.id.buttonSignUp); + ForgotPassword = findViewById(R.id.buttonForgotPassword); + } + + public void onEnter(View v){ + if(Email.getText().toString().equals("qw@qw") && Password.getText().toString().equals("qw")){ + Intent intent = new Intent(this, TasksActivity.class); + startActivity(intent); + } + } + + public void toRegistration(View v){ + Intent intent = new Intent(this, RegistrationActivity.class); + startActivity(intent); + } +} \ No newline at end of file diff --git a/AppMobile/app/src/main/java/com/example/appmobile/NavigationFragment.java b/AppMobile/app/src/main/java/com/example/appmobile/NavigationFragment.java new file mode 100644 index 0000000..7e80551 --- /dev/null +++ b/AppMobile/app/src/main/java/com/example/appmobile/NavigationFragment.java @@ -0,0 +1,18 @@ +package com.example.appmobile; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class NavigationFragment extends Fragment { + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + return inflater.inflate(R.layout.fragment_navigation, container, false); + } +} \ No newline at end of file diff --git a/AppMobile/app/src/main/java/com/example/appmobile/RegistrationActivity.java b/AppMobile/app/src/main/java/com/example/appmobile/RegistrationActivity.java new file mode 100644 index 0000000..238f483 --- /dev/null +++ b/AppMobile/app/src/main/java/com/example/appmobile/RegistrationActivity.java @@ -0,0 +1,26 @@ +package com.example.appmobile; + +import androidx.appcompat.app.AppCompatActivity; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; + +public class RegistrationActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_registration); + } + + public void onReg(View v){ + Intent intent = new Intent(this, MainActivity.class); + startActivity(intent); + } + + public void onCancel(View v){ + Intent intent = new Intent(this, MainActivity.class); + startActivity(intent); + } +} \ No newline at end of file diff --git a/AppMobile/app/src/main/java/com/example/appmobile/TasksActivity.java b/AppMobile/app/src/main/java/com/example/appmobile/TasksActivity.java new file mode 100644 index 0000000..996af59 --- /dev/null +++ b/AppMobile/app/src/main/java/com/example/appmobile/TasksActivity.java @@ -0,0 +1,42 @@ +package com.example.appmobile; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentTransaction; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.FrameLayout; + +public class TasksActivity extends AppCompatActivity { + + private Button btn_open, btn_closed; + private FrameLayout navBarFrameLayout; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_tasks); + + btn_open = findViewById(R.id.btn_open); + btn_closed = findViewById(R.id.btn_closed); + navBarFrameLayout = findViewById(R.id.nav_bar); + + NavigationFragment navBar = new NavigationFragment(); + FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); + ft.replace(navBarFrameLayout.getId(), navBar); + ft.commit(); + } + + public void showOpen(View v){ + Intent intent = new Intent(this, RegistrationActivity.class); + startActivity(intent); + } + + public void showClosed(View v){ + Intent intent = new Intent(this, RegistrationActivity.class); + startActivity(intent); + } +} \ No newline at end of file diff --git a/AppMobile/app/src/main/res/drawable/ic_dashboard_black_24dp.xml b/AppMobile/app/src/main/res/drawable/ic_dashboard_black_24dp.xml new file mode 100644 index 0000000..46fc8de --- /dev/null +++ b/AppMobile/app/src/main/res/drawable/ic_dashboard_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/AppMobile/app/src/main/res/drawable/ic_home_black_24dp.xml b/AppMobile/app/src/main/res/drawable/ic_home_black_24dp.xml new file mode 100644 index 0000000..f8bb0b5 --- /dev/null +++ b/AppMobile/app/src/main/res/drawable/ic_home_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/AppMobile/app/src/main/res/drawable/ic_launcher_background.xml b/AppMobile/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/AppMobile/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AppMobile/app/src/main/res/drawable/ic_launcher_foreground.xml b/AppMobile/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/AppMobile/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/AppMobile/app/src/main/res/drawable/ic_notifications_black_24dp.xml b/AppMobile/app/src/main/res/drawable/ic_notifications_black_24dp.xml new file mode 100644 index 0000000..78b75c3 --- /dev/null +++ b/AppMobile/app/src/main/res/drawable/ic_notifications_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/AppMobile/app/src/main/res/drawable/idea.png b/AppMobile/app/src/main/res/drawable/idea.png new file mode 100644 index 0000000..4a89c6e Binary files /dev/null and b/AppMobile/app/src/main/res/drawable/idea.png differ diff --git a/AppMobile/app/src/main/res/drawable/todo.png b/AppMobile/app/src/main/res/drawable/todo.png new file mode 100644 index 0000000..79b71f2 Binary files /dev/null and b/AppMobile/app/src/main/res/drawable/todo.png differ diff --git a/AppMobile/app/src/main/res/drawable/todoka.png b/AppMobile/app/src/main/res/drawable/todoka.png new file mode 100644 index 0000000..ff93af3 Binary files /dev/null and b/AppMobile/app/src/main/res/drawable/todoka.png differ diff --git a/AppMobile/app/src/main/res/drawable/user.png b/AppMobile/app/src/main/res/drawable/user.png new file mode 100644 index 0000000..ab35861 Binary files /dev/null and b/AppMobile/app/src/main/res/drawable/user.png differ diff --git a/AppMobile/app/src/main/res/layout/activity_main.xml b/AppMobile/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..ed7797d --- /dev/null +++ b/AppMobile/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,86 @@ + + + + + + + +