From 97aded26654ede8204a313dd6967b678a72a2a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Fri, 12 Dec 2014 18:02:40 +0100 Subject: Updated ics-openvpn to last rev 14 Nov 2014. Material design! It still doesn't run properly on my tablet, openvpn keeps getting down and exiting. --- app/build.gradle | 57 ++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 20 deletions(-) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index 4211e379..5f739419 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,15 +2,8 @@ apply plugin: 'android' //import org.ajoberstar.grgit.* android { - compileSdkVersion 19 - buildToolsVersion "20" - - defaultConfig { - minSdkVersion 14 - targetSdkVersion 19 - - testInstrumentationRunner "android.test.InstrumentationTestRunner" - } + compileSdkVersion 21 + buildToolsVersion "21.1.2" signingConfigs { release { @@ -67,18 +60,10 @@ task checkoutStrippedIcsOpenVPN ( type: Copy ) { into '../ics-openvpn-stripped' } -task copyIcsOpenVPNClasses( type: Copy, dependsOn: 'checkoutStrippedIcsOpenVPN' ) { +task copyIcsOpenVPNClasses( type: Copy ) { from ('../ics-openvpn-stripped/main/') { include '**/*.java' include '**/*.aidl' - include '**/strings.xml' - include '**/log_*.xml' - include '**/vpnstatus.xml' - include '**/styles.xml' - include '**/dimens.xml' - include '**/logmenu.xml' - - rename 'strings.xml', 'strings-icsopenvpn.xml' filter { line -> line.replaceAll('de.blinkt.openvpn.R', 'se.leap.bitmaskclient.R') } @@ -91,14 +76,45 @@ task copyIcsOpenVPNClasses( type: Copy, dependsOn: 'checkoutStrippedIcsOpenVPN' filter { line -> line.replace('package de.blinkt.openvpn.fragments;', 'package de.blinkt.openvpn.fragments;\n\nimport se.leap.bitmaskclient.R;') } + } into '.' +} + +task copyIcsOpenVPNXml( type: Copy ) { + from ('../ics-openvpn-stripped/main/') { + include '**/strings.xml' + include '**/log_*.xml' + include '**/vpnstatus.xml' + include '**/styles.xml' + include '**/dimens.xml' + include '**/refs.xml' + include '**/colours.xml' + include '**/logmenu.xml' + + rename 'strings.xml', 'strings-icsopenvpn.xml' filter { line -> line.replaceAll('.*name="app".*', '') } } into '.' } +task copyIcsOpenVPNImages( type: Copy ) { + from ('../ics-openvpn-stripped/main/') { + include '**/ic_filter*.png' + include '**/ic_delete*.png' + include '**/ic_share*.png' + include '**/ic_close*.png' + include '**/ic_edit*.png' + } into '.' +} + +task copyIcsOpenVPNFiles( type: Copy, dependsOn: 'checkoutStrippedIcsOpenVPN' ) { + copyIcsOpenVPNClasses.execute() + copyIcsOpenVPNXml.execute() + copyIcsOpenVPNImages.execute() +} + // thanks to http://pleac.sourceforge.net/pleac_groovy/fileaccess.html -task removeDuplicatedStrings( dependsOn: 'copyIcsOpenVPNClasses' ) << { +task removeDuplicatedStrings( dependsOn: 'copyIcsOpenVPNFiles' ) << { new File('app').eachFileRecurse { if(it.name.equals('strings.xml')) { def ics_openvpn_file = file(it.absolutePath.replace('strings.xml', 'strings-icsopenvpn.xml')) @@ -149,8 +165,9 @@ task mergeUntranslatable( type: Copy, dependsOn: 'removeDuplicatedStrings') { } task updateIcsOpenVpn( type: Copy, dependsOn: 'mergeUntranslatable') { - from('../ics-openvpn-stripped/main') { + from('../ics-openvpn-stripped/main/src/') { include 'openvpn/**' + include 'openssl/**' include 'lzo/**' include 'jni/**' include 'misc/**' -- cgit v1.2.3