diff options
author | Parménides GV <parmegv@sdf.org> | 2014-05-19 17:44:25 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-05-19 17:44:25 +0200 |
commit | baad99940a0bfa2e4c27a9cbc0f478e94b6d20ff (patch) | |
tree | 3332b0f32843652ec4a76bd32497d5593b81965b /build.gradle | |
parent | a7f8db4fdb308f2fcd1cc1c5013ac930cc063ec1 (diff) |
Copy necessary activities and fragments.
Now we need to decide what's our relationship with LogWindow and
LaunchVPN, refactor its classes and fix ours so that we use the
currently supported methods.
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 4e853f4f..a0895556 100644 --- a/build.gradle +++ b/build.gradle @@ -44,6 +44,9 @@ task copyIcsOpenVPNClasses( type: Copy ) { include '**/*.java' include '**/*.aidl' include '**/strings.xml' + exclude '**/activities/' + exclude '**/fragments/' + exclude '**/views/' rename 'strings.xml', 'strings-icsopenvpn.xml' filter { @@ -64,6 +67,26 @@ task copyIcsOpenVPNClasses( type: Copy ) { include '**/ic_stat_vpn_outline.png' include '**/ic_stat_vpn_empty_halo.png' } into 'app' + + from ('ics-openvpn/main') { + include '**/DisconnectVPN.java' + include '**/LogWindow.java' + include '**/LogFragment.java' + include '**/log_window.xml' + filter { + line -> line.replaceAll('de.blinkt.openvpn.R', 'se.leap.bitmaskclient.R') + } + filter { + line -> line.replaceAll('de.blinkt.openvpn.BuildConfig', 'se.leap.bitmaskclient.BuildConfig') + } + filter { + line -> line.replace('package de.blinkt.openvpn;', 'package de.blinkt.openvpn;\n\nimport se.leap.bitmaskclient.R;') + } + filter { + line -> line.replace('package de.blinkt.openvpn.fragments;', 'package de.blinkt.openvpn.fragments;\n\nimport se.leap.bitmaskclient.R;') + } + + } into 'app' } def processFileInplace(file, Closure processText) { |