49 Commits

Author SHA1 Message Date
MohitMaliFtechiz
05e231579b Fixed: Compilation issues in unit test cases. The issue was in Gradle itself, which was preventing us from merging or excluding duplicate META-INF files.
* Upgraded Gradle to `8.11.0-alpha03` for better support for Android 16.
* Upgraded the Gradle wrapper to `8.13`, the latest version.
* Fixed: Some deprecated methods in the custom app's Gradle. The new methods for registering tasks are better than the previous ones, which is why Gradle deprecated the older methods.
* Refactored the `createDynamically` task for custom apps according to new gradle.
* Fixed: Some lint and detekt issues.
2025-03-31 15:27:31 +05:30
MohitMaliFtechiz
f34d46cc7b Added target, compileSdkVersion versions since now there are sources available for SDK 36. 2025-03-31 12:11:09 +05:30
MohitMaliFtechiz
5d88048976 Upgraded the org.jetbrains.kotlinx:kotlinx-coroutines-rx3 to version 1.10.1.
* Upgraded the `androidx.test:orchestrator` to version `1.5.1`.
* Upgraded the `androidx.constraintlayout:constraintlayout` to version `2.2.0`.
* Fixed the last lint issue.
2025-03-31 12:11:09 +05:30
MohitMaliFtechiz
fbe7712b03 Added support for Android 16. * Upgraded the AGP to which supports Android 16.
* Replaced the  and  with , and  to add support for Android 16.
2025-03-31 12:11:09 +05:30
MohitMaliFtechiz
6721be1764 Upgraded detekt and ktlint libraries to latest version. 2025-02-21 19:05:43 +05:30
MohitMaliFtechiz
8f6cde05b3 Fixed, package name and R classes not found in custom module 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
2a9bbe71b3 Resolve namespace issues for compatibility with Gradle 8.0 and above. * In compliance with the requirement to specify a namespace for each module, we have eliminated package names from manifests and introduced namespace declarations in the Gradle files. * Considering the presence of multiple apps in the custom app, we configured the namespace during the creation of product flavors. * To enhance clarity and understanding, comprehensive comments have been added. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
53a259f2bb Improved the Zim file writing for APK(OBB files). 2024-06-14 12:22:03 +05:30
MohitMaliFtechiz
69a7099bc6 Fixed: Not able to upload 512MB+ custom apps anymore.
* Introduced the splitting zim file with 500MB for custom apps. Since the bundle has a limit for a file to upload it uses the play asset delivery mode, and for new custom apps, playStore does not allow to upload the apk (with apk we can upload more than 1GB file). So to address this issue we have introduced a feature in libzim where we can load the zim files via the fd list.

* We have modified our code to upload the files with 500MB chunks in the asset folder, and later we are accessing these files from the asset folder and creating the archive object with the help of the new libzim feature.
2024-06-13 17:36:15 +05:30
MohitMaliFtechiz
62883febb3 Fixed: Resolved the issue where Google Play Store displayed an error during APK upload.
* We have excluded the universal APK from the variant list that is being uploaded to the Play Store.
* This exclusion is necessary because we cannot disable the universal APK, as it is required to set the version code for the bundle. Disabling the universal APK would result in the bundle version code being set exclusively for `x86_64`.
2023-12-28 19:24:09 +05:30
MohitMali
c8b98cc504 Using ParcelFileDescriptor instead of FileDescriptor.
* Telling android to not compress the `.zim` files in asset folder while building the apk/bundle.
2023-11-12 18:06:05 +01:00
Gouri Panda
a2f2bee81f Updated the asset folder naming 2023-10-21 13:15:59 +05:30
MohitMali
338d64efa7 Refactored the code to make the 'Play Asset Delivery' process generic.
* Renamed the module to 'install_time_asset' to make it generic for every custom app.
2023-10-20 16:16:34 +05:30
Gouri Panda
e32ba6d70b Bundle order issue fixed 2023-10-20 02:03:51 +05:30
MohitMali
1d39d35d98 Added build task to sync the changes.
* In our 'publishingBundle' task, we are sequentially executing the 'downloading' and 'buildingBundle' tasks. Since we dynamically download and place the ZIM file, Gradle does not initially recognize any new files added to the asset folder. As a result, these files are not included in our bundle. Now, after downloading and placing the ZIM file in the asset folder, we synchronize our changes, allowing Gradle to detect the addition of new files.
2023-10-19 16:03:56 +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
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
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
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
MohitMaliFtechiz
aa86a88acb Fixed Auth.kt file using some deprecated method 2023-06-28 18:27:50 +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
MohitMaliFtechiz
093384d00f Upload apk on play store instead of uploading the app bundle 2023-05-25 17:18:18 +05:30
Gouri Panda
13865c67dc Removed universal apk 2023-05-19 17:29:32 +05:30
Gouri Panda
576327dc92 updated language split for each apk in the bundle 2023-05-19 13:17:21 +02:00
MohitMaliFtechiz
defedb495a Removed deprecated versionCodeOverride and versionNameOverride uses from custom application 2023-04-19 19:53:49 +02:00
MohitMaliFtechiz
fd26fd370b Removing the deprecated method and uploading only the aab file for custom apps on play store 2023-04-19 19:53:49 +02:00
MohitMaliFtechiz
7f38468c31 Upload bundle on playstore instead of apk for custom apps 2023-04-19 19:53:49 +02:00
MohitMaliFtechiz
aee9d28d9d
Changed secret key as PLAYSTORE_JSON
We have updated the release.yml file to use the new PLAYSTORE_JSON secret key instead of the google_json secret key that was previously used to get credentials. As part of this update, we have renamed the google.json file to playstore.json for better naming consistency with the new secret key.
2023-04-13 12:57:34 +02:00
MohitMaliFtechiz
32d672fd72 merging fixes with develop 2022-06-20 13:23:44 +05:30
Sean Mac Gillicuddy
226e787f66 #12 Make three options to deactivate sidebars, tabs and reading - read from json - tidy file up 2020-02-12 15:32:05 +00:00
Sean Mac Gillicuddy
7d74969dd9 #947 convert build.gradle to build.gradle.kts 2019-11-29 13:54:28 +00:00
Sean Mac Gillicuddy
8f776261f0 add line to trigger build 2019-11-25 10:22:28 +00:00
Sean Mac Gillicuddy
23aa204660 remove lintOption post removal of kiwix_icon_with_title 2019-11-21 11:45:07 +00:00
Sean Mac Gillicuddy
7e588c8c2e Re-add dynamic flavors 2019-11-19 17:19:48 +00:00
Sean Mac Gillicuddy
80b26132fe Update icons to be adaptive 2019-11-18 10:26:31 +00:00
Sean Mac Gillicuddy
8057ef6b6e 1360 add custom publishing code for a custom app 2019-11-14 14:39:52 +00:00
Sean Mac Gillicuddy
332cd032f3 1360 rename file to more appropriately reflect usage 2019-11-06 15:42:43 +00:00
Sean Mac Gillicuddy
778fc768ae 1360 Make abi splits, signing configs and valid release builds intrinsic to an app that applies our plugin - separate custom build logic 2019-11-06 15:22:57 +00:00