Merge "Create a standalone gradle file without SDK/build-tools." into ub-setupwizard-alatar

am: e9679af63f

* commit 'e9679af63f2ff0f4ae97316cbafbe80b3a78370e':
  Create a standalone gradle file without SDK/build-tools.
This commit is contained in:
Jeff Davidson 2015-10-24 15:44:08 +00:00 committed by android-build-merger
commit cfaa18766e
2 changed files with 32 additions and 16 deletions

View file

@ -0,0 +1,31 @@
/**
* Include this gradle file if you are building against this as a standalone gradle library project,
* but are defining the compile SDK version and build tools version at the top-level.
*
* For example, you can include the following in your settings.gradle file:
* include ':setup-wizard-lib'
* project(':setup-wizard-lib').projectDir = new File(PATH_TO_THIS_DIRECTORY)
* project(':setup-wizard-lib').buildFileName = 'standalone-rules.gradle'
*
* And then you can include the :setup-wizard-lib project as one of your dependencies
* dependencies {
* compile project(path: ':setup-wizard-lib', configuration: 'icsCompatRelease')
* }
*/
ext {
// For standalone project clients, since the source may not be available, we fetch the
// dependencies from maven. To add a dependency, you want to specify something like this:
// ext {
// deps = ['project-name': 'com.example.group:project-name:1.0.0']
// }
//
// And then in rules.gradle you can reference the dependency by
// dependencies {
// compile deps['project-name']
// }
//
deps = ['support-appcompat-v7': 'com.android.support:appcompat-v7:21.0.0']
}
apply from: 'rules.gradle'

View file

@ -14,22 +14,7 @@
* }
*/
ext {
// For standalone project clients, since the source may not be available, we fetch the
// dependencies from maven. To add a dependency, you want to specify something like this:
// ext {
// deps = ['project-name': 'com.example.group:project-name:1.0.0']
// }
//
// And then in rules.gradle you can reference the dependency by
// dependencies {
// compile deps['project-name']
// }
//
deps = ['support-appcompat-v7': 'com.android.support:appcompat-v7:21.0.0']
}
apply from: 'rules.gradle'
apply from: 'standalone-rules.gradle'
android.compileSdkVersion 21
android.buildToolsVersion '21.1.0'