177 Commits

Author SHA1 Message Date
MohitMaliFtechiz
07cca85c95 Improved the CI for using the same emulator. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
040e548391 Removed the canary channel from CI to run the emulator on stable versions.
* Added the emulator boot timeout so that emulator can boot if it takes long in booting.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
6a67c8bd5f Improved the CI for running custom app test cases.
* The emulator was not running on API level 25 so now we are directly running the new emulator for this without canary channel.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
fce89ef2b3 Updated the CI to run on separate emulator for custom app test cases.
* Upgraded the `uiautomator` version to `2.3.0`.
* Upgraded the `appcompat` version to `1.7.0`.
* Upgraded the coroutines version to `1.8.1`.
* Upgraded the `androidx.test:runner` version to `1.6.1`.
* Upgraded the `androidx.test:core` version to `1.6.1`.
* Upgraded the `androidx.test:orchestrator` version to `1.5.0`.
* Upgraded the `io.mockk:mockk` version to `1.13.12`.
* Upgraded the `org.junit.jupiter:junit-jupiter` version to `5.11.0`.
* Upgraded the `org.assertj:assertj-core` version to `3.26.3`.
* Upgraded the `androidx.annotation:annotation` version to `1.6.0`.
* Improved the SearchStateTest.
* Fixed some deprecated code which is deprecated in new dependencies.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
3f7d0f7214 Updated the testing_release.yml to use the JAVA 17.
* Updated the README file to show that now our project requires the JAVA 17 instead of JAVA 11.
* Updated the pre-commit failed message to properly show the error information.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
55d5019b2f Kept the emulator running after creating the instrumentation coverage so that the same emulator can be used for testing custom apps. This will reduce the CI timing since it will not create the new emualtor to run the custom app test cases. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
23fa4500df Improved the downloading for custom apps.
* Improved the CI to run the test cases for custom app on same emulator.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
3d29faf02e Running Android 13 test cases on default apis. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
79b441b29a Trying to run the android 14 emulator on default apis. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
302580b425 Fixed the CI was not running on emulators. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
19e18f6276 Configured CI to use Java 17 instead of Java 11 because new gradle version are needed Java 17 to compile the project. 2024-08-16 15:35:10 +00:00
MohitMali
f066272087 Running the Android 14 test cases with aosp_atd emulators since default apis is not available for Android 14. 2024-08-16 15:35:10 +00:00
Gouri Panda
86b977c950 Add API 34 to default 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
88a83be01d Updated to Android 14 & refactored some methods inorder to compile with the SDK 14 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
a76cef9cee Introduced new standalone apk for website and nightly.
* Created a new package name for the website and nightly APK so that the playStore does not recognize it and do not show updates for these apks.
* Refactored the release CI to upload the app with this new appId.
2024-07-22 18:37:38 +05:30
MohitMaliFtechiz
79add751a4 Updated the remaining action in pull_request.yml file. 2024-07-19 18:56:13 +05:30
MohitMaliFtechiz
8e62954d4a Using latest versions of actions.
* Updated the version of actions used in our workflows.
2024-07-19 18:56:04 +05:30
MohitMaliFtechiz
882784d0ea Fixed: Automatically publish to PlayStore for internal testing team.
* Implemented a method to automatically generate a unique version code by calculating the number of days from the reference date (July 17, 2024) to the current date and adding this value to the base version code (231101) from the last release.
* Added a workflow that automatically generates the bundle and uploads it to internal testing every Monday at 12:00. This workflow will also trigger under the `internal_testing` tag.
* Since we are implementing this, it is necessary to directly release the bundle to internal testing instead of placing it in draft (to eliminate manual steps), so we have refactored our code accordingly.
2024-07-19 18:55:48 +05:30
MohitMaliFtechiz
31e1458928 Fixed emulator is not starting while running custom apps test cases. 2024-07-03 20:27:28 +05:30
MohitMaliFtechiz
2a4c9c51d4 Added test cases for custom apps so that we can avoid the error in search functionality of custom apps. 2024-07-03 16:25:41 +05:30
MohitMaliFtechiz
ed0ffad86c Uploading nightly APK with released signature.
* Uploading nightly APK with a released signature so that APK can update, if a user downloads the new version of nightly like our released APK.
* Modified the nightly CI for this change.
2024-05-14 15:34:27 +05:30
MohitMaliFtechiz
396e291028 Added the heap size in API level 25 emulator. 2024-05-13 18:06:36 +05:30
MohitMaliFtechiz
34928323d5 Updated minimum SDK version to 25.
* Updated the `README.md` file for this new change.
* Removed the API level 24 from CI and added the API level 25 since now our minimum SDK version is 25.
* Renamed CompatV24 file since we have upgraded the minimum SDK version so this fileName was irrelevant.
2024-05-13 13:03:21 +05:30
MohitMaliFtechiz
b0caf69715 Changed the runner version to ubuntu-22.04. 2024-04-16 10:50:03 +05:30
MohitMaliFtechiz
30424518a8 Re-enabled the caching of avd. 2024-04-15 16:51:58 +05:30
MohitMaliFtechiz
d0cf899009 Add heap-size to emulator. Also, set to not force create the avd when running the test cases. 2024-04-15 16:51:51 +05:30
MohitMaliFtechiz
fa5e1cfc82 Changing runner to ubuntu-latest.
* Changed the runner of CI to `ubuntu-latest` to boost the performance.
*  Enabled the `fail-fast` option in CI, if any of jobs fail on any emulator then it will cancel the all jobs running on other emulators in the current process so that other PRs do not need to wait to finish this job. Also, this will reduce the running timing on CI since if a job fails on any emulator we need to fix that so running others jobs does not make sense. So we are canceling those jobs if any fail.
* Introducing caching for AVD to run test cases faster. It will reduce emulator boot time.
* Changed emulator configurations for the 'ubuntu-latest' runner. Removed the 'disk-size' option since it was throwing an error, causing the emulator not to boot. Also, reduced the SD card size to 2GB from 4GB.
* Reduced the SD card size to 2GB from 4GB.
2024-04-15 16:51:44 +05:30
Emmanuel Engelhart
4ed3511660
Add CODECOV_TOKEN 2024-04-12 18:43:48 +02:00
MohitMaliFtechiz
00580d5afa Increased ram, cores and heap-size for API level 30 emulator for better test performance.
* Improved test performance.
2024-04-10 19:02:25 +05:30
MohitMaliFtechiz
50ea34228e Improved the Refreshing data check for loading the ZIM files from phones storage.
* Improved the `LanguageFragmentTest` slightly to wait for the searched language to appear at the top of the list.
* Running the CI on `aosp_atd` instead of `google_apis`.
2024-04-10 19:01:51 +05:30
MohitMaliFtechiz
c120caacaa Re-enabled the CI on API level 24 and 30. 2024-03-20 11:34:46 +05:30
MohitMaliFtechiz
59cd4cffe3 Disabling animation on emulator since espresso sometimes giving error due to animation. 2024-03-20 01:17:55 +05:30
MohitMaliFtechiz
f590988eae Disabled CI on API level 24 and 30 to test the fixes immediately. 2024-03-20 01:16:38 +05:30
MohitMaliFtechiz
394e72be27 Removed the "develop" branch from CI because it no longer exists, rendering it redundant. 2023-12-21 06:32:14 +01:00
MohitMaliFtechiz
a4227f04a1 Fixed incorrect indentation. 2023-12-21 06:32:14 +01:00
gouri-panda
e23e4190f4 updated ram-size 2023-12-21 06:32:14 +01:00
gouri-panda
005434ec13 Fixes #3615 2023-12-21 06:32:14 +01:00
gouri-panda
2a3d479509
Fixes a small bug in the apk dir variable 2023-12-03 16:05:47 +01:00
Emmanuel Engelhart
88f020ea80
Use GitHub 'release' event to trigger release 2023-11-25 10:26:18 +01:00
MohitMali
3e40c095a4 Refactored ci to support minimum api level 24
* Since our minimum API level is now 24, we have updated our CI configuration to run on API level 24, which aligns with the minimum API level required for our project.
2023-09-18 19:13:20 +02:00
MohitMali
af23cf56b7 Detecting deprecated code via detekt and fixed detekt detection for the issues in project, and refactored deprecated rules of detekt 2023-07-19 08:09:31 +02:00
MohitMaliFtechiz
020e167596 Removed version info publishing task from release CI 2023-05-29 12:38:42 +05:30
MohitMaliFtechiz
8deaa4a0fe Added heap size and increased sd card size to 4GB for android 13 emulator 2023-05-04 12:09:40 +02:00
Emmanuel Engelhart
5320e4276b Use latest version of android-emulator action 2023-04-13 20:54:03 +02:00
Emmanuel Engelhart
46cf2d0300
Use uppercase variable names 2023-04-13 13:07:22 +02:00
Emmanuel Engelhart
942d70ac52
Better step names 2023-04-13 13:01:24 +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
4e110e7a9b Upgraded ubuntu version to 22.04 2023-04-05 19:44:24 +05:30
MohitMaliFtechiz
5b1c480c66
Upgraded ubuntu version in pull_request.yml 2023-04-05 15:31:39 +02:00
MohitMaliFtechiz
343308a9df Fixed jacocoTestDebugUnitTestReport not found error 2023-03-29 09:14:46 +02:00