Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A load of Kotlin nullability related warnings + Registrar Java deoprecation when compiling #105

Open
MrCsabaToth opened this issue Jul 11, 2022 · 0 comments

Comments

@MrCsabaToth
Copy link
Contributor

MrCsabaToth commented Jul 11, 2022

Task :soundpool:compileReleaseKotlin
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (17, 48): 'Registrar' is deprecated. Deprecated in Java
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (32, 37): 'Registrar' is deprecated. Deprecated in Java
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (57, 48): Unchecked cast: Any! to Map<String, Int>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (77, 48): Unchecked cast: Any! to Map<String, Int>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (84, 48): Unchecked cast: Any! to Map<String, Any>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (142, 9): 'constructor SoundPool(Int, Int, Int)' is deprecated. Deprecated in Java
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (173, 56): Unchecked cast: Any! to Map<String, Any>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (176, 40): 'createTempFile(String = ..., String? = ..., File? = ...): File' is deprecated. Avoid creating temporary files in the default temp location with this function due to too wide permissions on the newly created file. Use kotlin.io.path.createTempFile instead or resort to java.io.File.createTempFile.
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (196, 56): Unchecked cast: Any! to Map<String, Any>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (204, 56): 'createTempFile(String = ..., String? = ..., File? = ...): File' is deprecated. Avoid creating temporary files in the default temp location with this function due to too wide permissions on the newly created file. Use kotlin.io.path.createTempFile instead or resort to java.io.File.createTempFile.
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (229, 48): Unchecked cast: Any! to Map<String, Any>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (243, 48): Unchecked cast: Any! to Map<String, Int>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (253, 48): Unchecked cast: Any! to Map<String, Int>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (261, 48): Unchecked cast: Any! to Map<String, Int>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (269, 48): Unchecked cast: Any! to Map<String, Any?>
w: /home/csaba/.pub-cache/hosted/pub.dartlang.org/soundpool-2.3.0/android/src/main/kotlin/pl/ukaszapps/soundpool/SoundpoolPlugin.kt: (291, 48): Unchecked cast: Any! to Map<String, Any?>

I'm using Kotlin version 1.6.21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant