xxxxxxxxxx
./gradlew wrapper --gradle-version <version>
Example: ./gradlew wrapper --gradle-version 7.2
xxxxxxxxxx
// avoid updating the "distributionUrl" in gradle-wrapper.properties esp for major updates
gradle wrapper --gradle-version=8.5 --distribution-type=all
xxxxxxxxxx
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>swal("My title", "My description", "success");</script>
xxxxxxxxxx
swal({
title: "Good job!",
text: "You clicked the button!",
icon: "success",
button: "Aww yiss!",
});
xxxxxxxxxx
//import sweetalert
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
//Alert
<script>swal("My title", "My description", "success");</script>
xxxxxxxxxx
Swal.fire({
position: 'top-end',
icon: 'success',
title: 'Your work has been saved',
showConfirmButton: false,
timer: 1500
})
xxxxxxxxxx
Swal.fire({
icon: 'error',
title: 'Oops...',
text: 'Something went wrong!',
})
xxxxxxxxxx
Swal.fire({
position: 'top-end',
icon: 'success',
title: 'Your work has been saved',
showConfirmButton: false,
timer: 1500
})