diff --git a/.classpath b/.classpath deleted file mode 100644 index 2dd540a..0000000 --- a/.classpath +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/.gitignore b/.gitignore index 970ae35..bd5d188 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,2 @@ -/bin -/gen -/assets -/target +_site/ diff --git a/.project b/.project deleted file mode 100644 index 1a96ea7..0000000 --- a/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - AndroidTwitterGoogleApiJavaClient - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c0..0000000 --- a/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index abec6ca..0000000 --- a/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f..0000000 --- a/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/AndroidManifest.xml b/AndroidManifest.xml deleted file mode 100644 index 2cc22ff..0000000 --- a/AndroidManifest.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - > - - - - - - - - \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index a91b366..0000000 --- a/README.md +++ /dev/null @@ -1,108 +0,0 @@ -##Introduction - -##Software requirements - - -##Project setup - -### m2e-android plugin - -This project is built using the [m2e-android plugin](http://rgladwell.github.io/m2e-android/index.html) to handle its external dependencies. - -When using Eclipse ADT, it assumes that the following components are installed : - -- Eclipse Market Client -- [m2e-android plugin](http://rgladwell.github.io/m2e-android/index.html) -- [maven-android-sdk-deployer](https://github.com/mosabua/) - -### Eclipse MarketPlace - -If you don't have the Eclipse Market Client installed, you can install it by clicking on - -```Help → Install new Software → Switch to the Juno Repository → General Purpose Tools → Marketplace Client``` - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/AndroidMavenSetup/1_available_soft.PNG) - -Once you have the Eclipse Market Client installed, you can proceed to install the m2e-android plugin - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/AndroidMavenSetup/2_marketplace.PNG) - -```Help -> Eclipse Marketplace... and search for "android m2e".``` - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/AndroidMavenSetup/3_android_m2e.PNG) - -More instructions can be found on the [m2e-android plugin](http://rgladwell.github.io/m2e-android/index.html) site. - -### maven-android-sdk-deployer - -Clone the [maven-android-sdk-deployer](https://github.com/mosabua/maven-android-sdk-deployer) and execute mvn install. This will install the required projects into your local maven repository. - -### Environment setup - -Make sure you have your ANDROID_HOME variable pointing to your SDK - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/AndroidMavenSetup/4_env_variable.PNG) - -### Clone and import the project - -Clone the project on your filesystem - - git clone git@github.com:ddewaele/AndroidTwitterGoogleApiJavaClient.git - Cloning into AndroidTwitterGoogleApiJavaClient... - remote: Reusing existing pack: 145, done. - remote: Counting objects: 11, done. - remote: Compressing objects: 100% (8/8), done. - remote: Total 156 (delta 0), reused 0 (delta 0) - Receiving objects: 100% (156/156), 529.74 KiB | 483 KiB/s, done. - Resolving deltas: 100% (33/33), done. - -Import the project in Eclipse ADT. - -When importing the project, select ```Existing Maven Projects```. - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/adt-import.png) - -Navigate to the place where you cloned the repository (ex: /Users/ddewaele/Projects/AndroidTwitterGoogleApiJavaClient) and click Finish. - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/adt-import2.png) - -After that, Eclipse ADT and the Maven M2E plugin should import your project and setup all the dependencies. - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/adt-import3.png) - - -### Twitter OAuth application and keys - -As this application allows you to interact with Twitter, you need to go to to the [Twitter Developer page](dev.twitter.com) to [register a new application](https://apps.twitter.com/app/new). - -Here are a couple of steps you need to follow - -- Register a new application in the Twitter dev console - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/app-create.png) - -- Verify that the application was created succesfully. - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/app-list.png) - -- Set the correct permissions - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/app-permissions.png) - -- Copy the key and secret from the app. - -![](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/app-keys.png) - -- Put the key and secret in the [Constants file](https://github.com/ddewaele/AndroidTwitterGoogleApiJavaClient/blob/master/src/com/ecs/sample/Constants.java) - -Replace the placeholders below with the actual KEY and SECRET - - public static final String API_KEY = "PUT YOUR TWITTER API KEY HERE"; - public static final String API_SECRET= "PUT YOUR TWITTER API SECRET HERE"; - - -Launch the application and you should see the following screens. - -![Twitter login](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/2-twitter-login.png) -![Twitter authorization](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/3-twitter-authorize.png) -![Twitter tweets](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/4-twitter-stream.png) diff --git a/_config.xml b/_config.xml new file mode 100644 index 0000000..e69de29 diff --git a/_layouts/index.html b/_layouts/index.html new file mode 100644 index 0000000..67de40e --- /dev/null +++ b/_layouts/index.html @@ -0,0 +1,92 @@ + + + + + + + + + + + Twitter OAuth1 - Android application implementing the Oauth 1.0 flow using the Google APIs Client Library for Java + + + + + +
+
+ View on GitHub +
+ + +
+ +

Twitter OAuth1

+

Android application implementing the Oauth 1.0 flow using the Google APIs Client Library for Java

+ + +
+ + + + + + Download this project as a .zip file + Download this project as a tar.gz file +
+
+
+ + +
+
+ {{content}} +
+ + +
+ + + comments powered by Disqus + + + +
+
+ + + + + + + + + + diff --git a/images/bg_hr.png b/images/bg_hr.png new file mode 100644 index 0000000..7973bd6 Binary files /dev/null and b/images/bg_hr.png differ diff --git a/images/blacktocat.png b/images/blacktocat.png new file mode 100644 index 0000000..6e264fe Binary files /dev/null and b/images/blacktocat.png differ diff --git a/images/icon_download.png b/images/icon_download.png new file mode 100644 index 0000000..a2a287f Binary files /dev/null and b/images/icon_download.png differ diff --git a/images/sprite_download.png b/images/sprite_download.png new file mode 100644 index 0000000..f2babd5 Binary files /dev/null and b/images/sprite_download.png differ diff --git a/index.md b/index.md new file mode 100644 index 0000000..a3e4d15 --- /dev/null +++ b/index.md @@ -0,0 +1,15 @@ +--- +layout: index +title: Document Center +--- + +##Introduction + +content needs to come here.... only screenshots for now.... + +The original blog post for this article can be found [here](http://blog.doityourselfandroid.com/2011/08/08/improved-twitter-oauth-android/). +For a sample application using OAuth2 Service Providers (Foursquare, Google Tasks / Plus), checkout [this page](http://ddewaele.github.io/AndroidOauth2GoogleApiJavaClient/). + +![Twitter login](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/2-twitter-login.png) +![Twitter authorization](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/3-twitter-authorize.png) +![Twitter tweets](https://dl.dropboxusercontent.com/u/13246619/Blog%20Articles/OAuth1Twitter/4-twitter-stream.png) diff --git a/javascripts/main.js b/javascripts/main.js new file mode 100644 index 0000000..d8135d3 --- /dev/null +++ b/javascripts/main.js @@ -0,0 +1 @@ +console.log('This would be the main JS file.'); diff --git a/params.json b/params.json new file mode 100644 index 0000000..b84862d --- /dev/null +++ b/params.json @@ -0,0 +1 @@ +{"name":"Android Twitter OAuth1","tagline":"Android application implementing the Oauth 1.0 flow using the Google APIs Client Library for Java","body":"### Welcome to GitHub Pages.\r\nThis automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:\r\n\r\n```\r\n$ cd your_repo_root/repo_name\r\n$ git fetch origin\r\n$ git checkout gh-pages\r\n```\r\n\r\nIf you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.\r\n\r\n### Designer Templates\r\nWe've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.\r\n\r\n### Rather Drive Stick?\r\nIf you prefer to not use the automatic generator, push a branch named `gh-pages` to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.\r\n\r\n### Authors and Contributors\r\nYou can @mention a GitHub username to generate a link to their profile. The resulting `` element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.\r\n\r\n### Support or Contact\r\nHaving trouble with Pages? Check out the documentation at http://help.github.com/pages or contact support@github.com and we’ll help you sort it out.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} \ No newline at end of file diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 973baa9..0000000 --- a/pom.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - 4.0.0 - com.ecs - com.ecs.android.twitter.ouath - 0.0.1-SNAPSHOT - apk - com.ecs.android.twitter.ouath - - - UTF-8 - 4.1.1.4 - 3.6.0 - 1.18.0-rc - UTF-8 - - - - - com.google.android - android - ${platform.version} - provided - - - xpp3 - xpp3 - - - - - - com.google.api-client - google-api-client - ${com.google.api-client.version} - - - - com.google.http-client - google-http-client-jackson2 - ${com.google.api-client.version} - - - xpp3 - xpp3 - - - - - - org.twitter4j - twitter4j-core - 4.0.1 - - - - - - - - ${project.artifactId} - - - - com.jayway.maven.plugins.android.generation2 - android-maven-plugin - ${android.plugin.version} - true - - - - - - com.jayway.maven.plugins.android.generation2 - android-maven-plugin - - - 16 - /Users/davydewaele/Soft/adt-bundle-mac-x86_64-20130522/sdk - - - - - - diff --git a/proguard.cfg b/proguard.cfg deleted file mode 100644 index b1cdf17..0000000 --- a/proguard.cfg +++ /dev/null @@ -1,40 +0,0 @@ --optimizationpasses 5 --dontusemixedcaseclassnames --dontskipnonpubliclibraryclasses --dontpreverify --verbose --optimizations !code/simplification/arithmetic,!field/*,!class/merging/* - --keep public class * extends android.app.Activity --keep public class * extends android.app.Application --keep public class * extends android.app.Service --keep public class * extends android.content.BroadcastReceiver --keep public class * extends android.content.ContentProvider --keep public class * extends android.app.backup.BackupAgentHelper --keep public class * extends android.preference.Preference --keep public class com.android.vending.licensing.ILicensingService - --keepclasseswithmembernames class * { - native ; -} - --keepclasseswithmembers class * { - public (android.content.Context, android.util.AttributeSet); -} - --keepclasseswithmembers class * { - public (android.content.Context, android.util.AttributeSet, int); -} - --keepclassmembers class * extends android.app.Activity { - public void *(android.view.View); -} - --keepclassmembers enum * { - public static **[] values(); - public static ** valueOf(java.lang.String); -} - --keep class * implements android.os.Parcelable { - public static final android.os.Parcelable$Creator *; -} diff --git a/project.properties b/project.properties deleted file mode 100644 index a3ee5ab..0000000 --- a/project.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt - -# Project target. -target=android-17 diff --git a/res/drawable-hdpi/ic_launcher.png b/res/drawable-hdpi/ic_launcher.png deleted file mode 100644 index 288b665..0000000 Binary files a/res/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_launcher.png b/res/drawable-mdpi/ic_launcher.png deleted file mode 100644 index 6ae570b..0000000 Binary files a/res/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_launcher.png b/res/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index d4fb7cd..0000000 Binary files a/res/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_launcher.png b/res/drawable-xxhdpi/ic_launcher.png deleted file mode 100644 index 85a6081..0000000 Binary files a/res/drawable-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/res/layout/login.xml b/res/layout/login.xml deleted file mode 100644 index b5578f3..0000000 --- a/res/layout/login.xml +++ /dev/null @@ -1,23 +0,0 @@ - - -