diff options
author | Jeff Davidson <jpd@google.com> | 2015-08-11 02:04:38 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-08-11 02:04:38 +0000 |
commit | e9679af63f2ff0f4ae97316cbafbe80b3a78370e (patch) | |
tree | 84f7f840df7f869f1882795b2b67fa30d78f6a34 | |
parent | 6ce183f01cdb252315168c72832505ffdd45e995 (diff) | |
parent | 3354831fb1ba4c7c1e55218906c8e532d0520bcd (diff) | |
download | setupwizard-marshmallow-dr1.6-release.tar.gz |
Merge "Create a standalone gradle file without SDK/build-tools." into ub-setupwizard-alatarandroid-6.0.1_r9android-6.0.1_r81android-6.0.1_r80android-6.0.1_r8android-6.0.1_r79android-6.0.1_r78android-6.0.1_r77android-6.0.1_r74android-6.0.1_r73android-6.0.1_r72android-6.0.1_r70android-6.0.1_r7android-6.0.1_r69android-6.0.1_r68android-6.0.1_r67android-6.0.1_r66android-6.0.1_r65android-6.0.1_r62android-6.0.1_r61android-6.0.1_r60android-6.0.1_r59android-6.0.1_r58android-6.0.1_r57android-6.0.1_r56android-6.0.1_r54android-6.0.1_r53android-6.0.1_r52android-6.0.1_r51android-6.0.1_r50android-6.0.1_r49android-6.0.1_r48android-6.0.1_r47android-6.0.1_r46android-6.0.1_r45android-6.0.1_r43android-6.0.1_r42android-6.0.1_r41android-6.0.1_r40android-6.0.1_r30android-6.0.1_r3android-6.0.1_r28android-6.0.1_r27android-6.0.1_r26android-6.0.1_r25android-6.0.1_r24android-6.0.1_r22android-6.0.1_r21android-6.0.1_r20android-6.0.1_r17android-6.0.1_r13android-6.0.1_r12android-6.0.1_r11android-6.0.1_r10android-6.0.1_r1android-6.0.0_r41marshmallow-mr3-releasemarshmallow-mr2-releasemarshmallow-mr1-releasemarshmallow-mr1-devmarshmallow-dr1.6-releasemarshmallow-dr1.5-releasemarshmallow-dr1.5-devmarshmallow-dr-devmarshmallow-dev
-rw-r--r-- | library/standalone-rules.gradle | 31 | ||||
-rw-r--r-- | library/standalone.gradle | 17 |
2 files changed, 32 insertions, 16 deletions
diff --git a/library/standalone-rules.gradle b/library/standalone-rules.gradle new file mode 100644 index 0000000..692eb96 --- /dev/null +++ b/library/standalone-rules.gradle @@ -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' diff --git a/library/standalone.gradle b/library/standalone.gradle index 3d9e50f..2bdfe22 100644 --- a/library/standalone.gradle +++ b/library/standalone.gradle @@ -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' |