Coder Social home page Coder Social logo

attendance's Introduction

projekt1 upravy a debugy v softe EuroSecom od 21.08.2014

attendance's People

Contributors

eurosecom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

attendance's Issues

Firebase Android device to device Notification and Message.

User ask absence to Supervisor. After saving a request to firebase database, user send notification to topic for approval.
Supervisor is subscribed to topic or we can send notification to supervisor's token.
I use FCM with library Retrofit2 to consume FCM HTTP Post API.

dependencies for retrofit2 in build.gradle

compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'

androidfbnotification

Approve Activity

Approve or Refuse asked absences saved in FireBase.
To Send notification about the approving od refusing.
To mark absence like approved in attendance.aprv=1 or refused aprv=2.
Remake to RxJava.

Absence Activity

by Firebase - create, save and list absences and attendences of employees.

MVVM activity DEMO

I have used in EmployeeMvvmActivity.java., CompaniesMvvmActivity / Fragment.

The Model-View-ViewModel Pattern
The main players in the MVVM pattern are:

The View — that informs the ViewModel about the user’s actions
The ViewModel — exposes streams of data relevant to the View
The DataModel — abstracts the data source. The ViewModel works with the DataModel to get and save the data.

by https://medium.com/upday-devs/android-architecture-patterns-part-3-model-view-viewmodel-e7eeee76b73b
https://github.com/florina-muntenescu/DroidconMVVM
mvvmdemo

MapActivity

  • permit Google Maps API

In AndroidManifest.xml, add the following element as a child of the application element, by inserting it just before the closing application tag:
meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_API_KEY"

DEMO dagger2 androidTest

By http://blog.sqisland.com/2015/04/dagger-2-espresso-2-mockito.html
Github code https://github.com/chiuki/android-test-demo
Override dagger Module by androidTesting. Demo App in folder android-test-demo-master

  • override TestRunner in app/build.gradle

defaultConfig {
applicationId 'com.sqisland.android.test_demo'
minSdkVersion 8
targetSdkVersion 23
versionCode 1
versionName '1.0.0'

testInstrumentationRunner 'com.sqisland.android.test_demo.MockTestRunner'

}
In MockTestRunner we call MockDemoApplication.java

  • app/buld.gradle dependency androidTestAnnotationProcessor "com.google.dagger:dagger-compiler:2.11" for build components and modules in TestActivity for DaggerMainActivityTest_TestComponent.builder().build(); in MockDemoApplication.java

  • edit Configuration MainActivityTest.java to change TestRunner to MockTestRunner

All employees absences

List all absences for all employees in selected month.
Mvvm pattern's activity with Dagger2 dependency injection SharedPreferences, Realm and Firebase.

RxBus demo

Send event and POJO from one fragment to second.

rxbus_files1

rxbus_files2

My Companies Activity

MVVM pattern.
Test driven development.
PagerView two ListFragment.
Espresso android testing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.