├── app ├── .gitignore ├── src │ ├── main │ │ ├── ic_location-web.png │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── search.png │ │ │ │ ├── ic_filter_list_black_24dp.xml │ │ │ │ ├── ic_map_icon.xml │ │ │ │ ├── ic_network_off.xml │ │ │ │ └── custom_seekbar.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── menu │ │ │ │ └── menu_main_activity.xml │ │ │ └── layout │ │ │ │ ├── loader_layout.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── seekbar_layout.xml │ │ │ │ └── card_layout_main.xml │ │ ├── java │ │ │ └── lingaraj │ │ │ │ └── hourglass │ │ │ │ └── in │ │ │ │ └── getmyparkingchallenge │ │ │ │ ├── Constants.java │ │ │ │ ├── cloud │ │ │ │ └── service │ │ │ │ │ ├── KickStarter.java │ │ │ │ │ └── Response │ │ │ │ │ └── KickStarterResponse.java │ │ │ │ ├── Helpers.java │ │ │ │ ├── KickStarterApp.java │ │ │ │ ├── adapters │ │ │ │ └── KickStarterAdapter.java │ │ │ │ └── activities │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── lingaraj │ │ │ └── hourglass │ │ │ └── in │ │ │ └── getmyparkingchallenge │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── lingaraj │ │ └── hourglass │ │ └── in │ │ └── getmyparkingchallenge │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/ic_location-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/GetMyParkingChallenge/master/app/src/main/ic_location-web.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/GetMyParkingChallenge/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/GetMyParkingChallenge/master/app/src/main/res/drawable/search.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/GetMyParkingChallenge/master/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/GetMyParkingChallenge/master/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/GetMyParkingChallenge/master/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/GetMyParkingChallenge/master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/GetMyParkingChallenge/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun May 07 08:22:43 IST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | KickStarter 3 | Loading 4 | Network Unavailable 5 | Home 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/lingaraj/hourglass/in/getmyparkingchallenge/Constants.java: -------------------------------------------------------------------------------- 1 | package lingaraj.hourglass.in.getmyparkingchallenge; 2 | 3 | /** 4 | * Created by lingaraj on 5/7/17. 5 | */ 6 | 7 | public class Constants { 8 | 9 | public static String rest_server_url = "http://starlord.hackerearth.com/"; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_filter_list_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_map_icon.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/test/java/lingaraj/hourglass/in/getmyparkingchallenge/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package lingaraj.hourglass.in.getmyparkingchallenge; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/java/lingaraj/hourglass/in/getmyparkingchallenge/cloud/service/KickStarter.java: -------------------------------------------------------------------------------- 1 | package lingaraj.hourglass.in.getmyparkingchallenge.cloud.service; 2 | 3 | import java.util.List; 4 | 5 | import lingaraj.hourglass.in.getmyparkingchallenge.cloud.service.Response.KickStarterResponse; 6 | import retrofit.Callback; 7 | import retrofit.http.GET; 8 | 9 | /** 10 | * Created by lingaraj on 5/7/17. 11 | */ 12 | 13 | public interface KickStarter { 14 | 15 | @GET("/kickstarter") 16 | void getKickstarterDemo(Callback> response); 17 | } 18 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_network_off.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main_activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 10 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 96dp 4 | 96dp 5 | 16dp 6 | 16dp 7 | 8dp 8 | 240dp 9 | 20sp 10 | 16sp 11 | 16dp 12 | 48dp 13 | 8dp 14 | 240dp 15 | 16sp 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/androidTest/java/lingaraj/hourglass/in/getmyparkingchallenge/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package lingaraj.hourglass.in.getmyparkingchallenge; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("lingaraj.hourglass.in.getmyparkingchallenge", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/lingaraj/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/custom_seekbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /app/src/main/res/layout/loader_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | 17 | 18 | 24 | 25 | 30 |