buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
        maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
        mavenCentral()
        mavenLocal()
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
        classpath 'org.getlantern:android-sdk:2.1.0-SNAPSHOT@aar'
    }
}
import java.text.SimpleDateFormat

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply from: rootProject.file('global.gradle')
apply from: rootProject.file('signing.gradle')

android {

    defaultConfig {
        applicationId "org.getlantern.firetweet"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 110
        versionName "0.0.7"
        multiDexEnabled true
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
    }
    productFlavors {
        google {
        }
        fdroid {
        }
    }
    buildTypes {
        debug {
        }
        release {
            zipAlignEnabled true
        }
    }
    sourceSets {
        main {
            res.srcDirs = [project.file("src/$name/res"), project.file("src/$name/res-localized")]
        }
    }
}

repositories {
    flatDir {
        dirs 'src/main/libs'
    }
    jcenter()
    def androidHome = System.getenv("ANDROID_HOME")
    mavenLocal()
    mavenCentral()
    maven { url "$androidHome/extras/android/m2repository/" }
    maven { url 'https://repo.commonsware.com.s3.amazonaws.com' }
    maven { url 'https://github.com/suckgamony/RapidDecoder/raw/master/repository' }
    maven { url "https://jitpack.io" }
    maven { url 'https://maven.fabric.io/public' }
    //maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}

configurations.all {
    exclude group: 'org.yaml', module: 'snakeyaml'
}

dependencies {
    compile(name:'liblantern', ext:'aar')
    compile(name:'sdk-debug', ext:'aar')

//    wearApp project(':firetweet.wear')
    compile('org.yaml:snakeyaml:1.10') {
       transitive = true
    }
    compile 'com.google.guava:guava:19.0'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.android.support:support-v13:22.0.0'
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.android.support:cardview-v7:22.0.0'
    compile 'com.android.support:recyclerview-v7:22.0.0'
    compile 'com.sothree.slidinguppanel:library:3.0.0'
    compile 'com.twitter:twitter-text:1.11.1'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
    compile 'com.squareup:otto:1.3.6'
    compile 'dnsjava:dnsjava:2.1.7'
    compile 'com.commonsware.cwac:merge:1.1.1'
    compile 'com.google.android.gms:play-services-analytics:7.0.0'
    compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.1.3'
    compile 'com.rengwuxian.materialedittext:library:2.0.3'
    compile 'com.pnikosis:materialish-progress:1.5'
    compile 'com.squareup.okhttp:okhttp:2.3.0'
    // Disabled temporarilly due to attribute clash with subsampling-scale-image-view
//    compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.3'
    compile 'com.github.mariotaku:MessageBubbleView:1.0'
    compile 'com.github.mariotaku:DragSortListView:0.6.1'
    compile 'com.github.mariotaku:SlidingMenu:1.3'
    compile 'com.github.uucky:ColorPicker-Android:0.9.1'
    compile 'com.sprylab.android.texturevideoview:texturevideoview:1.0.0'
    compile 'com.squareup:pollexor:2.0.2'
    compile 'org.apache.commons:commons-lang3:3.4'

    googleCompile 'com.google.android.gms:play-services-maps:7.0.0'

    googleCompile 'com.google.maps.android:android-maps-utils:0.3.4'
    fdroidCompile 'org.osmdroid:osmdroid-android:4.3'
    fdroidCompile 'org.slf4j:slf4j-simple:1.7.12'
    debugCompile 'im.dino:dbinspector:3.1.0@aar'
    compile project(':firetweet.component.common')
    compile project(':firetweet.component.nyan')
    compile fileTree(dir: 'libs/main', include: ['*.jar'])
//    googleCompile fileTree(dir: 'libs/google', include: ['*.jar'])
    compile('com.crashlytics.sdk.android:crashlytics:2.2.4@aar') {
        transitive = true;
    }



}
