From 77533dd950519d658a4e5dd45bcd63b36258da11 Mon Sep 17 00:00:00 2001 From: Marcin Kwiatkowski Date: Thu, 25 May 2017 10:42:08 -0700 Subject: [PATCH] Fix tools namespace in merged manifest (#448) --- .../okbuck/core/model/android/AndroidTarget.groovy | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/buildSrc/src/main/groovy/com/uber/okbuck/core/model/android/AndroidTarget.groovy b/buildSrc/src/main/groovy/com/uber/okbuck/core/model/android/AndroidTarget.groovy index 0084e6305..d9dc9e698 100644 --- a/buildSrc/src/main/groovy/com/uber/okbuck/core/model/android/AndroidTarget.groovy +++ b/buildSrc/src/main/groovy/com/uber/okbuck/core/model/android/AndroidTarget.groovy @@ -16,17 +16,14 @@ import com.uber.okbuck.core.model.base.Scope import com.uber.okbuck.core.model.java.JavaLibTarget import com.uber.okbuck.core.model.jvm.TestOptions import com.uber.okbuck.core.util.FileUtil -import groovy.lang.Closure import groovy.util.slurpersupport.GPathResult import groovy.xml.StreamingMarkupBuilder import org.gradle.api.JavaVersion import org.gradle.api.Project import org.gradle.api.tasks.compile.JavaCompile import org.gradle.api.tasks.testing.Test -import org.gradle.api.tasks.testing.Test import java.nio.file.Paths - /** * An Android target */ @@ -254,9 +251,8 @@ abstract class AndroidTarget extends JavaLibTarget { return (builder.bind { mkp.yield manifestXml } as String) - .replaceAll('\\{http://schemas.android.com/apk/res/android\\}', 'android:') - .replaceAll('xmlns:android="http://schemas.android.com/apk/res/android"', '') - .replaceFirst('