Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
6f2e97e
Update strings.xml
iamhirusha Nov 27, 2024
fcf2172
Merge branch 'main' into hirusha
iamhirusha Nov 29, 2024
c24bf11
Create Settings UI
SawinduSamuditha Nov 29, 2024
6f50601
Merge branch 'main' into sawindu
SawinduSamuditha Nov 29, 2024
76d812b
Squashed commit of the following:
SawinduSamuditha Nov 29, 2024
f1b6a65
Create new 4 fragments
SawinduSamuditha Nov 29, 2024
ff7e5ac
Squashed commit of the following:
SawinduSamuditha Nov 30, 2024
d5c537b
Merge branch 'main' into sawindu
SawinduSamuditha Dec 10, 2024
0e7e4d2
created fertilizer fragment
iamhirusha Dec 29, 2024
c8be336
convert kotlin four files
SawinduSamuditha Dec 29, 2024
94a5209
convert advance, daily check, settings page kotlin
SawinduSamuditha Dec 29, 2024
6ace1e3
Merge branch 'developer' of https://github.com/nethsaraPrabash/Evergr…
SawinduSamuditha Dec 29, 2024
951c91e
fertilizer fragement created
iamhirusha Dec 29, 2024
f213a21
remove java files
SawinduSamuditha Dec 29, 2024
a54d92b
hotfix
SawinduSamuditha Dec 29, 2024
a7cd0e9
hotfix
SawinduSamuditha Dec 29, 2024
76aec48
hotfix
SawinduSamuditha Dec 29, 2024
f3d51ac
Merge branch 'main' into dulina
DulinaDineth1589 Dec 29, 2024
0d1d6f4
Merge branch 'developer' into dulina
DulinaDineth1589 Dec 29, 2024
f0deeb9
fragment updated
DulinaDineth1589 Dec 29, 2024
4080f81
Merge branch 'developer' into hirusha
iamhirusha Dec 29, 2024
e3dd288
Merge branch 'sawindu' into developer
SawinduSamuditha Dec 29, 2024
760ee17
Merge branch 'developer' into hirusha
iamhirusha Dec 29, 2024
8c054f2
fertilizer fragment modified
iamhirusha Dec 29, 2024
3f5838c
Merge branch 'developer' of https://github.com/nethsaraPrabash/Evergr…
SawinduSamuditha Jan 4, 2025
d4c3d1a
Camera added
nethsaraPrabash Jan 4, 2025
be10c54
develop the xml file in Payments Fragment class
SawinduSamuditha Jan 4, 2025
6b57ae0
create xml file in fertilizer fragment
SawinduSamuditha Jan 4, 2025
c2f437b
map added
nethsaraPrabash Jan 4, 2025
43321de
fixed everything(hf)
nethsaraPrabash Jan 4, 2025
39829ed
hotfit
SawinduSamuditha Jan 4, 2025
4d0d6dd
Merge branch 'developer' of https://github.com/nethsaraPrabash/Evergr…
nethsaraPrabash Jan 4, 2025
788763e
create new activity class and xml
SawinduSamuditha Jan 4, 2025
8fb8c46
back buttons fixed
nethsaraPrabash Jan 4, 2025
9bc013d
hotfix
SawinduSamuditha Jan 4, 2025
5fa62c7
splash screen modified
iamhirusha Jan 4, 2025
3a7e954
hotfix
SawinduSamuditha Jan 4, 2025
0bb5946
added
nethsaraPrabash Jan 4, 2025
e74d179
Resolved merge conflicts
nethsaraPrabash Jan 4, 2025
a5b451f
Resolved merge conflicts
nethsaraPrabash Jan 4, 2025
37173dd
hotfix_3
SawinduSamuditha Jan 4, 2025
d165758
user selecter miner UI update
iamhirusha Jan 6, 2025
2db283d
button modified
iamhirusha Jan 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/compiler.xml

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

1 change: 1 addition & 0 deletions .idea/gradle.xml

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

3 changes: 1 addition & 2 deletions .idea/misc.xml

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

2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ android {

dependencies {

implementation(libs.firebase.auth.ktx)
val fragment_version = "1.8.5"

implementation(libs.androidx.core.ktx)
Expand All @@ -55,6 +56,7 @@ dependencies {
implementation(libs.firebase.analytics)
implementation(libs.firebase.auth)
implementation(libs.androidx.fragment.ktx)
implementation (libs.play.services.maps)
}


Expand Down
39 changes: 39 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"project_info": {
"project_number": "201763711380",
"project_id": "prathibhatea-6c2cf",
"storage_bucket": "prathibhatea-6c2cf.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:201763711380:android:f12cdeebc56cbc54aa8781",
"android_client_info": {
"package_name": "com.evergreen.eve"
}
},
"oauth_client": [
{
"client_id": "201763711380-od2ltt9igl9s3hrk6ke5up5u50f4c9ed.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAzjl8mRJZgrpWZQP6vtMhMBSbusbEmpV0"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "201763711380-od2ltt9igl9s3hrk6ke5up5u50f4c9ed.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
58 changes: 50 additions & 8 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-feature
android:name="android.hardware.camera"
android:required="false" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />


<application
android:allowBackup="true"
Expand All @@ -15,6 +26,13 @@
android:supportsRtl="true"
android:theme="@style/Theme.Evergreen"
tools:targetApi="31">

<activity
android:name=".LocationActivity"
android:exported="false" />
<activity
android:name=".ApplyPaymentActivity"
android:exported="false" />
<activity
android:name=".ProfileActivity"
android:exported="false" />
Expand All @@ -31,25 +49,49 @@
android:name=".SigninActivity"
android:exported="false" />
<activity
android:name=".HomeActivity"
android:exported="true" />
android:name=".LandingPageActivity"
android:exported="false" />
<activity
android:name=".Apply_AdvanceLoadPage"
android:exported="true" />
android:name=".MainActivity"
android:exported="true">

</activity>
<activity
android:name=".SplashScreenActivity"
android:exported="true"
android:theme="@style/Theme.AppCompat.Light.NoActionBar">

<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

</activity>
<activity
android:name=".LandingPageActivity"
android:exported="false" />
<activity android:name=".MainActivity" />

<activity android:name=".HomeActivity"
android:exported="false">

</activity>



<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>

<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyAsWhPJ2w0INCaz3mxdVkVlYe7DUNrGe-w" />



</application>

</manifest>
59 changes: 59 additions & 0 deletions app/src/main/java/com/evergreen/eve/ApplyAdvanceLoadPageK.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
package com.evergreen.eve

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup

// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"

/**
* A simple [Fragment] subclass.
* Use the [ApplyAdvanceLoadPageK.newInstance] factory method to
* create an instance of this fragment.
*/
class ApplyAdvanceLoadPageK : Fragment() {
// TODO: Rename and change types of parameters
private var param1: String? = null
private var param2: String? = null

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
arguments?.let {
param1 = it.getString(ARG_PARAM1)
param2 = it.getString(ARG_PARAM2)
}
}

override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_apply_advance_load_page_k, container, false)
}

companion object {
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment ApplyAdvanceLoadPageK.
*/
// TODO: Rename and change types and number of parameters
@JvmStatic
fun newInstance(param1: String, param2: String) =
ApplyAdvanceLoadPageK().apply {
arguments = Bundle().apply {
putString(ARG_PARAM1, param1)
putString(ARG_PARAM2, param2)
}
}
}
}
59 changes: 59 additions & 0 deletions app/src/main/java/com/evergreen/eve/ApplyAdvanceMain.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
package com.evergreen.eve

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup

// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"

/**
* A simple [Fragment] subclass.
* Use the [ApplyAdvanceMain.newInstance] factory method to
* create an instance of this fragment.
*/
class ApplyAdvanceMain : Fragment() {
// TODO: Rename and change types of parameters
private var param1: String? = null
private var param2: String? = null

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
arguments?.let {
param1 = it.getString(ARG_PARAM1)
param2 = it.getString(ARG_PARAM2)
}
}

override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_apply_advance_main, container, false)
}

companion object {
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment ApplyAdvanceMain.
*/
// TODO: Rename and change types and number of parameters
@JvmStatic
fun newInstance(param1: String, param2: String) =
ApplyAdvanceMain().apply {
arguments = Bundle().apply {
putString(ARG_PARAM1, param1)
putString(ARG_PARAM2, param2)
}
}
}
}
28 changes: 28 additions & 0 deletions app/src/main/java/com/evergreen/eve/ApplyPaymentActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.evergreen.eve

import android.content.Intent
import android.os.Bundle
import android.widget.ImageView
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class ApplyPaymentActivity : AppCompatActivity() {

private lateinit var backBtn: ImageView

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

backBtn = findViewById(R.id.loadApplyAdvanceBack)

backBtn.setOnClickListener {
val intent = Intent(this, HomeActivity::class.java)
startActivity(intent)
finish()
}
}
}
23 changes: 23 additions & 0 deletions app/src/main/java/com/evergreen/eve/ApplyPaymentFragment.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.evergreen.eve

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup


class ApplyPaymentFragment : Fragment() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

}

override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_apply_payment, container, false)
}
}
Loading