7051 Commits

Author SHA1 Message Date
Gouri Panda
34f555e5d2 bundle order issue fixed 2023-10-20 01:07:42 +05:30
Gouri Panda
5a90fbb273 updated sync code 2023-10-19 05:06:53 +05:30
Gouri Panda
304017ac2a updated sync code 2023-10-19 04:36:36 +05:30
Gouri Panda
7b1df6fb9a Versioncode reverse 2023-10-19 04:06:15 +05:30
Gouri Panda
a1483d1a45 Reverted some changes 2023-10-19 03:51:46 +05:30
Gouri Panda
bba0980d06 quick fix versionCode override 2023-10-19 03:11:48 +05:30
Gouri Panda
d446515128 quick fix versionCode override 2023-10-19 01:50:12 +05:30
Gouri Panda
bd75ba1852 Updated version code 2023-10-19 01:35:19 +05:30
Gouri Panda
69406b5800 Removed apk code 2023-10-19 01:21:48 +05:30
Gouri Panda
98ee430d92 Added sync in file download 2023-10-19 00:50:29 +05:30
MohitMali
69072ecee4 Removed playcore lib to test if bundle size remains same or not. 2023-10-18 16:17:07 +05:30
MohitMali
1f628abe66 Added a temporary script to check the whether bundle contains the asset or not. 2023-10-18 14:06:55 +05:30
Gouri Panda
f49e12d9d7 Added manifest file for the dwds module 2023-10-18 03:49:36 +05:30
MohitMali
725a5ccd0b Added overrided version code suffix 2023-10-17 15:36:10 +05:30
MohitMali
53d4ac1847 Fixed version code not found exception while publishing bundle on play store 2023-10-17 15:13:09 +05:30
MohitMali
71f851821a Fixed, uploadBundle method to properly upload bundle on play console instead of APKs 2023-10-17 14:38:20 +05:30
MohitMali
1b87900695 Fixed zim file not found when we try to retrieve it from Play asset delivery to our application.
* We are now storing the zim file name in buildConfig file which we will use when we try to retrieve it later.
* Improved downloading functionality.
2023-10-17 12:28:42 +05:30
MohitMali
4c951de69e Fixed, Unable to upload APK on play store for new apps.
* We have implemented Play Asset Delivery to include the ZIM file within the Android App Bundle (AAB).
* To achieve this, we've created Gradle tasks to automatically download the ZIM file and place it inside the assets folder.
* In order to utilize this asset file, we've refactored our custom application code.
* We haven't removed the functionality of uploading the APK, as this approach remains static for now. Thus, we are retaining both codebases.
2023-10-17 11:07:45 +05:30
Kelson
3a47ae601a
Merge pull request #3503 from kiwix/header_issue_in_custom_application
Fixed URLConnection not adding headers to the request.
2023-10-16 16:28:30 +02:00
MohitMali
7460b9d6e5 Fixed, Code formatting issue 2023-10-16 12:58:59 +05:30
Gouri Panda
c4405ab6d1 Fixed language bundle issue for the playstore 2023-10-14 12:48:02 +02:00
Gouri Panda
12c6f5ec79 Reverting fixed language bundle issue for the playstore 2023-10-14 12:48:02 +02:00
Gouri Panda
033d11679e Fixed language bundle issue for the playstore 2023-10-14 12:48:02 +02:00
MohitMali
8c9cdcb6c6 Disabled the universal APK as now we are uploading the dummy bundle for custom apps instead of APK. 2023-10-14 12:48:02 +02:00
MohitMali
8f0d3fff2c We have enabled the universal APK for custom apps because we require this universal APK to create dummy APKs for the Play Store. 2023-10-14 12:48:02 +02:00
MohitMali
11c5b3caa2 Fixed URLConnection not adding headers to the request.
* In this update, we've replaced the `URLConnection` with the OkHttp library, and now headers are being correctly passed in the request. As a result, the Zim file is successfully downloading.
* To integrate OkHttp into our Gradle project, we've moved the OkHttp dependency to our `buildSrc` folder.
2023-10-14 12:48:02 +02:00
Kelson
5e810391f0
Merge pull request #3487 from kiwix/Issue#1602
Reintroduced wifi hotspot feature in custom apps.
2023-10-14 12:47:44 +02:00
MohitMali
ec3095e484 Improved code to show proper error message to the user why the server is failed to start.
* if we run 2 servers at once (if in `app` server is already running then we can not run the server on the `custom` module since we can not run 2 servers on the same IP.) So for this, we have improved our code to show the proper error message so the user will know why the server is not running.
2023-10-14 09:59:39 +02:00
MohitMali
cb73c90bfc Fixed, the book is always unselected on the hosted books screen in custom apps. 2023-10-14 09:59:39 +02:00
MohitMali
8dda3678fb Fixed custom app not displaying Zim information on the Server screen 2023-10-14 09:59:39 +02:00
MohitMali
41be43d292 Fixed ZimHostFragment Open Issue for Both App and Custom Modules.
* We moved our server functionality to the core module to enable its use in both our app and custom modules. However, this change posed a challenge. We had a functionality that, when the user clicks on a notification, it takes them to the hosted book screen. By moving this functionality to the core module, we lost direct access to the navigation graph and `KiwixMainActivity` or `CustomMainActivity`.
* To address this issue, we introduced some abstract variables, such as navGraphId and mainActivity, which we set from both `KiwixMainActivity` and `CustomMainActivity`. This allows us to retrieve the navigation graph ID and the main activity.
* Additionally, we implemented a new function in `CoreApp` to set the currently running `CoreMainActivity`, which we use to obtain the navigation graph ID and main activity to perform the user click on notification.
2023-10-14 09:59:39 +02:00
MohitMali
94d592f545 Reintroduce wifi hotspot feature in custom apps.
* Moved wifi hotspot related files to core module to use hotspot functionality in both app and custom module.
* Moved permission in core manifest to access them in both modules.
* Removed some unnecessary files which is now no longer in use.
2023-10-14 09:59:39 +02:00
Kelson
0b240c6672
Merge pull request #3504 from kiwix/Issue#3426
Fixed, unable to open the support link with default browser.
2023-10-14 09:59:10 +02:00
MohitMali
5e9f183f6a Fixed, unable to open the support link with default browser.
* Fixed, pdf are not opening with default pdf viewer.
* Fixed, sending email are failed with default email service.
* Fixed, opening support link, external urls with default browser.
2023-10-13 18:45:12 +05:30
Kelson
af1cc84e5f
Merge pull request #3501 from kiwix/dwds_publishing_issue
Remove Authentication from URL before downloading.
2023-10-08 07:13:09 +02:00
Gouri Panda
cdd4ce7fae Revert checking the authentication if works 2023-10-08 02:02:35 +05:30
Gouri Panda
0b4b223692 checking the authentication if works 2023-10-08 01:53:14 +05:30
Gouri Panda
852deaf57b changed order of chain request 2023-10-08 01:14:08 +05:30
Gouri Panda
717d593ad3 Fixed the bug that was happening in the ci 2023-10-07 20:05:50 +05:30
MohitMali
3332421c60 Remove Authentication from URL before downloading.
* We have remove the authentication the url to make it normal url because we are adding authentication in headers so does not need to add in url.
* Enhanced getting secret function, if url is encoded then it will fail to get the secret from it so now we are properly decoding the url before extracting the secret key from it.
* To properly test these two functions we have added test cases for it.
2023-10-06 19:08:52 +05:30
Kelson
d399f6fe9f
Merge pull request #3500 from amire80/comma
Improve punctuation in a recently-added message
2023-10-05 16:30:57 +02:00
Amir E. Aharoni
d210cc7ad2 Improve punctuation in a recently-added message 2023-10-05 10:04:54 -04:00
Kelson
03b5f3dfce
Merge pull request #3492 from kiwix/Issue#3491
Fixed, The File transfer feature does not work in android 12, android 13.
2023-10-05 13:01:26 +02:00
MohitMali
51c3ce3d51 Fixed unit coverage 2023-10-05 14:08:24 +05:30
MohitMali
530faa46bb added a test case to evaluate the functionality of LocalFileTransferFragment.
* This test case is designed to verify that the functionality works correctly, especially addressing the issue where `LocalFileTransferFragment` would shut down when attempting to search nearby devices for connection.
2023-10-05 08:14:04 +02:00
MohitMali
e4d27e19a1 Improved code for android 13. 2023-10-05 08:14:04 +02:00
MohitMali
57a95f15d1 Fixed, The File transfer feature does not work in android 12, android 13.
* In Android 13, we previously used `intent.getParcelableArrayExtra` to retrieve the status of `P2P_DEVICE_CHANGED`. However, this method returned null because it's not actually an array. To resolve this issue, we have updated it to use `intent.getParcelableExtra`.
* For Android 12, we used to check the network state through `ConnectivityManager` every time the `WIFI_P2P_CONNECTION_CHANGED_ACTION` action was triggered. However, this approach wasn't reliable, as the action being triggered didn't guarantee a change in the network state. Instead, it sends an intent that we should now check for network changes. As a result, we have modified our code to utilize this intent within the `KiwixWifiP2pBroadcastReceiver`.
2023-10-05 08:14:04 +02:00
Kelson
9edc9d2a96
Merge pull request #3493 from kiwix/dwds_creation
Authentication created for DWDS app
2023-10-04 20:34:03 +02:00
Emmanuel Engelhart
cb20f85915
Fix URL template detection 2023-10-04 20:15:36 +02:00
MohitMali
77f5146d64 Fixed CustomDownloadViewModelTest 2023-10-04 19:17:12 +02:00