diff options
author | Parménides GV <parmegv@sdf.org> | 2014-05-14 21:07:23 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-05-14 21:07:23 +0200 |
commit | 2d0ed30fd65ce6d5832dc857a69c8063cb8b48b1 (patch) | |
tree | 4dce0cb932dcbc6b2f895e76dbd01d318c31fb8e /build.gradle | |
parent | edeb42401201c9c933cc2ba8175863225c813723 (diff) |
Filter R and BuildConfig to use ours.
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle index 2e3ce0c8..6c667e73 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ import au.com.coherentsoftware.gradle.mercurial.task.* +import org.apache.tools.ant.filters.ReplaceTokens buildscript { repositories { @@ -39,8 +40,15 @@ task pullIcsOpenVPN( type: HgPull ) { } task copyIcsOpenVPNClasses( type: Copy ) { - from 'ics-openvpn/main' + from ('ics-openvpn/main') { + include '**/*.java' + include '**/*.aidl' + filter { + line -> line.replaceAll('de.blinkt.openvpn.R', 'se.leap.bitmaskclient.R') + } + filter { + line -> line.replaceAll('de.blinkt.openvpn.BuildConfig', 'se.leap.bitmaskclient.BuildConfig') + } + } into 'app' - include '**/*.java' - include '**/*.aidl' }
\ No newline at end of file |