├── .gitignore
├── README.md
├── app
├── .gitignore
├── build.gradle
├── checkstyle.xml
├── example.keystore
├── proguard-rules.pro
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── futurice
│ │ └── project
│ │ └── MainActivity.java
│ └── res
│ ├── drawable-hdpi
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ └── ic_launcher.png
│ ├── drawable-xhdpi
│ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ ├── album_fitz.jpg
│ ├── album_jamie.jpg
│ ├── album_kodaline.jpg
│ ├── album_yuna.jpg
│ └── ic_launcher.png
│ ├── drawable
│ ├── arrow_left.xml
│ ├── dots_vertical.xml
│ ├── fast_forward.xml
│ ├── magnify.xml
│ ├── menu.xml
│ ├── pause.xml
│ ├── play.xml
│ ├── rewind.xml
│ ├── star_outline.xml
│ ├── volume_high.xml
│ └── volume_medium.xml
│ ├── layout
│ └── activity_main.xml
│ ├── menu
│ └── main.xml
│ └── values
│ ├── colors.xml
│ ├── dimens.xml
│ ├── strings.xml
│ └── styles.xml
├── build.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | .idea
5 | .DS_Store
6 | build
7 | *.iml
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Material Design Challenge
2 | =========================
3 |
4 | 1. View this video carefully: http://youtu.be/kzofFrgo7mQ
5 |
6 | 2. Build those two screens, trying to imitate the user interface and animations as much as possible.
7 |
8 | Hint: https://developer.android.com/training/material/index.html
9 |
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 | gradle.properties
3 | *.iml
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | mavenCentral()
4 | }
5 | dependencies {
6 | classpath 'com.android.tools.build:gradle:1.1.0'
7 | }
8 | }
9 |
10 | apply plugin: 'com.android.application'
11 | apply plugin: 'checkstyle'
12 |
13 | dependencies {
14 | // Support Libraries
15 | compile 'com.android.support:appcompat-v7:22.0.0'
16 | compile 'com.android.support:cardview-v7:21.0.3'
17 | compile 'com.android.support:gridlayout-v7:21.0.3'
18 | compile 'com.android.support:leanback-v17:21.0.3'
19 | compile 'com.android.support:mediarouter-v7:21.0.3'
20 | compile 'com.android.support:palette-v7:21.0.3'
21 | compile 'com.android.support:recyclerview-v7:21.0.3'
22 | compile 'com.android.support:support-annotations:21.0.3'
23 | compile 'com.android.support:support-v13:21.0.3'
24 | compile 'com.android.support:support-v4:22.0.0'
25 |
26 | // Note: these libraries require the "Google Repository" and "Android Repository"
27 | // to be installed via the SDK manager.
28 | }
29 |
30 | android {
31 | compileSdkVersion 21
32 | buildToolsVersion "20.0.0"
33 |
34 | defaultConfig {
35 | minSdkVersion 21
36 | targetSdkVersion 21
37 | versionCode 1
38 | versionName "1.0"
39 | }
40 | signingConfigs {
41 | release {
42 | try {
43 | storeFile file("example.keystore")
44 | storePassword KEYSTORE_PASSWORD
45 | keyAlias "client"
46 | keyPassword KEY_PASSWORD
47 | }
48 | catch (ex) {
49 | throw new InvalidUserDataException("You should define KEYSTORE_PASSWORD and " +
50 | "KEY_PASSWORD in gradle.properties."
51 | )
52 | }
53 | }
54 | }
55 | buildTypes {
56 | debug {
57 | minifyEnabled false
58 | }
59 | release {
60 | signingConfig signingConfigs.release
61 | minifyEnabled true
62 | proguardFiles 'proguard-rules.pro'
63 | }
64 | }
65 | packagingOptions {
66 | exclude 'META-INF/LICENSE'
67 | exclude 'META-INF/NOTICE'
68 | exclude 'META-INF/LICENSE.txt'
69 | exclude 'LICENSE.txt'
70 | }
71 | }
72 |
73 | task checkstyle(type: Checkstyle) {
74 | description 'Checks if the code is somewhat acceptable'
75 | configFile file('./checkstyle.xml')
76 | source 'src/main/java'
77 | include '**/*.java'
78 | exclude '**/gen/**'
79 | classpath = files() // empty because unnecessary for checkstyle
80 | }
81 |
82 | // Get location of adb
83 | Properties localProperties = new Properties()
84 | try {
85 | localProperties.load(project.rootProject.file('local.properties').newDataInputStream())
86 | }
87 | catch (ex) {
88 | throw new InvalidUserDataException("You should define the path to your Android SDK as a " +
89 | "property `sdk.dir` in local.properties on the project root."
90 | )
91 | }
92 | def adb = localProperties.getProperty('sdk.dir') + '/platform-tools/adb'
93 |
94 | task runDebug(dependsOn: 'installDebug') {
95 | description 'Runs the debug-flavour of the app on the connected device'
96 | doLast {
97 | exec{commandLine "$adb", "shell", "am", "start", "-n", "com.futurice.project/.MainActivity"}
98 | }
99 | }
100 |
101 | task runRelease(dependsOn: 'installRelease') {
102 | description 'Runs the release-flavour of the app on the connected device'
103 | doLast {
104 | exec{commandLine "$adb", "shell", "am", "start", "-n", "com.futurice.project/.MainActivity"}
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/app/checkstyle.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/example.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/app/example.keystore
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Applications/Android Studio.app/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the ProGuard
5 | # include property in project.properties.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Obfuscation parameters:
20 | #-dontobfuscate
21 | -useuniqueclassmembernames
22 | -keepattributes SourceFile,LineNumberTable
23 | -allowaccessmodification
24 |
25 | # Ignore warnings:
26 | #-dontwarn org.mockito.**
27 | #-dontwarn org.junit.**
28 | #-dontwarn com.robotium.**
29 | #-dontwarn org.joda.convert.**
30 |
31 | # Ignore warnings: We are not using DOM model
32 | -dontwarn com.fasterxml.jackson.databind.ext.DOMSerializer
33 | # Ignore warnings: https://github.com/square/okhttp/wiki/FAQs
34 | -dontwarn com.squareup.okhttp.internal.huc.**
35 | # Ignore warnings: https://github.com/square/okio/issues/60
36 | -dontwarn okio.**
37 | # Ignore warnings: https://github.com/square/retrofit/issues/435
38 | -dontwarn com.google.appengine.api.urlfetch.**
39 |
40 | # Keep the pojos used by GSON or Jackson
41 | -keep class com.futurice.project.models.pojo.** { *; }
42 |
43 | # Keep GSON stuff
44 | -keep class sun.misc.Unsafe { *; }
45 | -keep class com.google.gson.** { *; }
46 |
47 | # Keep Jackson stuff
48 | -keep class org.codehaus.** { *; }
49 | -keep class com.fasterxml.jackson.annotation.** { *; }
50 |
51 | # Keep these for GSON and Jackson
52 | -keepattributes Signature
53 | -keepattributes *Annotation*
54 | -keepattributes EnclosingMethod
55 |
56 | # Keep Retrofit
57 | -keep class retrofit.** { *; }
58 | -keepclasseswithmembers class * {
59 | @retrofit.** *;
60 | }
61 | -keepclassmembers class * {
62 | @retrofit.** *;
63 | }
64 |
65 | # Keep Picasso
66 | -keep class com.squareup.picasso.** { *; }
67 | -keepclasseswithmembers class * {
68 | @com.squareup.picasso.** *;
69 | }
70 | -keepclassmembers class * {
71 | @com.squareup.picasso.** *;
72 | }
73 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
13 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/java/com/futurice/project/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.futurice.project;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.Menu;
6 | import android.view.MenuItem;
7 |
8 | public class MainActivity extends Activity {
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_main);
13 | }
14 |
15 | @Override
16 | public boolean onCreateOptionsMenu(Menu menu) {
17 | // Inflate the menu; this adds items to the action bar if it is present.
18 | getMenuInflater().inflate(R.menu.main, menu);
19 | return true;
20 | }
21 |
22 | @Override
23 | public boolean onOptionsItemSelected(MenuItem item) {
24 | // Handle action bar item clicks here. The action bar will
25 | // automatically handle clicks on the Home/Up button, so long
26 | // as you specify a parent activity in AndroidManifest.xml.
27 | int id = item.getItemId();
28 | if (id == R.id.action_settings) {
29 | return true;
30 | }
31 | return super.onOptionsItemSelected(item);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/album_fitz.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/app/src/main/res/drawable-xxhdpi/album_fitz.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/album_jamie.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/app/src/main/res/drawable-xxhdpi/album_jamie.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/album_kodaline.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/app/src/main/res/drawable-xxhdpi/album_kodaline.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/album_yuna.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/app/src/main/res/drawable-xxhdpi/album_yuna.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/arrow_left.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/dots_vertical.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/fast_forward.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/magnify.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/menu.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/pause.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/play.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/rewind.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/star_outline.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/volume_high.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/volume_medium.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | #FFFFFF
6 | #DFDFDF
7 | #939393
8 | #5F5F5F
9 | #303030
10 |
11 |
12 | #27D34D
13 | #2A91BD
14 | #FF9D2F
15 | #FF432F
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 48dp
5 |
6 |
7 | 32dp
8 | 16dp
9 | 8dp
10 |
11 |
12 | 20dp
13 | 16dp
14 | 12dp
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | FutuAndroid
5 | Hello world!
6 | Settings
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
12 |
13 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | mavenCentral()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.0.0'
9 | }
10 | }
11 |
12 | allprojects {
13 | repositories {
14 | mavenCentral()
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/futurice/android-meetup-ui-challenge/60d5a540a4a3209c8ed35ceba1adfb01c8a0eb47/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Dec 09 11:05:19 EET 2014
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------