Commit Graph

80 Commits

Author SHA1 Message Date
Akash Yadav 7b2052b3b9 tests(aaptcompiler): fix NoClassDefFoundError error 2023-07-10 21:41:14 +05:30
Akash Yadav 6d7ad88468 fix(deps): migrate to newer builder model dependencies 2023-07-09 17:54:41 +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 067243b12b fix(tests/tooling-api): use JAVA_HOME from env if available 2023-07-09 16:26:07 +05:30
Akash Yadav 53b933ee01 fix(flashbar): flashbar is not dismissed if dismissal is requested before is it fully shown 2023-07-09 13:12:09 +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 663900f86b feat(templates): add ability to configure various elements in AndroidManifest 2023-05-25 19:11:24 +05:30
Akash Yadav 8a5d21e773 chore(ci): build android template projects 2023-05-16 23:01:16 +05:30
Akash Yadav a64faf4626 refactor(tooling-api): move findAndroidHome() to top level 2023-05-16 21:07:17 +05:30
Akash Yadav d9331eca80 fix(templates): use XmlBuilder from 'xml-dom' module for building XML files 2023-05-13 22:40:29 +05:30
Akash Yadav 80bd4ce3ee feat(templates): add helper methods to create values resources 2023-05-13 18:27:32 +05:30
Akash Yadav 59b9913fd9 feat(templates): add API to generate Java source files 2023-05-08 14:38:56 +05:30
Akash Yadav 80a74f9c1b refactor(xml-utils): remove unused XmlBuilder 2023-05-05 20:51:34 +05:30
Akash Yadav 04feadbae8 feat: add base files for the Templates API 2023-05-05 13:17:07 +05:30
Akash Yadav b950c34fb0 refactor(lookup): use ServiceLoader to load DefaultLookup 2023-04-30 23:26:09 +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 b74e71caa8 tests(tooling-api/testing): print AGP and Gradle version in tests 2023-04-12 12:41:28 +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
Akash Yadav a89e25680b tests: fix build issues 2023-03-31 23:34:33 +05:30
Akash Yadav 20376773cc fix(projects): do not store a copy of content in ActiveDocument 2023-03-31 20:24:51 +05:30
Akash Yadav ea75b9592b fix(projects): synchronize edits to ActiveDocument 2023-03-31 19:02:17 +05:30
Akash Yadav 684bd26ead fix(projects): delay in posting file related events to FileManager 2023-03-31 00:04:57 +05:30
Akash Yadav 81df6d29db build: include EventBusAnnotationProcessor locally 2023-03-30 23:49:17 +05:30
Akash Yadav cd55af5a19 fix(projects): doc version and lastModified is not updated after DocumentChangeEvent 2023-03-29 12:40:19 +05:30
Akash Yadav 8f6392ff55 feat(lsp: add option to perform code actions on main thread 2023-03-29 12:37:56 +05:30
Akash Yadav 51155f9456 feat: add patch ability to ActiveDocument 2023-03-29 11:55:53 +05:30
Akash Yadav e6d1e42004 feat: use Flashbar for project sync notification 2023-03-28 19:17:10 +05:30
Akash Yadav a7e9f350ae fix(flashbar): allow resetting duration to DURATION_INDEFINITE 2023-03-28 18:31:34 +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
Akash Yadav 1730d0ae67 fix(tooling-api): project initialization failure when the project contains a Java library module
This happens due to the use of relocated packages in AndroidIDE's Java Compiler API. The 'JavaModuleCompilerSettings' class references the 'javax.lang.model.SourceVersion.RELEASE_11' enum.
However, in AndroidIDE, the SourceVersion class has the package name 'jdkx.lang.model'.

The project compiles successfully as the ':subprojects:tooling-api-model' module is a Java library due to which, 'javax.lang.model.SourceVersion' can be referenced without any errors.
However at runtime, there is no such class and hence the 'NoClassDefFoundError' is thrown. This exception is silently logged to the error stream by the JSONRpc protocol and hence it
cannot be seen in the IDE logs.

This closes #875.
2023-03-18 13:48:19 +05:30
Akash Yadav fb4ec48940 refactor: fix lint issues 2023-03-14 19:40:24 +05:30
Akash Yadav 4149e3909e fix(projects): update entries from module source class indices on file events 2023-03-13 18:26:47 +05:30
Akash Yadav 642b1d4a13 fix(projects): update active document cache when a file is deleted or renamed 2023-03-13 15:46:33 +05:30
Akash Yadav d81c553557 fix: check tooling server state before executing tasks (fixes #847) 2023-03-09 23:18:45 +05:30
Akash Yadav d4db2635bd refactor: move javapoet to separate module 2023-03-05 23:29:39 +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
Akash Yadav 886a0cacfa feat: ignore 'package-info' when indexing sources and libraries 2023-02-26 10:46:28 +05:30
renovate[bot] 385e9cf080 chore(deps): update plugin com.github.johnrengelman.shadow to v8 (#818)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-25 18:16:41 +05:30
Akash Yadav 4ebda7fc8f feat: [EXPERIMENTAL] prune method bodies of files before parsing in JavaCompilerImpl 2023-02-23 23:22:57 +05:30
Akash Yadav 3d606d16b4 feat: use custom JavaCompiler implementation for Java LSP 2023-02-22 23:34:22 +05:30
Akash Yadav a4a59af9ed refactor: make ReusableCompiler open 2023-02-22 23:34:22 +05:30
Akash Yadav 52a75f0c15 refactor: move JavacConfigProvider to 'javac.config' package 2023-02-22 23:34:21 +05:30
Akash Yadav eeaed54edc fix: remove unnecessary reflective access in JavacConfigProvider 2023-02-22 23:34:21 +05:30