Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Gradle Distribution and Exercise References, Correct Errors and Spelling - Fixes #72 #79

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
12 changes: 8 additions & 4 deletions 1.02-Exercise-InstallGradle/build.gradle
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ installation of Gradle. First make sure you have an installation of by running

The output should be something like:

(java version may be different)

java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)
Expand Down Expand Up @@ -48,9 +50,9 @@ terminal. Note that you may need to change the version number on the first and
third lines. Note that you may need to run the following command
with `sudo` out in front.

unzip ~/Downloads/gradle-3.3-all.zip -d /usr/local/gradle/ &&\
unzip ~/Downloads/gradle-4.7-all.zip -d /usr/local/gradle/ &&\
echo '# Adding Gradle to system path
export GRADLE_HOME=/usr/local/gradle/gradle-3.3
export GRADLE_HOME=/usr/local/gradle/gradle-4.7
PATH=$GRADLE_HOME/bin:$PATH
export PATH' >> ~/.bash_profile &&\
source ~/.bash_profile
Expand All @@ -60,14 +62,14 @@ source ~/.bash_profile
First, head over to https://gradle.org/gradle-download/, and download the latest
version of Gradle. Note that we want the complete distribution. Next, we'll
unzip Gradle and move it to where we want it to live. Our recommendation is in
`C:\gradle-3.3`.
`C:\gradle-4.7`.

To tell Windows where to find Gradle, we need to add an environment variable.
Navigate to the Control Panel > System > Advanced system settings > Advanced >
Environment Variables... > System variables > New...

Set the variable name to: GRADLE_HOME Set the variable value to the location
you unzipped Gradle if you followed our suggestion it should be: C:\gradle-3.3
you unzipped Gradle if you followed our suggestion it should be: C:\gradle-4.7

Then edit the PATH user variable by appending: ;%GRADLE_HOME%\bin\

Expand Down Expand Up @@ -118,6 +120,8 @@ Before following these instructions, check to make sure you haven't already
installed Java by running `java -version`. If the output is something like the
following:

(java version may be different)

java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)
Expand Down
10 changes: 1 addition & 9 deletions 1.05-Exercise-ExperimentWithGroovy/build.gradle
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
/*

Welcome to the solutions to the Groovy Playground exercise! You can run these
tasks by telling Gradle to use this build script, instead of the default
build.gradle. To run the task below, use:

$ gradle -b solution.gradle stringsAndTypes

or, more compactly

$ gradle -b solution.gradle sAT
Welcome to the to the Groovy Playground exercise! Complete the TODOs below.

*/

Expand Down
11 changes: 6 additions & 5 deletions 4.02-Exercise-CreateAJavaLibrary/exercise.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ app, and not one, but two Java libraries!

1. Create a new project in Android Studio, using all the defaults.

2. Manually add a Java module with a class called JokeSmith with a getJoke()
method. Feel free to supply a funny joke, or just a debug method, if
you're no fun. Remember to set sourceCompatibility = 1.7, so your library is
2. Manually add a Java module with a class called JokeSmith with a tellAHandCraftedJoke()
method inside a package so that the class can be imported in your MainActivityFragment.
Feel free to supply a funny joke, or just a debug method, if you're no fun.
Remember to set sourceCompatibility = 1.7, so your library is
usable on Android. This line should be added to the build.gradle file of the
module.

Expand All @@ -25,10 +26,10 @@ Note that the wizard adds JokeWizard to your settings.gradle

7. Declare a project dependency between JokeWizard and JokeSmith

8. Implement a getJoke() method on JokeWizard that uses the getJoke() method
8. Implement a tellAWizardJoke() method on JokeWizard that uses the tellAHandCraftedJoke() method
on JokeSmith.

9. Add a project dependence between your app and JokeWizard
9. Add a project dependency between your app and JokeWizard

9. Add another text view to MainActivityFragment and populate it with a joke
from JokeWizard.
6 changes: 4 additions & 2 deletions 4.06-Exercise-ConfigureSigning/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*

In this exercise you'll configure signing and deploy a release build.
In this exercise you'll configure signing and deploying a release build.

1. Use the Build > Generate Signed APK dialog to create a new keystore (or you can use a previously generated keystore).

2. Create a signing configuration using your keystore. You can either use the Module Settings dialog (which you can access by right clicking on the app folder), or by manually configuring the signingConfigs block. Make sure the keystore is included in your project directory and is referenced via a
2. Create a signing configuration using your keystore. You can either use the Module Settings dialog (which you can access by right clicking on the app folder),
or by manually configuring the signingConfigs block. Make sure the keystore is included in your project directory and is referenced via a config block
in your app's build.gradle.

http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Signing-Configurations

Expand Down