mohsenoid / marvel Goto Github PK
View Code? Open in Web Editor NEWMarvel Characters Android Application Assigned by smava GmbH
Home Page: http://smava.de
License: MIT License
Marvel Characters Android Application Assigned by smava GmbH
Home Page: http://smava.de
License: MIT License
Hi, really nice App architecture. I've a question, why didn't you wrap the database related operations within a rx.Observable?
I mean, for example in the SearchFragment you called the Presenter's loadCharactersCachedData() method, which later calls the DatabaseHelper's selectAllCharacters() method, which runs on the UI thread, should that kind of operations run on a background thread wrapped inside a rx.Observable?
Same thing with the Presenter's doSearch() method, in that case you wrapped the operation in a rx.Observable but you made it run over AndroidScheduler.mainThread(), shouldn't run over some other background thread such as Scheduler.io()?
Why do injecting context into the context?
When I tried to sync my project after configure all my grades files I have this error:
Error:Execution failed for task ‘:marvel-app:processMockDebugGoogleServices’.
No matching client found for package name ‘test.marvel.debug’
I don’t know if I need to configure something on developers.google.com
I’m seeing that your google-service.json has this part that I don’t have
"client_info": {
"mobilesdk_app_id": "1:917870933295:android:f40c157f10d0958b",
"android_client_info": {
"package_name": "com.mirhoseini.marvel.debug"
}
}
Edit
To hide the error I added your id's. This part of the code I added to my project :(
{
"client_info": {
"mobilesdk_app_id": "1:917870933295:android:f40c157f10d0958b",
"android_client_info": {
"package_name": "com.mirhoseini.marvel.debug"
}
},
"oauth_client": [
{
"client_id": "917870933295-657emgd5pnl2j8lpkfk87unefkub69ol.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBdbZt2_S2y2-jYVn7xfeyAwMAN7ePfTD0"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
}
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.