├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── dictionaries │ └── pddstudio.xml ├── vcs.xml ├── runConfigurations.xml ├── compiler.xml ├── modules.xml ├── gradle.xml └── misc.xml ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── pddstudio │ │ │ └── androidbutlerdemo │ │ │ └── MainActivity.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── pddstudio │ │ │ └── androidbutlerdemo │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── pddstudio │ │ └── androidbutlerdemo │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── james-core ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── pddstudio │ │ │ └── james │ │ │ └── core │ │ │ ├── abstracts │ │ │ └── AbstractService.java │ │ │ ├── utils │ │ │ ├── Log.java │ │ │ └── Logger.java │ │ │ ├── services │ │ │ └── MediaPlayer.java │ │ │ └── James.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── pddstudio │ │ │ └── james │ │ │ └── core │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── pddstudio │ │ └── james │ │ └── core │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── james-http ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── pddstudio │ │ │ └── james │ │ │ └── http │ │ │ ├── interfaces │ │ │ └── RemoteJamesCallback.java │ │ │ ├── model │ │ │ ├── TwilioResponseCarrier.java │ │ │ └── TwilioResponse.java │ │ │ ├── RemoteJamesService.java │ │ │ └── TwilioService.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── pddstudio │ │ │ └── james │ │ │ └── http │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── pddstudio │ │ └── james │ │ └── http │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── james-utils ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ ├── item_icon.xml │ │ │ │ └── dialog_layout_material.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── pddstudio │ │ │ └── james │ │ │ └── utils │ │ │ ├── adapters │ │ │ └── IconAdapter.java │ │ │ ├── IconicDialog.java │ │ │ └── MaterialDialog.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── pddstudio │ │ │ └── james │ │ │ └── utils │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── pddstudio │ │ └── james │ │ └── utils │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── james-server ├── .gitignore ├── src │ └── main │ │ └── java │ │ └── com │ │ └── pddstudio │ │ └── james │ │ └── server │ │ ├── utils │ │ ├── Log.java │ │ └── Logger.java │ │ └── ServerJames.java └── build.gradle ├── settings.gradle ├── start-james-server.sh ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /.idea/.name: -------------------------------------------------------------------------------- 1 | Android Butler -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /james-core/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /james-http/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /james-utils/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /james-server/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':james-core', ':james-utils', ':james-http', ':james-server' 2 | -------------------------------------------------------------------------------- /start-james-server.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | clear 3 | java -jar james-server/build/libs/james-server-full-1.0.jar 4 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Android Butler 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PDDStudio/android-butler/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /james-core/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | james-core 3 | 4 | -------------------------------------------------------------------------------- /james-http/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | james-http 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PDDStudio/android-butler/master/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PDDStudio/android-butler/master/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PDDStudio/android-butler/master/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PDDStudio/android-butler/master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PDDStudio/android-butler/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/dictionaries/pddstudio.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | twilio 5 | 6 | 7 | -------------------------------------------------------------------------------- /james-utils/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | james-utils 3 | Pick an Icon 4 | 5 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /james-utils/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 24sp 4 | 18sp 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /james-http/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /james-core/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /james-utils/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /james-core/src/main/java/com/pddstudio/james/core/abstracts/AbstractService.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.core.abstracts; 2 | 3 | /** 4 | * This Class was created by Patrick J 5 | * on 16.03.16. For more Details and Licensing 6 | * have a look at the README.md 7 | */ 8 | public abstract class AbstractService { 9 | public abstract String getServiceName(); 10 | public abstract Class getServiceClass(); 11 | } 12 | -------------------------------------------------------------------------------- /james-core/src/test/java/com/pddstudio/james/core/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.core; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /james-http/src/test/java/com/pddstudio/james/http/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.http; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /james-utils/src/test/java/com/pddstudio/james/utils/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.utils; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/test/java/com/pddstudio/androidbutlerdemo/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.androidbutlerdemo; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /james-core/src/androidTest/java/com/pddstudio/james/core/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.core; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /james-http/src/androidTest/java/com/pddstudio/james/http/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.http; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /james-utils/src/androidTest/java/com/pddstudio/james/utils/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.utils; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/androidTest/java/com/pddstudio/androidbutlerdemo/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.androidbutlerdemo; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /james-http/src/main/java/com/pddstudio/james/http/interfaces/RemoteJamesCallback.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.http.interfaces; 2 | 3 | /** 4 | * This Class was created by Patrick J 5 | * on 22.03.16. For more Details and Licensing 6 | * have a look at the README.md 7 | */ 8 | public interface RemoteJamesCallback { 9 | void onConnected(); 10 | void onConnectionFailed(Throwable throwable); 11 | void onCallbackReceived(Object o); 12 | void onConnectionClosed(); 13 | } 14 | -------------------------------------------------------------------------------- /james-utils/src/main/res/layout/item_icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | -------------------------------------------------------------------------------- /james-core/src/main/java/com/pddstudio/james/core/utils/Log.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.core.utils; 2 | 3 | /** 4 | * This Class was created by Patrick J 5 | * on 22.03.16. For more Details and Licensing 6 | * have a look at the README.md 7 | */ 8 | public enum Log { 9 | DEBUG("D"), 10 | INFO("I"), 11 | WARNING("W"), 12 | ERROR("E"); 13 | 14 | final String log; 15 | 16 | Log(String log) { 17 | this.log = log; 18 | } 19 | 20 | public String getPrefix() { 21 | return log; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /james-server/src/main/java/com/pddstudio/james/server/utils/Log.java: -------------------------------------------------------------------------------- 1 | package com.pddstudio.james.core.utils; 2 | 3 | /** 4 | * This Class was created by Patrick J 5 | * on 22.03.16. For more Details and Licensing 6 | * have a look at the README.md 7 | */ 8 | public enum Log { 9 | DEBUG("D"), 10 | INFO("I"), 11 | WARNING("W"), 12 | ERROR("E"); 13 | 14 | final String log; 15 | 16 | Log(String log) { 17 | this.log = log; 18 | } 19 | 20 | public String getPrefix() { 21 | return log; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /james-core/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "24.0.0 rc1" 6 | 7 | defaultConfig { 8 | minSdkVersion 10 9 | targetSdkVersion 23 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(dir: 'libs', include: ['*.jar']) 23 | testCompile 'junit:junit:4.12' 24 | compile 'com.android.support:appcompat-v7:23.2.1' 25 | } 26 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/pddstudio/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /james-core/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/pddstudio/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /james-http/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/pddstudio/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /james-utils/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/pddstudio/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /james-server/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | version = '1.0' 4 | sourceCompatibility = 1.7 5 | targetCompatibility = 1.7 6 | 7 | //create a single Jar with all dependencies 8 | task jamesServerJar(type: Jar) { 9 | manifest { 10 | attributes 'Implementation-Title': 'Gradle Jar File Example', 11 | 'Implementation-Version': version, 12 | 'Main-Class': 'com.pddstudio.james.server.ServerJames' 13 | } 14 | baseName = project.name + '-full' 15 | from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } 16 | with jar 17 | } 18 | 19 | //Get dependencies from Maven central repository 20 | repositories { 21 | mavenCentral() 22 | } 23 | 24 | dependencies { 25 | compile fileTree(include: ['*.jar'], dir: 'libs') 26 | } -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 |