Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(396)

Issue 13654043: Android samples switched to Gradle and Android Studio (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by yanivi
Modified:
12 years, 2 months ago
Reviewers:
peleyal, mnrubin
CC:
ngmiceli
Base URL:
https://code.google.com/p/google-api-java-client.samples/
Visibility:
Public.

Description

Android samples switched to Gradle and Android Studio Most of these are removals due to the dropping of the old style Eclipse project. The only interesting changes to review are the following: M .hgignore M calendar-android-sample/instructions.html M tasks-android-sample/instructions.html A build.gradle A calendar-android-sample/build.gradle A settings.gradle A tasks-android-sample/build.gradle

Patch Set 1 #

Patch Set 2 : remove eclipse stuff #

Patch Set 3 : instructions.html #

Patch Set 4 : no changes #

Patch Set 5 : improve instructions.html #

Patch Set 6 : minor improvement #

Total comments: 5

Patch Set 7 : improve instructions #

Patch Set 8 : more fixes #

Patch Set 9 : more fixes #

Total comments: 14

Patch Set 10 : more fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -1444 lines) Patch
M .hgignore View 1 chunk +15 lines, -0 lines 0 comments Download
A build.gradle View 1 chunk +10 lines, -0 lines 0 comments Download
R calendar-android-sample/.classpath View 1 1 chunk +0 lines, -9 lines 0 comments Download
R calendar-android-sample/.project View 1 1 chunk +0 lines, -33 lines 0 comments Download
R calendar-android-sample/.settings/org.eclipse.jdt.core.prefs View 1 1 chunk +0 lines, -380 lines 0 comments Download
R calendar-android-sample/.settings/org.eclipse.jdt.ui.prefs View 1 1 chunk +0 lines, -118 lines 0 comments Download
A calendar-android-sample/build.gradle View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
R calendar-android-sample/calendar-android-sample.launch View 1 1 chunk +0 lines, -20 lines 0 comments Download
M calendar-android-sample/instructions.html View 1 2 3 4 5 6 7 8 9 2 chunks +145 lines, -122 lines 0 comments Download
R calendar-android-sample/libs-sources/google-api-client-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs-sources/google-api-client-android-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs-sources/google-api-services-calendar-v3-rev53-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs-sources/google-http-client-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs-sources/google-http-client-android-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs-sources/google-http-client-gson-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs-sources/google-oauth-client-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs-sources/gson-2.1-sources.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs/google-api-client-1.16.0-rc.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs/google-api-client-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R calendar-android-sample/libs/google-api-client-android-1.16.0-rc.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs/google-api-client-android-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R calendar-android-sample/libs/google-api-services-calendar-v3-rev53-1.16.0-rc.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs/google-api-services-calendar-v3-rev53-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R calendar-android-sample/libs/google-http-client-1.16.0-rc.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs/google-http-client-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R calendar-android-sample/libs/google-http-client-android-1.16.0-rc.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs/google-http-client-android-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R calendar-android-sample/libs/google-http-client-gson-1.16.0-rc.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs/google-http-client-gson-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R calendar-android-sample/libs/google-oauth-client-1.16.0-rc.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs/google-oauth-client-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R calendar-android-sample/libs/gson-2.1.jar View 1 Binary file 0 comments Download
R calendar-android-sample/libs/gson-2.1.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R calendar-android-sample/libs/jsr305-1.3.9.jar View 1 Binary file 0 comments Download
R calendar-android-sample/lint.xml View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
R calendar-android-sample/proguard-project.txt View 1 2 1 chunk +0 lines, -20 lines 0 comments Download
R calendar-android-sample/project.properties View 1 2 1 chunk +0 lines, -14 lines 0 comments Download
A settings.gradle View 1 chunk +2 lines, -0 lines 0 comments Download
R tasks-android-sample/.classpath View 1 1 chunk +0 lines, -9 lines 0 comments Download
R tasks-android-sample/.project View 1 1 chunk +0 lines, -33 lines 0 comments Download
R tasks-android-sample/.settings/org.eclipse.jdt.core.prefs View 1 1 chunk +0 lines, -380 lines 0 comments Download
R tasks-android-sample/.settings/org.eclipse.jdt.ui.prefs View 1 1 chunk +0 lines, -118 lines 0 comments Download
A tasks-android-sample/build.gradle View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
M tasks-android-sample/instructions.html View 1 2 3 4 5 6 7 8 9 2 chunks +140 lines, -110 lines 0 comments Download
R tasks-android-sample/libs-sources/google-api-client-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs-sources/google-api-client-android-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs-sources/google-api-services-tasks-v1-rev17-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs-sources/google-http-client-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs-sources/google-http-client-android-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs-sources/google-http-client-gson-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs-sources/google-oauth-client-1.16.0-rc-sources.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs-sources/gson-2.1-sources.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs/google-api-client-1.16.0-rc.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs/google-api-client-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R tasks-android-sample/libs/google-api-client-android-1.16.0-rc.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs/google-api-client-android-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R tasks-android-sample/libs/google-api-services-tasks-v1-rev17-1.16.0-rc.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs/google-api-services-tasks-v1-rev17-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R tasks-android-sample/libs/google-http-client-1.16.0-rc.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs/google-http-client-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R tasks-android-sample/libs/google-http-client-android-1.16.0-rc.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs/google-http-client-android-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R tasks-android-sample/libs/google-http-client-gson-1.16.0-rc.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs/google-http-client-gson-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R tasks-android-sample/libs/google-oauth-client-1.16.0-rc.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs/google-oauth-client-1.16.0-rc.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R tasks-android-sample/libs/gson-2.1.jar View 1 Binary file 0 comments Download
R tasks-android-sample/libs/gson-2.1.jar.properties View 1 1 chunk +0 lines, -1 line 0 comments Download
R tasks-android-sample/libs/jsr305-1.3.9.jar View 1 Binary file 0 comments Download
R tasks-android-sample/lint.xml View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
R tasks-android-sample/proguard-project.txt View 1 2 1 chunk +0 lines, -20 lines 0 comments Download
R tasks-android-sample/project.properties View 1 2 1 chunk +0 lines, -14 lines 0 comments Download
R tasks-android-sample/tasks-android-sample.launch View 1 1 chunk +0 lines, -20 lines 0 comments Download

Messages

Total messages: 7
yanivi
12 years, 2 months ago (2013-09-11 17:58:03 UTC) #1
peleyal
5 minutes??? not for me :) stuck with some errors. Yaniv, can you check those ...
12 years, 2 months ago (2013-09-11 21:51:27 UTC) #2
yanivi
https://codereview.appspot.com/13654043/diff/7002/calendar-android-sample/instructions.html File calendar-android-sample/instructions.html (right): https://codereview.appspot.com/13654043/diff/7002/calendar-android-sample/instructions.html#newcode103 calendar-android-sample/instructions.html:103: <i>[someDirectory]</i>/google-api-java-client-samples/build.gradle On 2013/09/11 21:51:27, peleyal wrote: > why we ...
12 years, 2 months ago (2013-09-12 01:49:59 UTC) #3
yanivi
Instructions improved some more. Hopefully this is ready to go now... https://codereview.appspot.com/13654043/diff/7002/calendar-android-sample/instructions.html File calendar-android-sample/instructions.html (right): ...
12 years, 2 months ago (2013-09-12 16:38:20 UTC) #4
mnrubin
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/build.gradle File calendar-android-sample/build.gradle (right): https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/build.gradle#newcode1 calendar-android-sample/build.gradle:1: apply plugin: 'android' [For my own knowledge] Why do ...
12 years, 2 months ago (2013-09-12 18:46:01 UTC) #5
yanivi
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/build.gradle File calendar-android-sample/build.gradle (right): https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/build.gradle#newcode1 calendar-android-sample/build.gradle:1: apply plugin: 'android' On 2013/09/12 18:46:02, mnrubin wrote: > ...
12 years, 2 months ago (2013-09-12 20:05:36 UTC) #6
mnrubin
12 years, 2 months ago (2013-09-12 20:10:16 UTC) #7
On 2013/09/12 20:05:36, yanivi wrote:
>
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/bu...
> File calendar-android-sample/build.gradle (right):
> 
>
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/bu...
> calendar-android-sample/build.gradle:1: apply plugin: 'android'
> On 2013/09/12 18:46:02, mnrubin wrote:
> > [For my own knowledge] Why do we have this build.gradle file and also the
> higher
> > level one, if we aren't referencing this one directly?
> 
> The high level one just gives minimal high level stuff and then Studio reads
> this one for this particular project.  I'm just following the best practices
> used by the Google Play services demo zip.
> 
>
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/in...
> File calendar-android-sample/instructions.html (right):
> 
>
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/in...
> calendar-android-sample/instructions.html:33: Studio</a> (which bundles the
> Android SDK) or <a
> On 2013/09/12 18:46:02, mnrubin wrote:
> > > or
> > 
> > It seems here that you are giving them two equivalent options, yet if they
opt
> > for the latter, the user won't be able to complete a majority of this
> > instructions.html file ("Setup Project in Android Studio").  Maybe say
> something
> > like "...or just Android SDK if you don't want Android Studio."
> 
> Done.
> 
>
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/in...
> calendar-android-sample/instructions.html:94: <h3>Setup Project in Android
> Studio</h3>
> On 2013/09/12 18:46:02, mnrubin wrote:
> > > Setup
> > Set Up   (as one word it's a noun, as two it's a verb)
> 
> Done.
> 
>
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/in...
> calendar-android-sample/instructions.html:115: <li>Import
> <code>calendar-android-sample</code> project
> On 2013/09/12 18:46:02, mnrubin wrote:
> > May be unecessary but I don't think it hurts to add something like: To do
> > so/First, run android-studio/bin/studio.sh
> 
> Done.
> 
>
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/in...
> calendar-android-sample/instructions.html:145: package and then clicking
> "Optimize Imports". Another possibility is that the
> On 2013/09/12 18:46:02, mnrubin wrote:
> > > and then clicking "Optimize Imports"
> > 
> > "...in order to delete the imports containing the 'R'".   (This lets them
know
> > what you're trying to achieve with Organize Imports in case it doesn't
work.)
> 
> Done.
> 
>
https://codereview.appspot.com/13654043/diff/30001/calendar-android-sample/in...
> calendar-android-sample/instructions.html:167: fingerprint.
> On 2013/09/12 18:46:02, mnrubin wrote:
> > perhaps mention that maybe the Calendar API isn't enabled in the project
> 
> Done.
> 
>
https://codereview.appspot.com/13654043/diff/30001/tasks-android-sample/instr...
> File tasks-android-sample/instructions.html (right):
> 
>
https://codereview.appspot.com/13654043/diff/30001/tasks-android-sample/instr...
> tasks-android-sample/instructions.html:1: <html>
> On 2013/09/12 18:46:02, mnrubin wrote:
> > same comments to this doc as to calendar-android-sample's instructions.html
> file
> 
> Done.

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b