| buildscript { |
| repositories { |
| mavenCentral() |
| maven { |
| url 'https://maven.v.io/' |
| } |
| } |
| dependencies { |
| // This introduces the Android plugin to make building Android |
| // applications easier. |
| classpath 'com.android.tools.build:gradle:1.3.0' |
| // 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-SNAPSHOT' |
| // 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() |
| maven { |
| url 'https://maven.v.io/' |
| } |
| } |
| |
| android { |
| compileSdkVersion 21 |
| buildToolsVersion "21.1.2" |
| |
| compileOptions { |
| sourceCompatibility JavaVersion.VERSION_1_7 |
| targetCompatibility JavaVersion.VERSION_1_7 |
| } |
| |
| defaultConfig { |
| applicationId "io.v.android.apps.reader" |
| minSdkVersion 21 |
| targetSdkVersion 21 |
| versionCode 1 |
| versionName "1.0" |
| multiDexEnabled true |
| } |
| buildTypes { |
| release { |
| minifyEnabled false |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| } |
| } |
| } |
| |
| dependencies { |
| compile fileTree(dir: 'libs', include: ['*.jar']) |
| compile 'com.android.support:cardview-v7:21+' |
| compile 'com.android.support:recyclerview-v7:21+' |
| compile 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar' |
| compile project(':android-lib') |
| } |
| |
| vdl { |
| inputPaths += System.getenv("JIRI_ROOT") + '/release/go/src' |
| inputPaths += '../..' |
| packageTranslations += 'vdl->io.v.android.apps.reader.vdl' |
| } |