Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
41c5cf3
initial commit
drayan85 Jan 25, 2016
ba13c78
libraries added
drayan85 Jan 25, 2016
cfa50e4
Application class created
drayan85 Jan 25, 2016
27b78a3
android manifest config
drayan85 Jan 25, 2016
84ae4fa
Device List Activity class has been created
drayan85 Jan 25, 2016
eb6b1d3
Android model class created
drayan85 Jan 25, 2016
ae3fa9d
Devices model class has been created
drayan85 Jan 25, 2016
92e8960
Parent response class has been created
drayan85 Jan 25, 2016
b433764
DataBaseClient Class has been created
drayan85 Jan 25, 2016
68c21d6
DBHelper class has been created
drayan85 Jan 25, 2016
641ad39
Utils class has been created
drayan85 Jan 25, 2016
c19470c
Device List Fragment class has been created
drayan85 Jan 25, 2016
ecf32e4
navigation text active/inactive colour resource has been created
drayan85 Jan 25, 2016
5e5f6cc
default profile image has been created
drayan85 Jan 25, 2016
a54a36e
Home menu icon resource has been created
drayan85 Jan 25, 2016
c9961e1
layout has been modify along with the left hand drawer
drayan85 Jan 25, 2016
33676a4
menu resources are added
drayan85 Jan 25, 2016
0b44c21
navigation drawer header layout has been created
drayan85 Jan 25, 2016
3a3a523
string resources have been defined
drayan85 Jan 25, 2016
9b044cd
Merge branch 'feature/build_core_functionality' into develop
drayan85 Jan 25, 2016
9a594c2
package structure has been redefine
drayan85 Jan 25, 2016
5125ab1
internet permission defined and Device downloaded service has been de…
drayan85 Jan 26, 2016
92fbe84
Android VersionController class has been created
drayan85 Jan 26, 2016
6a47999
DeviceController class has been created
drayan85 Jan 26, 2016
97ee9e2
Devices model has been updated to save in to the local database
drayan85 Jan 26, 2016
0a0c790
DeviceDownloadedService sub class of Service is created
drayan85 Jan 26, 2016
99188fa
device list adapter is created
drayan85 Jan 26, 2016
69f006e
Android version info service interface is created
drayan85 Jan 26, 2016
5b31c20
Device info service interface is created.
drayan85 Jan 26, 2016
ef4e25b
insert device details and get device list methods are added
drayan85 Jan 26, 2016
8470211
create device table query is added
drayan85 Jan 26, 2016
f5c5d3c
render device list using fragment layout has been completed.
drayan85 Jan 26, 2016
4f9c632
render the device list after downloading finish is implemented
drayan85 Jan 26, 2016
fbcf89a
device item layout for the adapter is created.
drayan85 Jan 26, 2016
427a20b
device fragment layout is created.
drayan85 Jan 26, 2016
b5f8416
progress layout is created
drayan85 Jan 26, 2016
0bce2ee
config file is created
drayan85 Jan 26, 2016
4218966
empty message text has been updated.
drayan85 Jan 26, 2016
417f9ba
Merge branch 'feature/device_list_adapter' into develop
drayan85 Jan 26, 2016
abeaba4
Android Version Details Activity has been defined
drayan85 Jan 26, 2016
0b83e19
click on the item launch Android version detail activity is implemented
drayan85 Jan 26, 2016
0d9f93d
get Device details using device id from database method is created.
drayan85 Jan 26, 2016
79ab45f
AndroidVersionDetailsActivity is created
drayan85 Jan 26, 2016
67fb077
tiling items with different heights issue has been fixed by using Sta…
drayan85 Jan 26, 2016
8a1244d
android version activity layout has been created
drayan85 Jan 26, 2016
c5dbcb9
android version details container layout has been created
drayan85 Jan 26, 2016
f570074
Merge branch 'feature/android_version_detail_activity' into develop
drayan85 Jan 26, 2016
e2fc13c
tiling bug has been and code clean up
drayan85 Jan 26, 2016
0391677
get the Android Version details by passing the id controller method i…
drayan85 Jan 26, 2016
fc7d72f
code name clean up
drayan85 Jan 26, 2016
1403949
entity type has been changed
drayan85 Jan 26, 2016
1851818
loading the android version details is implemented
drayan85 Jan 26, 2016
31dba58
name and layout clean up
drayan85 Jan 26, 2016
66e8bcd
end point changed
drayan85 Jan 26, 2016
c9fba35
Merge branch 'feature/loading_android_version_details' into develop
drayan85 Jan 26, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
32 changes: 32 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.infinity.massive"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:cardview-v7:23.0.0'
compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'
compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.squareup.picasso:picasso:2.5.2'
}
Binary file added app/libs/gson-2.3.1.jar
Binary file not shown.
17 changes: 17 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/ilandrayan/android-sdks/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
13 changes: 13 additions & 0 deletions app/src/androidTest/java/com/infinity/massive/ApplicationTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.infinity.massive;

import android.app.Application;
import android.test.ApplicationTestCase;

/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
35 changes: 35 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.infinity.massive">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<application
android:name=".ApplicationMassiveInfinity"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".view.activity.DeviceListActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".view.activity.AndroidVersionDetailsActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar"/>

<!--Register all the services-->
<service android:name="com.infinity.massive.controller.service.DeviceDownloadService"/>

</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package com.infinity.massive;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.support.v4.content.LocalBroadcastManager;
import android.util.Log;

/**
* Created by Ilanthirayan on 25/1/16.
*/
public class ApplicationMassiveInfinity extends Application {

private static final String TAG = ApplicationMassiveInfinity.class.getSimpleName();

private static LocalBroadcastManager sLbm;

protected static Context sContext;
protected static Activity sActivity;


@Override
public void onCreate() {

super.onCreate();
Log.i(TAG, "onCreate: Called");
sContext = getApplicationContext();

sLbm = LocalBroadcastManager.getInstance(sContext);

}

public static LocalBroadcastManager getLbm(){
return sLbm;
}

protected static void setCurrentActivity(Activity currentActivity) {
sActivity = currentActivity;
}

public static Context getContext() {
return sContext;
}

protected static Activity getCurrentActivity() {
return sActivity;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.infinity.massive.controller;

import com.infinity.massive.ApplicationMassiveInfinity;
import com.infinity.massive.R;
import com.infinity.massive.model.api.AndroidVersionInfoService;
import com.infinity.massive.model.pojo.Android;

import java.util.List;

import retrofit.Call;
import retrofit.GsonConverterFactory;
import retrofit.Retrofit;

/**
* Created by Ilanthirayan on 26/1/16.
*/
public class AndroidVersionController {

private static final String TAG = DeviceController.class.getSimpleName();

private Retrofit retrofit;
private AndroidVersionInfoService androidVersionInfoService;

public AndroidVersionController() {
retrofit = new Retrofit.Builder()
.baseUrl(ApplicationMassiveInfinity.getContext().getResources().getString(R.string.massive_infinity_api_url))
.addConverterFactory(GsonConverterFactory.create())
.build();

androidVersionInfoService = retrofit.create(AndroidVersionInfoService.class);
}

public Call<Android> getProductDetailsService(int device_id){
Call<Android> response = androidVersionInfoService.getAndroidVersionDetails(device_id
);

return response;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.infinity.massive.controller;

import com.infinity.massive.ApplicationMassiveInfinity;
import com.infinity.massive.R;
import com.infinity.massive.model.api.DeviceInfoService;
import com.infinity.massive.model.pojo.Devices;

import java.util.List;

import retrofit.Call;
import retrofit.GsonConverterFactory;
import retrofit.Retrofit;

/**
* Created by Ilanthirayan on 25/1/16.
*/
public class DeviceController {

private static final String TAG = DeviceController.class.getSimpleName();

private Retrofit retrofit;
private DeviceInfoService deviceInfoService;

public DeviceController() {
retrofit = new Retrofit.Builder()
.baseUrl(ApplicationMassiveInfinity.getContext().getResources().getString(R.string.massive_infinity_api_url))
.addConverterFactory(GsonConverterFactory.create())
.build();

deviceInfoService = retrofit.create(DeviceInfoService.class);
}

public Call<List<Devices>> getProductDetailsService(){
Call<List<Devices>> response = deviceInfoService.getDevices(
);

return response;
}
}
Loading