projekt1 upravy a debugy v softe EuroSecom od 21.08.2014
eurosecom / attendance Goto Github PK
View Code? Open in Web Editor NEWAndroid Attendance by Firebase
License: Apache License 2.0
Android Attendance by Firebase
License: Apache License 2.0
projekt1 upravy a debugy v softe EuroSecom od 21.08.2014
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'
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.
Reactive searchview by https://www.raywenderlich.com/141980/rxandroid-tutorial
I have used in AbsServerAsActivity.java
Testing estimote beacons.
i have to switch on multidex.
Dagger2 demo with retrofit2 and okhttp3.
by https://github.com/codepath/dagger2-example
edited to retrofit2 and okhttp3
rxjava2
SearchView Pattern by https://www.raywenderlich.com/141980/rxandroid-tutorial
by Firebase - create, save and list absences and attendences of employees.
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
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"
API key is in AndroidStudio in Project res > values > google_maps_api.xml
vypis release SHA kluca zo suboru apkkey.keystore
https://stackoverflow.com/questions/14384587/how-to-get-a-google-maps-api-v2-release-key
vypis debug SHA kluca z androidstudia
https://stackoverflow.com/questions/27609442/how-to-get-the-sha-1-fingerprint-certificate-in-android-studio-for-debug-mode
SplashScree.java by use RxJava DisposableObserver and Observable.just(true).map().
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
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
MVVM pattern.
Test driven development.
List all absences for all employees in selected month.
Mvvm pattern's activity with Dagger2 dependency injection SharedPreferences, Realm and Firebase.
To receive messages from firebase FCN.
MVVM pattern.
Test driven development.
PagerView two ListFragment.
Espresso android testing.
As the Android platform has continued to grow, so has the size of Android apps. When your app and the libraries it references reach a certain size, you encounter build errors that indicate your app has reached a limit of the Android app build architecture.
About the 64K reference limit you need Multidex support.
https://developer.android.com/studio/build/multidex.html#mdex-gradle
RxJava implementation for the Android Firebase client by https://github.com/ezhome/Android-RxFirebase
I have used in ApproveActivity.java and ApproveFragment.java
I have used in AbsenceListRxFragment.java, AttendanceListRxFragment.java and AbsTypesListRxFragment.java,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.