@capacitor-community/text-to-speech 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,14 +123,7 @@ public class TextToSpeech implements android.speech.tts.TextToSpeech.OnInitListe
123
123
  orderedVoices.add(supportedVoice);
124
124
  }
125
125
 
126
- Collections.sort(
127
- orderedVoices,
128
- new Comparator<Voice>() {
129
- public int compare(Voice v1, Voice v2) {
130
- return v1.hashCode() - v2.hashCode();
131
- }
132
- }
133
- );
126
+ Collections.sort(orderedVoices, Comparator.comparing(Voice::hashCode));
134
127
 
135
128
  return orderedVoices;
136
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-community/text-to-speech",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Capacitor plugin for synthesizing speech from text.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",