diff --git a/OsmAnd-telegram/build.gradle b/OsmAnd-telegram/build.gradle index f7976040af..57141c4238 100644 --- a/OsmAnd-telegram/build.gradle +++ b/OsmAnd-telegram/build.gradle @@ -146,6 +146,4 @@ dependencies { implementation("com.github.HITGIF:TextFieldBoxes:1.4.4") { exclude group: 'com.android.support' } - - implementation 'net.sf.kxml:kxml2:2.1.8' } diff --git a/OsmAnd-telegram/src/net/osmand/PlatformUtil.java b/OsmAnd-telegram/src/net/osmand/PlatformUtil.java index 26a8b13c67..f1d8143948 100644 --- a/OsmAnd-telegram/src/net/osmand/PlatformUtil.java +++ b/OsmAnd-telegram/src/net/osmand/PlatformUtil.java @@ -1,5 +1,7 @@ package net.osmand; +import android.util.Xml; + import org.apache.commons.logging.Log; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; @@ -147,10 +149,10 @@ public class PlatformUtil { } public static XmlPullParser newXMLPullParser() throws XmlPullParserException { - return new org.kxml2.io.KXmlParser(); + return Xml.newPullParser(); } public static XmlSerializer newSerializer() { - return new org.kxml2.io.KXmlSerializer(); + return Xml.newSerializer(); } }