Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2edf197
Common code and FCM integration
Jun 15, 2020
824d520
driver app changes
Jun 20, 2020
bf7482a
Merge pull request #1 from gkodandaraman/master
Jun 20, 2020
05a3bd2
Fullscreen scroll problem fix
Jun 21, 2020
025a1c9
phonecall and navigate to rider
Jun 21, 2020
5089edf
Merge remote-tracking branch 'upstream/master'
Jun 21, 2020
beceef0
Merge pull request #2 from gkodandaraman/master
Jun 21, 2020
fd43e83
fixed backstack
Jun 21, 2020
b35c968
Merge remote-tracking branch 'upstream/master'
Jun 21, 2020
8dc7f39
Merge pull request #3 from gkodandaraman/master
Jun 21, 2020
8fa4950
add fixes to contactsupport
Jun 21, 2020
4e28638
Merge pull request #4 from gkodandaraman/master
Jun 21, 2020
f66b569
updated assets
Jun 23, 2020
999bdb8
Merge remote-tracking branch 'upstream/master'
Jun 23, 2020
27e9cbc
Merge pull request #5 from gkodandaraman/master
Jun 23, 2020
378dac6
map nav related changes
Jun 25, 2020
b791124
pin alert
Jun 26, 2020
0329eb3
Merge remote-tracking branch 'upstream/master'
Jun 26, 2020
2e8b164
Merge pull request #6 from gkodandaraman/master
Jun 26, 2020
97784b7
location services
Jun 27, 2020
0dda111
live location update marker
Jun 27, 2020
faaf833
remove live marker
Jun 28, 2020
315fa0a
Merge remote-tracking branch 'upstream/master'
Jun 28, 2020
cdabf32
Merge pull request #7 from gkodandaraman/master
Jun 28, 2020
ee6d214
update location service based on driver availability
Jun 29, 2020
7423606
enum update
Jun 29, 2020
460fb2a
Merge remote-tracking branch 'upstream/master'
Jun 30, 2020
fa34f3e
Merge pull request #8 from gkodandaraman/master
Jun 30, 2020
0664ba4
update push notifications, map checks, loader screen, verf text
Jul 22, 2020
80c270a
Merge pull request #9 from gkodandaraman/master
Jul 22, 2020
9e790a7
removed unnecessary code
Jul 22, 2020
d64bd96
Merge pull request #10 from gkodandaraman/master
Jul 22, 2020
5fb5936
push notification changes
Jul 24, 2020
13d18bc
Merge pull request #11 from gkodandaraman/master
Jul 24, 2020
49552b3
reset config
Jul 24, 2020
df04589
Merge remote-tracking branch 'upstream/master'
Jul 24, 2020
58a5b37
driver profile change
Jul 25, 2020
bfb3ecb
merged
Jul 26, 2020
2411430
minor updates
Oct 16, 2020
9c41b3a
Merge remote-tracking branch 'woc/master'
Oct 16, 2020
284b51d
Crud operations for Survey
suganyaharisudhan Nov 22, 2020
6877f2f
Changes for Survey API and User API
suganyaharisudhan Nov 22, 2020
793f256
app changes
Nov 23, 2020
89654b3
Merge branch 'develop_janagrahaa' of https://github.com/2020-opportun…
suganyaharisudhan Nov 23, 2020
01f3fd9
Schema Generation Plugin
Feb 8, 2021
5f2add0
Added pom for generated classes.
Feb 15, 2021
90e4330
Changes for schema generation
Feb 15, 2021
4703961
Camera Utils and Luminosity flow
Feb 25, 2021
199341b
Camera Utils and Luminosity flow
Mar 7, 2021
e95a40b
Added second flow (Road Lighting Amenities)
Mar 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
/.idea/caches/build_file_checksums.ser
.idea/
logs
gen-external-apklibs
out

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

android {
compileSdkVersion 28
buildToolsVersion "29.0.3"

defaultConfig {
applicationId "com.ichangemycity.ichangemycommunity"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

}

dependencies {

def camerax_version = "1.0.0-rc01"

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.squareup.retrofit2:retrofit:2.2.0'
implementation 'com.squareup.retrofit2:converter-gson:2.2.0'
implementation 'com.squareup.okhttp3:okhttp:3.6.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
implementation 'com.google.code.gson:gson:2.4'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.jakewharton:butterknife:8.5.1'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

// Google Services
implementation 'com.google.android.gms:play-services-maps:17.0.0'

// Google Location
implementation 'com.google.android.gms:play-services-location:17.0.0'

// Google map utils for clustering
implementation 'com.google.maps.android:android-maps-utils:1.3.3'

// Google Directions
implementation 'com.google.maps:google-maps-services:0.14.0'

// Google Places
implementation 'com.google.android.libraries.places:places:2.2.0'

// Cluster Markers
implementation 'com.google.maps.android:android-maps-utils:2.1.0'

// CameraX core library using camera2 implementation
implementation "androidx.camera:camera-camera2:$camerax_version"

// CameraX Lifecycle Library
implementation "androidx.camera:camera-lifecycle:$camerax_version"

// CameraX View class
implementation "androidx.camera:camera-view:1.0.0-alpha20"
implementation "androidx.camera:camera-core:${camerax_version}"

implementation "com.android.support:support-v4:28.0.0"
implementation "com.android.support:support-v13:28.0.0"
implementation "com.android.support:cardview-v7:28.0.0"
implementation "com.android.support:appcompat-v7:28.0.0"


implementation 'com.android.support:recyclerview-v7:28.0.0'
}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# 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 *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.ichangemycity.ichangemycommunity;

import android.content.Context;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();

Assert.assertEquals("com.ichangemycity.ichangemycommunity", appContext.getPackageName());
}
}
76 changes: 76 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ichangemycity.ichangemycommunity">

<!-- The Maps SDK for Android uses OpenGL ES version 2 to render the map. -->
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<!--
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
Google Maps Android API v2, but you must specify either coarse or fine
location permissions for the 'MyLocation' functionality.
-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<!-- Used to run Location Service in the foreground -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

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

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />

<application
android:name=".utils.map.UserClient"
android:allowBackup="true"
android:icon="@drawable/app_logo"
android:label="@string/app_name"
android:roundIcon="@drawable/app_logo"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<activity
android:name="com.ichangemycity.ichangemycommunity.ui.activities.SurveyHomeActivity"
android:label=""
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="com.ichangemycity.ichangemycommunity.ui.activities.SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ui.activities.CameraActivity"/>

<!--
The API key for Google Maps-based APIs is defined as a string resource.
(See the file "res/values/google_maps_api.xml").
Note that the API key is linked to the encryption key used to sign the APK.
You need a different API key for each encryption key, including the release key that is used to
sign the APK for publishing.
You can define the keys for the debug and release targets in src/debug/ and src/release/.
-->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

<service android:name=".services.LocationService"
android:stopWithTask="true">
</service>

</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package com.ichangemycity.ichangemycommunity;

import android.os.Environment;

import java.io.File;

public class AppConfig {
private static final Host HOST_DEFAULT = Host.STAGING1;
private static final String DEFAULT_LOG_TAG = "IChangeMyCommunity";
private static final String SHARED_PREF_NAME = "IChangeMyCommunityPref";
private static final String BASE_FOLDER_NAME = "IChangeMyCommunity";
public static final String DATABASE_NAME = "IChangeMyCommunityDB";

public enum Host{
STAGING1("https://jsonplaceholder.typicode.com"),
STAGING("http://ankuran-hack.ap-south-1.elasticbeanstalk.com"),
PRODUCTION("http://ankuran-hack.ap-south-1.elasticbeanstalk.com");

private final String url;

private Host(final String url)
{
this.url=url;
}

@Override
public String toString() {
return url;
}
}



public static String getHostDefault() {
return HOST_DEFAULT.toString();
}

public static boolean isDevelopment() {
if(getHostDefault().equals(Host.PRODUCTION.toString()))
return false;
return true;
}

public static boolean isLogEnabled() {
return isDevelopment();
}

public static String getDefaultLogTag() {
return DEFAULT_LOG_TAG;
}

public static String getSharedPrefName() {
return SHARED_PREF_NAME;
}

public static String getBaseFolderPath(){
return Environment.getExternalStorageDirectory() + File.separator + BASE_FOLDER_NAME + File.separator;
}

public static String getDatabaseName() {
return DATABASE_NAME;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package com.ichangemycity.ichangemycommunity;

import android.os.Environment;

import java.io.File;

public class AppConstant {

private static final Object MAIN_FOLDER = "IChangeMyCity" ;
public static final Object APP_NAME = "IChangeMyCommunity" ;

public static final String BASE_FOLDER = Environment.getExternalStorageDirectory() + File.separator + MAIN_FOLDER + File.separator;
public static int SPLASH_SCREEN_TIME_OUT=2000;
public static final int SMS_PERMISSION_CODE = 1002;
public static final String ACTION_SMS_RECEIVED="android.provider.Telephony.SMS_RECEIVED";
public static final String URL_TERMS_N_CONDITION_WEBVIEW="https://developer.android.com/guide/webapps/webview";

public static final String DEFAULT_PIN = "0000";


//KEY FOR SHARED PREFERENCE
public static final String PREF_KEY_MOBILE = "UserMobile";
public static final String PREF_KEY_USER_DETAILS = "UserDetails";
public static final String PREF_KEY_DEVICE_ID = "UserDeviceId";

//Key for request object
public static final String REQUEST_KEY_MOBILE = "phoneNumber";
public static final String REQUEST_KEY_OTP = "otp";

//Keys for network call
public static final int NETWORK_CALL_INITIATE_OTP = 1;
public static final int NETWORK_CALL_VALIDATE_OTP = 2;

//Image request code

public static final int PICK_IMAGE =10000 ;
public static final int PICK_LICENCE =10001 ;
public static final int PICK_INSURANCE =10002 ;
public static final int PICK_RC =10003 ;


public enum ImageType{
PROFILE_PIC("PP"),
SURVEY_PIC("DL"),
;
private final String type;

private ImageType(final String type)
{
this.type=type;
}

@Override
public String toString() {
return type;
}
}
}
Loading