Skip to content

Commit

Permalink
Material design update
Browse files Browse the repository at this point in the history
- [Arhitectural] Added BaseActivity class (which will contain basic for all activities methods),
- [Arhitectural] Added android databinding support (https://developer.android.com/tools/data-binding/guide.html), that allows us to do the sings similar to butterknife, but more (MVVM)
- [Arhitectural] Added SpManager class, to manage changes related to shared preferences (in cached way, because when storing in shared prefs changes are not immidiate)
- [Arhitectural] Created styles files for each type of view, that allows to make xml layouts more readable and compact.
- [UI] Login activity re-design
- [Validation] Validation refactoring
- [Build] moved buildScript from module's build.gradle to project root (it should be there)
- [Build] updated gradle plugin to 1.3.1

^_^
  • Loading branch information
fomenkoo committed Nov 7, 2015
1 parent 75728c3 commit 3465a86
Show file tree
Hide file tree
Showing 32 changed files with 954 additions and 669 deletions.
19 changes: 18 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
classpath 'com.android.databinding:dataBinder:1.0-rc1'
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
}

allprojects {
repositories {
jcenter()
}
}

17 changes: 5 additions & 12 deletions mifosng-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,13 @@
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
*/

buildscript {
repositories {
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
}

repositories {
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
}

apply plugin: 'com.android.application'
apply plugin: 'com.android.databinding'
apply plugin: 'crashlytics'

android {
Expand Down Expand Up @@ -109,14 +99,17 @@ dependencies {
compile 'com.android.support:support-v4:23.0.1'
compile 'com.google.android.gms:play-services-location:8.3.0'

compile 'com.apradanas.simplelinkabletext:library:1.0.3@aar'

compile 'com.jakewharton.fliptables:fliptables:1.0.1'
compile 'javax.annotation:jsr250-api:1.0@jar'
compile 'com.squareup.picasso:picasso-pollexor:2.1.1@jar'
compile 'com.joanzapata.android:android-iconify:1.0.6'
compile 'com.crashlytics.android:crashlytics:1.+'

compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
compile 'com.squareup.okhttp:okhttp:2.0.0'
// Test libraries provided by https://code.google.com/p/android-test-kit/

compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.jakewharton:butterknife:7.0.1'

Expand Down

This file was deleted.

33 changes: 16 additions & 17 deletions mifosng-android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ This project is licensed under the open source MPL V2.
~ See https://github.com/openMF/android-client/blob/master/LICENSE.md
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.mifos.mifosxdroid"
android:versionCode="3"
android:versionName="0.4.0" >
android:versionName="0.4.0">

<uses-sdk
android:minSdkVersion="10"
Expand All @@ -20,14 +20,16 @@

<application
android:name="com.mifos.utils.MifosApplication"
android:allowBackup="false"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Mifosxactionbar" >
android:theme="@style/Theme.Mifosxactionbar"
tools:replace="android:allowBackup, android:icon, android:theme ">

<activity
android:name=".SplashScreenActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -45,8 +47,7 @@
<activity
android:name=".online.DashboardFragmentActivity"
android:label="@string/dashboard"
android:screenOrientation="portrait" >
</activity>
android:screenOrientation="portrait"></activity>
<activity
android:name=".GroupActivity"
android:configChanges="orientation|screenSize"
Expand Down Expand Up @@ -82,16 +83,14 @@
<activity
android:name=".online.ClientActivity"
android:label="@string/title_activity_client"
android:screenOrientation="portrait" >
</activity>
android:screenOrientation="portrait"></activity>
<activity
android:name=".OfflineCenterInputActivity"
android:screenOrientation="portrait" >
</activity>
android:name=".OfflineCenterInputActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name=".online.CentersActivity"
android:label="@string/title_activity_centers"
android:parentActivityName=".online.DashboardFragmentActivity" >
android:parentActivityName=".online.DashboardFragmentActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.mifos.mifosxdroid.online.DashboardFragmentActivity" />
Expand All @@ -104,14 +103,14 @@
<activity
android:name=".online.GenerateCollectionSheet"
android:label="@string/title_activity_generate_collection_sheet"
android:parentActivityName=".online.DashboardFragmentActivity" >
android:parentActivityName=".online.DashboardFragmentActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.mifos.mifosxdroid.online.DashboardFragmentActivity" />
</activity>
<activity
android:name=".CenterListActivity"
android:screenOrientation="portrait"/>
android:name=".CenterListActivity"
android:screenOrientation="portrait" />
</application>

</manifest>
Loading

0 comments on commit 3465a86

Please sign in to comment.