| buildscript { |
| repositories { |
| mavenCentral() |
| } |
| dependencies { |
| // We are going to define a custom VDL service. The Vanadium |
| // Gradle plugin makes that easier, so let's use that. |
| classpath 'io.v:gradle-plugin:0.1' |
| // Use the Android SDK manager, which will automatically download |
| // the required Android SDK. |
| classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0' |
| } |
| } |
| |
| // Make our lives easier by automatically downloading the appropriate Android |
| // SDK. |
| apply plugin: 'android-sdk-manager' |
| // It's an Android application. |
| apply plugin: 'com.android.application' |
| // It's going to use VDL. |
| apply plugin: 'io.v.vdl' |
| |
| repositories { |
| mavenCentral() |
| } |
| |
| android { |
| compileSdkVersion 23 |
| buildToolsVersion "23.0.1" |
| |
| compileOptions { |
| sourceCompatibility JavaVersion.VERSION_1_7 |
| targetCompatibility JavaVersion.VERSION_1_7 |
| } |
| packagingOptions { |
| exclude 'META-INF/LICENSE.txt' |
| exclude 'META-INF/NOTICE.txt' |
| } |
| |
| defaultConfig { |
| applicationId "io.v.android.apps.syncslides" |
| minSdkVersion 22 |
| targetSdkVersion 23 |
| versionCode 1 |
| versionName "1.0" |
| } |
| buildTypes { |
| release { |
| minifyEnabled false |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| } |
| } |
| } |
| |
| dependencies { |
| compile fileTree(dir: 'libs', include: ['*.jar']) |
| compile 'com.android.support:appcompat-v7:23.0.1' |
| compile 'com.android.support:design:23.0.1' |
| compile 'com.android.support:recyclerview-v7:23.0.1' |
| compile 'com.android.support:cardview-v7:23.0.1' |
| compile 'io.v:vanadium-android:0.1' |
| } |
| |
| vdl { |
| // This is where the VDL tool will look for VDL definitions. |
| inputPaths += 'src/main/java' |
| } |