Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sapna. Can you please remove these .DS_Store files and add .DS_Store to the .gitignore file? These are temporary files created by the Mac and should not be checked in.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Binary file not shown.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ devtools_options.yaml
# Open WebUI (ollama)
.webui_secret_key

# Ignore Mac OS system files
.DS_Store

Binary file added assets/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions bin/configure_local_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ else
fi

printf "\n"

Binary file added ios/.DS_Store
Binary file not shown.
32 changes: 32 additions & 0 deletions ios/Flutter/ephemeral/flutter_lldb_helper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Generated file, do not edit.
#

import lldb

def handle_new_rx_page(frame: lldb.SBFrame, bp_loc, extra_args, intern_dict):
"""Intercept NOTIFY_DEBUGGER_ABOUT_RX_PAGES and touch the pages."""
base = frame.register["x0"].GetValueAsAddress()
page_len = frame.register["x1"].GetValueAsUnsigned()

# Note: NOTIFY_DEBUGGER_ABOUT_RX_PAGES will check contents of the
# first page to see if handled it correctly. This makes diagnosing
# misconfiguration (e.g. missing breakpoint) easier.
data = bytearray(page_len)
data[0:8] = b'IHELPED!'

error = lldb.SBError()
frame.GetThread().GetProcess().WriteMemory(base, data, error)
if not error.Success():
print(f'Failed to write into {base}[+{page_len}]', error)
return

def __lldb_init_module(debugger: lldb.SBDebugger, _):
target = debugger.GetDummyTarget()
# Caveat: must use BreakpointCreateByRegEx here and not
# BreakpointCreateByName. For some reasons callback function does not
# get carried over from dummy target for the later.
bp = target.BreakpointCreateByRegex("^NOTIFY_DEBUGGER_ABOUT_RX_PAGES$")
bp.SetScriptCallbackFunction('{}.handle_new_rx_page'.format(__name__))
bp.SetAutoContinue(True)
print("-- LLDB integration loaded --")
5 changes: 5 additions & 0 deletions ios/Flutter/ephemeral/flutter_lldbinit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# Generated file, do not edit.
#

command script import --relative-to-command-file flutter_lldb_helper.py
25 changes: 14 additions & 11 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ PODS:
- sqlite3/common
- sqlite3/fts5 (3.49.1):
- sqlite3/common
- sqlite3/math (3.49.1):
- sqlite3/common
- sqlite3/perf-threadsafe (3.49.1):
- sqlite3/common
- sqlite3/rtree (3.49.1):
Expand All @@ -35,6 +37,7 @@ PODS:
- sqlite3 (~> 3.49.1)
- sqlite3/dbstatvtab
- sqlite3/fts5
- sqlite3/math
- sqlite3/perf-threadsafe
- sqlite3/rtree
- url_launcher_ios (0.0.1):
Expand Down Expand Up @@ -91,19 +94,19 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/webview_flutter_wkwebview/darwin"

SPEC CHECKSUMS:
audio_session: 19e9480dbdd4e5f6c4543826b2e8b0e4ab6145fe
connectivity_plus: 2a701ffec2c0ae28a48cf7540e279787e77c447d
audio_session: 9bb7f6c970f21241b19f5a3658097ae459681ba0
connectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7dd
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
just_audio: a42c63806f16995daf5b219ae1d679deb76e6a79
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
share_plus: 8b6f8b3447e494cca5317c8c3073de39b3600d1f
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqflite_darwin: 5a7236e3b501866c1c9befc6771dfd73ffb8702d
just_audio: 4e391f57b79cad2b0674030a00453ca5ce817eed
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
sqlite3: fc1400008a9b3525f5914ed715a5d1af0b8f4983
sqlite3_flutter_libs: cc304edcb8e1d8c595d1b08c7aeb46a47691d9db
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
video_player_avfoundation: 7c6c11d8470e1675df7397027218274b6d2360b3
webview_flutter_wkwebview: a4af96a051138e28e29f60101d094683b9f82188
sqlite3_flutter_libs: f6acaa2172e6bb3e2e70c771661905080e8ebcf2
url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b
webview_flutter_wkwebview: 1821ceac936eba6f7984d89a9f3bcb4dea99ebb2

PODFILE CHECKSUM: 928a2accdd46c30786cb7bdf5a92fe7d4e94bab9

Expand Down
3 changes: 3 additions & 0 deletions ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
Expand All @@ -43,11 +44,13 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
2 changes: 0 additions & 2 deletions lib/api/kosa_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class KosaApi {

Future<List<Video>> fetchVideos() async {
var response = await GetDio.getDio(baseURL: baseUrl, cacheEnabled: false).get(VIDEOS_URL);
log(response.data.toString(), level: 1, name: "json");

if (response.statusCode == 200) {
final List<dynamic> jsonData = decodeDio(response);
return jsonData.map<Video>((video) => Video.fromJson(video)).toList();
Expand Down
104 changes: 95 additions & 9 deletions lib/app/I18n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,16 @@ class I18n {
"library": "Library",
"old_student": "Old student?",
"recommended": "Recommended",
"videos": "Videos"
"videos": "Videos",
"All": "All",
"No_videos_found.": "No videos found.",
"Search_video_here..": "Search video here..",
"a_z": "A-Z",
"z_a": "Z-A",
"Pali": "Pali",
"Vipassana": "Vipassana",
"Newest": "Newest",
"Not_found": "Not Found"
},

Language.fra: {
Expand Down Expand Up @@ -122,8 +131,19 @@ class I18n {
"library": "Bibliothèque",
"old_student": "Étudiant vieux ?",
"recommended": "Recommandé",
"videos": "Vidéos"
},
"videos": "Vidéos",
"All": "Tout",
"No_videos_found.": "Aucune vidéo trouvée.",
"Search_video_here..": "Recherchez la vidéo ici..",
"a_z": "A-Z",
"z_a": "Z-A",
"Pali": "Pali",
"Vipassana": "Vipassana",
"Newest": "Le plus récent",
"Not_found": "Introuvable"


},

Language.ita: {
"about_pariyatti": "Sulla'applicazione",
Expand Down Expand Up @@ -168,7 +188,18 @@ class I18n {
'library': 'Bibliothèque',
'old_student': 'Étudiant vieux ?',
'recommended': 'Recommandé',
'videos': 'Vidéos'
'videos': 'Vidéos',
"All": "Tutto",
"No_videos_found.": "Nessun video trovato.",
"Search_video_here..": "Cerca video qui..",
"a_z": "A-Z",
"z_a": "Z-A",
"Pali": "Pali",
"Vipassana": "Vipassana",
"Newest": "Più recente",
"Not_found": "Non trovato"


},

Language.lit: {
Expand Down Expand Up @@ -214,7 +245,18 @@ class I18n {
"library": "Biblioteca",
"old_student": "Vecchio studente?",
"recommended": "Consigliato",
"videos": "Video"
"videos": "Video",
"All": "Visi",
"No_videos_found.": "Vaizdo įrašų nerasta.",
"Search_video_here..": "Ieškoti vaizdo įrašo čia..",
"a_z": "A–Ž",
"z_a": "Ž–A",
"Pali": "Pali",
"Vipassana": "Vipassana",
"Newest": "Naujausi",
"Not_found": "Nerasta"


},

Language.por: {
Expand Down Expand Up @@ -260,7 +302,18 @@ class I18n {
"library": "Biblioteca",
"old_student": "Aluno velho?",
"recommended": "Recomendado",
"videos": "Vídeos"
"videos": "Vídeos",
"All": "Tudo",
"No_videos_found.": "Nenhum vídeo encontrado.",
"Search_video_here..": "Pesquisar vídeo aqui..",
"a_z": "A-Z",
"z_a": "Z-A",
"Pali": "Pali",
"Vipassana": "Vipassana",
"Newest": "Mais recente",
"Not_found": "Não encontrado"


},

Language.spa: {
Expand Down Expand Up @@ -306,7 +359,18 @@ class I18n {
"library": "Biblioteca",
"old_student": "Estudiante viejo?",
"recommended": "Recomendado",
"videos": "Videos"
"videos": "Videos",
"All": "Todo",
"No_videos_found.": "No se encontraron videos.",
"Search_video_here..": "Buscar video aquí..",
"a_z": "A-Z",
"z_a": "Z-A",
"Pali": "Pali",
"Vipassana": "Vipassana",
"Newest": "Más reciente",
"Not_found": "No encontrado"


},

Language.srp: {
Expand Down Expand Up @@ -352,7 +416,18 @@ class I18n {
"library": "Библиотека",
"old_student": "Стари студент?",
"recommended": "Премештено је",
"videos": "Видео"
"videos": "Видео",
"All": "Sve",
"No_videos_found.": "Nema pronađenih video zapisa.",
"Search_video_here..": "Pretraži video ovde..",
"a_z": "A-Z",
"z_a": "Z-A",
"Pali": "Pali",
"Vipassana": "Vipassana",
"Newest": "Najnovije",
"Not_found": "Nije pronađeno"


},

Language.zho_hant: {
Expand Down Expand Up @@ -398,7 +473,18 @@ class I18n {
"library": "圖書館",
"old_student": "舊生?",
"recommended": "推薦",
"videos": "影片"
"videos": "影片",
"All": "全部",
"No_videos_found.": "未找到影片。",
"Search_video_here..": "在此搜尋影片..",
"a_z": "A-Z",
"z_a": "Z-A",
"Pali": "巴利語",
"Vipassana": "內觀",
"Newest": "最新",
"Not_found": "未找到"


},

};
Expand Down
10 changes: 7 additions & 3 deletions lib/model/Video.dart
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@

class Video {
static final Video RECOMMENDED = Video(id: "RECOMMENDED", title: "recommended", thumbnailUrl: "");
static final Video RECOMMENDED = Video(id: "RECOMMENDED", title: "recommended", thumbnailUrl: "", createdAt: "");

final String id;
final String title;
final String thumbnailUrl;
final String createdAt;

Video({required this.id, required this.title, required this.thumbnailUrl});
Video({required this.id, required this.title, required this.thumbnailUrl, required this.createdAt,
});

factory Video.fromJson(Map<String, dynamic> json) {
final embedUrl = json['uri'] as String;
final videoId = Uri.parse(embedUrl).pathSegments.last;
final title = json['name'] as String;
final thumbnailUrl = json['picture_base_link'] as String;
final createdAt = json['created_at'] ?? '';

return Video(id: videoId, title: title, thumbnailUrl: thumbnailUrl );
return Video(id: videoId, title: title, thumbnailUrl: thumbnailUrl , createdAt: createdAt,
);
}
}
1 change: 1 addition & 0 deletions lib/ui/screens/account/ThemesScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ThemesScreen extends StatefulWidget {
class _ThemesScreenState extends State<ThemesScreen> {
late ThemeProvider themeProvider;


@override
void initState() {
super.initState();
Expand Down
Loading