Skip to content

Instantly share code, notes, and snippets.

@pfn
Created November 22, 2013 20:50
Show Gist options
  • Save pfn/7606649 to your computer and use it in GitHub Desktop.
Save pfn/7606649 to your computer and use it in GitHub Desktop.
SettingKey[Attributed[File] => Boolean]("filter-fn") := { e: Attributed[File] =>
val name = e.data.getName
name.startsWith("android-support") ||
name.startsWith("support-v4-r18") ||
name.startsWith("xmlParserAPIs") ||
name.startsWith("android-4") ||
name.startsWith("accessenabler-1.6") ||
name.startsWith("adobe-adms-measurement") ||
name.startsWith("xpp3")
}
// these two settings remove the junk that our maven dependencies pull in
dependencyClasspath in Android <<= (dependencyClasspath in Android,
SettingKey[Attributed[File] => Boolean]("filter-fn")) map { (dcp, filterFn) =>
dcp.filterNot(filterFn)
}
unmanagedJars in Android <<= (unmanagedJars in Android,
SettingKey[Attributed[File] => Boolean]("filter-fn")) map { (dcp, filterFn) =>
dcp.filterNot(filterFn)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment