summaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-09-18 19:48:20 +0200
committerParménides GV <parmegv@sdf.org>2014-09-18 19:48:52 +0200
commit7780f13af9ad5a58d3f87ff4cc76ded6e79e59f5 (patch)
treeb336db06a4f8e8beccaa91b6c0e17026ca831cdc /app/build.gradle
parent7e7c1454f9a6d45b0f1ccf4e0242f814089d25a8 (diff)
Updated ics-openvpn, restart after 1' being killed
Fixed notifications too (forgot to do it in another branch, it's #5964).
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/build.gradle b/app/build.gradle
index a258ca55..822c7124 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,4 +1,5 @@
apply plugin: 'android'
+import org.ajoberstar.grgit.*
android {
compileSdkVersion 19
@@ -44,8 +45,6 @@ android {
}
dependencies {
- // androidTestCompile 'com.android.support:support-v4:20+'
- // androidTestCompile 'com.android.support:appcompat-v7:20.+'
androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.2.1'
compile 'com.intellij:annotations:12.0'
}
@@ -58,7 +57,9 @@ def processFileInplace(file, Closure processText) {
task checkoutStrippedIcsOpenVPN ( type: Copy ) {
//FIXME Checkout ics-openvpn-stripped from branch "ics-openvpn-upstream"
- from '/tmp/bitmask_android_tmp/ics-openvpn-stripped'
+ grgit = Grgit.open(project.file('../'))
+
+ from '../../bitmask_android_tmp/ics-openvpn-stripped'
into '../ics-openvpn-stripped'
}
@@ -94,10 +95,10 @@ task copyIcsOpenVPNClasses( type: Copy, dependsOn: 'checkoutStrippedIcsOpenVPN'
// thanks to http://pleac.sourceforge.net/pleac_groovy/fileaccess.html
task removeDuplicatedStrings( dependsOn: 'copyIcsOpenVPNClasses' ) << {
- new File('.').eachFileRecurse {
+ new File('app').eachFileRecurse {
if(it.name.equals('strings.xml')) {
- def ics_openvpn_file = file(it.path.replace('strings.xml', 'strings-icsopenvpn.xml'))
- if(ics_openvpn_file.exists()) {
+ def ics_openvpn_file = file(it.absolutePath.replace('strings.xml', 'strings-icsopenvpn.xml'))
+ if(ics_openvpn_file.exists()) {
def ics_openvpn_strings_names = (new XmlParser()).parse(ics_openvpn_file)
def current_file = it
@@ -156,5 +157,5 @@ task updateIcsOpenVpn( type: Copy, dependsOn: 'mergeUntranslatable') {
assembleRelease.dependsOn connectedCheck
afterEvaluate {
- installRelease.dependsOn connectedCheck
+ //installRelease.dependsOn connectedCheck
}