Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradi-Hub committed Apr 28, 2024
0 parents commit c433085
Show file tree
Hide file tree
Showing 91 changed files with 2,623 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
47 changes: 47 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
}

android {
namespace = "com.example.inventomate"
compileSdk = 34

defaultConfig {
applicationId = "com.example.inventomate"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {

implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.11.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.example.inventomate

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.inventomate", appContext.packageName)
}
}
54 changes: 54 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.InventoMate"
tools:targetApi="31">
<activity
android:name=".onboardscreen3"
android:exported="true" />
<activity
android:name=".onboardscreen2"
android:exported="true" />
<activity
android:name=".onboardscreen1"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Login"
android:exported="true"/>

<activity
android:name=".SignUp"
android:exported="true" />
<activity
android:name=".MainActivity"
android:exported="true" />
<activity
android:name=".Stocks"
android:exported="true" />
<activity
android:name=".Report"
android:exported="true" />
<activity
android:name=".Profile"
android:exported="true" />
<activity
android:name=".EditProfile"
android:exported="true" />
</application>

</manifest>
Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions app/src/main/java/com/example/inventomate/EditProfile.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.example.inventomate

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button

class EditProfile : AppCompatActivity(), View.OnClickListener {
lateinit var btnSave:Button

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_edit_profile)

btnSave = findViewById(R.id.Save)
btnSave.setOnClickListener(this)
}

override fun onClick(v: View) {
when (v.id) {
R.id.Save -> {
val intent = Intent(this, Profile::class.java)
startActivity(intent)
}
}
}
}
40 changes: 40 additions & 0 deletions app/src/main/java/com/example/inventomate/Login.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.example.inventomate

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.content.Intent

class Login : AppCompatActivity(), View.OnClickListener {

lateinit var btnLogin:Button
//lateinit var Button btnSignup;


override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_login)

btnLogin = findViewById(R.id.login)
var btnSignup = findViewById<Button>(R.id.signup)

btnLogin.setOnClickListener(this)
btnSignup.setOnClickListener(this)
}
override fun onClick(v: View) {
when (v.id) {
R.id.login -> {
val intent = Intent(this, MainActivity::class.java)
startActivity(intent)
finish()
}
R.id.signup -> {
val intent = Intent(this, SignUp::class.java)
startActivity(intent)
finish()
}
}
}

}
47 changes: 47 additions & 0 deletions app/src/main/java/com/example/inventomate/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package com.example.inventomate

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.content.Intent
import android.widget.ImageButton
import com.example.inventomate.R


class MainActivity : AppCompatActivity(),View.OnClickListener {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)

var btnStock:ImageButton=findViewById(R.id.stock)
var btnReport:ImageButton = findViewById(R.id.report)
var btnProfile:ImageButton = findViewById(R.id.profile)

btnStock.setOnClickListener(this)
btnReport.setOnClickListener(this)
btnProfile.setOnClickListener(this)
}

override fun onClick(v: View) {
when (v.id) {
R.id.stock -> {
val intent = Intent(this, Stocks::class.java)
startActivity(intent)
finish()
}
R.id.report -> {
val intent = Intent(this, Report::class.java)
startActivity(intent)
finish()
}
R.id.profile -> {
val intent = Intent(this, Profile::class.java)
startActivity(intent)
finish()
}
}
}

}
Loading

0 comments on commit c433085

Please sign in to comment.