Skip to content

Commit 679ec3b

Browse files
author
Luc van den Brand
authored
Merge pull request #46 from RUGSoftEng/release-0.3
Release 0.3
2 parents eab2c93 + 292b645 commit 679ec3b

67 files changed

Lines changed: 2388 additions & 671 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Hestia/app/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ dependencies {
2525
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
2626
exclude group: 'com.android.support', module: 'support-annotations'
2727
})
28-
compile 'com.android.support:appcompat-v7:25.2.0'
28+
compile 'com.android.support:appcompat-v7:25.3.1'
2929
testCompile 'junit:junit:4.12'
30-
compile 'com.android.support:recyclerview-v7:25.2.0'
31-
compile 'com.android.support:design:25.2.0'
30+
compile 'com.android.support:recyclerview-v7:25.3.1'
31+
compile 'com.android.support:design:25.3.1'
3232
compile 'com.google.code.gson:gson:2.7'
33-
compile 'com.android.volley:volley:1.0.0'
33+
compile 'com.yalantis:contextmenu:1.0.7'
34+
testCompile 'org.mockito:mockito-core:1.10.19'
3435
}

Hestia/app/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Add project specific ProGuard rules here.
22
# By default, the flags in this file are appended to flags specified
33
# in /Users/Feiko/Library/Android/sdk/tools/proguard/proguard-android.txt
4-
# You can edit the include path and order by changing the proguardFiles
4+
# You can edit the include pluginPath and order by changing the proguardFiles
55
# directive in build.gradle.
66
#
77
# For more details, see
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.rugged.application.hestia;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
import android.util.Log;
7+
8+
import org.junit.Test;
9+
import org.junit.runner.RunWith;
10+
11+
import hestia.backend.ClientInteractionController;
12+
import hestia.backend.Device;
13+
14+
import static org.junit.Assert.*;
15+
16+
@RunWith(AndroidJUnit4.class)
17+
public class ClientInteractionControllerTest {
18+
private String TAG = "ClientInteractionTest";
19+
20+
@Test
21+
public void getDevices() throws Exception {
22+
ClientInteractionController cic = ClientInteractionController.getInstance();
23+
StringBuilder sb = new StringBuilder();
24+
for(Device d : cic.getDevices()){
25+
sb.append(d.toString());
26+
}
27+
Context appContext = InstrumentationRegistry.getTargetContext();
28+
assertEquals("com.rugged.application.hestia", appContext.getPackageName());
29+
Log.i(TAG, sb.toString());
30+
}
31+
}
1.99 MB
Binary file not shown.

Hestia/app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.rugged.application.hestia">
44

5-
<uses-permission android:name="android.permission.INTERNET"/>
6-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
5+
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
6+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
77

88
<application
9+
android:name="hestia.UI.HestiaApplication"
910
android:allowBackup="true"
1011
android:icon="@mipmap/ic_launcher"
1112
android:label="@string/app_name"
1213
android:supportsRtl="true"
1314
android:theme="@style/Theme.AppCompat.Light.NoActionBar">
14-
<activity android:name=".LoginActivity"
15+
<activity android:name="hestia.UI.LoginActivity"
1516
android:screenOrientation="locked">
1617
<intent-filter>
1718
<action android:name="android.intent.action.MAIN" />
1819
<category android:name="android.intent.category.LAUNCHER" />
1920
</intent-filter>
2021
</activity>
21-
<activity android:name=".PeripheralListActivity"
22+
<activity android:name="hestia.UI.DeviceListActivity"
2223
android:screenOrientation="locked">
2324

2425
</activity>

Hestia/app/src/main/ic_add-web.png

7.6 KB
Loading

Hestia/app/src/main/java/com/rugged/application/hestia/Activator.java

Lines changed: 0 additions & 59 deletions
This file was deleted.

Hestia/app/src/main/java/com/rugged/application/hestia/Client.java

Lines changed: 0 additions & 68 deletions
This file was deleted.

Hestia/app/src/main/java/com/rugged/application/hestia/Device.java

Lines changed: 0 additions & 69 deletions
This file was deleted.

Hestia/app/src/main/java/com/rugged/application/hestia/DeviceListActivity.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)