-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
5,378 additions
and
60 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,7 @@ | ||
package dev.faddy.vyt1.di | ||
|
||
import android.app.Application | ||
import androidx.hilt.work.HiltWorkerFactory | ||
import androidx.work.Configuration | ||
import dagger.hilt.android.HiltAndroidApp | ||
import dev.faddy.vyt1.BuildConfig | ||
import timber.log.Timber | ||
import javax.inject.Inject | ||
|
||
@HiltAndroidApp | ||
class MainApplication : Application(), Configuration.Provider { | ||
@Inject | ||
lateinit var workerFactory: HiltWorkerFactory | ||
|
||
override fun getWorkManagerConfiguration(): Configuration { | ||
return if (BuildConfig.DEBUG) { | ||
Configuration.Builder().setWorkerFactory(workerFactory) | ||
.setMinimumLoggingLevel(android.util.Log.DEBUG).build() | ||
} else { | ||
Configuration.Builder().setWorkerFactory(workerFactory) | ||
.setMinimumLoggingLevel(android.util.Log.ERROR).build() | ||
} | ||
} | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
if (BuildConfig.DEBUG) { | ||
Timber.plant(Timber.DebugTree()) | ||
} | ||
} | ||
} | ||
class MainApplication : Application() |
43 changes: 43 additions & 0 deletions
43
app/src/main/java/dev/faddy/vyt1/fragments/bankAccount/AddBankAccountFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package dev.faddy.vyt1.fragments.bankAccount | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.fragment.app.Fragment | ||
import androidx.navigation.fragment.findNavController | ||
import dev.faddy.vyt1.databinding.FragmentAddBankAccountBinding | ||
|
||
class AddBankAccountFragment : Fragment() { | ||
|
||
private lateinit var binding: FragmentAddBankAccountBinding | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
} | ||
|
||
override fun onCreateView( | ||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? | ||
): View { | ||
return FragmentAddBankAccountBinding.inflate(layoutInflater).also { binding = it }.root | ||
} | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
initView() | ||
initClickListener() | ||
} | ||
|
||
private fun initView() { | ||
|
||
} | ||
|
||
private fun initClickListener() { | ||
binding.saveButton.setOnClickListener { | ||
findNavController().popBackStack() | ||
} | ||
binding.backButton.setOnClickListener { | ||
findNavController().popBackStack() | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...rc/main/java/dev/faddy/vyt1/fragments/bankAccount/adapter/TransactionsDashboardAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package dev.faddy.vyt1.fragments.bankAccount.adapter | ||
|
||
import android.view.LayoutInflater | ||
import android.view.ViewGroup | ||
import androidx.recyclerview.widget.RecyclerView | ||
import dev.faddy.vyt1.databinding.ItemviewTransactionsDashboardBinding | ||
|
||
class TransactionsDashboardAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder>() { | ||
|
||
var onItemClick: ((index: Int) -> Unit)? = null | ||
|
||
private var datalist: MutableList<String> = mutableListOf() | ||
|
||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder { | ||
return ViewHolder( | ||
ItemviewTransactionsDashboardBinding.inflate( | ||
LayoutInflater.from(parent.context), parent, false | ||
) | ||
) | ||
} | ||
|
||
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) { | ||
if (holder is ViewHolder) { | ||
val model = datalist[position] | ||
val binding = holder.binding | ||
binding.cusNameText.text = model | ||
} | ||
} | ||
|
||
override fun getItemCount() = datalist.size | ||
|
||
internal inner class ViewHolder(val binding: ItemviewTransactionsDashboardBinding) : | ||
RecyclerView.ViewHolder(binding.root) { | ||
init { | ||
binding.root.setOnClickListener { | ||
if (absoluteAdapterPosition != RecyclerView.NO_POSITION) { | ||
|
||
} | ||
} | ||
} | ||
} | ||
|
||
fun intiData(dataP: MutableList<String>) { | ||
datalist.clear() | ||
datalist.addAll(dataP) | ||
notifyDataSetChanged() | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
app/src/main/java/dev/faddy/vyt1/fragments/payment_in/AdditionalChargesFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package dev.faddy.vyt1.fragments.payment_in | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.fragment.app.Fragment | ||
import dev.faddy.vyt1.databinding.FragmentAdditionalChargesBinding | ||
|
||
class AdditionalChargesFragment : Fragment() { | ||
|
||
private lateinit var binding: FragmentAdditionalChargesBinding | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
} | ||
|
||
override fun onCreateView( | ||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? | ||
): View { | ||
return FragmentAdditionalChargesBinding.inflate(layoutInflater).also { binding = it }.root | ||
} | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
initView() | ||
initData() | ||
initClickListener() | ||
} | ||
|
||
private fun initData() { | ||
} | ||
|
||
private fun initClickListener() { | ||
|
||
} | ||
|
||
private fun initView() { | ||
|
||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
app/src/main/java/dev/faddy/vyt1/fragments/payment_in/AdditionalFieldsFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package dev.faddy.vyt1.fragments.payment_in | ||
|
||
import android.os.Bundle | ||
import androidx.fragment.app.Fragment | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import dev.faddy.vyt1.R | ||
|
||
// 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 [AdditionalFieldsFragment.newInstance] factory method to | ||
* create an instance of this fragment. | ||
*/ | ||
class AdditionalFieldsFragment : 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_additional_fields, 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 AdditionalFieldsFragment. | ||
*/ | ||
// TODO: Rename and change types and number of parameters | ||
@JvmStatic | ||
fun newInstance(param1: String, param2: String) = | ||
AdditionalFieldsFragment().apply { | ||
arguments = Bundle().apply { | ||
putString(ARG_PARAM1, param1) | ||
putString(ARG_PARAM2, param2) | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
app/src/main/java/dev/faddy/vyt1/fragments/payment_in/DueDatesAndPaymentTermsFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package dev.faddy.vyt1.fragments.payment_in | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.fragment.app.Fragment | ||
import dev.faddy.vyt1.databinding.FragmentDueDatesAndPaymentTermsBinding | ||
|
||
|
||
class DueDatesAndPaymentTermsFragment : Fragment() { | ||
|
||
private lateinit var binding: FragmentDueDatesAndPaymentTermsBinding | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
} | ||
|
||
override fun onCreateView( | ||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? | ||
): View { | ||
return FragmentDueDatesAndPaymentTermsBinding.inflate(layoutInflater) | ||
.also { binding = it }.root | ||
} | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
initView() | ||
initData() | ||
initClickListener() | ||
} | ||
|
||
private fun initClickListener() { | ||
|
||
} | ||
|
||
private fun initData() { | ||
|
||
} | ||
|
||
private fun initView() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.