summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2018-02-05 14:07:39 +0100
committercyBerta <cyberta@riseup.net>2018-02-05 20:42:02 +0100
commit49c3d78764d2fdbc0e58bce62a2ea8439e89d7e7 (patch)
tree1ef880d601b67a77e41d141c04c310c84f5d22d7 /app
parent33cae95b08c46ebbdf7e1b3e83b51c53c7fcf099 (diff)
8832 custom build script that builds first :ics-openvpn:main and afterwards :app
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle28
l---------app/src/main/cpp1
2 files changed, 6 insertions, 23 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 8732c4df..c2a42d3d 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -35,15 +35,6 @@ android {
insecure {
dimension "implementation"
}
-/*
- noovpn3 {
- //dimension "implementation"
- }
-
- normal {
- //dimension "implementation"
- }
-*/
}
buildTypes {
@@ -56,6 +47,7 @@ android {
initWith release
applicationIdSuffix ".beta"
resValue "string", "app_name", "Bitmask Beta"
+ matchingFallbacks = ['release']
}
debug {
testCoverageEnabled = true
@@ -68,8 +60,8 @@ android {
sourceSets {
main {
- assets.srcDirs = ['assets', 'ovpnlibs/assets']
- jniLibs.srcDirs = ['ovpnlibs/jniLibs']
+ assets.srcDirs = ['assets', 'ovpnlibs/assets', '../ics-openvpn/main/build/ovpnassets']
+ jniLibs.srcDirs = ['../ics-openvpn/main/build/intermediates/cmake/noovpn3/release/obj']
jni.srcDirs = [] //disable automatic ndk-build
}
debug {
@@ -292,11 +284,9 @@ task mergeUntranslatable( type: Copy ) {
delete ics_openvpn_untranslatable
}
-task copyIcsOpenVPNFiles( type: Exec ) {
+task copyIcsOpenVPNFiles( type: Copy ) {
println "copyIcsOpenVPNFiles"
- def currentPath = System.getProperty("user.dir")
- commandLine 'bash', currentPath+'/managePatches.sh'
- copyIcsOpenVPNClasses.execute()
+ //copyIcsOpenVPNClasses.execute()
copyIcsOpenVPNXml.execute()
copyIcsOpenVPNImages.execute()
//mergeUntranslatable.execute()
@@ -309,12 +299,6 @@ task updateIcsOpenVpn( type: Exec ) {
copyIcsOpenVPNFiles.execute()
}
-/*
-task buildNative ( type: Exec ) {
- println "buildNative"
- //commandLine 'sh', 'misc/build-native.sh', 'USE_BREAKPAD=0', '-j 8'
-}
-*/
task cleanNative( type: Delete ) {
def shouldClean = getCurrentFlavorForBetaOrRelease() == "production"
@@ -353,5 +337,3 @@ def getCurrentFlavorForBetaOrRelease() {
return "";
}
}
-
-//preBuild.dependsOn buildNative
diff --git a/app/src/main/cpp b/app/src/main/cpp
new file mode 120000
index 00000000..e445d43e
--- /dev/null
+++ b/app/src/main/cpp
@@ -0,0 +1 @@
+../../../ics-openvpn/main/src/main/cpp/ \ No newline at end of file