added headunit interface lib

This commit is contained in:
florian.bramer 2015-06-15 15:08:20 +02:00
parent 5699927373
commit 466ea0d755
9 changed files with 77 additions and 3 deletions

View file

@ -27,13 +27,12 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
testCompile 'junit:junit:4.12'
testCompile('org.robolectric:robolectric:3.0-rc2') {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
testCompile 'org.mockito:mockito-core:1.9.5'
testCompile 'org.hamcrest:hamcrest-library:1.3'
compile project(':headunitinterface')
}

View file

@ -0,0 +1 @@
/build

View file

@ -0,0 +1,24 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
}

View file

@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /home/flo/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 *;
#}

View file

@ -0,0 +1,13 @@
package com.esrlabs.headunitinterface;
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);
}
}

View file

@ -0,0 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esrlabs.headunitinterface">
<application android:allowBackup="true" android:label="@string/app_name">
</application>
</manifest>

View file

@ -0,0 +1,9 @@
// HeadUnit.aidl
package com.esrlabs.headunitinterface;
interface HeadUnit {
void showNotification(String text);
void hideAllNotifications();
}

View file

@ -0,0 +1,3 @@
<resources>
<string name="app_name">HeadUnitInterface</string>
</resources>

View file

@ -1 +1 @@
include ':app'
include ':app', ':headunitinterface'