~repos /only-bible-app

#kotlin#android#ios

GIT_CONFIG_PARAMETERS="'http.version=HTTP/1.1'" git clone https://git.pyrossh.dev/only-bible-app.git
Discussions: https://groups.google.com/g/rust-embed-devs

The only bible app you will ever need. No ads. No in-app purchases. No distractions.


android/key.properties.example ADDED
@@ -0,0 +1,4 @@
1
+ storePassword=your_keystore_password
2
+ keyPassword=your_key_password
3
+ keyAlias=your_key_alias
4
+ storeFile=/path/to/keystore/file.jks
lib/store/actions_state.dart CHANGED
@@ -54,8 +54,6 @@ class TogglePlayAction extends ReduxAction<AppState> {
54
54
 
55
55
  @override
56
56
  Future<AppState?> reduce() async {
57
- // await runTTS(state.selectedVerses.map((v) => v.text ?? "").join("\n"));
58
- // return null;
59
57
  if (SoLoud.instance.getActiveVoiceCount() > 0) {
60
58
  await SoLoud.instance.disposeAllSources();
61
59
  return null;
@@ -80,6 +78,10 @@ class TogglePlayAction extends ReduxAction<AppState> {
80
78
  );
81
79
  await SoLoud.instance.disposeSource(stream);
82
80
  } catch (err) {
81
+ // If sources were disposed (user stopped playback), don't treat as error
82
+ if (SoLoud.instance.getActiveVoiceCount() == 0) {
83
+ return null;
84
+ }
83
85
  log(
84
86
  "Could not play audio",
85
87
  name: "play",