Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added .idea/caches/build_file_checksums.ser
Binary file not shown.
29 changes: 29 additions & 0 deletions .idea/codeStyles/Project.xml

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

7 changes: 4 additions & 3 deletions .idea/misc.xml

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

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

24 changes: 14 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
compileSdkVersion 27
defaultConfig {
applicationId "in.ac.siesgst.npl.remotecontrolbot"
minSdkVersion 19
targetSdkVersion 26
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -16,15 +16,19 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion '27.0.3'
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'io.github.controlwear:virtualjoystick:1.8.0'
compile 'com.android.support:design:26.1.0'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'io.github.controlwear:virtualjoystick:1.8.0'
implementation 'com.android.support:design:27.1.1'
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'com.google.code.gson:gson:2.8.5'
}
12 changes: 8 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@drawable/app_icon"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name=".JoystickActivity"
android:screenOrientation="landscape"/>

<activity android:name=".SettingsActivity" />

<activity android:name=".MainActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

</manifest>
55 changes: 55 additions & 0 deletions app/src/main/java/in/ac/siesgst/npl/remotecontrolbot/Event.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package in.ac.siesgst.npl.remotecontrolbot;

public class Event {
private String name;
private int backgroundDrawable;
private int buttonDrawable;
private int joyDrawable;

public String getName()
{
return name;
}

public void setName(String name)
{
this.name = name;
}

public int getBackgroundDrawable()
{
return backgroundDrawable;
}

public void setBackgroundDrawable(int backgroundDrawable)
{
this.backgroundDrawable = backgroundDrawable;
}

public int getButtonDrawable()
{
return buttonDrawable;
}

public void setButtonDrawable(int buttonDrawable)
{
this.buttonDrawable = buttonDrawable;
}

public int getJoyDrawable()
{
return joyDrawable;
}

public void setJoyDrawable(int joyDrawable)
{
this.joyDrawable = joyDrawable;
}

public Event(String name, int backgroundDrawable, int buttonDrawable, int joyDrawable) {
this.name = name;
this.backgroundDrawable = backgroundDrawable;
this.buttonDrawable = buttonDrawable;
this.joyDrawable = joyDrawable;
}
}
Loading