~repos /only-bible-app
git clone https://pyrossh.dev/repos/only-bible-app.git
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
84d67d77
—
pyrossh 2 years ago
update stuff
- bible_app/android/app/build.gradle +13 -13
- bible_app/android/app/src/main/java/bible_app/MainActivity.java +5 -0
- bible_app/android/app/src/main/kotlin/{com/example → sh/pyros}/bible_app/MainActivity.kt +1 -1
- bible_app/{scripts/bibles → assets}/kannada.csv +0 -0
- bible_app/assets/kannada.csv.gz +0 -0
- bible_app/integration_test/home_screen_test.dart +26 -0
- bible_app/ios/Podfile.lock +0 -42
- bible_app/ios/Runner.xcodeproj/project.pbxproj +19 -127
- bible_app/ios/Runner.xcworkspace/contents.xcworkspacedata +0 -3
- bible_app/lib/components/book_selector.dart +1 -1
- bible_app/lib/components/books_list.dart +2 -3
- bible_app/lib/components/chapters_list.dart +2 -3
- bible_app/lib/components/header.dart +8 -13
- bible_app/lib/components/play_button.dart +4 -5
- bible_app/lib/components/slide_page.dart +1 -1
- bible_app/lib/components/{title.dart → tile.dart} +0 -0
- bible_app/lib/main.dart +15 -10
- bible_app/lib/routes/index.dart +49 -27
- bible_app/lib/routes/index.g.dart +0 -36
- bible_app/lib/routes/select.dart +0 -8
- bible_app/lib/routes/select.g.dart +0 -34
- bible_app/lib/state.dart +22 -15
- bible_app/lib/utils/assets.dart +7 -3
- bible_app/linux/CMakeLists.txt +1 -1
- bible_app/macos/Runner/Configs/AppInfo.xcconfig +3 -3
- bible_app/macos/Runner/Info.plist +1 -1
- bible_app/pubspec.lock +33 -378
- bible_app/pubspec.yaml +5 -39
- bible_app/scripts/generate.dart +1 -1
bible_app/android/app/build.gradle
CHANGED
|
@@ -22,11 +22,11 @@ if (flutterVersionName == null) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
apply plugin: 'com.android.application'
|
|
25
|
-
apply plugin: 'kotlin-android'
|
|
25
|
+
//apply plugin: 'kotlin-android'
|
|
26
26
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
27
27
|
|
|
28
28
|
android {
|
|
29
|
-
namespace "
|
|
29
|
+
namespace "sh.pyros.bible_app"
|
|
30
30
|
compileSdkVersion flutter.compileSdkVersion
|
|
31
31
|
ndkVersion flutter.ndkVersion
|
|
32
32
|
|
|
@@ -35,21 +35,21 @@ android {
|
|
|
35
35
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
kotlinOptions {
|
|
38
|
+
// kotlinOptions {
|
|
39
|
-
jvmTarget = '1.8'
|
|
39
|
+
// jvmTarget = '1.8'
|
|
40
|
-
}
|
|
40
|
+
// }
|
|
41
41
|
|
|
42
|
-
sourceSets {
|
|
42
|
+
// sourceSets {
|
|
43
|
-
main.java.srcDirs += 'src/main/kotlin'
|
|
43
|
+
// main.java.srcDirs += 'src/main/kotlin'
|
|
44
|
-
}
|
|
44
|
+
// }
|
|
45
45
|
|
|
46
46
|
defaultConfig {
|
|
47
47
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
48
|
-
applicationId "
|
|
48
|
+
applicationId "sh.pyros.bible_app"
|
|
49
49
|
// You can update the following values to match your application needs.
|
|
50
50
|
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
|
51
51
|
minSdkVersion 30
|
|
52
|
-
targetSdkVersion
|
|
52
|
+
targetSdkVersion 30
|
|
53
53
|
versionCode flutterVersionCode.toInteger()
|
|
54
54
|
versionName flutterVersionName
|
|
55
55
|
}
|
|
@@ -67,6 +67,6 @@ flutter {
|
|
|
67
67
|
source '../..'
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
dependencies {
|
|
70
|
+
//dependencies {
|
|
71
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
71
|
+
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
72
|
-
}
|
|
72
|
+
//}
|
bible_app/android/app/src/main/java/bible_app/MainActivity.java
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
package sh.pyros.bible_app;
|
|
2
|
+
|
|
3
|
+
import io.flutter.embedding.android.FlutterActivity;
|
|
4
|
+
|
|
5
|
+
class MainActivity extends FlutterActivity() {}
|
bible_app/android/app/src/main/kotlin/{com/example → sh/pyros}/bible_app/MainActivity.kt
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
package
|
|
1
|
+
package sh.pyros.bible_app
|
|
2
2
|
|
|
3
3
|
import io.flutter.embedding.android.FlutterActivity
|
|
4
4
|
|
bible_app/{scripts/bibles → assets}/kannada.csv
RENAMED
|
File without changes
|
bible_app/assets/kannada.csv.gz
ADDED
|
Binary file
|
bible_app/integration_test/home_screen_test.dart
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import 'package:flutter_test/flutter_test.dart';
|
|
2
|
+
import 'package:integration_test/integration_test.dart';
|
|
3
|
+
import 'package:only_bible_app/main.dart';
|
|
4
|
+
|
|
5
|
+
void main() {
|
|
6
|
+
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
|
7
|
+
|
|
8
|
+
group('Home screen', () {
|
|
9
|
+
testWidgets('should render', (tester) async {
|
|
10
|
+
await tester.pumpWidget(const App());
|
|
11
|
+
await tester.pumpAndSettle();
|
|
12
|
+
expect(find.text('Genesis 1'), findsOneWidget);
|
|
13
|
+
// // Finds the floating action button to tap on.
|
|
14
|
+
// final Finder fab = find.byTooltip('Increment');
|
|
15
|
+
//
|
|
16
|
+
// // Emulate a tap on the floating action button.
|
|
17
|
+
// await tester.tap(fab);
|
|
18
|
+
//
|
|
19
|
+
// // Trigger a frame.
|
|
20
|
+
// await tester.pumpAndSettle();
|
|
21
|
+
//
|
|
22
|
+
// // Verify the counter increments by 1.
|
|
23
|
+
// expect(find.text('1'), findsOneWidget);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
}
|
bible_app/ios/Podfile.lock
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
PODS:
|
|
2
|
-
- audio_session (0.0.1):
|
|
3
|
-
- Flutter
|
|
4
|
-
- Flutter (1.0.0)
|
|
5
|
-
- just_audio (0.0.1):
|
|
6
|
-
- Flutter
|
|
7
|
-
- path_provider_foundation (0.0.1):
|
|
8
|
-
- Flutter
|
|
9
|
-
- FlutterMacOS
|
|
10
|
-
- shared_preferences_foundation (0.0.1):
|
|
11
|
-
- Flutter
|
|
12
|
-
- FlutterMacOS
|
|
13
|
-
|
|
14
|
-
DEPENDENCIES:
|
|
15
|
-
- audio_session (from `.symlinks/plugins/audio_session/ios`)
|
|
16
|
-
- Flutter (from `Flutter`)
|
|
17
|
-
- just_audio (from `.symlinks/plugins/just_audio/ios`)
|
|
18
|
-
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
|
19
|
-
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
|
|
20
|
-
|
|
21
|
-
EXTERNAL SOURCES:
|
|
22
|
-
audio_session:
|
|
23
|
-
:path: ".symlinks/plugins/audio_session/ios"
|
|
24
|
-
Flutter:
|
|
25
|
-
:path: Flutter
|
|
26
|
-
just_audio:
|
|
27
|
-
:path: ".symlinks/plugins/just_audio/ios"
|
|
28
|
-
path_provider_foundation:
|
|
29
|
-
:path: ".symlinks/plugins/path_provider_foundation/darwin"
|
|
30
|
-
shared_preferences_foundation:
|
|
31
|
-
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
|
|
32
|
-
|
|
33
|
-
SPEC CHECKSUMS:
|
|
34
|
-
audio_session: 4f3e461722055d21515cf3261b64c973c062f345
|
|
35
|
-
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
|
|
36
|
-
just_audio: baa7252489dbcf47a4c7cc9ca663e9661c99aafa
|
|
37
|
-
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
|
|
38
|
-
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
|
|
39
|
-
|
|
40
|
-
PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189
|
|
41
|
-
|
|
42
|
-
COCOAPODS: 1.12.1
|
bible_app/ios/Runner.xcodeproj/project.pbxproj
CHANGED
|
@@ -8,14 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
10
|
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
|
11
|
-
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
|
|
12
11
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
|
13
|
-
6E4333B3FACB278DED8FD1A5 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34FB9FA7930BAF0804F8CB83 /* Pods_RunnerTests.framework */; };
|
|
14
12
|
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
|
15
13
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
|
16
14
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
|
17
15
|
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
|
18
|
-
|
|
16
|
+
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
|
|
19
17
|
/* End PBXBuildFile section */
|
|
20
18
|
|
|
21
19
|
/* Begin PBXContainerItemProxy section */
|
|
@@ -42,18 +40,9 @@
|
|
|
42
40
|
/* End PBXCopyFilesBuildPhase section */
|
|
43
41
|
|
|
44
42
|
/* Begin PBXFileReference section */
|
|
45
|
-
022F95EEFDF00D6898695B8B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
46
43
|
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
|
47
44
|
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
|
48
|
-
2686CFEA06188A328EE12DEB /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
|
|
49
|
-
2AF45E931FA225C5F698DBB4 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
|
|
50
|
-
2B5D234C92602ADEBE1A6C2B /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
|
51
|
-
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
|
|
52
|
-
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
53
|
-
34FB9FA7930BAF0804F8CB83 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
54
|
-
35BC371C13159C7E847E81EB /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
|
|
55
45
|
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
|
56
|
-
578375ED44D14BB6EDD396D8 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
|
|
57
46
|
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
58
47
|
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
|
59
48
|
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
|
@@ -64,7 +53,8 @@
|
|
|
64
53
|
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
|
65
54
|
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
|
66
55
|
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
67
|
-
|
|
56
|
+
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
|
|
57
|
+
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
68
58
|
/* End PBXFileReference section */
|
|
69
59
|
|
|
70
60
|
/* Begin PBXFrameworksBuildPhase section */
|
|
@@ -72,33 +62,21 @@
|
|
|
72
62
|
isa = PBXFrameworksBuildPhase;
|
|
73
63
|
buildActionMask = 2147483647;
|
|
74
64
|
files = (
|
|
75
|
-
BBFA9CEB78EB6441DD2F0C19 /* Pods_Runner.framework in Frameworks */,
|
|
76
|
-
);
|
|
77
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
78
|
-
};
|
|
79
|
-
BD5B7F915EBF12192B0FE0AF /* Frameworks */ = {
|
|
80
|
-
isa = PBXFrameworksBuildPhase;
|
|
81
|
-
buildActionMask = 2147483647;
|
|
82
|
-
files = (
|
|
83
|
-
6E4333B3FACB278DED8FD1A5 /* Pods_RunnerTests.framework in Frameworks */,
|
|
84
65
|
);
|
|
85
66
|
runOnlyForDeploymentPostprocessing = 0;
|
|
86
67
|
};
|
|
87
68
|
/* End PBXFrameworksBuildPhase section */
|
|
88
69
|
|
|
89
70
|
/* Begin PBXGroup section */
|
|
90
|
-
|
|
71
|
+
9740EEB11CF90186004384FC /* Flutter */ = {
|
|
91
72
|
isa = PBXGroup;
|
|
92
73
|
children = (
|
|
74
|
+
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
|
75
|
+
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
|
76
|
+
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
|
93
|
-
|
|
77
|
+
9740EEB31CF90195004384FC /* Generated.xcconfig */,
|
|
94
|
-
DCCA17B770611163D7C891BF /* Pods-Runner.release.xcconfig */,
|
|
95
|
-
2B5D234C92602ADEBE1A6C2B /* Pods-Runner.profile.xcconfig */,
|
|
96
|
-
35BC371C13159C7E847E81EB /* Pods-RunnerTests.debug.xcconfig */,
|
|
97
|
-
2686CFEA06188A328EE12DEB /* Pods-RunnerTests.release.xcconfig */,
|
|
98
|
-
578375ED44D14BB6EDD396D8 /* Pods-RunnerTests.profile.xcconfig */,
|
|
99
78
|
);
|
|
100
|
-
name =
|
|
79
|
+
name = Flutter;
|
|
101
|
-
path = Pods;
|
|
102
80
|
sourceTree = "<group>";
|
|
103
81
|
};
|
|
104
82
|
331C8082294A63A400263BE5 /* RunnerTests */ = {
|
|
@@ -109,26 +87,6 @@
|
|
|
109
87
|
path = RunnerTests;
|
|
110
88
|
sourceTree = "<group>";
|
|
111
89
|
};
|
|
112
|
-
3B065F7939C05126860E96BF /* Frameworks */ = {
|
|
113
|
-
isa = PBXGroup;
|
|
114
|
-
children = (
|
|
115
|
-
022F95EEFDF00D6898695B8B /* Pods_Runner.framework */,
|
|
116
|
-
34FB9FA7930BAF0804F8CB83 /* Pods_RunnerTests.framework */,
|
|
117
|
-
);
|
|
118
|
-
name = Frameworks;
|
|
119
|
-
sourceTree = "<group>";
|
|
120
|
-
};
|
|
121
|
-
9740EEB11CF90186004384FC /* Flutter */ = {
|
|
122
|
-
isa = PBXGroup;
|
|
123
|
-
children = (
|
|
124
|
-
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
|
125
|
-
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
|
126
|
-
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
|
127
|
-
9740EEB31CF90195004384FC /* Generated.xcconfig */,
|
|
128
|
-
);
|
|
129
|
-
name = Flutter;
|
|
130
|
-
sourceTree = "<group>";
|
|
131
|
-
};
|
|
132
90
|
97C146E51CF9000F007C117D = {
|
|
133
91
|
isa = PBXGroup;
|
|
134
92
|
children = (
|
|
@@ -136,8 +94,6 @@
|
|
|
136
94
|
97C146F01CF9000F007C117D /* Runner */,
|
|
137
95
|
97C146EF1CF9000F007C117D /* Products */,
|
|
138
96
|
331C8082294A63A400263BE5 /* RunnerTests */,
|
|
139
|
-
2EA339EF4F543FF40C8C7FC3 /* Pods */,
|
|
140
|
-
3B065F7939C05126860E96BF /* Frameworks */,
|
|
141
97
|
);
|
|
142
98
|
sourceTree = "<group>";
|
|
143
99
|
};
|
|
@@ -172,10 +128,9 @@
|
|
|
172
128
|
isa = PBXNativeTarget;
|
|
173
129
|
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
|
|
174
130
|
buildPhases = (
|
|
175
|
-
B0AF18E813EBD151B2733F58 /* [CP] Check Pods Manifest.lock */,
|
|
176
131
|
331C807D294A63A400263BE5 /* Sources */,
|
|
132
|
+
331C807E294A63A400263BE5 /* Frameworks */,
|
|
177
133
|
331C807F294A63A400263BE5 /* Resources */,
|
|
178
|
-
BD5B7F915EBF12192B0FE0AF /* Frameworks */,
|
|
179
134
|
);
|
|
180
135
|
buildRules = (
|
|
181
136
|
);
|
|
@@ -191,14 +146,12 @@
|
|
|
191
146
|
isa = PBXNativeTarget;
|
|
192
147
|
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
|
|
193
148
|
buildPhases = (
|
|
194
|
-
1F4E0239C54917ACFCF82BCB /* [CP] Check Pods Manifest.lock */,
|
|
195
149
|
9740EEB61CF901F6004384FC /* Run Script */,
|
|
196
150
|
97C146EA1CF9000F007C117D /* Sources */,
|
|
197
151
|
97C146EB1CF9000F007C117D /* Frameworks */,
|
|
198
152
|
97C146EC1CF9000F007C117D /* Resources */,
|
|
199
153
|
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
|
200
154
|
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
|
201
|
-
A50903C917165551138AE0F4 /* [CP] Embed Pods Frameworks */,
|
|
202
155
|
);
|
|
203
156
|
buildRules = (
|
|
204
157
|
);
|
|
@@ -269,28 +222,6 @@
|
|
|
269
222
|
/* End PBXResourcesBuildPhase section */
|
|
270
223
|
|
|
271
224
|
/* Begin PBXShellScriptBuildPhase section */
|
|
272
|
-
1F4E0239C54917ACFCF82BCB /* [CP] Check Pods Manifest.lock */ = {
|
|
273
|
-
isa = PBXShellScriptBuildPhase;
|
|
274
|
-
buildActionMask = 2147483647;
|
|
275
|
-
files = (
|
|
276
|
-
);
|
|
277
|
-
inputFileListPaths = (
|
|
278
|
-
);
|
|
279
|
-
inputPaths = (
|
|
280
|
-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
|
281
|
-
"${PODS_ROOT}/Manifest.lock",
|
|
282
|
-
);
|
|
283
|
-
name = "[CP] Check Pods Manifest.lock";
|
|
284
|
-
outputFileListPaths = (
|
|
285
|
-
);
|
|
286
|
-
outputPaths = (
|
|
287
|
-
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
|
|
288
|
-
);
|
|
289
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
290
|
-
shellPath = /bin/sh;
|
|
291
|
-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
|
292
|
-
showEnvVarsInLog = 0;
|
|
293
|
-
};
|
|
294
225
|
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
|
|
295
226
|
isa = PBXShellScriptBuildPhase;
|
|
296
227
|
alwaysOutOfDate = 1;
|
|
@@ -322,45 +253,6 @@
|
|
|
322
253
|
shellPath = /bin/sh;
|
|
323
254
|
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
|
|
324
255
|
};
|
|
325
|
-
A50903C917165551138AE0F4 /* [CP] Embed Pods Frameworks */ = {
|
|
326
|
-
isa = PBXShellScriptBuildPhase;
|
|
327
|
-
buildActionMask = 2147483647;
|
|
328
|
-
files = (
|
|
329
|
-
);
|
|
330
|
-
inputFileListPaths = (
|
|
331
|
-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
|
332
|
-
);
|
|
333
|
-
name = "[CP] Embed Pods Frameworks";
|
|
334
|
-
outputFileListPaths = (
|
|
335
|
-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
|
336
|
-
);
|
|
337
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
338
|
-
shellPath = /bin/sh;
|
|
339
|
-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
|
340
|
-
showEnvVarsInLog = 0;
|
|
341
|
-
};
|
|
342
|
-
B0AF18E813EBD151B2733F58 /* [CP] Check Pods Manifest.lock */ = {
|
|
343
|
-
isa = PBXShellScriptBuildPhase;
|
|
344
|
-
buildActionMask = 2147483647;
|
|
345
|
-
files = (
|
|
346
|
-
);
|
|
347
|
-
inputFileListPaths = (
|
|
348
|
-
);
|
|
349
|
-
inputPaths = (
|
|
350
|
-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
|
351
|
-
"${PODS_ROOT}/Manifest.lock",
|
|
352
|
-
);
|
|
353
|
-
name = "[CP] Check Pods Manifest.lock";
|
|
354
|
-
outputFileListPaths = (
|
|
355
|
-
);
|
|
356
|
-
outputPaths = (
|
|
357
|
-
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
|
|
358
|
-
);
|
|
359
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
360
|
-
shellPath = /bin/sh;
|
|
361
|
-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
|
362
|
-
showEnvVarsInLog = 0;
|
|
363
|
-
};
|
|
364
256
|
/* End PBXShellScriptBuildPhase section */
|
|
365
257
|
|
|
366
258
|
/* Begin PBXSourcesBuildPhase section */
|
|
@@ -474,7 +366,7 @@
|
|
|
474
366
|
"$(inherited)",
|
|
475
367
|
"@executable_path/Frameworks",
|
|
476
368
|
);
|
|
477
|
-
PRODUCT_BUNDLE_IDENTIFIER =
|
|
369
|
+
PRODUCT_BUNDLE_IDENTIFIER = sh.pyros.bibleApp;
|
|
478
370
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
479
371
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
|
480
372
|
SWIFT_VERSION = 5.0;
|
|
@@ -484,14 +376,14 @@
|
|
|
484
376
|
};
|
|
485
377
|
331C8088294A63A400263BE5 /* Debug */ = {
|
|
486
378
|
isa = XCBuildConfiguration;
|
|
487
|
-
baseConfigurationReference =
|
|
379
|
+
baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */;
|
|
488
380
|
buildSettings = {
|
|
489
381
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
490
382
|
CODE_SIGN_STYLE = Automatic;
|
|
491
383
|
CURRENT_PROJECT_VERSION = 1;
|
|
492
384
|
GENERATE_INFOPLIST_FILE = YES;
|
|
493
385
|
MARKETING_VERSION = 1.0;
|
|
494
|
-
PRODUCT_BUNDLE_IDENTIFIER =
|
|
386
|
+
PRODUCT_BUNDLE_IDENTIFIER = sh.pyros.bibleApp.RunnerTests;
|
|
495
387
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
496
388
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
|
497
389
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
@@ -502,14 +394,14 @@
|
|
|
502
394
|
};
|
|
503
395
|
331C8089294A63A400263BE5 /* Release */ = {
|
|
504
396
|
isa = XCBuildConfiguration;
|
|
505
|
-
baseConfigurationReference =
|
|
397
|
+
baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */;
|
|
506
398
|
buildSettings = {
|
|
507
399
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
508
400
|
CODE_SIGN_STYLE = Automatic;
|
|
509
401
|
CURRENT_PROJECT_VERSION = 1;
|
|
510
402
|
GENERATE_INFOPLIST_FILE = YES;
|
|
511
403
|
MARKETING_VERSION = 1.0;
|
|
512
|
-
PRODUCT_BUNDLE_IDENTIFIER =
|
|
404
|
+
PRODUCT_BUNDLE_IDENTIFIER = sh.pyros.bibleApp.RunnerTests;
|
|
513
405
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
514
406
|
SWIFT_VERSION = 5.0;
|
|
515
407
|
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
|
@@ -518,14 +410,14 @@
|
|
|
518
410
|
};
|
|
519
411
|
331C808A294A63A400263BE5 /* Profile */ = {
|
|
520
412
|
isa = XCBuildConfiguration;
|
|
521
|
-
baseConfigurationReference =
|
|
413
|
+
baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */;
|
|
522
414
|
buildSettings = {
|
|
523
415
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
524
416
|
CODE_SIGN_STYLE = Automatic;
|
|
525
417
|
CURRENT_PROJECT_VERSION = 1;
|
|
526
418
|
GENERATE_INFOPLIST_FILE = YES;
|
|
527
419
|
MARKETING_VERSION = 1.0;
|
|
528
|
-
PRODUCT_BUNDLE_IDENTIFIER =
|
|
420
|
+
PRODUCT_BUNDLE_IDENTIFIER = sh.pyros.bibleApp.RunnerTests;
|
|
529
421
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
530
422
|
SWIFT_VERSION = 5.0;
|
|
531
423
|
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
|
@@ -652,7 +544,7 @@
|
|
|
652
544
|
"$(inherited)",
|
|
653
545
|
"@executable_path/Frameworks",
|
|
654
546
|
);
|
|
655
|
-
PRODUCT_BUNDLE_IDENTIFIER =
|
|
547
|
+
PRODUCT_BUNDLE_IDENTIFIER = sh.pyros.bibleApp;
|
|
656
548
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
657
549
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
|
658
550
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
@@ -674,7 +566,7 @@
|
|
|
674
566
|
"$(inherited)",
|
|
675
567
|
"@executable_path/Frameworks",
|
|
676
568
|
);
|
|
677
|
-
PRODUCT_BUNDLE_IDENTIFIER =
|
|
569
|
+
PRODUCT_BUNDLE_IDENTIFIER = sh.pyros.bibleApp;
|
|
678
570
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
679
571
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
|
680
572
|
SWIFT_VERSION = 5.0;
|
bible_app/ios/Runner.xcworkspace/contents.xcworkspacedata
CHANGED
|
@@ -4,7 +4,4 @@
|
|
|
4
4
|
<FileRef
|
|
5
5
|
location = "group:Runner.xcodeproj">
|
|
6
6
|
</FileRef>
|
|
7
|
-
<FileRef
|
|
8
|
-
location = "group:Pods/Pods.xcodeproj">
|
|
9
|
-
</FileRef>
|
|
10
7
|
</Workspace>
|
bible_app/lib/components/book_selector.dart
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "package:flutter/material.dart";
|
|
2
2
|
import "package:flutter_reactive_value/flutter_reactive_value.dart";
|
|
3
|
-
import '../
|
|
3
|
+
import '../domain/book.dart';
|
|
4
4
|
import '../state.dart';
|
|
5
5
|
import 'books_list.dart';
|
|
6
6
|
import 'chapters_list.dart';
|
bible_app/lib/components/books_list.dart
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "package:flutter/material.dart";
|
|
2
|
-
import "package:kannada_bible_app/components/book_selector.dart";
|
|
3
|
-
import "
|
|
2
|
+
import "../utils/string.dart";
|
|
4
3
|
import "../state.dart";
|
|
5
|
-
import "
|
|
4
|
+
import "tile.dart";
|
|
6
5
|
|
|
7
6
|
class BooksList extends StatelessWidget {
|
|
8
7
|
final String title;
|
bible_app/lib/components/chapters_list.dart
CHANGED
|
@@ -3,9 +3,8 @@ import 'package:flutter/scheduler.dart';
|
|
|
3
3
|
import 'package:flutter_reactive_value/flutter_reactive_value.dart';
|
|
4
4
|
import 'package:go_router/go_router.dart';
|
|
5
5
|
import '../domain/kannada_gen.dart';
|
|
6
|
-
import '../routes/index.dart';
|
|
7
6
|
import '../state.dart';
|
|
8
|
-
import '
|
|
7
|
+
import 'tile.dart';
|
|
9
8
|
|
|
10
9
|
class ChaptersList extends StatelessWidget {
|
|
11
10
|
const ChaptersList({super.key});
|
|
@@ -25,7 +24,7 @@ class ChaptersList extends StatelessWidget {
|
|
|
25
24
|
return InkWell(
|
|
26
25
|
borderRadius: const BorderRadius.all(Radius.circular(30)),
|
|
27
26
|
onTap: () {
|
|
28
|
-
|
|
27
|
+
context.push("/${book.name}/$index");
|
|
29
28
|
saveState(bookIndex, index);
|
|
30
29
|
context.pop();
|
|
31
30
|
SchedulerBinding.instance.addPostFrameCallback((_) {
|
bible_app/lib/components/header.dart
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import "dart:math";
|
|
2
2
|
import "package:flutter/material.dart";
|
|
3
|
-
import "
|
|
3
|
+
import "./play_button.dart";
|
|
4
|
-
import "package:kannada_bible_app/components/play_button.dart";
|
|
5
|
-
import "
|
|
4
|
+
import "./slide_page.dart";
|
|
6
|
-
import "package:kannada_bible_app/domain/book.dart";
|
|
7
|
-
import "../
|
|
5
|
+
import "../domain/book.dart";
|
|
8
6
|
import "../state.dart";
|
|
9
|
-
import "../utils/dialog.dart";
|
|
10
7
|
|
|
11
8
|
class Header extends StatelessWidget {
|
|
12
9
|
final int book;
|
|
13
10
|
final int chapter;
|
|
14
|
-
final player = AudioPlayer();
|
|
15
11
|
|
|
16
|
-
Header({super.key, required this.book, required this.chapter})
|
|
12
|
+
const Header({super.key, required this.book, required this.chapter});
|
|
17
|
-
player.setUrl("https://github.com/pyrossh/bible-app/raw/master/public/audio/output.mp3");
|
|
18
|
-
// player.setUrl("asset:output.mp3");
|
|
19
|
-
}
|
|
20
13
|
|
|
21
14
|
@override
|
|
22
15
|
Widget build(BuildContext context) {
|
|
23
16
|
return Container(
|
|
17
|
+
padding: EdgeInsets.symmetric(
|
|
24
|
-
|
|
18
|
+
// horizontal: isDesktop() ? 40 : 20,
|
|
25
|
-
|
|
19
|
+
vertical: isDesktop() ? 15 : 0
|
|
20
|
+
),
|
|
26
21
|
decoration: const BoxDecoration(
|
|
27
22
|
border: Border(bottom: BorderSide(width: 1.5)),
|
|
28
23
|
),
|
bible_app/lib/components/play_button.dart
CHANGED
|
@@ -8,12 +8,8 @@ import "../utils/dialog.dart";
|
|
|
8
8
|
class PlayButton extends StatelessWidget {
|
|
9
9
|
final int book;
|
|
10
10
|
final int chapter;
|
|
11
|
-
final player = AudioPlayer();
|
|
12
11
|
|
|
13
|
-
PlayButton({super.key, required this.book, required this.chapter})
|
|
12
|
+
const PlayButton({super.key, required this.book, required this.chapter});
|
|
14
|
-
player.setUrl("https://github.com/pyrossh/bible-app/raw/master/public/audio/output.mp3");
|
|
15
|
-
// player.setUrl("asset:output.mp3");
|
|
16
|
-
}
|
|
17
13
|
|
|
18
14
|
@override
|
|
19
15
|
Widget build(BuildContext context) {
|
|
@@ -21,6 +17,9 @@ class PlayButton extends StatelessWidget {
|
|
|
21
17
|
return IconButton(
|
|
22
18
|
icon: Icon(icon, size: 36),
|
|
23
19
|
onPressed: () async {
|
|
20
|
+
final player = AudioPlayer();
|
|
21
|
+
player.setUrl("https://github.com/pyrossh/bible-app/raw/master/public/audio/output.mp3");
|
|
22
|
+
// player.setUrl("asset:output.mp3");
|
|
24
23
|
if (isPlaying.value) {
|
|
25
24
|
await player.pause();
|
|
26
25
|
onPause();
|
bible_app/lib/components/slide_page.dart
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "package:flutter/material.dart";
|
|
2
|
-
import "
|
|
2
|
+
import "./book_selector.dart";
|
|
3
3
|
|
|
4
4
|
import "../state.dart";
|
|
5
5
|
|
bible_app/lib/components/{title.dart → tile.dart}
RENAMED
|
File without changes
|
bible_app/lib/main.dart
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "package:flutter/material.dart";
|
|
2
2
|
import 'package:flutter/services.dart';
|
|
3
3
|
import 'package:go_router/go_router.dart';
|
|
4
|
-
import '
|
|
4
|
+
import 'domain/book.dart';
|
|
5
|
-
import '
|
|
5
|
+
import 'state.dart';
|
|
6
6
|
import 'routes/index.dart';
|
|
7
|
-
import 'routes/select.dart';
|
|
8
7
|
import "components/sidebar.dart";
|
|
9
8
|
|
|
10
9
|
var loadedState = (0, 0);
|
|
@@ -20,24 +19,20 @@ final _shellNavigatorKey = GlobalKey<NavigatorState>();
|
|
|
20
19
|
final _router = GoRouter(
|
|
21
20
|
navigatorKey: _rootNavigatorKey,
|
|
22
21
|
initialLocation: "/${allBooks[loadedState.$1]}/${loadedState.$2}",
|
|
22
|
+
debugLogDiagnostics: true,
|
|
23
23
|
routes: [
|
|
24
24
|
ShellRoute(
|
|
25
25
|
navigatorKey: _shellNavigatorKey,
|
|
26
|
-
routes: [
|
|
27
|
-
$homeScreenRoute,
|
|
28
|
-
$selectScreenRoute,
|
|
29
|
-
],
|
|
30
26
|
builder: (context, state, child) {
|
|
31
27
|
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
|
32
28
|
systemNavigationBarColor: Colors.white,
|
|
33
|
-
statusBarColor: Colors.white,
|
|
34
29
|
systemNavigationBarIconBrightness: Brightness.dark,
|
|
30
|
+
statusBarColor: Colors.white,
|
|
35
|
-
statusBarIconBrightness: Brightness.
|
|
31
|
+
statusBarIconBrightness: Brightness.dark,
|
|
36
32
|
));
|
|
37
33
|
return Scaffold(
|
|
38
34
|
backgroundColor: Colors.white,
|
|
39
35
|
body: SafeArea(
|
|
40
|
-
// minimum: EdgeInsets.all(16),
|
|
41
36
|
child: Row(
|
|
42
37
|
children: [
|
|
43
38
|
isDesktop() ? const Sidebar() : Container(),
|
|
@@ -49,6 +44,15 @@ final _router = GoRouter(
|
|
|
49
44
|
),
|
|
50
45
|
);
|
|
51
46
|
},
|
|
47
|
+
routes: [
|
|
48
|
+
GoRouteData.$route(
|
|
49
|
+
path: '/:book/:chapter',
|
|
50
|
+
factory: (GoRouterState state) => HomeScreenRoute(
|
|
51
|
+
book: state.pathParameters['book']!,
|
|
52
|
+
chapter: int.parse(state.pathParameters['chapter']!),
|
|
53
|
+
),
|
|
54
|
+
),
|
|
55
|
+
],
|
|
52
56
|
),
|
|
53
57
|
],
|
|
54
58
|
);
|
|
@@ -73,6 +77,7 @@ class App extends StatelessWidget {
|
|
|
73
77
|
@override
|
|
74
78
|
Widget build(BuildContext context) {
|
|
75
79
|
return MaterialApp.router(
|
|
80
|
+
debugShowCheckedModeBanner: false,
|
|
76
81
|
routerConfig: _router,
|
|
77
82
|
theme: ThemeData(
|
|
78
83
|
brightness: Brightness.light,
|
bible_app/lib/routes/index.dart
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import "package:flutter/material.dart";
|
|
2
2
|
import 'package:go_router/go_router.dart';
|
|
3
|
-
import '
|
|
3
|
+
import '../domain/book.dart';
|
|
4
4
|
import '../components/header.dart';
|
|
5
5
|
import '../domain/kannada_gen.dart';
|
|
6
6
|
import '../components/verse_view.dart';
|
|
7
7
|
import '../state.dart';
|
|
8
|
-
import '../utils/
|
|
8
|
+
import '../utils/assets.dart';
|
|
9
9
|
|
|
10
|
-
part 'index.g.dart';
|
|
11
|
-
|
|
12
|
-
@TypedGoRoute<HomeScreenRoute>(
|
|
13
|
-
path: "/:book/:chapter",
|
|
14
|
-
)
|
|
15
|
-
@immutable
|
|
16
10
|
class HomeScreenRoute extends GoRouteData {
|
|
17
11
|
final String book;
|
|
18
12
|
final int chapter;
|
|
@@ -25,29 +19,57 @@ class HomeScreenRoute extends GoRouteData {
|
|
|
25
19
|
Page buildPage(BuildContext context, GoRouterState state) {
|
|
26
20
|
final selectedBook = kannadaBible.firstWhere((it) => book == it.name);
|
|
27
21
|
final verses = selectedBook.chapters[chapter].verses;
|
|
22
|
+
print("Build");
|
|
23
|
+
Stopwatch stopwatch = Stopwatch()..start();
|
|
28
24
|
|
|
29
25
|
return NoTransitionPage(
|
|
26
|
+
child: Container(
|
|
27
|
+
margin: EdgeInsets.symmetric(
|
|
28
|
+
horizontal: isDesktop() ? 40 : 20,
|
|
29
|
+
),
|
|
30
|
-
|
|
30
|
+
child: Column(
|
|
31
|
-
|
|
31
|
+
children: [
|
|
32
|
-
|
|
32
|
+
Header(book: allBooks.indexWhere((it) => it == book), chapter: chapter),
|
|
33
|
-
|
|
33
|
+
FutureBuilder(
|
|
34
|
-
child: ListView.builder(
|
|
35
|
-
padding: EdgeInsets.symmetric(
|
|
36
|
-
vertical: 20,
|
|
37
|
-
|
|
34
|
+
future: Utils.loadGzAsset(context, "kannada.csv.gz"),
|
|
38
|
-
),
|
|
39
|
-
|
|
35
|
+
// future: Utils.loadAsset(context, "kannada.csv"),
|
|
40
|
-
|
|
36
|
+
builder: (context, snapshot) {
|
|
41
|
-
|
|
37
|
+
if (snapshot.hasData) {
|
|
42
|
-
|
|
38
|
+
stopwatch.stop();
|
|
43
|
-
|
|
39
|
+
print('time elapsed ${stopwatch.elapsed}');
|
|
40
|
+
return Text("Loaded");
|
|
41
|
+
}
|
|
42
|
+
if (snapshot.hasError) {
|
|
43
|
+
return Text("Error");
|
|
44
|
+
}
|
|
44
|
-
|
|
45
|
+
return Text("Loading....");
|
|
45
|
-
);
|
|
46
46
|
},
|
|
47
47
|
),
|
|
48
|
+
Flexible(
|
|
49
|
+
child: ListView.builder(
|
|
50
|
+
padding: const EdgeInsets.symmetric(
|
|
51
|
+
// horizontal: 20,
|
|
52
|
+
vertical: 20,
|
|
48
|
-
|
|
53
|
+
),
|
|
54
|
+
itemCount: verses.length,
|
|
55
|
+
itemBuilder: (BuildContext context, int index) {
|
|
56
|
+
final v = verses[index];
|
|
57
|
+
return Container(
|
|
58
|
+
margin: const EdgeInsets.symmetric(vertical: 6),
|
|
59
|
+
child: VerseText(index: index, text: v.text),
|
|
60
|
+
);
|
|
61
|
+
},
|
|
62
|
+
),
|
|
63
|
+
),
|
|
64
|
+
// Container(
|
|
65
|
+
// margin: const EdgeInsets.only(top: 5),
|
|
66
|
+
// decoration: const BoxDecoration(
|
|
67
|
+
// border: Border(bottom: BorderSide(width: 1.5)),
|
|
68
|
+
// ),
|
|
69
|
+
// ),
|
|
49
|
-
|
|
70
|
+
],
|
|
71
|
+
),
|
|
50
72
|
),
|
|
51
73
|
);
|
|
52
74
|
}
|
|
53
|
-
}
|
|
75
|
+
}
|
bible_app/lib/routes/index.g.dart
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
2
|
-
|
|
3
|
-
part of 'index.dart';
|
|
4
|
-
|
|
5
|
-
// **************************************************************************
|
|
6
|
-
// GoRouterGenerator
|
|
7
|
-
// **************************************************************************
|
|
8
|
-
|
|
9
|
-
List<RouteBase> get $appRoutes => [
|
|
10
|
-
$homeScreenRoute,
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
RouteBase get $homeScreenRoute => GoRouteData.$route(
|
|
14
|
-
path: '/:book/:chapter',
|
|
15
|
-
factory: $HomeScreenRouteExtension._fromState,
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
extension $HomeScreenRouteExtension on HomeScreenRoute {
|
|
19
|
-
static HomeScreenRoute _fromState(GoRouterState state) => HomeScreenRoute(
|
|
20
|
-
book: state.pathParameters['book']!,
|
|
21
|
-
chapter: int.parse(state.pathParameters['chapter']!),
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
String get location => GoRouteData.$location(
|
|
25
|
-
'/${Uri.encodeComponent(book)}/${Uri.encodeComponent(chapter.toString())}',
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
void go(BuildContext context) => context.go(location);
|
|
29
|
-
|
|
30
|
-
Future<T?> push<T>(BuildContext context) => context.push<T>(location);
|
|
31
|
-
|
|
32
|
-
void pushReplacement(BuildContext context) =>
|
|
33
|
-
context.pushReplacement(location);
|
|
34
|
-
|
|
35
|
-
void replace(BuildContext context) => context.replace(location);
|
|
36
|
-
}
|
bible_app/lib/routes/select.dart
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import 'dart:io' show Platform;
|
|
2
1
|
import "package:flutter/material.dart";
|
|
3
2
|
import 'package:go_router/go_router.dart';
|
|
4
3
|
import '../components/books_list.dart';
|
|
5
4
|
import '../components/chapters_list.dart';
|
|
6
5
|
import '../domain/book.dart';
|
|
7
6
|
import '../state.dart';
|
|
8
|
-
import '../utils/dialog.dart';
|
|
9
7
|
|
|
10
|
-
part 'select.g.dart';
|
|
11
|
-
|
|
12
|
-
@TypedGoRoute<SelectScreenRoute>(
|
|
13
|
-
path: "/select",
|
|
14
|
-
)
|
|
15
|
-
@immutable
|
|
16
8
|
class SelectScreenRoute extends GoRouteData {
|
|
17
9
|
@override
|
|
18
10
|
Page buildPage(BuildContext context, GoRouterState state) {
|
bible_app/lib/routes/select.g.dart
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
2
|
-
|
|
3
|
-
part of 'select.dart';
|
|
4
|
-
|
|
5
|
-
// **************************************************************************
|
|
6
|
-
// GoRouterGenerator
|
|
7
|
-
// **************************************************************************
|
|
8
|
-
|
|
9
|
-
List<RouteBase> get $appRoutes => [
|
|
10
|
-
$selectScreenRoute,
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
RouteBase get $selectScreenRoute => GoRouteData.$route(
|
|
14
|
-
path: '/select',
|
|
15
|
-
factory: $SelectScreenRouteExtension._fromState,
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
extension $SelectScreenRouteExtension on SelectScreenRoute {
|
|
19
|
-
static SelectScreenRoute _fromState(GoRouterState state) =>
|
|
20
|
-
SelectScreenRoute();
|
|
21
|
-
|
|
22
|
-
String get location => GoRouteData.$location(
|
|
23
|
-
'/select',
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
void go(BuildContext context) => context.go(location);
|
|
27
|
-
|
|
28
|
-
Future<T?> push<T>(BuildContext context) => context.push<T>(location);
|
|
29
|
-
|
|
30
|
-
void pushReplacement(BuildContext context) =>
|
|
31
|
-
context.pushReplacement(location);
|
|
32
|
-
|
|
33
|
-
void replace(BuildContext context) => context.replace(location);
|
|
34
|
-
}
|
bible_app/lib/state.dart
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import 'dart:io' show Platform;
|
|
2
|
+
import 'package:flutter/widgets.dart';
|
|
2
3
|
import 'package:flutter/material.dart';
|
|
3
4
|
import 'package:flutter/scheduler.dart';
|
|
4
5
|
import 'package:flutter_reactive_value/flutter_reactive_value.dart';
|
|
5
|
-
import 'package:kannada_bible_app/utils/dialog.dart';
|
|
6
6
|
import 'package:shared_preferences/shared_preferences.dart';
|
|
7
|
-
|
|
7
|
+
import 'utils/dialog.dart';
|
|
8
8
|
import 'components/book_selector.dart';
|
|
9
9
|
|
|
10
|
+
Future<void> saveState(int bookIndex, int chapterIndex) async {
|
|
11
|
+
final prefs = await SharedPreferences.getInstance();
|
|
12
|
+
await prefs.setInt("bookIndex", bookIndex);
|
|
13
|
+
await prefs.setInt("chapterIndex", chapterIndex);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
Future<(int, int)> loadState() async {
|
|
17
|
+
final prefs = await SharedPreferences.getInstance();
|
|
18
|
+
final bookIndex = prefs.getInt("bookIndex") ?? 0;
|
|
19
|
+
final chapterIndex = prefs.getInt("chapterIndex") ?? 0;
|
|
20
|
+
return (bookIndex, chapterIndex);
|
|
21
|
+
}
|
|
22
|
+
|
|
10
23
|
final selectedVerses = ValueNotifier([]);
|
|
11
24
|
final isPlaying = ValueNotifier(false);
|
|
12
25
|
|
|
@@ -38,23 +51,17 @@ onTabBookChange(int i) {
|
|
|
38
51
|
tabIndex.value = 1;
|
|
39
52
|
}
|
|
40
53
|
|
|
41
|
-
Future<void> saveState(int bookIndex, int chapterIndex) async {
|
|
42
|
-
final prefs = await SharedPreferences.getInstance();
|
|
43
|
-
await prefs.setInt("bookIndex", bookIndex);
|
|
44
|
-
await prefs.setInt("chapterIndex", chapterIndex);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
Future<(int, int)> loadState() async {
|
|
48
|
-
final prefs = await SharedPreferences.getInstance();
|
|
49
|
-
final bookIndex = prefs.getInt("bookIndex") ?? 0;
|
|
50
|
-
final chapterIndex = prefs.getInt("chapterIndex") ?? 0;
|
|
51
|
-
return (bookIndex, chapterIndex);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
54
|
bool isDesktop() {
|
|
55
55
|
return Platform.isMacOS || Platform.isLinux || Platform.isWindows;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
bool isDesktopMode(BuildContext context) {
|
|
59
|
+
if (Platform.isMacOS || Platform.isLinux || Platform.isWindows) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
final width = MediaQuery.of(context).size.width;
|
|
63
|
+
return width > 550;
|
|
64
|
+
}
|
|
58
65
|
|
|
59
66
|
showBookMenu(BuildContext context) {
|
|
60
67
|
tabBookIndex.value = 0;
|
bible_app/lib/utils/assets.dart
CHANGED
|
@@ -4,9 +4,13 @@ import "package:flutter/material.dart";
|
|
|
4
4
|
import "package:path_provider/path_provider.dart";
|
|
5
5
|
|
|
6
6
|
class Utils {
|
|
7
|
+
static Future<String> loadGzAsset(BuildContext context, String file) async {
|
|
8
|
+
final bytes = await DefaultAssetBundle.of(context).load("assets/$file");
|
|
9
|
+
return utf8.decode(GZipCodec().decode(bytes.buffer.asUint8List()));
|
|
10
|
+
}
|
|
11
|
+
|
|
7
|
-
static Future<String> loadAsset(BuildContext context) async {
|
|
12
|
+
static Future<String> loadAsset(BuildContext context, String file) async {
|
|
8
|
-
return await DefaultAssetBundle.of(context)
|
|
9
|
-
|
|
13
|
+
return DefaultAssetBundle.of(context).loadString("assets/$file");
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
Future<String> get _localPath async {
|
bible_app/linux/CMakeLists.txt
CHANGED
|
@@ -7,7 +7,7 @@ project(runner LANGUAGES CXX)
|
|
|
7
7
|
set(BINARY_NAME "bible_app")
|
|
8
8
|
# The unique GTK application identifier for this application. See:
|
|
9
9
|
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
|
|
10
|
-
set(APPLICATION_ID "
|
|
10
|
+
set(APPLICATION_ID "sh.pyros.bible_app")
|
|
11
11
|
|
|
12
12
|
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
|
|
13
13
|
# versions of CMake.
|
bible_app/macos/Runner/Configs/AppInfo.xcconfig
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
// 'flutter create' template.
|
|
6
6
|
|
|
7
7
|
// The application's name. By default this is also the title of the Flutter window.
|
|
8
|
-
PRODUCT_NAME =
|
|
8
|
+
PRODUCT_NAME = Only Bible App
|
|
9
9
|
|
|
10
10
|
// The application's bundle identifier
|
|
11
|
-
PRODUCT_BUNDLE_IDENTIFIER =
|
|
11
|
+
PRODUCT_BUNDLE_IDENTIFIER = sh.pyros.bible_app
|
|
12
12
|
|
|
13
13
|
// The copyright displayed in application information
|
|
14
|
-
PRODUCT_COPYRIGHT = Copyright © 2023
|
|
14
|
+
PRODUCT_COPYRIGHT = Copyright © 2023 pyrossh. All rights reserved.
|
bible_app/macos/Runner/Info.plist
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
14
|
<string>6.0</string>
|
|
15
15
|
<key>CFBundleName</key>
|
|
16
|
-
<string>
|
|
16
|
+
<string>$(PRODUCT_NAME)</string>
|
|
17
17
|
<key>CFBundlePackageType</key>
|
|
18
18
|
<string>APPL</string>
|
|
19
19
|
<key>CFBundleShortVersionString</key>
|
bible_app/pubspec.lock
CHANGED
|
@@ -1,30 +1,6 @@
|
|
|
1
1
|
# Generated by pub
|
|
2
2
|
# See https://dart.dev/tools/pub/glossary#lockfile
|
|
3
3
|
packages:
|
|
4
|
-
_fe_analyzer_shared:
|
|
5
|
-
dependency: transitive
|
|
6
|
-
description:
|
|
7
|
-
name: _fe_analyzer_shared
|
|
8
|
-
sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a
|
|
9
|
-
url: "https://pub.dev"
|
|
10
|
-
source: hosted
|
|
11
|
-
version: "61.0.0"
|
|
12
|
-
analyzer:
|
|
13
|
-
dependency: transitive
|
|
14
|
-
description:
|
|
15
|
-
name: analyzer
|
|
16
|
-
sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562
|
|
17
|
-
url: "https://pub.dev"
|
|
18
|
-
source: hosted
|
|
19
|
-
version: "5.13.0"
|
|
20
|
-
args:
|
|
21
|
-
dependency: transitive
|
|
22
|
-
description:
|
|
23
|
-
name: args
|
|
24
|
-
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
|
|
25
|
-
url: "https://pub.dev"
|
|
26
|
-
source: hosted
|
|
27
|
-
version: "2.4.2"
|
|
28
4
|
async:
|
|
29
5
|
dependency: transitive
|
|
30
6
|
description:
|
|
@@ -49,78 +25,6 @@ packages:
|
|
|
49
25
|
url: "https://pub.dev"
|
|
50
26
|
source: hosted
|
|
51
27
|
version: "2.1.1"
|
|
52
|
-
build:
|
|
53
|
-
dependency: transitive
|
|
54
|
-
description:
|
|
55
|
-
name: build
|
|
56
|
-
sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0"
|
|
57
|
-
url: "https://pub.dev"
|
|
58
|
-
source: hosted
|
|
59
|
-
version: "2.4.1"
|
|
60
|
-
build_config:
|
|
61
|
-
dependency: transitive
|
|
62
|
-
description:
|
|
63
|
-
name: build_config
|
|
64
|
-
sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1
|
|
65
|
-
url: "https://pub.dev"
|
|
66
|
-
source: hosted
|
|
67
|
-
version: "1.1.1"
|
|
68
|
-
build_daemon:
|
|
69
|
-
dependency: transitive
|
|
70
|
-
description:
|
|
71
|
-
name: build_daemon
|
|
72
|
-
sha256: "5f02d73eb2ba16483e693f80bee4f088563a820e47d1027d4cdfe62b5bb43e65"
|
|
73
|
-
url: "https://pub.dev"
|
|
74
|
-
source: hosted
|
|
75
|
-
version: "4.0.0"
|
|
76
|
-
build_resolvers:
|
|
77
|
-
dependency: transitive
|
|
78
|
-
description:
|
|
79
|
-
name: build_resolvers
|
|
80
|
-
sha256: "6c4dd11d05d056e76320b828a1db0fc01ccd376922526f8e9d6c796a5adbac20"
|
|
81
|
-
url: "https://pub.dev"
|
|
82
|
-
source: hosted
|
|
83
|
-
version: "2.2.1"
|
|
84
|
-
build_runner:
|
|
85
|
-
dependency: "direct dev"
|
|
86
|
-
description:
|
|
87
|
-
name: build_runner
|
|
88
|
-
sha256: "10c6bcdbf9d049a0b666702cf1cee4ddfdc38f02a19d35ae392863b47519848b"
|
|
89
|
-
url: "https://pub.dev"
|
|
90
|
-
source: hosted
|
|
91
|
-
version: "2.4.6"
|
|
92
|
-
build_runner_core:
|
|
93
|
-
dependency: transitive
|
|
94
|
-
description:
|
|
95
|
-
name: build_runner_core
|
|
96
|
-
sha256: "6d6ee4276b1c5f34f21fdf39425202712d2be82019983d52f351c94aafbc2c41"
|
|
97
|
-
url: "https://pub.dev"
|
|
98
|
-
source: hosted
|
|
99
|
-
version: "7.2.10"
|
|
100
|
-
build_verify:
|
|
101
|
-
dependency: "direct dev"
|
|
102
|
-
description:
|
|
103
|
-
name: build_verify
|
|
104
|
-
sha256: abbb9b9eda076854ac1678d284c053a5ec608e64da741d0801f56d4bbea27e23
|
|
105
|
-
url: "https://pub.dev"
|
|
106
|
-
source: hosted
|
|
107
|
-
version: "3.1.0"
|
|
108
|
-
built_collection:
|
|
109
|
-
dependency: transitive
|
|
110
|
-
description:
|
|
111
|
-
name: built_collection
|
|
112
|
-
sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100"
|
|
113
|
-
url: "https://pub.dev"
|
|
114
|
-
source: hosted
|
|
115
|
-
version: "5.1.1"
|
|
116
|
-
built_value:
|
|
117
|
-
dependency: transitive
|
|
118
|
-
description:
|
|
119
|
-
name: built_value
|
|
120
|
-
sha256: "598a2a682e2a7a90f08ba39c0aaa9374c5112340f0a2e275f61b59389543d166"
|
|
121
|
-
url: "https://pub.dev"
|
|
122
|
-
source: hosted
|
|
123
|
-
version: "8.6.1"
|
|
124
28
|
characters:
|
|
125
29
|
dependency: transitive
|
|
126
30
|
description:
|
|
@@ -129,14 +33,6 @@ packages:
|
|
|
129
33
|
url: "https://pub.dev"
|
|
130
34
|
source: hosted
|
|
131
35
|
version: "1.3.0"
|
|
132
|
-
checked_yaml:
|
|
133
|
-
dependency: transitive
|
|
134
|
-
description:
|
|
135
|
-
name: checked_yaml
|
|
136
|
-
sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
|
|
137
|
-
url: "https://pub.dev"
|
|
138
|
-
source: hosted
|
|
139
|
-
version: "2.0.3"
|
|
140
36
|
clock:
|
|
141
37
|
dependency: transitive
|
|
142
38
|
description:
|
|
@@ -145,14 +41,6 @@ packages:
|
|
|
145
41
|
url: "https://pub.dev"
|
|
146
42
|
source: hosted
|
|
147
43
|
version: "1.1.1"
|
|
148
|
-
code_builder:
|
|
149
|
-
dependency: transitive
|
|
150
|
-
description:
|
|
151
|
-
name: code_builder
|
|
152
|
-
sha256: "4ad01d6e56db961d29661561effde45e519939fdaeb46c351275b182eac70189"
|
|
153
|
-
url: "https://pub.dev"
|
|
154
|
-
source: hosted
|
|
155
|
-
version: "4.5.0"
|
|
156
44
|
collection:
|
|
157
45
|
dependency: transitive
|
|
158
46
|
description:
|
|
@@ -161,22 +49,6 @@ packages:
|
|
|
161
49
|
url: "https://pub.dev"
|
|
162
50
|
source: hosted
|
|
163
51
|
version: "1.17.1"
|
|
164
|
-
convert:
|
|
165
|
-
dependency: transitive
|
|
166
|
-
description:
|
|
167
|
-
name: convert
|
|
168
|
-
sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
|
|
169
|
-
url: "https://pub.dev"
|
|
170
|
-
source: hosted
|
|
171
|
-
version: "3.1.1"
|
|
172
|
-
coverage:
|
|
173
|
-
dependency: transitive
|
|
174
|
-
description:
|
|
175
|
-
name: coverage
|
|
176
|
-
sha256: "2fb815080e44a09b85e0f2ca8a820b15053982b2e714b59267719e8a9ff17097"
|
|
177
|
-
url: "https://pub.dev"
|
|
178
|
-
source: hosted
|
|
179
|
-
version: "1.6.3"
|
|
180
52
|
crypto:
|
|
181
53
|
dependency: transitive
|
|
182
54
|
description:
|
|
@@ -185,14 +57,6 @@ packages:
|
|
|
185
57
|
url: "https://pub.dev"
|
|
186
58
|
source: hosted
|
|
187
59
|
version: "3.0.3"
|
|
188
|
-
dart_style:
|
|
189
|
-
dependency: transitive
|
|
190
|
-
description:
|
|
191
|
-
name: dart_style
|
|
192
|
-
sha256: "1efa911ca7086affd35f463ca2fc1799584fb6aa89883cf0af8e3664d6a02d55"
|
|
193
|
-
url: "https://pub.dev"
|
|
194
|
-
source: hosted
|
|
195
|
-
version: "2.3.2"
|
|
196
60
|
fake_async:
|
|
197
61
|
dependency: transitive
|
|
198
62
|
description:
|
|
@@ -217,19 +81,16 @@ packages:
|
|
|
217
81
|
url: "https://pub.dev"
|
|
218
82
|
source: hosted
|
|
219
83
|
version: "6.1.4"
|
|
220
|
-
fixnum:
|
|
221
|
-
dependency: transitive
|
|
222
|
-
description:
|
|
223
|
-
name: fixnum
|
|
224
|
-
sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
|
|
225
|
-
url: "https://pub.dev"
|
|
226
|
-
source: hosted
|
|
227
|
-
version: "1.1.0"
|
|
228
84
|
flutter:
|
|
229
85
|
dependency: "direct main"
|
|
230
86
|
description: flutter
|
|
231
87
|
source: sdk
|
|
232
88
|
version: "0.0.0"
|
|
89
|
+
flutter_driver:
|
|
90
|
+
dependency: transitive
|
|
91
|
+
description: flutter
|
|
92
|
+
source: sdk
|
|
93
|
+
version: "0.0.0"
|
|
233
94
|
flutter_lints:
|
|
234
95
|
dependency: "direct dev"
|
|
235
96
|
description:
|
|
@@ -256,22 +117,11 @@ packages:
|
|
|
256
117
|
description: flutter
|
|
257
118
|
source: sdk
|
|
258
119
|
version: "0.0.0"
|
|
259
|
-
|
|
120
|
+
fuchsia_remote_debug_protocol:
|
|
260
121
|
dependency: transitive
|
|
261
|
-
description:
|
|
122
|
+
description: flutter
|
|
262
|
-
name: frontend_server_client
|
|
263
|
-
sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612"
|
|
264
|
-
url: "https://pub.dev"
|
|
265
|
-
source:
|
|
123
|
+
source: sdk
|
|
266
|
-
version: "
|
|
124
|
+
version: "0.0.0"
|
|
267
|
-
glob:
|
|
268
|
-
dependency: transitive
|
|
269
|
-
description:
|
|
270
|
-
name: glob
|
|
271
|
-
sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63"
|
|
272
|
-
url: "https://pub.dev"
|
|
273
|
-
source: hosted
|
|
274
|
-
version: "2.1.2"
|
|
275
125
|
go_router:
|
|
276
126
|
dependency: "direct main"
|
|
277
127
|
description:
|
|
@@ -280,46 +130,11 @@ packages:
|
|
|
280
130
|
url: "https://pub.dev"
|
|
281
131
|
source: hosted
|
|
282
132
|
version: "10.0.0"
|
|
283
|
-
|
|
133
|
+
integration_test:
|
|
284
134
|
dependency: "direct dev"
|
|
285
|
-
description:
|
|
135
|
+
description: flutter
|
|
286
|
-
name: go_router_builder
|
|
287
|
-
sha256: df2034629637d0c7c380aba5daa2f91be4733f2d632e7dff0b082d5ff3155068
|
|
288
|
-
url: "https://pub.dev"
|
|
289
|
-
source:
|
|
136
|
+
source: sdk
|
|
290
|
-
version: "2.2.4"
|
|
291
|
-
graphs:
|
|
292
|
-
dependency: transitive
|
|
293
|
-
description:
|
|
294
|
-
name: graphs
|
|
295
|
-
sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19
|
|
296
|
-
url: "https://pub.dev"
|
|
297
|
-
source: hosted
|
|
298
|
-
version: "2.3.1"
|
|
299
|
-
http_multi_server:
|
|
300
|
-
dependency: transitive
|
|
301
|
-
description:
|
|
302
|
-
name: http_multi_server
|
|
303
|
-
sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b"
|
|
304
|
-
url: "https://pub.dev"
|
|
305
|
-
source: hosted
|
|
306
|
-
version: "3.2.1"
|
|
307
|
-
http_parser:
|
|
308
|
-
dependency: transitive
|
|
309
|
-
description:
|
|
310
|
-
name: http_parser
|
|
311
|
-
sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
|
|
312
|
-
url: "https://pub.dev"
|
|
313
|
-
source: hosted
|
|
314
|
-
version: "
|
|
137
|
+
version: "0.0.0"
|
|
315
|
-
io:
|
|
316
|
-
dependency: transitive
|
|
317
|
-
description:
|
|
318
|
-
name: io
|
|
319
|
-
sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e"
|
|
320
|
-
url: "https://pub.dev"
|
|
321
|
-
source: hosted
|
|
322
|
-
version: "1.0.4"
|
|
323
138
|
js:
|
|
324
139
|
dependency: transitive
|
|
325
140
|
description:
|
|
@@ -328,14 +143,6 @@ packages:
|
|
|
328
143
|
url: "https://pub.dev"
|
|
329
144
|
source: hosted
|
|
330
145
|
version: "0.6.7"
|
|
331
|
-
json_annotation:
|
|
332
|
-
dependency: transitive
|
|
333
|
-
description:
|
|
334
|
-
name: json_annotation
|
|
335
|
-
sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467
|
|
336
|
-
url: "https://pub.dev"
|
|
337
|
-
source: hosted
|
|
338
|
-
version: "4.8.1"
|
|
339
146
|
just_audio:
|
|
340
147
|
dependency: "direct main"
|
|
341
148
|
description:
|
|
@@ -400,30 +207,6 @@ packages:
|
|
|
400
207
|
url: "https://pub.dev"
|
|
401
208
|
source: hosted
|
|
402
209
|
version: "1.9.1"
|
|
403
|
-
mime:
|
|
404
|
-
dependency: transitive
|
|
405
|
-
description:
|
|
406
|
-
name: mime
|
|
407
|
-
sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
|
|
408
|
-
url: "https://pub.dev"
|
|
409
|
-
source: hosted
|
|
410
|
-
version: "1.0.4"
|
|
411
|
-
node_preamble:
|
|
412
|
-
dependency: transitive
|
|
413
|
-
description:
|
|
414
|
-
name: node_preamble
|
|
415
|
-
sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db"
|
|
416
|
-
url: "https://pub.dev"
|
|
417
|
-
source: hosted
|
|
418
|
-
version: "2.0.2"
|
|
419
|
-
package_config:
|
|
420
|
-
dependency: transitive
|
|
421
|
-
description:
|
|
422
|
-
name: package_config
|
|
423
|
-
sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd"
|
|
424
|
-
url: "https://pub.dev"
|
|
425
|
-
source: hosted
|
|
426
|
-
version: "2.1.0"
|
|
427
210
|
path:
|
|
428
211
|
dependency: transitive
|
|
429
212
|
description:
|
|
@@ -468,10 +251,10 @@ packages:
|
|
|
468
251
|
dependency: transitive
|
|
469
252
|
description:
|
|
470
253
|
name: path_provider_platform_interface
|
|
471
|
-
sha256:
|
|
254
|
+
sha256: bced5679c7df11190e1ddc35f3222c858f328fff85c3942e46e7f5589bf9eb84
|
|
472
255
|
url: "https://pub.dev"
|
|
473
256
|
source: hosted
|
|
474
|
-
version: "2.
|
|
257
|
+
version: "2.1.0"
|
|
475
258
|
path_provider_windows:
|
|
476
259
|
dependency: transitive
|
|
477
260
|
description:
|
|
@@ -496,30 +279,14 @@ packages:
|
|
|
496
279
|
url: "https://pub.dev"
|
|
497
280
|
source: hosted
|
|
498
281
|
version: "2.1.5"
|
|
499
|
-
|
|
282
|
+
process:
|
|
500
|
-
dependency: transitive
|
|
501
|
-
description:
|
|
502
|
-
name: pool
|
|
503
|
-
sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a"
|
|
504
|
-
url: "https://pub.dev"
|
|
505
|
-
source: hosted
|
|
506
|
-
version: "1.5.1"
|
|
507
|
-
pub_semver:
|
|
508
|
-
dependency: transitive
|
|
509
|
-
description:
|
|
510
|
-
name: pub_semver
|
|
511
|
-
sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
|
|
512
|
-
url: "https://pub.dev"
|
|
513
|
-
source: hosted
|
|
514
|
-
version: "2.1.4"
|
|
515
|
-
pubspec_parse:
|
|
516
283
|
dependency: transitive
|
|
517
284
|
description:
|
|
518
|
-
name:
|
|
285
|
+
name: process
|
|
519
|
-
sha256:
|
|
286
|
+
sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
|
|
520
287
|
url: "https://pub.dev"
|
|
521
288
|
source: hosted
|
|
522
|
-
version: "
|
|
289
|
+
version: "4.2.4"
|
|
523
290
|
rxdart:
|
|
524
291
|
dependency: transitive
|
|
525
292
|
description:
|
|
@@ -584,75 +351,11 @@ packages:
|
|
|
584
351
|
url: "https://pub.dev"
|
|
585
352
|
source: hosted
|
|
586
353
|
version: "2.3.0"
|
|
587
|
-
shelf:
|
|
588
|
-
dependency: transitive
|
|
589
|
-
description:
|
|
590
|
-
name: shelf
|
|
591
|
-
sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4
|
|
592
|
-
url: "https://pub.dev"
|
|
593
|
-
source: hosted
|
|
594
|
-
version: "1.4.1"
|
|
595
|
-
shelf_packages_handler:
|
|
596
|
-
dependency: transitive
|
|
597
|
-
description:
|
|
598
|
-
name: shelf_packages_handler
|
|
599
|
-
sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e"
|
|
600
|
-
url: "https://pub.dev"
|
|
601
|
-
source: hosted
|
|
602
|
-
version: "3.0.2"
|
|
603
|
-
shelf_static:
|
|
604
|
-
dependency: transitive
|
|
605
|
-
description:
|
|
606
|
-
name: shelf_static
|
|
607
|
-
sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e
|
|
608
|
-
url: "https://pub.dev"
|
|
609
|
-
source: hosted
|
|
610
|
-
version: "1.1.2"
|
|
611
|
-
shelf_web_socket:
|
|
612
|
-
dependency: transitive
|
|
613
|
-
description:
|
|
614
|
-
name: shelf_web_socket
|
|
615
|
-
sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1"
|
|
616
|
-
url: "https://pub.dev"
|
|
617
|
-
source: hosted
|
|
618
|
-
version: "1.0.4"
|
|
619
354
|
sky_engine:
|
|
620
355
|
dependency: transitive
|
|
621
356
|
description: flutter
|
|
622
357
|
source: sdk
|
|
623
358
|
version: "0.0.99"
|
|
624
|
-
source_gen:
|
|
625
|
-
dependency: transitive
|
|
626
|
-
description:
|
|
627
|
-
name: source_gen
|
|
628
|
-
sha256: fc0da689e5302edb6177fdd964efcb7f58912f43c28c2047a808f5bfff643d16
|
|
629
|
-
url: "https://pub.dev"
|
|
630
|
-
source: hosted
|
|
631
|
-
version: "1.4.0"
|
|
632
|
-
source_helper:
|
|
633
|
-
dependency: transitive
|
|
634
|
-
description:
|
|
635
|
-
name: source_helper
|
|
636
|
-
sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd"
|
|
637
|
-
url: "https://pub.dev"
|
|
638
|
-
source: hosted
|
|
639
|
-
version: "1.3.4"
|
|
640
|
-
source_map_stack_trace:
|
|
641
|
-
dependency: transitive
|
|
642
|
-
description:
|
|
643
|
-
name: source_map_stack_trace
|
|
644
|
-
sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae"
|
|
645
|
-
url: "https://pub.dev"
|
|
646
|
-
source: hosted
|
|
647
|
-
version: "2.1.1"
|
|
648
|
-
source_maps:
|
|
649
|
-
dependency: transitive
|
|
650
|
-
description:
|
|
651
|
-
name: source_maps
|
|
652
|
-
sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703"
|
|
653
|
-
url: "https://pub.dev"
|
|
654
|
-
source: hosted
|
|
655
|
-
version: "0.10.12"
|
|
656
359
|
source_span:
|
|
657
360
|
dependency: transitive
|
|
658
361
|
description:
|
|
@@ -677,14 +380,6 @@ packages:
|
|
|
677
380
|
url: "https://pub.dev"
|
|
678
381
|
source: hosted
|
|
679
382
|
version: "2.1.1"
|
|
680
|
-
stream_transform:
|
|
681
|
-
dependency: transitive
|
|
682
|
-
description:
|
|
683
|
-
name: stream_transform
|
|
684
|
-
sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f"
|
|
685
|
-
url: "https://pub.dev"
|
|
686
|
-
source: hosted
|
|
687
|
-
version: "2.1.0"
|
|
688
383
|
string_scanner:
|
|
689
384
|
dependency: transitive
|
|
690
385
|
description:
|
|
@@ -693,22 +388,22 @@ packages:
|
|
|
693
388
|
url: "https://pub.dev"
|
|
694
389
|
source: hosted
|
|
695
390
|
version: "1.2.0"
|
|
696
|
-
|
|
391
|
+
sync_http:
|
|
697
392
|
dependency: transitive
|
|
698
393
|
description:
|
|
699
|
-
name:
|
|
394
|
+
name: sync_http
|
|
700
|
-
sha256:
|
|
395
|
+
sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961"
|
|
701
396
|
url: "https://pub.dev"
|
|
702
397
|
source: hosted
|
|
703
|
-
version: "
|
|
398
|
+
version: "0.3.1"
|
|
704
|
-
|
|
399
|
+
term_glyph:
|
|
705
400
|
dependency: transitive
|
|
706
401
|
description:
|
|
707
|
-
name:
|
|
402
|
+
name: term_glyph
|
|
708
|
-
sha256:
|
|
403
|
+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
|
|
709
404
|
url: "https://pub.dev"
|
|
710
405
|
source: hosted
|
|
711
|
-
version: "1.
|
|
406
|
+
version: "1.2.1"
|
|
712
407
|
test_api:
|
|
713
408
|
dependency: transitive
|
|
714
409
|
description:
|
|
@@ -717,22 +412,6 @@ packages:
|
|
|
717
412
|
url: "https://pub.dev"
|
|
718
413
|
source: hosted
|
|
719
414
|
version: "0.5.1"
|
|
720
|
-
test_core:
|
|
721
|
-
dependency: transitive
|
|
722
|
-
description:
|
|
723
|
-
name: test_core
|
|
724
|
-
sha256: "5138dbffb77b2289ecb12b81c11ba46036590b72a64a7a90d6ffb880f1a29e93"
|
|
725
|
-
url: "https://pub.dev"
|
|
726
|
-
source: hosted
|
|
727
|
-
version: "0.5.1"
|
|
728
|
-
timing:
|
|
729
|
-
dependency: transitive
|
|
730
|
-
description:
|
|
731
|
-
name: timing
|
|
732
|
-
sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32"
|
|
733
|
-
url: "https://pub.dev"
|
|
734
|
-
source: hosted
|
|
735
|
-
version: "1.0.1"
|
|
736
415
|
typed_data:
|
|
737
416
|
dependency: transitive
|
|
738
417
|
description:
|
|
@@ -761,34 +440,18 @@ packages:
|
|
|
761
440
|
dependency: transitive
|
|
762
441
|
description:
|
|
763
442
|
name: vm_service
|
|
764
|
-
sha256: ada49637c27973c183dad90beb6bd781eea4c9f5f955d35da172de0af7bd3440
|
|
765
|
-
url: "https://pub.dev"
|
|
766
|
-
source: hosted
|
|
767
|
-
version: "11.8.0"
|
|
768
|
-
watcher:
|
|
769
|
-
dependency: transitive
|
|
770
|
-
description:
|
|
771
|
-
name: watcher
|
|
772
|
-
sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8"
|
|
773
|
-
url: "https://pub.dev"
|
|
774
|
-
source: hosted
|
|
775
|
-
version: "1.1.0"
|
|
776
|
-
web_socket_channel:
|
|
777
|
-
dependency: transitive
|
|
778
|
-
description:
|
|
779
|
-
name: web_socket_channel
|
|
780
|
-
sha256:
|
|
443
|
+
sha256: f6deed8ed625c52864792459709183da231ebf66ff0cf09e69b573227c377efe
|
|
781
444
|
url: "https://pub.dev"
|
|
782
445
|
source: hosted
|
|
783
|
-
version: "
|
|
446
|
+
version: "11.3.0"
|
|
784
|
-
|
|
447
|
+
webdriver:
|
|
785
448
|
dependency: transitive
|
|
786
449
|
description:
|
|
787
|
-
name:
|
|
450
|
+
name: webdriver
|
|
788
|
-
sha256: "
|
|
451
|
+
sha256: "3c923e918918feeb90c4c9fdf1fe39220fa4c0e8e2c0fffaded174498ef86c49"
|
|
789
452
|
url: "https://pub.dev"
|
|
790
453
|
source: hosted
|
|
791
|
-
version: "
|
|
454
|
+
version: "3.0.2"
|
|
792
455
|
win32:
|
|
793
456
|
dependency: transitive
|
|
794
457
|
description:
|
|
@@ -805,14 +468,6 @@ packages:
|
|
|
805
468
|
url: "https://pub.dev"
|
|
806
469
|
source: hosted
|
|
807
470
|
version: "1.0.1"
|
|
808
|
-
yaml:
|
|
809
|
-
dependency: transitive
|
|
810
|
-
description:
|
|
811
|
-
name: yaml
|
|
812
|
-
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
|
|
813
|
-
url: "https://pub.dev"
|
|
814
|
-
source: hosted
|
|
815
|
-
version: "3.1.2"
|
|
816
471
|
sdks:
|
|
817
472
|
dart: ">=3.0.6 <4.0.0"
|
|
818
473
|
flutter: ">=3.7.0"
|
bible_app/pubspec.yaml
CHANGED
|
@@ -1,36 +1,14 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: only_bible_app
|
|
2
|
-
description:
|
|
2
|
+
description: The only bible app you will ever need
|
|
3
|
-
# The following line prevents the package from being accidentally published to
|
|
4
|
-
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
|
5
|
-
publish_to: 'none'
|
|
3
|
+
publish_to: 'none'
|
|
6
|
-
|
|
7
|
-
# The following defines the version and build number for your application.
|
|
8
|
-
# A version number is three numbers separated by dots, like 1.2.43
|
|
9
|
-
# followed by an optional build number separated by a +.
|
|
10
|
-
# Both the version and the builder number may be overridden in flutter
|
|
11
|
-
# build by specifying --build-name and --build-number, respectively.
|
|
12
|
-
# In Android, build-name is used as versionName while build-number used as versionCode.
|
|
13
|
-
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
|
|
14
|
-
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
|
|
15
|
-
# Read more about iOS versioning at
|
|
16
|
-
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
|
17
|
-
# In Windows, build-name is used as the major, minor, and patch parts
|
|
18
|
-
# of the product and file versions while build-number is used as the build suffix.
|
|
19
4
|
version: 1.0.0+1
|
|
20
5
|
|
|
21
6
|
environment:
|
|
22
7
|
sdk: '>=3.0.6 <4.0.0'
|
|
23
8
|
|
|
24
|
-
# Dependencies specify other packages that your package needs in order to work.
|
|
25
|
-
# To automatically upgrade your package dependencies to the latest versions
|
|
26
|
-
# consider running `flutter pub upgrade --major-versions`. Alternatively,
|
|
27
|
-
# dependencies can be manually updated by changing the version numbers below to
|
|
28
|
-
# the latest version available on pub.dev. To see which dependencies have newer
|
|
29
|
-
# versions available, run `flutter pub outdated`.
|
|
30
9
|
dependencies:
|
|
31
10
|
flutter:
|
|
32
11
|
sdk: flutter
|
|
33
|
-
|
|
34
12
|
path_provider: ^2.0.15
|
|
35
13
|
flutter_reactive_value: ^1.0.4
|
|
36
14
|
just_audio: ^0.9.34
|
|
@@ -40,22 +18,10 @@ dependencies:
|
|
|
40
18
|
dev_dependencies:
|
|
41
19
|
flutter_test:
|
|
42
20
|
sdk: flutter
|
|
43
|
-
|
|
21
|
+
integration_test:
|
|
44
|
-
|
|
22
|
+
sdk: flutter
|
|
45
|
-
build_verify: any
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
# The "flutter_lints" package below contains a set of recommended lints to
|
|
49
|
-
# encourage good coding practices. The lint set provided by the package is
|
|
50
|
-
# activated in the `analysis_options.yaml` file located at the root of your
|
|
51
|
-
# package. See that file for information about deactivating specific lint
|
|
52
|
-
# rules and activating additional ones.
|
|
53
23
|
flutter_lints: ^2.0.0
|
|
54
24
|
|
|
55
|
-
# For information on the generic Dart part of this file, see the
|
|
56
|
-
# following page: https://dart.dev/tools/pub/pubspec
|
|
57
|
-
|
|
58
|
-
# The following section is specific to Flutter packages.
|
|
59
25
|
flutter:
|
|
60
26
|
|
|
61
27
|
# The following line ensures that the Material Icons font is
|
bible_app/scripts/generate.dart
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "dart:io";
|
|
2
|
-
import
|
|
2
|
+
import "package:only_bible_app/domain/book.dart";
|
|
3
3
|
|
|
4
4
|
void main() {
|
|
5
5
|
final lines = File("./scripts/bibles/kannada.csv").readAsLinesSync();
|