OneSignal / OneSignal-Gradle-Plugin

Use with OneSignal-Android-SDK to help integrate it into your Android Studio or Gradle project. https://onesignal.com
Other
64 stars 17 forks source link

NumberFormatException for Android 12 (targetVersion = S) #172

Closed ghost closed 3 years ago

ghost commented 3 years ago

Please Add The Following

Due to the change from numbers (31) to letters (S) for the targetVersion, we run into a NumberFormatException.

Project Setup

build.gradle

classpath "gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.13.4, 0.99.99]"

app/build.gradle

classpath "gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.13.4, 0.99.99]"

Full Error

Caused by: java.lang.NumberFormatException: For input string: "S"
at com.onesignal.androidsdk.GradleProjectPlugin.maxAndroidSupportVersion(GradleProjectPlugin.groovy:619)

Dependency Tree

Run ./gradlew app:dependencies

not relevant for this issue, if you really need it please contact me
ghost commented 3 years ago

resolved with new sdk release