standalone.gradle revision 6df734500612c91d396ccc61da80cd1cdc96b5b3
16df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam/**
26df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam * Include this gradle file if you are building against this as a standalone gradle library project,
36df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam * as opposed to building it as part of the git-tree. This is typically the file you want to include
46df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam * if you create a new project in Android Studio.
56df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam *
66df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam * For example, you can include the following in your settings.gradle file:
76df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam *      include ':setup-wizard-lib'
86df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam *      project(':setup-wizard-lib').projectDir = new File(PATH_TO_THIS_DIRECTORY)
96df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam *      project(':setup-wizard-lib').buildFileName = 'standalone.gradle'
106df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam *
116df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam * And then you can include the :setup-wizard-lib project as one of your dependencies
126df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam *      dependencies {
136df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam *          compile project(path: ':setup-wizard-lib', configuration: 'icsCompatRelease')
146df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam *      }
156df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam */
166df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam
176df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lamext {
186df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    // For standalone project clients, since the source may not be available, we fetch the
196df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    // dependencies from maven. To add a dependency, you want to specify something like this:
206df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    //      ext {
216df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    //          deps = ['project-name': 'com.example.group:project-name:1.0.0']
226df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    //      }
236df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    //
246df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    // And then in rules.gradle you can reference the dependency by
256df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    //      dependencies {
266df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    //          compile deps['project-name']
276df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    //      }
286df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    //
296df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam    deps = ['support-appcompat-v7': 'com.android.support:appcompat-v7:21.0.0']
306df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam}
316df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam
326df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lamapply from: 'rules.gradle'
336df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lam
346df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lamandroid.compileSdkVersion 21
356df734500612c91d396ccc61da80cd1cdc96b5b3Maurice Lamandroid.buildToolsVersion '21.1.0'
36