-
Notifications
You must be signed in to change notification settings - Fork 499
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
Fix #3277: Created BUILD.bazel for domain/state #3694
Fix #3277: Created BUILD.bazel for domain/state #3694
Conversation
@fsharpasharp @anandwana001 @prayutsu created a PR but unable to add dependencies in BUILD.bazel please help |
All the dependencies in the domain/utility classes are of model and it has no bazel packages for it therefore I'm haveing trouble including the dependencies of the domain/utility classes |
@yash10019coder you'll need to add dependencies from https://github.com/oppia/oppia-android/blob/develop/model/BUILD.bazel, e.g.: |
…bazel/state in global of bazel/domain in kt_android_library
@BenHenning I have added these dependencies in my latest commit but I still get some errors and how did you found out that we have to put this in dependencies //model:exploration_java_proto_lite three is no mention of the java files in it and I'm attaching the screenshot of the error |
@yash10019coder To find out what deps need to be added, you can check the imports of the file |
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.
@yash10019coder Left some comments, PTAL.
.idea/runConfigurations.xml
Outdated
</set> | ||
</option> | ||
</component> | ||
</project> |
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.
Please restore this file.
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.
It appears this file was removed again--please restore it.
visibility = ["//:oppia_api_visibility"], | ||
deps = [ | ||
"//model:exploration_java_proto_lite" | ||
] |
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.
Add all missing deps that are being highlighted in the build error.
Ditto for other added libraries.
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.
@prayutsu that I have understood but the main problem is how to find which proto is to be added
like AnswersAndResponse.java is being used in StateDeck but now how can I find the particular of this in bazel/model
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.
You need to find the proto file that contains the message AnswerAndResponse
in it and then you can specify the library of that file here.
To find the .proto file just press Ctrl + Shift + R
and type the keywords that you want to search in the whole codebase.
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.
@yash10019coder Followed up on our comment.
visibility = ["//:oppia_api_visibility"], | ||
deps = [ | ||
"//model:exploration_java_proto_lite" | ||
] |
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.
You need to find the proto file that contains the message AnswerAndResponse
in it and then you can specify the library of that file here.
To find the .proto file just press Ctrl + Shift + R
and type the keywords that you want to search in the whole codebase.
…some java_proto_lite in bazel/model
@prayutsu @fsharpasharp made a new commit PTAL |
Unassigning @yash10019coder since a re-review was requested. @yash10019coder, please make sure you have addressed all review comments. Thanks! |
Also removed the internal keyword from StateDeck.kt StateGraph.kt and StateList.kt
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.
@BenHenning resolved the comments
domain/src/main/java/org/oppia/android/domain/state/StateDeck.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/android/domain/state/StateDeck.kt
Outdated
Show resolved
Hide resolved
@BenHenning PTAL |
Unassigning @yash10019coder since a re-review was requested. @yash10019coder, please make sure you have addressed all review comments. Thanks! |
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.
Thanks @yash10019coder. Just 2 new comments.
Similar to my comment in your other PR, please make sure to respond via a comment to all conversation threads from reviewers to confirm you saw them & addressed/didn't address them.
domain/src/main/java/org/oppia/android/domain/state/StateDeck.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/android/domain/state/BUILD.bazel
Outdated
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.
Thanks @yash10019coder. Justhad one follow-up.
domain/src/main/java/org/oppia/android/domain/state/BUILD.bazel
Outdated
Show resolved
Hide resolved
…9coder/oppia-android into create-build-bazel-domain-state
@BenHenning removed unused and unncesscarty imports from the bazel build file PTAL |
Added some deps in glob due to failing tests these changes happened due to merge conflict
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.
Thanks @yash10019coder. This LGTM!
@prayutsu it seems you requested changes. Could you PTAL? |
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, Thanks @yash10019coder
@BenHenning This is ready to merge now 😄 |
Thanks @prayutsu & @yash10019coder. |
Explanation
Fixes #3277
Created a BUILD.bazel file in domain state
Checklist