Advertisement
dermetfan

vapp-android/build.gradle

Jul 1st, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.52 KB | None | 0 0
  1. buildscript {
  2.     repositories {
  3.         jcenter()
  4.     }
  5.     dependencies {
  6.         classpath 'com.android.tools.build:gradle:1.2.3'
  7.     }
  8. }
  9.  
  10. apply plugin: 'com.android.application'
  11. apply plugin: 'idea'
  12.  
  13. android {
  14.     buildToolsVersion = '22.0.1'
  15.     compileSdkVersion = 'android-22'
  16.  
  17.     compileOptions {
  18.         sourceCompatibility = JavaVersion.VERSION_1_7
  19.     }
  20.  
  21.     defaultConfig {
  22.         applicationId 'net.dermetfan.vapp.android'
  23.         minSdkVersion 13
  24.         targetSdkVersion 22
  25.         versionCode 1
  26.         versionName = '0.0.1'
  27.     }
  28.  
  29.     buildTypes {
  30.         release {
  31.             minifyEnabled false
  32.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  33.         }
  34.         debug {
  35.             debuggable true
  36.         }
  37.     }
  38.  
  39.     sourceSets {
  40.         main {
  41.             manifest.srcFile 'AndroidManifest.xml'
  42.             java.srcDirs = ['src/main']
  43.             res {
  44.                 srcDirs = ['res']
  45.             }
  46.         }
  47.     }
  48. }
  49.  
  50. dependencies {
  51.     compile fileTree(dir: 'libs', include: '*.jar')
  52.     compile 'com.android.support:support-v4:22.2.0'
  53. }
  54.  
  55. idea {
  56.     project.languageLevel = android.compileOptions.sourceCompatibility
  57.     module {
  58.         sourceDirs = android.sourceSets.main.java.srcDirs
  59.         testSourceDirs = android.sourceSets.test.java.srcDirs
  60.         scopes.COMPILE = [plus: [configurations.compile]]
  61.  
  62.         iml {
  63.             withXml {
  64.                 def node = it.asNode()
  65.                 def builder = NodeBuilder.newInstance()
  66.                 builder.current = node
  67.                 builder.component(name: 'FacetManager') {
  68.                     facet(type: 'android', name: 'Android') {
  69.                         configuration {
  70.                             option(name: 'UPDATE_PROPERTY_FILES', value: 'true')
  71.                         }
  72.                     }
  73.                 }
  74.             }
  75.         }
  76.     }
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement