Skip to content

Instantly share code, notes, and snippets.

View OlegKrikun's full-sized avatar

OlegKrikun OlegKrikun

View GitHub Profile
@OlegKrikun
OlegKrikun / build.gradle
Last active December 21, 2015 15:38
Add SigningConfig to release type for application subproject
subprojects { subproject ->
afterEvaluate {
if (subproject.plugins.hasPlugin('com.android.application')){
android {
signingConfigs {
release {
storeFile file("key.jks")
storePassword "keykey"
@OlegKrikun
OlegKrikun / build.gradle
Last active August 29, 2015 14:01
Example for removing unused fonts from RobotoTextView (https://github.com/johnkil/Android-RobotoTextView)
android.applicationVariants.all{ variant ->
variant.mergeAssets.doFirst {
File fonts = file("${rootDir}/build/exploded-aar/com.github.johnkil.android-robototextview/robototextview/2.0.1/assets/fonts")
if (fonts.exists()) {
for (File file : fonts.listFiles()) {
if (file.getName().contains("RobotoSlab")) {
println("delete " + file.getName() + " font")
file.delete()
};
}