From 20206e5661ed3f786ed8b9bcaf1941be9b92a596 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 19 May 2019 02:44:20 +0200 Subject: update gradle version --- app/build.gradle | 25 ++++++++++++++----------- app/src/main/AndroidManifest.xml | 3 --- build.gradle | 3 ++- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index dc6e87f6..4ec53aa9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,6 +18,8 @@ android { applicationId "se.leap.bitmaskclient" versionCode 137 versionName "0.9.10" + minSdkVersion 16 + targetSdkVersion 27 resValue "string", "app_name", appName vectorDrawables.useSupportLibrary = true buildConfigField 'boolean', 'openvpn3', 'false' @@ -226,7 +228,7 @@ def processFileInplace(file, Closure processText) { file.write(processText(text)) } -task copyIcsOpenVPNClasses( type: Copy ) { +task copyIcsOpenVPNClasses(dependsOn: 'copyIcsOpenVPNFiles', type: Copy ) { println "copyIcsOpenVPNClasses" // from ('../ics-openvpn/main/') { // include '**/LaunchVPN.java' @@ -255,7 +257,7 @@ task copyIcsOpenVPNClasses( type: Copy ) { // } into '.' } -task copyIcsOpenVPNXml( type: Copy ) { +task copyIcsOpenVPNXml(dependsOn: 'copyIcsOpenVPNFiles', type: Copy ) { println "copyIcsOpenVPNXml" from ('../ics-openvpn/main/') { include '**/strings.xml' @@ -272,7 +274,7 @@ task copyIcsOpenVPNXml( type: Copy ) { } into '.' } -task copyIcsOpenVPNImages( type: Copy ) { +task copyIcsOpenVPNImages(dependsOn: 'copyIcsOpenVPNFiles', type: Copy ) { println "copyIcsOpenVPNImages" // from ('../ics-openvpn/main/') { // include '**/ic_filter*.png' @@ -302,7 +304,7 @@ task copyIcsOpenVPNImages( type: Copy ) { } // thanks to http://pleac.sourceforge.net/pleac_groovy/fileaccess.html -task removeDuplicatedStrings() { +def removeDuplicatedStrings() { println "removeDuplicatedStrings" new File('.').eachFileRecurse { if(it.name.equals('strings.xml') || it.name.equals('plurals.xml')) { @@ -325,7 +327,7 @@ def replaceDuplicatesForSource(File it, String type) { } } -task mergeUntranslatable( type: Copy ) { +task mergeUntranslatable(dependsOn: 'copyIcsOpenVPNFiles', type: Copy ) { println "mergeUntranslatable" from ('../ics-openvpn/main/') { include '**/untranslatable.xml' @@ -358,19 +360,20 @@ task mergeUntranslatable( type: Copy ) { delete ics_openvpn_untranslatable } -task copyIcsOpenVPNFiles( type: Copy ) { +task copyIcsOpenVPNFiles(dependsOn: 'updateIcsOpenVpn') { println "copyIcsOpenVPNFiles" - copyIcsOpenVPNClasses.execute() - copyIcsOpenVPNXml.execute() - copyIcsOpenVPNImages.execute() + +/* copyIcsOpenVPNClasses + copyIcsOpenVPNXml + copyIcsOpenVPNImages //mergeUntranslatable.execute() - removeDuplicatedStrings.execute() + removeDuplicatedStrings()*/ } task updateIcsOpenVpn( type: Exec ) { commandLine 'git', 'submodule', 'sync' commandLine 'git', 'submodule', 'update', '--init', '--recursive' - copyIcsOpenVPNFiles.execute() + } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a6752cf7..86c9a74b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -17,9 +17,6 @@ - diff --git a/build.gradle b/build.gradle index 16995417..bb336511 100644 --- a/build.gradle +++ b/build.gradle @@ -6,9 +6,10 @@ buildscript { } mavenCentral() jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' + classpath 'com.android.tools.build:gradle:3.4.1' } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index b842d2c4..e264661d 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sat Apr 08 20:47:40 EDT 2017 +#Sun May 19 00:15:53 CEST 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip -- cgit v1.2.3