Index: adblockplussbrowser/build.gradle |
=================================================================== |
--- a/adblockplussbrowser/build.gradle |
+++ b/adblockplussbrowser/build.gradle |
@@ -29,13 +29,29 @@ android { |
release { |
minifyEnabled true |
proguardFiles getDefaultProguardFile('proguard-android.txt') |
lintOptions { |
disable 'MissingTranslation' |
} |
} |
} |
+ |
+ afterEvaluate { project -> |
+ project.tasks.prepareReleaseDependencies << { |
+ updateBundledLists() |
+ println('Bundled lists updated at ' + new Date().format('dd MMM yyyy, HH:mm:ss zzz')) |
+ } |
+ } |
+} |
+ |
+def updateBundledLists() { |
+ new URL(rootProject.ext.easyListUpdateUrl).withInputStream { |
+ i -> new File(rootProject.ext.easyListFilePath).withOutputStream { it << i } |
+ } |
+ new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream { |
+ i -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream { it << i } |
+ } |
} |
dependencies { |
compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibraryVersion" |
} |