summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-05-15 17:41:41 +0200
committerParménides GV <parmegv@sdf.org>2014-05-15 17:41:41 +0200
commit80dc0167cf9fb91cd9373bdd2a93793f71b901dd (patch)
treefa8b4e1f02a362686b9e73ec2e95fe9baac3428e /build.gradle
parent5e73a8122cc7b1db34044c833f4d3f78ad64b99f (diff)
Copy some necessary icons from ics-openvpn.
I'm hardcoding their values based on the compilation errors (i.e., the drawables referenced by de.blinkt.openvpn.core.OpenVpnService). If a new drawable were introduced, build.gradle should be updated accordingly.
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle15
1 files changed, 11 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index 76d60d0b..29ceb2f2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -51,9 +51,16 @@ task copyIcsOpenVPNClasses( type: Copy ) {
}
filter {
line -> line.replaceAll('de.blinkt.openvpn.BuildConfig', 'se.leap.bitmaskclient.BuildConfig')
- }
- }
- into 'app'
+ }
+ } into 'app'
+
+ from ('ics-openvpn/main') {
+ //TODO We should detect which drawables are needed by the classes
+ //we need (such as de.blinkt.openvpn.core.OpenVpnService)
+ include '**/ic_stat_vpn_offline.png'
+ include '**/ic_stat_vpn_outline.png'
+ include '**/ic_stat_vpn_empty_halo.png'
+ } into 'app'
}
def processFileInplace(file, Closure processText) {
@@ -62,7 +69,7 @@ def processFileInplace(file, Closure processText) {
}
// thanks to http://pleac.sourceforge.net/pleac_groovy/fileaccess.html
-task removeDuplicatedStrings() << {
+task removeDuplicatedStrings( dependsOn: 'copyIcsOpenVPNClasses' ) {
def resources_directory = new File('./app/src/main/res/')
resources_directory.eachFileRecurse {
if(it.name.equals('strings.xml')) {