From 64173c4a3cd00154805bfe9aaa024c479d0317ce Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 20 Nov 2014 00:02:49 -0800 Subject: [PATCH] Added option to send email as HTML. Added Material Design theme. --- .gitignore | 11 ++-- .idea/.name | 1 + .idea/compiler.xml | 23 ++++++++ .idea/copyright/profiles_settings.xml | 5 ++ .idea/encodings.xml | 5 ++ .idea/misc.xml | 23 ++++++++ .idea/modules.xml | 9 ++++ .idea/scopes/scope_settings.xml | 5 ++ .idea/vcs.xml | 7 +++ .settings/org.eclipse.jdt.core.prefs | 4 ++ AndroidManifest.xml | 7 +-- Emaily.iml | 19 +++++++ build.gradle | 49 ++++++++++++++++++ res/values-v21/themes.xml | 6 +++ res/values/strings.xml | 5 +- res/xml/prefs.xml | 6 +++ screenshots/emaily.gif | Bin 427784 -> 424749 bytes .../thauvin/erik/android/emaily/Emaily.java | 22 ++++---- .../erik/android/emaily/EmailyPrefs.java | 7 ++- 19 files changed, 192 insertions(+), 22 deletions(-) create mode 100644 .idea/.name create mode 100644 .idea/compiler.xml create mode 100644 .idea/copyright/profiles_settings.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/scopes/scope_settings.xml create mode 100644 .idea/vcs.xml create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 Emaily.iml create mode 100644 build.gradle create mode 100644 res/values-v21/themes.xml diff --git a/.gitignore b/.gitignore index 67043e6..cd81313 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ +/.classpath +/.idea/libraries +/.idea/workspace.xml +/.pmd +/.project /.svn/ /bin /gen /proguard -/project.properties -/.classpath -/.project -/.pmd - +/project.properties \ No newline at end of file diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..249f321 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +Emaily \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..217af47 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,23 @@ + + + + + + diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..3572571 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..e206d70 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..9848dec --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,23 @@ + + + + + + + + + + 1.7 + + + + + + + + + diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..a2b7869 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..275077f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..b080d2d --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/AndroidManifest.xml b/AndroidManifest.xml index bd5480b..62decbf 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,18 +1,19 @@ + android:versionCode="2" + android:versionName="1.1b7" > + android:targetSdkVersion="21" /> diff --git a/Emaily.iml b/Emaily.iml new file mode 100644 index 0000000..8fe6e9c --- /dev/null +++ b/Emaily.iml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..54833db --- /dev/null +++ b/build.gradle @@ -0,0 +1,49 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.4' + } +} +apply plugin: 'android' + +dependencies { + compile files('lib/bitlyj-2.0.0.jar') + compile files('../../Emaily/lib/commons-codec-1.6.jar') + compile files('../../Emaily/lib/google-api-client-1.7.0-beta.jar') + compile files('../../Emaily/lib/google-api-client-android2-1.7.0-beta.jar') + compile files('../../Emaily/lib/google-api-urlshortener-v1-rev2-java-1.4.0-beta.jar') + compile files('../../Emaily/lib/google-http-client-1.7.0-beta.jar') + compile files('../../Emaily/lib/google-http-client-android2-1.7.0-beta.jar') + compile files('../../Emaily/lib/google-http-client-android3-1.7.0-beta.jar') + compile files('../../Emaily/lib/google-oauth-client-1.7.0-beta.jar') + compile files('../../Emaily/lib/gson-2.1.jar') + compile files('../../Emaily/lib/guava-11.0.1.jar') + compile files('../../Emaily/lib/jackson-core-asl-1.9.4.jar') + compile files('../../Emaily/lib/jsr305-1.3.9.jar') + compile files('../../Emaily/lib/protobuf-java-2.2.0.jar') +} + +android { + compileSdkVersion 17 + buildToolsVersion "17" + + defaultConfig { + minSdkVersion 10 + targetSdkVersion 11 + } + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + + instrumentTest.setRoot('tests') + } +} diff --git a/res/values-v21/themes.xml b/res/values-v21/themes.xml new file mode 100644 index 0000000..dbaf3e9 --- /dev/null +++ b/res/values-v21/themes.xml @@ -0,0 +1,6 @@ + + + +