summaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-12-12 18:02:40 +0100
committerParménides GV <parmegv@sdf.org>2014-12-12 18:04:08 +0100
commit97aded26654ede8204a313dd6967b678a72a2a10 (patch)
tree5c519d75774eff664df41881777cbae171caddf5 /app/build.gradle
parent0e7e4005460964cf8dac080e3d99e1df2a1bdc4d (diff)
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.
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle57
1 files changed, 37 insertions, 20 deletions
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/**'