Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98559900 authored by cketti's avatar cketti
Browse files

Add support for disabling pre-dexing

parent 87a91261
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -25,10 +25,25 @@ dependencies {
  compile fileTree(dir: 'libs', include: '*.jar')
}

project.ext.preDexLibs = !project.hasProperty('disablePreDex')

subprojects {
  project.plugins.whenPluginAdded { plugin ->
    if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name) ||
        "com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
      project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
    }
  }
}

android {
  compileSdkVersion 19
  buildToolsVersion '20.0.0'

  dexOptions {
    preDexLibraries = rootProject.ext.preDexLibs
  }

  sourceSets {
    main {
      manifest.srcFile 'AndroidManifest.xml'