apply plugin: 'com.android.library'


ext {
  bintrayRepo = 'AppDataReader'
  bintrayName = 'com.awesomedroidapps.inappstoragereader'

  publishedGroupId = 'com.awesomedroidapps'
  libraryName = 'AppDataReader'
  artifact = 'inappstoragereader'

  libraryDescription = 'A library for reading Shared Preferences and Database within the application.'

  siteUrl = 'https://github.com/Ansh1234/AppDataReader'
  gitUrl = 'https://github.com/Ansh1234/AppDataReader.git'

  libraryVersion = '1.0.2'

  developerId = 'ansh1234'
  developerName = 'Anshul Jain'
  developerEmail = 'anshul.jain010@gmail.com'

  licenseName = 'The Apache Software License, Version 2.0'
  licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
  allLicenses = ["Apache-2.0"]
}

def recyclerViewVersion = '23.2.0'
def supportLibraryVersion = '23.2.0'
def cardViewLibraryVersion = '23.2.0'
def buildToolVersion = '23.0.2'
def int compileVersion = 23;
def int targetVersion = 23;

android {
  compileSdkVersion project.hasProperty('csv') ? project.csv : compileVersion
  buildToolsVersion project.hasProperty('btv') ? project.btv : buildToolVersion

  defaultConfig {
    minSdkVersion 11
    targetSdkVersion project.tsv != null ? project.tsv : targetVersion
    versionCode 1
    versionName "1.0"
  }

  sourceSets {
    main.res.srcDirs 'res', 'res-public'
  }
  sourceSets {
    main.res.srcDirs = [
        'src/main/res',
        'src/main/res-public'
    ]
  }
}

def slv = project.hasProperty('slv') ? project.slv : supportLibraryVersion
def rvv = project.hasProperty('rvv') ? project.rvv : recyclerViewVersion
def clv = project.hasProperty('clv') ? project.clv : cardViewLibraryVersion


dependencies {
  compile 'com.android.support:appcompat-v7:' + slv
  compile 'com.android.support:recyclerview-v7:' + rvv
  compile 'com.android.support:cardview-v7:'+clv

}

// Place it at the end of the file
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
