| buildscript { |
| repositories { |
| mavenCentral() |
| } |
| dependencies { |
| classpath 'com.android.tools.build:gradle:0.12.+' |
| } |
| } |
| apply plugin: 'com.android.application' |
| |
| repositories { |
| mavenCentral() |
| } |
| |
| android { |
| compileSdkVersion 19 |
| buildToolsVersion '19.1.0' |
| |
| defaultConfig { |
| applicationId 'com.bumptech.svgsample.app' |
| minSdkVersion 10 |
| targetSdkVersion 19 |
| versionCode 1 |
| versionName '1.0' |
| } |
| } |
| |
| dependencies { |
| compile project(':library') |
| compile 'com.caverock:androidsvg:1.2.1' |
| } |
| |
| task run(type: Exec, dependsOn: 'installDebug') { |
| description 'Installs the APK and runs the main activity: "gradlew :samples:???:run"' |
| commandLine "${android.sdkDirectory}/platform-tools/adb", 'shell', 'am', 'start', '-n', 'com.bumptech.svgsample.app/.MainActivity' |
| } |