iFixit / iFixitAndroid

Official iFixit Android App
https://play.google.com/store/apps/details?id=com.dozuki.ifixit
GNU General Public License v3.0
162 stars 83 forks source link

Not able to install application #255

Closed remyacv83 closed 9 years ago

remyacv83 commented 9 years ago

I am new to android development. I cloned the source code and followed the instrunctions in the Installation section. But when I build I get the following error:

Error:(132, 0) Could not find property 'dripassistKeyAlias' on SigningConfig_Decorated{name=dripassist, storeFile=C:\Users\remya\Documents\GitHub\iFixitAndroid\App\sites\dripassist\keystore, storePassword=null, keyAlias=null, keyPassword=null, storeType=C:\Users\remya\Documents\GitHub\iFixitAndroid\App\sites\dripassist\keystore}.

Can anyone help?

marczych commented 9 years ago

Sorry about that. I just followed the installation instructions on a fresh clone and it worked with my fix in #256. Let me know if you run into any other problems.

Thanks for the report!

remyacv83 commented 9 years ago

Thanks a lot for the timely response... I got it working!

On Tue, Sep 15, 2015 at 9:40 AM, Marc Zych notifications@github.com wrote:

Sorry about that. I just followed the installation instructions on a fresh clone and it worked with my fix in #256 https://github.com/iFixit/iFixitAndroid/pull/256. Let me know if you run into any other problems.

Thanks for the report!

— Reply to this email directly or view it on GitHub https://github.com/iFixit/iFixitAndroid/issues/255#issuecomment-140457481 .

remyacv83 commented 9 years ago

Hi, I have a question..sorry I don't know if this is the right place to post.. I got a general idea about the model, ui and util folders and classes inside them. I could not find any SQLite/ MySQL database references. I could see JSON format, Arraylist populations etc. I also found the api folder. Is ifixit app connecting to an external server or website to pull data for the guide, gallery videos etc? Can you please explain about that and the corresponding classes in the source code?

remyacv83 commented 9 years ago

Model folder is the SQLiteDB, arrayadapter is the controller here and view is equivalent to ui in this project..It is all new learning for me.. :)

marczych commented 9 years ago

You are correct - the app doesn't store much of anything on the device itself. All data is retrieved from the iFixit API and rendered natively in the app. The only exception to this is offline storage which downloads guides, images, and videos, stores them in a SQLite database, and uses that as the data source when the device is offline.

The api directory has all of the classes for interacting with the API (performing requests, defining endpoints, etc.). All of the images are displayed using Picasso in the various views and controllers. The URLs for these come from the API.

I hope that this helps!

remyacv83 commented 9 years ago

Thank you @marczych, you have been most helpful. Can you let me know if there is a Mobile Backend as Service (MBaS) involved here? Perhaps Google App Engine or others cloud storage like parse.com? I could not figure it out from the API code. Thanks in advance, Remya

marczych commented 9 years ago

The backend is our production website (https://www.ifixit.com). For example, this is the endpoint that we request to display the Xbox Red Ring of Death Fix Kit guide: https://www.ifixit.com/api/2.0/guides/3550. We also have a private server for development that we use to test changes.

This code builds the URL for the given API call. You can also see some debug information in logcat if the app is built in debug mode.

Thank you @marczych, you have been most helpful.

Happy to help!