Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
ee7b168
Created develop branch
VadimFarutin Oct 12, 2017
9e7b3f2
Created base activities and layouts
VadimFarutin Oct 21, 2017
5f68a6c
Added empty Controller
VadimFarutin Nov 9, 2017
8086ff0
Initial commit
VadimFarutin Nov 12, 2017
47c7a75
Random coordinates in Alarm activity
VadimFarutin Nov 12, 2017
43a1040
Added maps
VadimFarutin Nov 12, 2017
5ff48ff
Started to make HistoryActivity
VadimFarutin Nov 15, 2017
661c2bf
Connection with database
VadimFarutin Nov 15, 2017
2734221
Changed key
VadimFarutin Nov 15, 2017
cab67d2
Removed odd lines
VadimFarutin Nov 15, 2017
8423c6a
Started implementing routes saving
VadimFarutin Nov 16, 2017
d6dc08c
Replaced buttons with FAB
VadimFarutin Nov 16, 2017
72aa1a2
Decreased sleep time
VadimFarutin Nov 16, 2017
62f20f8
Made Reciever private
VadimFarutin Nov 16, 2017
33e8808
Added activity to display saved routes
VadimFarutin Nov 21, 2017
8ca368c
Made simple notification in Alarm mode
VadimFarutin Nov 21, 2017
1f07f8f
Made Dialog for saving routes
VadimFarutin Nov 28, 2017
f67fdfd
Added Login activity
VadimFarutin Nov 28, 2017
8be0e8d
Started to make Settings activity instead of toolbar menu
VadimFarutin Nov 28, 2017
568ceac
Icons for settings button
VadimFarutin Nov 28, 2017
264b6e9
Added settings using AppCompatPreferenceActivity
VadimFarutin Dec 5, 2017
3c8e652
Changed main Theme to NoActionBar
VadimFarutin Dec 5, 2017
0a88ef1
Removed animation files
VadimFarutin Dec 15, 2017
b465ade
Removed unused icons
VadimFarutin Dec 15, 2017
31ba718
Added new icons
VadimFarutin Dec 15, 2017
e5bee00
Changed some icons
VadimFarutin Dec 15, 2017
bb3d86f
Changed theme colors
VadimFarutin Dec 15, 2017
9b84992
Failed with null pointer
VadimFarutin Dec 15, 2017
b5dfa3b
Added ability to delete saved routes
VadimFarutin Dec 15, 2017
da1fbfd
Added route info
VadimFarutin Dec 15, 2017
4175f75
Added route info
VadimFarutin Dec 15, 2017
48441af
Starting tracker right from the AlarmActivity
VadimFarutin Dec 15, 2017
8e74f5b
Minor changes
VadimFarutin Dec 15, 2017
e0e4c73
Added share icons
VadimFarutin Dec 23, 2017
b4e6f5b
Implemented route sharing
VadimFarutin Dec 23, 2017
829553a
Portrait orientation only
VadimFarutin Dec 23, 2017
d2ddc3a
Added all hardcored strings to resources, made Coordinate class not n…
VadimFarutin Dec 23, 2017
8252aea
Added JavaDocs
VadimFarutin Dec 23, 2017
c552239
Changed some titles so that they start with capital letter
VadimFarutin Dec 23, 2017
e0baa21
Added methods for interacting with database
psolikov Dec 26, 2017
c02b99b
Fixed all IDE warnings
VadimFarutin Dec 26, 2017
4f28225
Moved all DB methods in DBManager class
VadimFarutin Dec 26, 2017
594a069
New app icon
VadimFarutin Dec 27, 2017
42f9eb1
Made AlarmActivity with only one layout
VadimFarutin Dec 27, 2017
b64c3ce
Applied review.1.patch, fixed issues
VadimFarutin Feb 5, 2018
82f7587
Implemented isValidDeviceId
psolikov Feb 19, 2018
db9367c
Now there are only 3 tables for each user
psolikov Feb 20, 2018
abb0b1a
Removed some printStackTrace() calls with logging
VadimFarutin Feb 20, 2018
426721e
Removed some printStackTrace() calls with logging
VadimFarutin Feb 20, 2018
f6a4f64
Implemented route deletion from database
psolikov Feb 20, 2018
cdc9a19
Merge branch 'android' of https://github.com/psolikov/GPSTracker into…
psolikov Feb 20, 2018
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
29 changes: 29 additions & 0 deletions GPSTracker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Created by .ignore support plugin (hsz.mobi)
### Android template

# Generated files
# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
# Log Files
# Android Studio Navigation editor temp files
# Android Studio captures folder
# Intellij
*.iml
.idea/workspace.xml
.idea/gradle.xml
.idea/dictionaries
.idea/libraries

# Keystore files
# Uncomment the following line if you do not want to check your keystore files in.
#*.jks

# External native build folder generated in Android Studio 2.2 and later
# Google Services (e.g. APIs or Firebase)
# Freeline
24 changes: 24 additions & 0 deletions GPSTracker/.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 GPSTracker/.idea/copyright/profiles_settings.xml

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

6 changes: 6 additions & 0 deletions GPSTracker/.idea/encodings.xml

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

35 changes: 35 additions & 0 deletions GPSTracker/.idea/inspectionProfiles/Project_Default.xml

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

7 changes: 7 additions & 0 deletions GPSTracker/.idea/inspectionProfiles/profiles_settings.xml

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

80 changes: 80 additions & 0 deletions GPSTracker/.idea/misc.xml

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

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

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

12 changes: 12 additions & 0 deletions GPSTracker/.idea/runConfigurations.xml

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

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

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "ru.spbau.farutin_solikov.gpstracker"
minSdkVersion 16
//noinspection OldTargetApi
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility JavaVersion.VERSION_1_7
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

compile 'com.android.support:appcompat-v7:26.0.0'
compile 'com.android.support:design:26.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-compat:26.0.0'
compile 'com.android.support:support-v4:26.0.0'
compile 'com.android.support:support-vector-drawable:26.0.0'

compile 'com.google.android.gms:play-services-maps:11.0.4'
compile 'com.getbase:floatingactionbutton:1.10.1'
compile 'com.google.maps.android:android-maps-utils:0.4'

testCompile 'junit:junit:4.12'
}
Binary file not shown.
25 changes: 25 additions & 0 deletions GPSTracker/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\Vadim\AppData\Local\Android\Sdk/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 *;
#}

# 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,31 @@
package ru.spbau.farutin_solikov.gpstracker;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

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

import static org.junit.Assert.*;

/**
* Instrumentation 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.getTargetContext();

assertEquals("ru.spbau.farutin_solikov.gpstracker", appContext.getPackageName());
}

@Test
public void testCheckID() {
assertEquals(DBManager.isValidDeviceId("11111111"), true);
}
}
66 changes: 66 additions & 0 deletions GPSTracker/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="ru.spbau.farutin_solikov.gpstracker">

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

<application
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:allowBackup="true"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="AllowBackup,GoogleAppIndexingWarning">

<activity
android:name=".LoginActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.DarkActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

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

<activity
android:name=".TrackerActivity"
android:screenOrientation="portrait"/>

<activity
android:name=".AlarmActivity"
android:screenOrientation="portrait"
android:launchMode="singleTop"/>

<activity
android:name=".HistoryActivity"
android:screenOrientation="portrait"/>

<activity
android:name=".RouteActivity"
android:screenOrientation="portrait">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HistoryActivity"/>
</activity>

<activity
android:name=".SettingsActivity"
android:label="@string/title_activity_settings"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.DarkActionBar">
</activity>

<service
android:name=".CoordinatesService"
android:permission="android.permission.BIND_JOB_SERVICE"/>

<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyAN3oIa-hIVpTEJ127q5KUlcWN_CdF9V_k"/>

</application>
</manifest>
Loading