Commit Graph

58 Commits

Author SHA1 Message Date
Akash Yadav 999baab100 fix(tooling-api): use AndroidPluginVersion for comparing AGP version in AndroidProjectImpl (fixes #1440) 2023-11-10 14:35:33 +05:30
Akash Yadav 0931cbeff1 fix(tooling-api): make ToolingProps a public API 2023-11-09 12:51:48 +05:30
Akash Yadav d0b1689cdd tests(tooling-api): fix latest tested AGP version test 2023-11-09 11:34:35 +05:30
Akash Yadav cd96f10f5c fix(builder-model): migrate to latest APIs 2023-11-09 10:13:33 +05:30
Akash Yadav 611d3c3491 build: use Gradle Plugin and tasks to generate init script and copy tooling API to assets 2023-11-09 01:15:05 +05:30
Akash Yadav efaeb0435e refactor(logger): rename ILogger.Priority to ILogger.Level 2023-11-07 19:01:45 +05:30
Akash Yadav e985d2ac4d fix(tooling-api): handle failures related to project directory 2023-11-06 23:20:57 +05:30
Akash Yadav e28da6b352 fix: ILogger.Priority deserialization issues due to r8's enum unboxing 2023-11-04 17:58:51 +05:30
Akash Yadav 1e0dc747e0 fix: make LogLine recyclable 2023-10-09 18:24:00 +05:30
Akash Yadav cc0a6391f6 fix: add tests for MainFragment and refactor testing modules 2023-10-07 23:37:34 +05:30
Akash Yadav 6017b79a5a tests(tooling-api): update test to check for sync issues instead of build output 2023-10-05 21:45:51 +05:30
Akash Yadav 18ad0fb0e5 tests(tooling-api): do add unresolved dependency when config cache is enabled 2023-10-05 20:22:31 +05:30
Akash Yadav 5562dc2069 feat(tooling-api): fetch project sync issues from the Android Gradle Plugin 2023-10-05 20:05:16 +05:30
Akash Yadav 69e5671fb9 fix(tooling-api): NPE due to TaskOperationDescriptor.getOriginPlugin() being null (fixes #1358) 2023-10-04 20:20:47 +05:30
Akash Yadav 1a79c0bbf2 refactor: reformat code 2023-10-04 18:08:34 +05:30
Akash Yadav 6899e1f8fc fix(build-service,tooling-api): Gradle Daemon and ToolingAPI server is not stopped properly
The Tooling API server (which is executed in a separate process) was not being stopped properly after IToolingApiServer.shutdown() was called. As a result, the Gradle daemon started by the tooling API was not stopped as well.

This commit fixes this issue by properly implementing the shutdown() call in Tooling API. Now, when the user closes a project and the GradleBuildService is destroyed, the Tooling API server stops the Gradle daemon(s) and then shutdowns itself.
2023-10-03 22:36:20 +05:30
Akash Yadav 1d54a3ff4d tests: fix compilation issues 2023-10-02 12:27:56 +05:30
Akash Yadav 1874b911e7 fix(tooling-api): avoid recreating ProjectConnection multiple times
Also, the TaskExecutionMessage now only accepts the tasks to run, not the project path and the Gradle distribution params
2023-09-30 22:02:58 +05:30
Akash Yadav 4c95232854 fix(tooling-api): reuse GradleConnector whenever possible 2023-09-30 21:35:25 +05:30
Akash Yadav 5fe2a795e1 fix(tooling-api): remove usage of hardcoded root project path 2023-09-30 21:08:14 +05:30
Akash Yadav 4a44581ae3 tests(tooling-api): add test to ensure task events are dispatched when configuration cache is enabled (#1173) 2023-09-06 09:26:12 +05:30
Akash Yadav 4290de353d fix: add ability to use custom Gradle dist version in tooling API 2023-09-05 17:36:51 +05:30
Akash Yadav d3aebc36bd fix(tooling-api): warn user if the AGP version is greater than tested version 2023-09-05 17:36:47 +05:30
Akash Yadav bc014083c9 fix: specify minimum and latest AGP version in BuildInfo 2023-09-05 17:36:47 +05:30
Akash Yadav ee6aa11bb0 refactor: rename AndroidModule.selectedVariant to 'configuredVariant' 2023-09-05 17:36:42 +05:30
Akash Yadav 458dcf5641 fix(tooling-api): do not try to fetch model sync files on unsupported AGP versions 2023-09-05 17:36:39 +05:30
Akash Yadav f5143625ef refactor: migrate ProjectManager to interface based API 2023-09-05 17:36:39 +05:30
Akash Yadav 7d64702e3a fix(tooling-api): fall back to default variant if configured variant is not found 2023-09-05 17:36:38 +05:30
Akash Yadav 4b577f5eed feat: add support for selecting build variants in project (closes #223) 2023-09-05 17:36:37 +05:30
Akash Yadav 73f2b18a37 refactor(tooling-api): rename 'InitializeProjectMessage' to 'InitializeProjectParams' 2023-09-05 17:36:37 +05:30
Akash Yadav 79b7cc1083 fix: update AGP and builder-model API to v8.1.0 (fixes #1192) 2023-09-05 17:36:32 +05:30
Akash Yadav 7ad3fe86a5 feat: automatically select build variants for Android projects 2023-09-05 17:36:31 +05:30
Akash Yadav 8f74b0faee fix: project initialization error is not handled properly 2023-09-05 17:36:30 +05:30
Akash Yadav e725d1cacf feat(projects): implement project deserialization and transformation (2/2) 2023-09-05 17:36:30 +05:30
Akash Yadav e38348c9ff feat(projects): implement project deserialization and transformation (1/2) 2023-09-05 17:36:29 +05:30
Akash Yadav 823943625e feat(tooling-api): implement IJavaProject service 2023-09-05 17:36:29 +05:30
Akash Yadav de5e55c86e feat(tooling-api): new tooling API model implementation 2023-09-05 17:36:28 +05:30
Akash Yadav 314475ee23 fix(tests/tooling-api): update max AGP and Gradle version 2023-07-09 17:14:45 +05:30
Akash Yadav 430c15836d fix(tooling-api): misleading log message while initializing project
This commit fixes a misleading log message that shows 'Project XXXX is not an Android project' message for root projects
2023-07-08 23:15:29 +05:30
Akash Yadav faf2c3b916 fix: task names are trimmed from build output before build is executed (closes #1045) 2023-06-18 23:53:45 +05:30
Akash Yadav fa8680e873 refactor: replace hardcoded package names in build scripts with BuildConfig property 2023-04-13 22:56:17 +05:30
Akash Yadav a23617d27a tests(test-project): declare namespaces in build scripts 2023-04-10 09:08:00 +05:30
Akash Yadav 9cf8a01a65 tests(tooling-api): test only minimum supported and latest AGP version 2023-04-09 23:27:58 +05:30
Akash Yadav 7ddd2f5a82 tests: use FileProvider API to access file paths 2023-04-09 23:22:24 +05:30
Akash Yadav cb2a468cbe tests(tooling-api): fix invalid AGP version 2023-04-09 18:38:08 +05:30
Akash Yadav 5b60cb10ff tests: test AGP 8.0.2 with tooling API 2023-04-09 18:08:53 +05:30
Akash Yadav c4bbe1e349 fix: delete shadow jar files before copying 2023-04-08 20:14:31 +05:30
Akash Yadav 3aa6a045ad fix: 'tooling-api-all.jar' file not available for tests 2023-04-08 18:01:14 +05:30
renovate[bot] a4e69445ab chore(deps): update plugin com.github.johnrengelman.shadow to v8.1.1 2023-03-21 18:53:44 +05:30
renovate[bot] 8965b446eb chore(deps): update plugin com.github.johnrengelman.shadow to v8.1.0 (#830)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-28 18:23:52 +05:30