1.0.0 • Published 6 years ago

cordova-android-disable-aapt2 v1.0.0

Weekly downloads
2
License
WTFPL
Repository
github
Last release
6 years ago

cordova-android-disable-aapt2

Archived: AAPT2 can no longer be disabled using android.enableAapt2, and has been widely adopted. This plugin is no longer needed.

This Cordova/Phonegap plugin for Android disables the AAPT2 resource processing introduced with Gradle 3.0.0

Purpose

TL;DR: To prevent config.xml parsing failures caused by the AAPT2 resource processing system.

AAPT2 changes the behavior of parsing number-like strings from XML. Previously, they were returned as strings from XMLPullParser's getAttributeValue(), but now they are parsed as numbers. This can cause problems like stripping leading zeros, or parsing large numbers into scientific notation.

Example issues:

Installation

$ cordova plugin add cordova-android-disable-aapt2