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 EmailApp.mp4
Binary file not shown.
8 changes: 8 additions & 0 deletions GmailQuickstart/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
1 change: 1 addition & 0 deletions GmailQuickstart/.idea/.name

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

22 changes: 22 additions & 0 deletions GmailQuickstart/.idea/compiler.xml

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

3 changes: 3 additions & 0 deletions GmailQuickstart/.idea/copyright/profiles_settings.xml

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

6 changes: 6 additions & 0 deletions GmailQuickstart/.idea/encodings.xml

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

19 changes: 19 additions & 0 deletions GmailQuickstart/.idea/gradle.xml

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

62 changes: 62 additions & 0 deletions GmailQuickstart/.idea/misc.xml

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

9 changes: 9 additions & 0 deletions GmailQuickstart/.idea/modules.xml

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

12 changes: 12 additions & 0 deletions GmailQuickstart/.idea/runConfigurations.xml

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

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

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

1 change: 1 addition & 0 deletions GmailQuickstart/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
42 changes: 42 additions & 0 deletions GmailQuickstart/app/Sample Gmail Message JSON structure
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{"payload":
{"mimeType": "multipart/alternative",
"filename": "",
"headers": [ {"name": "MIME-Version",
"value": "1.0"},
{"name": "Received",
"value": "by 10.31.207.198 with HTTP; Fri, 26 Feb 2016 06:16:30 -0800 (PST)"},
{"name": "Date",
"value": "Fri, 26 Feb 2016 09:16:30 -0500"},
{"name": "Delivered-To",
"value": "kwondeveloper@gmail.com"},
{"name": "Message-ID",
"value": "<CAH3ZQ8su0VOtimhg0wvGJmTHe9mDq5S=G4_CNnttBZ1bVWXNZA@mail.gmail.com>"},
{"name": "Subject",
"value": "cc test part 2"},
{"name": "From",
"value": "kwon developer <kwondeveloper@gmail.com>"},
{"name": "To",
"value": "kwon developer <kwondeveloper@gmail.com>"},
{"name": "Cc",
"value": "mikeykwon@gmail.com"},
{"name": "Content-Type",
"value": "multipart/alternative; boundary=001a1143245412b7b7052cacf26f"} ],
"body": { "size": 0},
"parts": [ { "partId": "0",
"mimeType": "text/plain",
"filename": "",
"headers": [ {"name": "Content-Type",
"value": "text/plain; charset=UTF-8"} ],
"body": { "size": 6,
"data": "dGVzdA0K"} },
{ "partId": "1",
"mimeType": "text/html",
"filename": "",
"headers": [ {"name": "Content-Type",
"value": "text/html; charset=UTF-8"} ],
"body": { "size": 31,
"data": "PGRpdiBkaXI9Imx0ciI-dGVzdDxicj48L2Rpdj4NCg=="}
}
]
}
}
40 changes: 40 additions & 0 deletions GmailQuickstart/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.example.gmailquickstart"
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:recyclerview-v7'
compile 'com.google.android.gms:play-services-identity:8.4.0'
compile('com.google.api-client:google-api-client-android:1.20.0') {
exclude group: 'org.apache.httpcomponents'
}
compile('com.google.apis:google-api-services-gmail:v1-rev29-1.20.0') {
exclude group: 'org.apache.httpcomponents'
}
compile files('libs/activation.jar')
compile files('libs/additionnal.jar')
compile files('libs/mail.jar')
}
1 change: 1 addition & 0 deletions GmailQuickstart/app/client_id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"installed":{"client_id":"644628880248-cbdr7oqsc13j256etourumg75tlrs9jb.apps.googleusercontent.com","project_id":"mimetic-myth-123220","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
Binary file added GmailQuickstart/app/libs/activation.jar
Binary file not shown.
Binary file added GmailQuickstart/app/libs/additionnal.jar
Binary file not shown.
Binary file added GmailQuickstart/app/libs/mail.jar
Binary file not shown.
17 changes: 17 additions & 0 deletions GmailQuickstart/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\Todo\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.gmailquickstart;

import android.app.Application;
import android.test.ApplicationTestCase;

/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
42 changes: 42 additions & 0 deletions GmailQuickstart/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.gmailquickstart">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="Gmail API Android Quickstart"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="Gmail API Android Quickstart">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

<activity
android:name=".ReadEmailActivity"
android:label="@string/title_activity_read_email"
android:parentActivityName=".MainActivity"
android:theme="@style/AppTheme" />
<activity
android:name=".ComposeEmailActivity"
android:label="@string/title_activity_compose_email"
android:parentActivityName=".MainActivity"
android:theme="@style/AppTheme"/>
</application>

</manifest>
Loading