Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All bottomnavigation tabs, Notification with redesign Implemented #185

Open
wants to merge 28 commits into
base: redesign
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
926273f
Add functionality to SwipeRefreshLayout
ashwinkey04 Feb 11, 2020
95aa371
Refractor item_planned_payment.xml
ashwinkey04 Feb 19, 2020
742ccd0
FIX-152
garvit984 Mar 13, 2020
19430fd
Profile photo problem solved
garvit984 Mar 14, 2020
f0fc0ef
fix: Change permission from CAMERA to WRITE EXTERNAL STORAGE
prajwal27 Mar 20, 2020
bf210da
feat: improve PR template (#96)
rchtgpt May 17, 2020
11c90f6
feat: share app link (#88)
rchtgpt May 17, 2020
5ac8c8b
Fix: improve the Issue Template (#97)
rchtgpt May 17, 2020
4f7c0a4
Add renovate.json
renovate-bot May 22, 2020
8ba399b
Fix #108: Restrict rotation in login and passcode
ashwinkey04 Jun 8, 2020
1c29fcb
Merge pull request #182 from ashwinkey04/108
abhijitramesh Jun 11, 2020
fe4caf6
Merge pull request #137 from ashwinkey04/planned_payment_typo
abhijitramesh Jun 11, 2020
a37095f
Merge pull request #133 from ashwinkey04/swiperefresh
abhijitramesh Jun 11, 2020
757a316
Merge pull request #160 from prajwal27/bug-share-button
abhijitramesh Jun 11, 2020
1766684
Merge pull request #171 from openMF/renovate/configure
abhijitramesh Jun 11, 2020
a100518
add necessary redesign fonts (#114)
laxyapahuja Jan 11, 2020
f422a39
redesign: addition of CircleImageView dependency (#120)
rchtgpt Jan 24, 2020
7e4e533
redesign: add all necessary colors (#121)
rchtgpt Jan 24, 2020
3a091b3
redesign: added material style component (#122)
rchtgpt Jan 25, 2020
9ea018b
fix: logout dialog box UI inconsistencies (#124)
laxyapahuja Jan 27, 2020
83c9413
FIX-152
garvit984 Mar 13, 2020
203e9cf
Profile photo problem solved
garvit984 Mar 14, 2020
44437ac
Merge remote-tracking branch 'origin/master'
garvit984 Jun 11, 2020
2c757c1
All bottomnavigation tabs, Notification with redesign Implemented
garvit984 Mar 13, 2020
7d6b3c9
Update checkstyle-config.xml
garvit984 May 29, 2020
fa43188
Update checkstyle-config.xml
garvit984 May 29, 2020
b1b804c
Update checkstyle-config.xml
garvit984 May 29, 2020
048d0c5
QR code generator and reader implemented
garvit984 Jun 11, 2020
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
30 changes: 15 additions & 15 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
**Summary:**
## Summary

Summarise your issue in one sentence (what goes wrong, what did you expect to happen).
<!--Summarise your issue in one sentence (what goes wrong, what did you expect to happen).-->

**Steps to reproduce:**
## Steps to reproduce

How can we reproduce the issue?
<!--How can we reproduce the issue?-->

**Expected behaviour:**
## Expected behaviour

What did you expect the app to do?
<!--What did you expect the app to do?-->

**Observed behaviour:**
## Observed behaviour

What did you see instead? Describe your issue in detail here.
<!--What did you see instead? Describe your issue in detail here.-->

**Logcat for the issue**
## Logcat for the issue

Provide logs for the crash here
<!--Provide logs for the crash here-->

**Device and Android version:**
## Device and Android version

What make and model device (e.g., Samsung Galaxy S3) did you encounter this on? What Android
<!--What make and model device (e.g., Samsung Galaxy S3) did you encounter this on? What Android
version (e.g., Android 4.0 Ice Cream Sandwich or Android 6.0 Marshmallow) are you running? Is it
the stock
version from the manufacturer or a custom ROM?
version from the manufacturer or a custom ROM?-->

**Screenshots:**
## Screenshots

Can be created by pressing the Volume Down and Power Button at the same time on Android 4.0 and higher.
<!--Can be created by pressing the Volume Down and Power Button at the same time on Android 4.0 and higher.-->
10 changes: 8 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
## Issue Fix
Fixes #Issue_Number

Please Add Screenshots If there are any UI changes.
## Screenshots
<!--Please Add Screenshots or Screen Recordings which show the changes that you made.-->

Please make sure these boxes are checked before submitting your pull request - thanks!
## Description
<!--Please Add Summary of the changes that you have made.-->

##
<!--Please make sure these boxes are checked before submitting your pull request - thanks!-->

- [ ] Run the unit tests with `./gradlew check` to make sure you didn't break anything

Expand Down
32 changes: 18 additions & 14 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
Expand Down Expand Up @@ -130,14 +131,17 @@ dependencies {
implementation 'com.github.bumptech.glide:glide:4.8.0'
kapt 'com.github.bumptech.glide:compiler:4.8.0'

implementation 'me.dm7.barcodescanner:zxing:1.9.13'
implementation 'com.karumi:dexter:5.0.0'

//dbFlow for database
kapt "com.github.Raizlabs.DBFlow:dbflow-processor:$rootProject.dbFlowVersion"
implementation "com.github.Raizlabs.DBFlow:dbflow-core:$rootProject.dbFlowVersion"
implementation "com.github.Raizlabs.DBFlow:dbflow:$rootProject.dbFlowVersion"
implementation "com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:$rootProject.dbFlowVersion"
implementation "com.github.Raizlabs.DBFlow:dbflow-rx2:$rootProject.dbFlowVersion"
implementation "com.github.Raizlabs.DBFlow:dbflow-rx2-kotlinextensions:$rootProject.dbFlowVersion"

implementation 'com.android.support:multidex:1.0.3'
//OpenSource Licences
implementation "com.google.android.gms:play-services-oss-licenses:17.0.0"

Expand Down Expand Up @@ -167,32 +171,32 @@ dependencies {
testImplementation 'org.robolectric:robolectric:3.3.1'
}

// Log out test results to console
tasks.matching { it instanceof Test }.all {
testLogging.events = ["failed", "passed", "skipped"]
}
// Log out test results to console
tasks.matching { it instanceof Test }.all {
testLogging.events = ["failed", "passed", "skipped"]
}

/*
/*
Resolves dependency versions across test and production APKs, specifically, transitive
dependencies. This is required since Espresso internally has a dependency on support-annotations.
*/
configurations.all {
resolutionStrategy {
force 'com.android.support:support-annotations:27.1.1'
force 'com.google.code.findbugs:jsr305:1.3.9'
}
configurations.all {
resolutionStrategy {
force 'com.android.support:support-annotations:27.1.1'
force 'com.google.code.findbugs:jsr305:1.3.9'
}
}


/*
/*
All direct/transitive dependencies shared between your test and production APKs need to be
excluded from the test APK! This is necessary because both APKs will contain the same classes. Not
excluding these dependencies from your test configuration will result in an dex pre-verifier error
at runtime. More info in this tools bug: (https://code.google.com/p/android/issues/detail?id=192497)
*/
configurations.compile.dependencies.each { compileDependency ->
configurations.compile.dependencies.each { compileDependency ->
println "Excluding compile dependency: ${compileDependency.getName()}"
configurations.androidTestCompile.dependencies.each { androidTestCompileDependency ->
configurations.androidTestCompile.exclude module: "${compileDependency.getName()}"
}
}
}
37 changes: 25 additions & 12 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.mifos.mobile.cn">
package="org.mifos.mobile.cn">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />

<application
android:name=".MifosApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:name=".MifosApplication"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".ui.mifos.launcher.LauncherActivity"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
<activity
android:name=".ui.mifos.launcher.LauncherActivity"
android:theme="@style/LauncherTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.intent.action.MAIN" />

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

<activity android:name=".ui.mifos.DashboardActivity" />
<activity android:name=".ui.mifos.login.LoginActivity" />
<activity android:name=".ui.mifos.passcode.PasscodeActivity"/>
<activity android:name=".ui.mifos.login.LoginActivity"
android:screenOrientation="portrait"/>
<activity android:name=".ui.mifos.passcode.PasscodeActivity"
android:screenOrientation="portrait"/>
<activity android:name=".ui.mifos.loanApplication.loanActivity.LoanApplicationActivity"/>
<activity android:name=".ui.mifos.customerDetails.CustomerDetailsActivity"/>
<activity android:name=".ui.mifos.customerActivities.CustomerActivitiesActivity"/>
Expand All @@ -36,7 +43,13 @@
<activity android:name=".ui.mifos.debtincomereport.DebtIncomeReportActivity"/>
<activity android:name=".ui.mifos.aboutus.AboutUsActivity"/>
<activity android:name=".ui.mifos.privacypolicy.PrivacyPolicyActivity"/>
<activity
<activity android:name=".ui.mifos.Main" />
<activity android:name=".ui.mifos.signup.SignupActivity" />
<activity android:name=".ui.mifos.Notification" />
<activity android:name=".ui.mifos.QRGenerator" />

<activity android:name=".ui.mifos.beneficiaries.BeneficiariesActivity" />
<activity
android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar" />
</application>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package org.mifos.mobile.cn.data.models.beneficiaries

data class Beneficiary(val name: String, val description: String, val price: String)
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package org.mifos.mobile.cn.injection.component
import dagger.Subcomponent
import org.mifos.mobile.cn.injection.PerActivity
import org.mifos.mobile.cn.injection.module.ActivityModule
import org.mifos.mobile.cn.ui.mifos.Account
import org.mifos.mobile.cn.ui.mifos.DashboardActivity
import org.mifos.mobile.cn.ui.mifos.aboutus.AboutUsFragment
import org.mifos.mobile.cn.ui.mifos.accounts.AccountsFragment
Expand Down Expand Up @@ -39,6 +40,8 @@ interface ActivityComponent {

fun inject(passcodeActivity: PasscodeActivity)

fun inject(account :Account)

fun inject(launcherActivity: LauncherActivity)

fun inject(dashboardActivity: DashboardActivity)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package org.mifos.mobile.cn.ui.adapter

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import org.mifos.mobile.cn.R
import org.mifos.mobile.cn.data.models.beneficiaries.Beneficiary


class BeneficiariesAdapter(val beneficiariesList: ArrayList<Beneficiary>) : RecyclerView.Adapter<BeneficiariesAdapter.ViewHolder>() {

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
val v = LayoutInflater.from(parent.context).inflate(R.layout.item_beneficiaries, parent, false)
return ViewHolder(v)
}

override fun getItemCount(): Int {
return beneficiariesList.size
}

override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val list: Beneficiary = beneficiariesList[position]
holder.textViewName?.text = list.name
holder.textViewDescription?.text = list.description
holder.textViewPrice?.text = list.price
}

class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
val textViewName = itemView.findViewById<TextView>(R.id.tv_name)
val textViewDescription = itemView.findViewById<TextView>(R.id.tv_beneficiaries_decription)
val textViewPrice = itemView.findViewById<TextView>(R.id.tv_price)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import android.widget.TextView
import androidx.annotation.DrawableRes
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.item_header_planned_payment.view.*
import kotlinx.android.synthetic.main.item_panned_payment.view.*
import kotlinx.android.synthetic.main.item_planned_payment.view.*
import org.mifos.mobile.cn.R
import org.mifos.mobile.cn.data.models.payment.CostComponent
import org.mifos.mobile.cn.data.models.payment.PlannedPayment
Expand Down Expand Up @@ -100,7 +100,7 @@ class PlannedPaymentAdapter @Inject constructor(@ApplicationContext var context:

override fun onCreateItemViewHolder(parent: ViewGroup?, itemType: Int): ItemViewHolder {
val inflater = LayoutInflater.from(parent!!.context)
val v = inflater.inflate(R.layout.item_panned_payment, parent, false)
val v = inflater.inflate(R.layout.item_planned_payment, parent, false)
return ItemViewHolder(v)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ open class MifosBaseFragment : Fragment() {
callback.showTabLayout(false)
}

override fun onAttach(context: Context?) {
override fun onAttach(context: Context?) {
super.onAttach(context)
val activity = context as? Activity
try {
Expand Down
Loading