-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat - Support resolving debug & release variant from Android Java project #173
Conversation
b970b81
to
2a6b690
Compare
Hi @Tanish-Ranjan, I saw there are a lot of android resource files in the test project. Are they all necessary for testing purpose? |
No. The project was generated by the Android Studio, so there are a lot of resources generated along with it. I will narrow it down as I add the unit tests. |
plugin/src/main/java/com/microsoft/java/bs/gradle/plugin/SourceSetsModelBuilder.java
Outdated
Show resolved
Hide resolved
Changes: - Added Android Library Module to android-test project. - Added SourceSetUtils file with methods to check for android projects and retrieve source sets. - Added unit test to GradleApiConnectorTest for android-test project.
… and implement retrieval in SourceSetUtils.
…et properties. Changes: - Added most of the android build target properties. - Addressed checkstyle warnings - Changed GradleSourceSet to store set of resource output directories instead of one directory. - Removed temporary android testing methods.
Changes: - Added JavaDocs to AndroidUtils - Added SourceSetUtils for common utility methods for SourceSets. - Removed common method declarations from AndroidUtils and SourceSetsModelBuilder into SourceSetUtils.
Changes: - Removed unnecessary resource files from android-test project. - Completed AndroidModelBuilder unit test in GradleApiConnectorTest. - Suppressed and addressed minor warnings in DependencyCollector and SourceSetsModelBuilder. - Removed classloader approach for retrieving artifact components in AndroidDependencyCollector. - AndroidBuildVariant SourceSet now stores full task name for compileTask. - AndroidSDK Jar is also added to AndroidBuildVariant SourceSet compileClasspath.
9120f68
to
90a8abf
Compare
Changes: - Fixed android test project. - Added integration test to verify presence of android sdk component jar. - Moved android sdk component and R file from classpath to module dependency of a build target.
plugin/src/main/java/com/microsoft/java/bs/gradle/plugin/utils/AndroidUtils.java
Outdated
Show resolved
Hide resolved
Changes: - Removed default proguard files from android-test project. - Added a utility function for invocation of methods with reflection in AndroidUtils.
testProjects/android-test/app/src/main/res/mipmap/ic_launcher_round.xml
Outdated
Show resolved
Hide resolved
|
There a couple of limitations/improvements possible for Android support:
|
Hi @Tanish-Ranjan, Thank you for listing the follow-ups. Could you please copy the context information to the related issues as well. Currently, the linked issues are all empty. |
Changes: - Moved supportedLanguageModelBuilders method from the ModelBuilder to AndroidUtils. - Added JavaLanguageExtension to the android build target extensions property.
plugin/src/main/java/com/microsoft/java/bs/gradle/plugin/utils/AndroidUtils.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
With default build types |
This PR resolves android projects to build GradleSourceSets out of build variants.