Provide a better project structure

Change-Id: Ie5d7c20a68d492c0dbc30d3cfa869dc6472e5ad3
This commit is contained in:
Clark Scheff 2014-09-12 09:44:45 -07:00
부모 b319853a6d
커밋 9a94bc262b
3548개의 변경된 파일8364개의 추가작업 그리고 139개의 파일을 삭제

1
.gitignore vendored
파일 보기

@ -3,3 +3,4 @@
/.idea
.DS_Store
/build
*.iml

파일 보기

@ -1,55 +1,19 @@
task wrapper(type: org.gradle.api.tasks.wrapper.Wrapper) {
gradleVersion = '1.12'
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'com.android.tools.build:gradle:0.12.2'
}
}
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {
minSdkVersion 19
targetSdkVersion 19
versionCode 1
versionName '1.0'
}
productFlavors {
}
buildTypes {
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
allprojects {
repositories {
jcenter()
}
}

Binary file not shown.

파일 보기

@ -1,6 +1,6 @@
#Mon Jun 09 23:40:28 EDT 2014
#Thu Sep 11 16:38:16 PDT 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-bin.zip

0
gradlew vendored Normal file → Executable file
파일 보기

180
gradlew.bat vendored
파일 보기

@ -1,90 +1,90 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

Binary file not shown.

파일 보기

@ -1 +1 @@
include ':'
include ':theme'

24
theme/build.gradle Normal file
파일 보기

@ -0,0 +1,24 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.your.theme.template"
minSdkVersion 19
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}

파일 보기

Before

Width:  |  Height:  |  크기: 8.3 KiB

After

Width:  |  Height:  |  크기: 8.3 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 11 KiB

After

Width:  |  Height:  |  크기: 11 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 2.6 KiB

After

Width:  |  Height:  |  크기: 2.6 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 9.6 KiB

After

Width:  |  Height:  |  크기: 9.6 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 9.5 KiB

After

Width:  |  Height:  |  크기: 9.5 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 7.7 KiB

After

Width:  |  Height:  |  크기: 7.7 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 11 KiB

After

Width:  |  Height:  |  크기: 11 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 6.0 KiB

After

Width:  |  Height:  |  크기: 6.0 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 5.3 KiB

After

Width:  |  Height:  |  크기: 5.3 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 7.9 KiB

After

Width:  |  Height:  |  크기: 7.9 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 13 KiB

After

Width:  |  Height:  |  크기: 13 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 21 KiB

After

Width:  |  Height:  |  크기: 21 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 5.5 KiB

After

Width:  |  Height:  |  크기: 5.5 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 6.1 KiB

After

Width:  |  Height:  |  크기: 6.1 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 5.6 KiB

After

Width:  |  Height:  |  크기: 5.6 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 4.8 KiB

After

Width:  |  Height:  |  크기: 4.8 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 18 KiB

After

Width:  |  Height:  |  크기: 18 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 5.3 KiB

After

Width:  |  Height:  |  크기: 5.3 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 3.0 KiB

After

Width:  |  Height:  |  크기: 3.0 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 8.3 KiB

After

Width:  |  Height:  |  크기: 8.3 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 3.3 KiB

After

Width:  |  Height:  |  크기: 3.3 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 8.7 KiB

After

Width:  |  Height:  |  크기: 8.7 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 9.3 KiB

After

Width:  |  Height:  |  크기: 9.3 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 6.7 KiB

After

Width:  |  Height:  |  크기: 6.7 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 8.6 KiB

After

Width:  |  Height:  |  크기: 8.6 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 9.2 KiB

After

Width:  |  Height:  |  크기: 9.2 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 5.7 KiB

After

Width:  |  Height:  |  크기: 5.7 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 3.6 KiB

After

Width:  |  Height:  |  크기: 3.6 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 12 KiB

After

Width:  |  Height:  |  크기: 12 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 6.5 KiB

After

Width:  |  Height:  |  크기: 6.5 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 7.3 KiB

After

Width:  |  Height:  |  크기: 7.3 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 7.4 KiB

After

Width:  |  Height:  |  크기: 7.4 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 12 KiB

After

Width:  |  Height:  |  크기: 12 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 5.1 KiB

After

Width:  |  Height:  |  크기: 5.1 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 4.9 KiB

After

Width:  |  Height:  |  크기: 4.9 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 2.9 KiB

After

Width:  |  Height:  |  크기: 2.9 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 73 KiB

After

Width:  |  Height:  |  크기: 73 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 53 KiB

After

Width:  |  Height:  |  크기: 53 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 62 KiB

After

Width:  |  Height:  |  크기: 62 KiB

파일 보기

Before

Width:  |  Height:  |  크기: 205 KiB

After

Width:  |  Height:  |  크기: 205 KiB

Some files were not shown because too many files have changed in this diff Show More