6932 Commits

Author SHA1 Message Date
MohitMaliFtechiz
79960d952c Fixed lint failure 2023-06-29 18:29:35 +05:30
MohitMaliFtechiz
ec1b6ac9f7 Review fix 2023-06-29 18:13:26 +05:30
MohitMaliFtechiz
2c045b8cfe Refactord tests 2023-06-29 18:09:13 +05:30
MohitMaliFtechiz
18580f53f1 Added note test 2023-06-29 17:45:05 +05:30
MohitMaliFtechiz
a8f8b25681 Migrated Note to Room 2023-06-29 17:38:52 +05:30
Gouri Panda
a759e09065 Added secondary constructor for RecentSearchRoomEntity and deprecated NewRecentSearchDao 2023-06-29 16:46:31 +05:30
MohitMaliFtechiz
602b84a75f Removed fdroid variant
* We have removed the F-Droid variant since we are not planning to publish the application on F-Droid until we have completely removed Object Box from our codebase.
2023-06-29 15:39:30 +05:30
MohitMaliFtechiz
8d90e1b085 Added edge test cases in ObjecBoxToRoomMigrator for recent search migration 2023-06-29 15:39:18 +05:30
MohitMaliFtechiz
096b66fe08 Placing condition for checking recent search migrated or not using sharedPreference 2023-06-29 15:39:10 +05:30
MohitMaliFtechiz
27e039cc50 Fixed unit coverage 2023-06-29 15:39:00 +05:30
MohitMaliFtechiz
aa4a121531 Removed FdroidCallback and improved test cases 2023-06-29 15:38:49 +05:30
MohitMaliFtechiz
8a5a3814de Added test cases for inserting very long values, undefined values, empty values, unicode values into room database for recent searches 2023-06-29 15:38:37 +05:30
MohitMaliFtechiz
fd6befd380 Refactor test cases 2023-06-29 15:38:24 +05:30
MohitMaliFtechiz
7fd5e18ad9 separating room accesor and migration code 2023-06-29 15:38:12 +05:30
MohitMaliFtechiz
9cd6db9204 Fixed test failure and improve funcation naming 2023-06-29 15:37:59 +05:30
MohitMaliFtechiz
3cb05bbecd Migrated recentSearchRoomDaoTest test cases into one test 2023-06-29 15:37:45 +05:30
MohitMaliFtechiz
b197d89583 Improved variables naming
* Fixed BUILD_TYPE condition issue.
* Improved code for `RecentSearchRoomDaoTest`
2023-06-29 15:37:35 +05:30
Gouri Panda
3fa1f27418 Fixed test cases 2023-06-29 15:37:24 +05:30
Gouri Panda
520310ca72 Fix test bug 2023-06-29 15:37:10 +05:30
Gouri Panda
c5237b8c82 Added & refactored tests 2023-06-29 15:36:58 +05:30
Gouri Panda
f05c867a2f Created separate database callback for separate releases 2023-06-29 15:36:46 +05:30
Gouri Panda
bc7bf966a2 Fix fdroid gradle 2023-06-29 15:36:27 +05:30
Gouri Panda
eae11d8d47 Refactored/migrated From Object box to Room 2023-06-29 15:36:16 +05:30
Gouri Panda
536ddf7372 Added Room dependency 2023-06-29 15:36:05 +05:30
Gouri Panda
2627c28378 Added playstore and fdroid flavors to gradle 2023-06-29 15:35:53 +05:30
Kelson
1fd71b51c9
Merge pull request #3436 from kiwix/Issue#3430
Fixed `Toast.getView()` and `Html.fromHtml()` is deprecated
2023-06-28 18:29:26 +02:00
MohitMaliFtechiz
36803af9e2 Fixed Toast.getView() and Html.fromHtml() is deprecated
* We already handled the deprecation of `fromHtml`, we have a string's extension function to handle the this so we are now using that function.
* Since `Toast.getView()` is no longer supported after Android 11 (it always returns null on Android 11 and above devices), we no longer need to show the toast on the ZIM file that is clicked by the user for UI enhancement. Therefore, we have removed this function and are now using the context class extension function to display the toast message.
2023-06-28 18:29:02 +02:00
Kelson
4723d869d2
Merge pull request #3437 from kiwix/Issue#3429
Fixed Auth.kt file using some deprecated method
2023-06-28 18:27:58 +02:00
MohitMaliFtechiz
aa86a88acb Fixed Auth.kt file using some deprecated method 2023-06-28 18:27:50 +02:00
Kelson
8c20953b5d
Merge pull request #3432 from kiwix/Issue#3428
Fixes of Fragment's onActivityCreated is deprecated
2023-06-27 17:24:26 +02:00
MohitMaliFtechiz
8791a824b6 Fixes of Fragment's onActivityCreated is deprecated 2023-06-27 17:23:57 +02:00
Kelson
a32eac811d
Merge pull request #3411 from kiwix/Issue#3351
Fixed some `lintOptions` are deprecated
2023-06-27 17:23:08 +02:00
MohitMaliFtechiz
c18c9d7bba Fixes for some Lint options have been deprecated in newer Gradle versions.
We have introduced a new method, configureCommonExtension, in the AllProjectConfigurer.kt file since Lint is only available in CommonExtension. This allows us to configure Lint in one place for every module. Previously, we couldn't directly use Lint in the android-library project, but with this approach, we can now configure Lint for the android-library project as well.
2023-06-27 17:22:59 +02:00
Kelson
3049494e3d
Merge pull request #3416 from kiwix/Issue#3415
Fixes of `isDrawingCacheEnabled` and `drawingCache` of View class is deprecated
2023-06-27 17:22:19 +02:00
MohitMaliFtechiz
a3de2a25c7 Fixed extra space on the webview top if the webview is not atteched to any view 2023-06-27 17:22:10 +02:00
MohitMaliFtechiz
17cbcf082d Refactor tab preview to use WebView instead of creating a bitmap
This commit introduces changes to the tab preview functionality in order to improve performance and memory usage. The previous approach of creating and storing bitmaps for tab previews has been replaced with a more efficient method utilizing WebView.

Changes Made:
- Modified the onBindViewHolder method in TabsAdapter to utilize WebView for tab previews.
- Removed the ImageUtils.kt class as it is no longer needed for bitmap storage.

Impact:
- Improved performance and reduced memory usage by directly displaying the WebView for tab previews.
- Eliminated the need for bitmap creation and storage, resulting in a more efficient implementation.
2023-06-27 17:22:10 +02:00
MohitMaliFtechiz
03ee22eb8a Removing the bitmap dependency to show the preview image 2023-06-27 17:22:10 +02:00
MohitMaliFtechiz
790de4e98e Fixes of if we open tab in background then a blank preview is showing 2023-06-27 17:22:10 +02:00
MohitMaliFtechiz
802f130bb8 Fixes of isDrawingCacheEnabled and drawingCache of View class is deprecated 2023-06-27 17:22:10 +02:00
Kelson
949fefdad9
Merge pull request #3423 from kiwix/Issue#3421
Fixes of windowManager.defaultDisplay.getMetrics(this) is deprecated
2023-06-27 17:21:15 +02:00
MohitMaliFtechiz
663afd3eeb Fixes of windowManager.defaultDisplay.getMetrics(this) is deprecated 2023-06-27 17:20:54 +02:00
Kelson
7c6f236f29
Merge pull request #3425 from kiwix/Issue#3424
Fixes of `KiwixWebView` using some deprecated methods
2023-06-27 17:19:56 +02:00
MohitMaliFtechiz
d2662c1aa4 Removed the deprecated FLAG_FULLSCREEN, FLAG_FORCE_NOT_FULLSCREEN.
We have removed the usage of deprecated flags FLAG_FULLSCREEN and FLAG_FORCE_NOT_FULLSCREEN. Instead, we are now using the updated API `WindowCompat.setDecorFitsSystemWindows` to handle fullscreen mode. This API automatically takes care of handling fullscreen behavior for both older and newer API levels.
2023-06-27 13:00:33 +05:30
MohitMaliFtechiz
35ff151e9b Updated SaveHandler to use Bundle.get() instead of deprecated msg.data['url']` 2023-06-27 13:00:33 +05:30
MohitMaliFtechiz
97a17eac3a Fixes of shouldOverrideUrlLoading and onReceivedError deprecated method of WebViewClient 2023-06-27 13:00:33 +05:30
MohitMaliFtechiz
bb0a49902e Fixed supportInvalidateOptionsMenu() deprecated method used in KiwixWebChromeClient 2023-06-27 13:00:33 +05:30
MohitMaliFtechiz
2ff07a7606 Fixes of WebView.HitTestResult.IMAGE_ANCHOR_TYPE is deprecated 2023-06-27 13:00:33 +05:30
Kelson
b00c3ecc9e
Merge pull request #3417 from kiwix/Issue#3336
Fixes of ProgressDialog is deprecated
2023-06-23 07:03:38 +02:00
MohitMaliFtechiz
5256af49cd The item_progressbar.xml file has been renamed to item_custom_spinner.xml for better readability of the file 2023-06-23 07:02:17 +02:00
MohitMaliFtechiz
543d336d4c Changes after review 2023-06-23 07:02:17 +02:00