Commit Graph

69 Commits

Author SHA1 Message Date
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
Akash Yadav 8ae3b0a05c refactor: create independent method for caching locations in JavacFileManager 2023-02-20 20:41:54 +05:30
Akash Yadav 840bacd5b5 refactor: set java version for javac-related projects to JAVA_11 2023-02-14 18:51:41 +05:30
Akash Yadav 29f9868f54 chore: include nb-javac-android as subproject 2023-02-14 18:35:37 +05:30
Akash Yadav 2b61d92c80 fix: UTF-8 character in CharOperation causes build issues on Windows (closes #762) 2023-02-12 00:14:18 +05:30
Akash Yadav 2a841748b8 fix: invalid path specified in :subprojects:tooling-api-model:copyToTestDir Gradle task 2023-02-12 00:12:35 +05:30
Akash Yadav 40d128d76e refactor: resolve some compiler warnings 2023-02-11 21:34:37 +05:30
Akash Yadav 0f6abf34cf refactor: rename package 'javax' to 'jdkx' 2023-02-11 21:12:55 +05:30
Akash Yadav 96ca54c394 refactor: removed unnecessary JavacTaskUtil class 2023-01-28 22:49:45 +05:30
Akash Yadav 1cc1f21ea7 fix(tooling-api): FileTypeAdapter is incorrectly implemented 2023-01-28 22:39:49 +05:30
Akash Yadav 755043b050 refactor(javac): update nb-javac-android
This replaces the usage of 'com.sun' package from javac to 'openjdk'.
2023-01-28 22:39:48 +05:30
Akash Yadav f8e370a9e4 fix: update tests to be compatible with JDK 17 2023-01-28 22:39:47 +05:30