From 06e5ce130157f03c1a03057f59394d0c06b2979b Mon Sep 17 00:00:00 2001 From: Fawkes100 Date: Sat, 18 Jan 2025 10:11:21 +0100 Subject: [PATCH] Initialize Rewrite --- .idea/.name | 1 + .idea/codeStyles/codeStyleConfig.xml | 5 - .idea/dataSources.xml | 43 --- .idea/deploymentTargetDropDown.xml | 13 - .idea/deploymentTargetSelector.xml | 10 - .idea/gradle.xml | 3 +- .idea/misc.xml | 3 +- .idea/uiDesigner.xml | 124 ------- .idea/vcs.xml | 6 - app/build.gradle.kts | 39 +-- .../notevault/ExampleInstrumentedTest.java | 4 +- app/src/main/AndroidManifest.xml | 10 +- .../stormtales/notevault/MainActivity.java | 63 ++++ .../notevault/data/MusicDatabase.java | 20 +- .../notevault/data/entities/NoteSheet.java | 52 +++ .../notevault/data/entities/Song.java} | 87 +++-- .../data/entities/SongNoteSheet.java | 15 + .../notevault/data/repositories/SongDao.java | 7 + .../notevault/data/sync/SyncStatus.java | 2 +- .../data/sync/SyncStatusConverter.java | 2 +- .../notevault/ui/gallery/GalleryFragment.java | 35 ++ .../ui/gallery/GalleryViewModel.java | 19 ++ .../notevault/ui/home/HomeFragment.java | 35 ++ .../notevault/ui/home/HomeViewModel.java | 19 ++ .../ui/slideshow/SlideshowFragment.java | 4 +- .../ui/slideshow/SlideshowViewModel.java | 2 +- .../java/core/notevault/MainActivity.java | 308 ------------------ .../java/core/notevault/data/Concert.java | 90 ----- .../java/core/notevault/data/ConcertSong.java | 55 ---- .../core/notevault/data/DateConverter.java | 20 -- .../core/notevault/data/MusicNoteDAO.java | 89 ----- .../java/core/notevault/data/NoteSheet.java | 56 ---- .../notevault/data/sync/SyncDataObject.java | 49 --- .../data/sync/SyncDataObjectType.java | 5 - .../sync/SyncDataObjectTypeConverter.java | 15 - .../java/core/notevault/sync/APICallback.java | 7 - .../java/core/notevault/sync/ApiClient.java | 34 -- .../core/notevault/sync/StatusResponse.java | 14 - .../java/core/notevault/sync/SyncWorker.java | 38 --- .../notevault/sync/auth/AuthInterceptor.java | 32 -- .../notevault/sync/auth/AuthRepository.java | 80 ----- .../core/notevault/sync/auth/AuthService.java | 20 -- .../notevault/sync/auth/LoginCallback.java | 7 - .../notevault/sync/auth/TokenManager.java | 31 -- .../sync/auth/apimodel/LoginRequest.java | 13 - .../sync/auth/apimodel/LoginResponse.java | 22 -- .../sync/auth/apimodel/RegisterRequest.java | 14 - .../sync/auth/apimodel/RegisterResponse.java | 31 -- .../sync/synchronisation/FetchRequest.java | 19 -- .../sync/synchronisation/FetchResponse.java | 19 -- .../sync/synchronisation/SyncService.java | 36 -- .../synchronisation/songs/SongSyncWorker.java | 199 ----------- .../creation/SongCreationBatchRequest.java | 11 - .../creation/SongCreationBatchResponse.java | 19 -- .../songs/creation/SongCreationRequest.java | 17 - .../songs/creation/SongCreationResponse.java | 27 -- .../deletion/SongDeletionBatchRequest.java | 19 -- .../deletion/SongDeletionBatchResponse.java | 19 -- .../SongModificationBatchRequest.java | 11 - .../SongModificationBatchResponse.java | 19 -- .../modification/SongModificationRequest.java | 57 ---- .../songs/notesheets/UploadResponse.java | 5 - .../notevault/ui/gallery/ConcertAdapter.java | 86 ----- .../notevault/ui/gallery/GalleryFragment.java | 153 --------- .../ui/gallery/GalleryViewModel.java | 58 ---- .../gallery/detail/ConcertDetailFragment.java | 119 ------- .../detail/ConcertDetailViewModel.java | 41 --- .../gallery/detail/ConcertSongSelector.java | 116 ------- .../detail/ConcertSongSelectorAdapter.java | 90 ----- .../gallery/editor/ConcertEditorDialog.java | 111 ------- .../ui/home/FullScreenImageActivity.java | 35 -- .../core/notevault/ui/home/HomeFragment.java | 160 --------- .../core/notevault/ui/home/HomeViewModel.java | 63 ---- .../notevault/ui/home/NoteSongAdapter.java | 157 --------- .../notevault/ui/login/LoginCallBackImpl.java | 27 -- .../ui/login/LoginDialogFragment.java | 100 ------ .../notevault/ui/login/RegisterCallback.java | 25 -- .../ui/metadatadialog/MetaDataDialog.java | 108 ------ .../ui/metadatadialog/SongEditDialog.java | 90 ----- .../ui/noteviewer/ImagePagerAdapter.java | 50 --- .../core/notevault/util/NoteSheetsUtil.java | 54 --- .../core/notevault/util/UriTimestamp.java | 21 -- ...24dp_e8eaed_fill0_wght400_grad0_opsz24.xml | 9 - app/src/main/res/drawable/delete.xml | 9 - .../main/res/drawable/dialog_background.xml | 6 - ...24dp_e8eaed_fill0_wght400_grad0_opsz24.xml | 9 - app/src/main/res/drawable/login.xml | 9 - app/src/main/res/drawable/logout.xml | 9 - .../res/layout/activity_fullscreen_image.xml | 11 - app/src/main/res/layout/app_bar_main.xml | 9 + app/src/main/res/layout/concert_editor.xml | 81 ----- app/src/main/res/layout/concert_item.xml | 60 ---- .../layout/dialog_concert_song_selector.xml | 29 -- .../res/layout/fragment_concert_detail.xml | 67 ---- app/src/main/res/layout/fragment_gallery.xml | 22 +- app/src/main/res/layout/fragment_home.xml | 25 +- .../main/res/layout/fragment_login_dialog.xml | 68 ---- .../res/layout/fragment_metadata_dialog.xml | 126 ------- app/src/main/res/layout/item_concert_song.xml | 19 -- app/src/main/res/layout/item_image.xml | 11 - app/src/main/res/layout/item_song.xml | 77 ----- .../res/layout/song_metadata_edit_dialog.xml | 126 ------- app/src/main/res/menu/main.xml | 15 +- .../main/res/navigation/mobile_navigation.xml | 12 +- app/src/main/res/values/colors.xml | 1 - app/src/main/res/values/strings.xml | 2 +- .../notevault/ExampleUnitTest.java | 2 +- gradle/libs.versions.toml | 28 +- gradle/wrapper/gradle-wrapper.properties | 4 +- settings.gradle.kts | 3 - 110 files changed, 376 insertions(+), 4267 deletions(-) create mode 100644 .idea/.name delete mode 100644 .idea/codeStyles/codeStyleConfig.xml delete mode 100644 .idea/dataSources.xml delete mode 100644 .idea/deploymentTargetDropDown.xml delete mode 100644 .idea/deploymentTargetSelector.xml delete mode 100644 .idea/uiDesigner.xml delete mode 100644 .idea/vcs.xml rename app/src/androidTest/java/{core => com/stormtales}/notevault/ExampleInstrumentedTest.java (85%) create mode 100644 app/src/main/java/com/stormtales/notevault/MainActivity.java rename app/src/main/java/{core => com/stormtales}/notevault/data/MusicDatabase.java (50%) create mode 100644 app/src/main/java/com/stormtales/notevault/data/entities/NoteSheet.java rename app/src/main/java/{core/notevault/data/MusicNote.java => com/stormtales/notevault/data/entities/Song.java} (53%) create mode 100644 app/src/main/java/com/stormtales/notevault/data/entities/SongNoteSheet.java create mode 100644 app/src/main/java/com/stormtales/notevault/data/repositories/SongDao.java rename app/src/main/java/{core => com/stormtales}/notevault/data/sync/SyncStatus.java (69%) rename app/src/main/java/{core => com/stormtales}/notevault/data/sync/SyncStatusConverter.java (87%) create mode 100644 app/src/main/java/com/stormtales/notevault/ui/gallery/GalleryFragment.java create mode 100644 app/src/main/java/com/stormtales/notevault/ui/gallery/GalleryViewModel.java create mode 100644 app/src/main/java/com/stormtales/notevault/ui/home/HomeFragment.java create mode 100644 app/src/main/java/com/stormtales/notevault/ui/home/HomeViewModel.java rename app/src/main/java/{core => com/stormtales}/notevault/ui/slideshow/SlideshowFragment.java (89%) rename app/src/main/java/{core => com/stormtales}/notevault/ui/slideshow/SlideshowViewModel.java (89%) delete mode 100644 app/src/main/java/core/notevault/MainActivity.java delete mode 100644 app/src/main/java/core/notevault/data/Concert.java delete mode 100644 app/src/main/java/core/notevault/data/ConcertSong.java delete mode 100644 app/src/main/java/core/notevault/data/DateConverter.java delete mode 100644 app/src/main/java/core/notevault/data/MusicNoteDAO.java delete mode 100644 app/src/main/java/core/notevault/data/NoteSheet.java delete mode 100644 app/src/main/java/core/notevault/data/sync/SyncDataObject.java delete mode 100644 app/src/main/java/core/notevault/data/sync/SyncDataObjectType.java delete mode 100644 app/src/main/java/core/notevault/data/sync/SyncDataObjectTypeConverter.java delete mode 100644 app/src/main/java/core/notevault/sync/APICallback.java delete mode 100644 app/src/main/java/core/notevault/sync/ApiClient.java delete mode 100644 app/src/main/java/core/notevault/sync/StatusResponse.java delete mode 100644 app/src/main/java/core/notevault/sync/SyncWorker.java delete mode 100644 app/src/main/java/core/notevault/sync/auth/AuthInterceptor.java delete mode 100644 app/src/main/java/core/notevault/sync/auth/AuthRepository.java delete mode 100644 app/src/main/java/core/notevault/sync/auth/AuthService.java delete mode 100644 app/src/main/java/core/notevault/sync/auth/LoginCallback.java delete mode 100644 app/src/main/java/core/notevault/sync/auth/TokenManager.java delete mode 100644 app/src/main/java/core/notevault/sync/auth/apimodel/LoginRequest.java delete mode 100644 app/src/main/java/core/notevault/sync/auth/apimodel/LoginResponse.java delete mode 100644 app/src/main/java/core/notevault/sync/auth/apimodel/RegisterRequest.java delete mode 100644 app/src/main/java/core/notevault/sync/auth/apimodel/RegisterResponse.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/FetchRequest.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/FetchResponse.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/SyncService.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/SongSyncWorker.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/creation/SongCreationBatchRequest.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/creation/SongCreationBatchResponse.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/creation/SongCreationRequest.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/creation/SongCreationResponse.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/deletion/SongDeletionBatchRequest.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/deletion/SongDeletionBatchResponse.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/modification/SongModificationBatchRequest.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/modification/SongModificationBatchResponse.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/modification/SongModificationRequest.java delete mode 100644 app/src/main/java/core/notevault/sync/synchronisation/songs/notesheets/UploadResponse.java delete mode 100644 app/src/main/java/core/notevault/ui/gallery/ConcertAdapter.java delete mode 100644 app/src/main/java/core/notevault/ui/gallery/GalleryFragment.java delete mode 100644 app/src/main/java/core/notevault/ui/gallery/GalleryViewModel.java delete mode 100644 app/src/main/java/core/notevault/ui/gallery/detail/ConcertDetailFragment.java delete mode 100644 app/src/main/java/core/notevault/ui/gallery/detail/ConcertDetailViewModel.java delete mode 100644 app/src/main/java/core/notevault/ui/gallery/detail/ConcertSongSelector.java delete mode 100644 app/src/main/java/core/notevault/ui/gallery/detail/ConcertSongSelectorAdapter.java delete mode 100644 app/src/main/java/core/notevault/ui/gallery/editor/ConcertEditorDialog.java delete mode 100644 app/src/main/java/core/notevault/ui/home/FullScreenImageActivity.java delete mode 100644 app/src/main/java/core/notevault/ui/home/HomeFragment.java delete mode 100644 app/src/main/java/core/notevault/ui/home/HomeViewModel.java delete mode 100644 app/src/main/java/core/notevault/ui/home/NoteSongAdapter.java delete mode 100644 app/src/main/java/core/notevault/ui/login/LoginCallBackImpl.java delete mode 100644 app/src/main/java/core/notevault/ui/login/LoginDialogFragment.java delete mode 100644 app/src/main/java/core/notevault/ui/login/RegisterCallback.java delete mode 100644 app/src/main/java/core/notevault/ui/metadatadialog/MetaDataDialog.java delete mode 100644 app/src/main/java/core/notevault/ui/metadatadialog/SongEditDialog.java delete mode 100644 app/src/main/java/core/notevault/ui/noteviewer/ImagePagerAdapter.java delete mode 100644 app/src/main/java/core/notevault/util/NoteSheetsUtil.java delete mode 100644 app/src/main/java/core/notevault/util/UriTimestamp.java delete mode 100644 app/src/main/res/drawable/add_24dp_e8eaed_fill0_wght400_grad0_opsz24.xml delete mode 100644 app/src/main/res/drawable/delete.xml delete mode 100644 app/src/main/res/drawable/dialog_background.xml delete mode 100644 app/src/main/res/drawable/edit_24dp_e8eaed_fill0_wght400_grad0_opsz24.xml delete mode 100644 app/src/main/res/drawable/login.xml delete mode 100644 app/src/main/res/drawable/logout.xml delete mode 100644 app/src/main/res/layout/activity_fullscreen_image.xml delete mode 100644 app/src/main/res/layout/concert_editor.xml delete mode 100644 app/src/main/res/layout/concert_item.xml delete mode 100644 app/src/main/res/layout/dialog_concert_song_selector.xml delete mode 100644 app/src/main/res/layout/fragment_concert_detail.xml delete mode 100644 app/src/main/res/layout/fragment_login_dialog.xml delete mode 100644 app/src/main/res/layout/fragment_metadata_dialog.xml delete mode 100644 app/src/main/res/layout/item_concert_song.xml delete mode 100644 app/src/main/res/layout/item_image.xml delete mode 100644 app/src/main/res/layout/item_song.xml delete mode 100644 app/src/main/res/layout/song_metadata_edit_dialog.xml rename app/src/test/java/{core => com/stormtales}/notevault/ExampleUnitTest.java (90%) diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..3f3ac07 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +NoteVault \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml deleted file mode 100644 index a55e7a1..0000000 --- a/.idea/codeStyles/codeStyleConfig.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml deleted file mode 100644 index 3ca65a2..0000000 --- a/.idea/dataSources.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - sqlite.xerial - true - org.sqlite.JDBC - jdbc:sqlite:$PROJECT_DIR$/music_database - - - - $ProjectFileDir$ - - - sqlite.xerial - true - org.sqlite.JDBC - jdbc:sqlite:$PROJECT_DIR$/music_database - - - - $ProjectFileDir$ - - - sqlite.xerial - true - org.sqlite.JDBC - jdbc:sqlite:$USER_HOME$/.cache/JetBrains/IntelliJIdea2024.1/device-explorer/Pixel Tablet API 30/_/data/data/core.notevault/databases/music_database - - - - $ProjectFileDir$ - - - file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.45.1/org/xerial/sqlite-jdbc/3.45.1.0/sqlite-jdbc-3.45.1.0.jar - - - file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.45.1/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar - - - - - \ No newline at end of file diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml deleted file mode 100644 index 612ad88..0000000 --- a/.idea/deploymentTargetDropDown.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml deleted file mode 100644 index b268ef3..0000000 --- a/.idea/deploymentTargetSelector.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 7c56af8..6edfe28 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,11 +1,10 @@ -