Commit Graph

111 Commits

Author SHA1 Message Date
Akash Yadav c440265396 fix: cache XmlRegistry instances 2023-09-12 18:15:47 +05:30
Akash Yadav 461bded415 fix: reduce frequence of 'creating resource table' log messages (closes #1265) 2023-09-12 10:57:03 +05:30
Akash Yadav dbdb8fcfa5 feat: add ability to disable logging in XmlRegistry 2023-09-12 00:25:21 +05:30
Akash Yadav 9c99d066c3 refactor: reorganize xml registries 2023-09-12 00:18:29 +05:30
Akash Yadav 2981bfb10e fix: register and load XML registries using ServiceLoader 2023-09-12 00:16:19 +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 d66e3b384c fix(projects): remove IProjectManager.app 2023-09-05 17:36:49 +05:30
Akash Yadav 7f3cc9f9bd fix: build variants are not updated when setting up project in tests 2023-09-05 17:36:49 +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 b107880ed2 fix: remove usage of hardcoded 'debug' variant in AndroidModule class 2023-09-05 17:36:41 +05:30
Akash Yadav f3351d1867 fix: generate sources for selected variant when XML files change 2023-09-05 17:36:41 +05:30
Akash Yadav 98d6cc2937 feat: allow user to select the app module to build and install in case of multi-app project 2023-09-05 17:36:40 +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 8c21fbc002 feat: add UI for build variants list 2023-09-05 17:36:35 +05:30
Akash Yadav 08d376f370 feat: merge file tree to left drawer using navigation rail 2023-09-05 17:36:32 +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 bd0bfe827f refactor: remove unused ':subprojects:classfile' module 2023-07-31 22:47:10 +05:30
Akash Yadav 1e07da7a98 fix(javac): add Java compiler flag to override -XDkeepComments flag
When the 'keepComments' flag is set, the compiler uses JavadocTokenizer for tokenizing the source code. While creating the LineMap instance, the JavadocTokenizer sets the 'expandTabs' flag to true which expands '\t' characters to spaces. This is needed while generating HTML pages for the Javadoc. However, if the tabs are expanded to spaces, then getPosition(...) and getColumnNumber(...) methods in the LineMap class return indices which cannot be directly used to insert text in the source code. This results in StringIndexOutOfBoundsException when trying to insert text in the editor (#1127, and probably #916 as well).

This commit adds the 'keepCommentsOverride' option to the compiler which is used by NBParserFactory to override the 'keepComments' flag. The CompileBatch class sets this option to 'ignore' which ignores the 'keepComments' flag so that JavadocTokenizer is not used for tokenization.
2023-07-21 18:46:44 +05:30
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