Advertisement
thiagobruno

build.gradlew

Dec 16th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.61 KB | None | 0 0
  1. buildscript {
  2.     repositories {
  3.         jcenter()
  4.     }
  5.     dependencies {
  6.         classpath 'com.android.tools.build:gradle:2.3.3'
  7.        
  8.     }
  9. }
  10.  
  11. apply plugin: 'com.android.application'
  12.  
  13. allprojects {
  14.     repositories {
  15.         jcenter()
  16.     mavenCentral()
  17.    
  18.     }
  19. }
  20.  
  21. dependencies {
  22.     compile 'com.android.support:support-v4:23.+'  // can be removed if minSdkVersion 16 and modify DownloadNotification.java & V14CustomNotification.java
  23.     compile 'com.google.android.gms:play-services:5.+'
  24. }
  25.  
  26. android {
  27.  
  28.     lintOptions {
  29.         abortOnError false
  30.         disable 'MissingTranslation'
  31.     }
  32.  
  33.     compileSdkVersion 23
  34.     buildToolsVersion "26.0.1"
  35.     useLibrary 'org.apache.http.legacy'
  36.  
  37.     packagingOptions {
  38.         exclude 'META-INF/LICENSE'
  39.         exclude 'META-INF/NOTICE'
  40.     }
  41.     defaultConfig {
  42.         minSdkVersion 14
  43.         targetSdkVersion 23
  44.        
  45.     }
  46.     // Both signing and zip-aligning will be done at export time
  47.     buildTypes.all { buildType ->
  48.         buildType.zipAlignEnabled false
  49.         buildType.signingConfig null
  50.     }
  51.     sourceSets {
  52.         main {
  53.             manifest.srcFile 'AndroidManifest.xml'
  54.             java.srcDirs = ['src'
  55.                
  56.             ]
  57.             res.srcDirs = [
  58.                 'res'
  59.                  
  60.             ]
  61.             aidl.srcDirs = [
  62.                 'aidl'
  63.                    
  64.             ]
  65.             assets.srcDirs = [
  66.                 'assets'
  67.                
  68.             ]
  69.         }
  70.         debug.jniLibs.srcDirs = [
  71.             'libs/debug'
  72.            
  73.         ]
  74.         release.jniLibs.srcDirs = [
  75.             'libs/release'
  76.            
  77.         ]
  78.     }
  79.     applicationVariants.all { variant ->
  80.         // ApplicationVariant is undocumented, but this method is widely used; may break with another version of the Android Gradle plugin
  81.         variant.outputs.get(0).setOutputFile(new File("${projectDir}/../../../bin", "android_${variant.name}.apk"))
  82.     }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement