Commit 8c12e8ed authored by Christof Wolke's avatar Christof Wolke

new Projectstructure + adding some libaries

parent 0f27b8d6
......@@ -19,13 +19,38 @@ android {
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
apply plugin: 'com.neenbedankt.android-apt'
repositories {
maven {
url "http://maven.rushorm.com"
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// Estimote SDK
// Import Estimote SDK (https://github.com/Estimote/Android-SDK)
compile 'com.estimote:sdk:0.10.8@aar'
// Import LoganSquare JSON library (https://github.com/bluelinelabs/LoganSquare)
apt 'com.bluelinelabs:logansquare-compiler:1.3.6'
compile 'com.bluelinelabs:logansquare:1.3.6'
// Import OkHttp library (https://github.com/square/okhttp)
compile 'com.squareup.okhttp:okhttp:2.7.1'
// Import RushOrm library (https://github.com/Stuart-campbell/RushOrm)
compile 'co.uk.rushorm:rushandroid:1.2.0'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha4'
testCompile 'junit:junit:4.12'
......
......@@ -9,7 +9,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name=".base_view.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......
package de.uni_oldenburg.bidl;
package de.uni_oldenburg.bidl.base_view;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
......@@ -13,6 +13,8 @@ import com.estimote.sdk.SystemRequirementsChecker;
import java.util.List;
import java.util.UUID;
import de.uni_oldenburg.bidl.R;
public class MainActivity extends AppCompatActivity {
private static final UUID ESTIMOTE_PROXIMITY_UUID = UUID.fromString("B9407F30-F5F8-466E-AFF9-25556B57FE6D");
......@@ -37,7 +39,7 @@ public class MainActivity extends AppCompatActivity {
public void onBeaconsDiscovered(Region region, List<Beacon> list) {
if (!list.isEmpty()){
Beacon nearestBeacon = list.get(0);
//// TODO: 29.07.2016 Servercall to get the Event, wich takes place.
//// TODO: 29.07.2016 Servercall to get the Event, which takes place.
showBeaconID(nearestBeacon);
}
}
......
......@@ -5,7 +5,7 @@
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="de.uni_oldenburg.bidl.MainActivity">
tools:context="de.uni_oldenburg.bidl.base_view.MainActivity">
<TextView
android:id="@+id/BeaconID"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment