Skip to content

Instantly share code, notes, and snippets.

@jackgris
Last active December 30, 2015 06:49

Revisions

  1. jackgris revised this gist Dec 23, 2013. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions build.gradle
    Original file line number Diff line number Diff line change
    @@ -41,13 +41,17 @@ android {
    }

    sourceSets {
    main {
    java.srcDirs = ['src/main/java', 'src-gen/main/java']
    }
    instrumentTest.setRoot('src/test')
    }
    }

    dependencies {
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
    compile 'com.android.support:support-v4:18.0.+'
    compile 'de.greenrobot:greendao:1.3.7'

    compile group: 'com.google.guava', name: 'guava', version: '15.0'

  2. jackgris created this gist Dec 4, 2013.
    65 changes: 65 additions & 0 deletions build.gradle
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,65 @@
    buildscript {
    repositories {
    mavenCentral()
    maven {
    url 'https://oss.sonatype.org/content/repositories/snapshots/'
    }
    }
    dependencies {
    classpath 'com.android.tools.build:gradle:0.6.+'
    classpath 'com.squareup.gradle:gradle-android-test-plugin:0.9.1-SNAPSHOT'
    }
    }
    apply plugin: 'android'
    apply plugin: 'android-test'

    repositories {
    mavenCentral()
    maven {
    url 'https://oss.sonatype.org/content/repositories/snapshots/'
    }
    }

    android {
    compileSdkVersion 18
    buildToolsVersion "18.0.1"

    defaultConfig {
    minSdkVersion 8
    targetSdkVersion 19
    }
    buildTypes {
    release {
    runProguard true
    proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
    }
    }
    productFlavors {
    defaultFlavor {
    proguardFile 'proguard-rules.txt'
    }
    }

    sourceSets {
    instrumentTest.setRoot('src/test')
    }
    }

    dependencies {
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
    compile 'com.android.support:support-v4:18.0.+'

    compile group: 'com.google.guava', name: 'guava', version: '15.0'

    testCompile 'junit:junit:4.10'
    testCompile 'org.robolectric:robolectric:2.1.+'
    testCompile 'com.squareup:fest-android:1.0.+'

    instrumentTestCompile 'junit:junit:4.10'
    instrumentTestCompile 'org.robolectric:robolectric:2.1.+'
    instrumentTestCompile 'com.squareup:fest-android:1.0.+'
    }

    task wrapper(type: Wrapper) {
    gradleVersion = '1.8'
    }