Skip to content
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

Hello world Kotlin Jetpack Compose Example; Fixes:#3550 #3769

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

himanshumahajan138
Copy link
Contributor

@himanshumahajan138 himanshumahajan138 commented Oct 18, 2024

Pull Request

Fixes: #3550

Description

Added Kotlin Android Jetpack Compose Example insuring proper integration of AndroidAppKotlinModule with Jetpack Compose

Related Issues

Checklist

  • Android hello world application with Jetpack Compose integration.
  • Code is clean and follows project conventions.
  • Documentation has been updated (to be done after review)

Additional Notes

@lihaoyi Sir Please review my PR First if everything from the code side is accepted then i will proceed with documentation Part for the changes
Please Pardon me if I made any mistake...

@lihaoyi
Copy link
Member

lihaoyi commented Oct 19, 2024

Left some comments. Looks reasonable overall. Haven't tested it manually, but will do before merging.

@himanshumahajan138
Copy link
Contributor Author

All Reviews Has been Resolved if any further changes are needed then please review this again

If Code is done, then I will move to the documentation part (please confirm once)

@lihaoyi
Copy link
Member

lihaoyi commented Oct 19, 2024

Please proceed with documentation, you do not meed to wait until code is done

@0xnm
Copy link
Contributor

0xnm commented Oct 20, 2024

I think what you are missing here (to be precise - in your previous PR) is support of the resources: drawables (at least for the icon), strings, etc. Because no real-world app won't be released without those. There is also a question of different qualifiers support, but this is another story.

@himanshumahajan138
Copy link
Contributor Author

I think what you are missing here (to be precise - in your previous PR) is support of the resources: drawables (at least for the icon), strings, etc. Because no real-world app won't be released without those. There is also a question of different qualifiers support, but this is another story.

yes Sir, i know actually when i raised this pr i just solved the unresolved reference error and i think that its working but today when i tested my android application then i came to know that its crashing(and discussed same in discord about aar full support today)

Now i am working in the rest of the implementation and if you know something about how the android aar files are handled in the backend(like how their resources are merged, manifest.xml merge, R.txt merge and many other things) i my self have reached out a lot of android developers but still didn't got the right answer

no worries i will try my best to solve this issue

any help appreciated...

@himanshumahajan138
Copy link
Contributor Author

himanshumahajan138 commented Oct 21, 2024

Finally, its Done App is running and Working

Documentation also Updated; All Tests Passed

@lihaoyi Please Provide Final reviews if Required....

Please Pardon me if i made any mistake...

Screenshot:
WhatsApp Image 2024-10-21 at 22 19 38_4fa92c7d

@lihaoyi
Copy link
Member

lihaoyi commented Oct 23, 2024

@himanshumahajan138 I tried this out locally, it appears that we do not make any use of Jetpack Compose in the actual application example, and everything still works even when the Compose ivydeps and imports have been commented out. This needs to use Jetpack Compose to in the application to make sure it actually works

@himanshumahajan138
Copy link
Contributor Author

@lihaoyi I Will make it work also but first i think we should do something for SDK coz downloading it again and again sense out nothing

@himanshumahajan138
Copy link
Contributor Author

himanshumahajan138 commented Oct 24, 2024

@lihaoyi Sir I have Updated whole android Setup, Examples and fixed that error (if ivydeps are commented)

Updations:

  • Android Sdk Paths updated and fixes the issue of re-downloading again and again
  • Changed the Whole process for AAR files from res to jar full updated
  • Professional Support for Jetpack compose
  • Previous Android Examples updated with new structure
  • optimised the code for better speed (reduce time for downloading and installing sdk)

Please Review this....

Pardon me if any mistake done by me...

@lihaoyi
Copy link
Member

lihaoyi commented Oct 24, 2024

@himanshumahajan138 example/kotlinlib/android/2-jetpack-compose-hello-world/app/src/java/com/helloworld/app/MainActivity.kt still does not make use of Jetpack compose in its implementation.

Please take the source code from https://github.com/android/codelab-android-compose/blob/main/BasicsCodelab/app/src/main/java/com/codelab/basics/MainActivity.kt and ensure it can build and run correctly

@himanshumahajan138
Copy link
Contributor Author

@lihaoyi sorry sir its my bad, I will update the code...
Thanks for being cooperative...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add hello-world Android Java & Kotlin examples using Mill (2000USD bounty)
3 participants