Skip to content

Conversation

gohryt
Copy link

@gohryt gohryt commented Aug 21, 2025

No description provided.

Copy link
Contributor

@DJMcNab DJMcNab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial thoughts. Currently, I think only Matt can merge things here.


groupId = 'com.github.rust-mobile'
artifactId = 'rustview'
version = '1.0.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version 1.0.0 seems optimistic here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I (and maintainers) can set any version, i used 1.0.0 just for check it is working

from components.release

groupId = 'com.github.rust-mobile'
artifactId = 'rustview'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This name "rustview" isn't really something we've used for this before. I agree that "Android View" is a bit hard to justify here, but it's probably worth using that for now. rust-mobile already explains that this is Rust, so I think sticking with Android View is best

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the import was rustview and it is more correct because of android native library "Android View"
image

Copy link
Contributor

@DJMcNab DJMcNab Aug 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because of android native library "Android View"

Can you please provide a link to this? I've been unable to find this through searching.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, i misunderstanded you. You ask about android lib. It is not in search because it's a part of native android. You can see it in code.

image

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clarify, this is required for jitpack, right?
That is, this isn't doing automatic pushing to Maven Central?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only for jitpack, MavenPublication is just class describing output format

android {
compileSdk 31
namespace 'org.linebender.android.rustview'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved to com.github.rust-mobile (as the others should as well)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This namespace should be similar to projects folder structure as on screenshot in my previous comment

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I guess we can make the move away from org.linebender a follow-up

Comment on lines -96 to +99
let _ = tracing_subscriber::registry()
tracing_subscriber::registry()
.with(tracing_android_trace::AndroidTraceLayer::new())
.try_init();
.init();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this change necessary? And why hasn't the comment above needed changing as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There may be panic if android platform specified incorrectly when using cargo ndk. Ignoring this possible error gives a false sense of security

@gohryt
Copy link
Author

gohryt commented Aug 23, 2025

I totally don't know who is Matt, i just needed it and found it in internet and did this changes for myself, i think it could be useful but feel free editing it
I also will be happy if Matt will take part in this discussion

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.

2 participants