Skip to content

Commit

Permalink
merged develop into master and fixed conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dewall committed Feb 5, 2016
2 parents a067869 + 0fa0231 commit f1b24e3
Show file tree
Hide file tree
Showing 284 changed files with 10,720 additions and 10,112 deletions.
4 changes: 2 additions & 2 deletions android-obd-simulator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ dependencies {
}

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
compileSdkVersion 23
buildToolsVersion "23.0.2"

sourceSets {
main {
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ ext {
minSdkVersion = 16
compileSdkVersion = 23
targetSdkVersion = 23
buildToolsVersion = '23.0.1'
buildToolsVersion = '23.0.2'
versionCode = 25
versionName = "0.20.1"

javaCompileVersion = JavaVersion.VERSION_1_8

// Android dependencies.
supportV4 = 'com.android.support:support-v4:23.0.1'
supportV7 = 'com.android.support:appcompat-v7:23.0.1'
supportDesign = 'com.android.support:design:23.0.1'
supportCardview = 'com.android.support:cardview-v7:23.0.1'
supportRecyclerview = 'com.android.support:recyclerview-v7:23.0.1'
supportV4 = 'com.android.support:support-v4:23.1.1'
supportV7 = 'com.android.support:appcompat-v7:23.1.1'
supportDesign = 'com.android.support:design:23.1.1'
supportCardview = 'com.android.support:cardview-v7:23.1.1'
supportRecyclerview = 'com.android.support:recyclerview-v7:23.1.1'

// Dependency injection, view injection, event bus...
dagger = 'com.squareup.dagger:dagger:1.2.2'
Expand Down
1 change: 1 addition & 0 deletions org.envirocar.algorithm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
41 changes: 41 additions & 0 deletions org.envirocar.algorithm/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apply plugin: 'com.android.library'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaCompileVersion
targetCompatibility rootProject.ext.javaCompileVersion
}

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
testCompile 'junit:junit:4.12'
androidTestCompile 'junit:junit:4.12'
compile supportV7

compile rootProject.ext.dagger
apt rootProject.ext.daggerCompiler

compile rootProject.ext.rxAndroid
compile rootProject.ext.rxJava

compile project(':org.envirocar.obd')
}
17 changes: 17 additions & 0 deletions org.envirocar.algorithm/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 /home/matthes/opt/adt/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 *;
#}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.envirocar.algorithm;

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);
}
}
9 changes: 9 additions & 0 deletions org.envirocar.algorithm/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.envirocar.algorithm">

<application android:allowBackup="true" android:label="@string/app_name"
android:supportsRtl="true">

</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package org.envirocar.algorithm;

import org.envirocar.core.entity.Measurement;
import org.envirocar.obd.commands.PID;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public abstract class AbstractMeasurementProvider implements MeasurementProvider {

private List<Position> positionBuffer = new ArrayList<>();

@Override
public synchronized void newPosition(Position pos) {
this.positionBuffer.add(pos);
}

public synchronized List<Position> getAndClearPositionBuffer() {
List<Position> result = Collections.unmodifiableList(positionBuffer);
positionBuffer = new ArrayList<>(result.size());
return result;
}

}
Loading

0 comments on commit f1b24e3

Please sign in to comment.