Skip to content

Conversation

@hannesa2
Copy link
Contributor

Please see details in commit messages

@niqdev
Copy link
Owner

niqdev commented Oct 29, 2025

Thanks a lot for your contribution as usual!

@hannesa2
Copy link
Contributor Author

I'm not sure what this is
image
I guess I removed all java 11 stuff

.gitmodules Outdated
@@ -0,0 +1,9 @@
[submodule "git-diff-image"]
Copy link
Owner

Choose a reason for hiding this comment

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

what is the purpose of these submodules?

id
- name: prepare
run: |
sudo apt-get update && sudo apt-get install -y exiftool imagemagick xdg-utils libimage-exiftool-perl zsh jq xorg
Copy link
Owner

Choose a reason for hiding this comment

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

where are all these binaries used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for later applied screenshot compare Espresso tests.
When I remove it, then it's clear that screenshot compare Espresso tests will never come

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a copy of AppDevNext/AndroidChart#278 (comment)
But I guess it's better to remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed this

@niqdev
Copy link
Owner

niqdev commented Oct 29, 2025

code changes looks good and i'm fine, but do you mind just reviewing those actions and clean them up? no commented code and trim them down to the bare minimum i.e. build & test + release, or just add some comments about all the other binaries installed and the submodules dependencies

also afik the ndk never worked properly or it's not needed, isn't it? if you agree could you please simply delete all that unnecessary code and keep it as simple as possible. wdyt? we could do a 3.x release without all the jni code

i also think that rx-java could be replaced by kotlin native coroutines, but i'll leave that to you

@niqdev
Copy link
Owner

niqdev commented Oct 29, 2025

bottom line, i don't have any availability to work on it other then reviewing PRs and any improvement should be towards maintenability and stability, the simpler the better

and i do really appreciate your help 😄

@hannesa2
Copy link
Contributor Author

hannesa2 commented Oct 29, 2025

also afik the ndk never worked properly or it's not needed,

It caused a compatibility warning, it was the main reason, why I touched it

https://developer.android.com/guide/practices/page-sizes

@niqdev
Copy link
Owner

niqdev commented Oct 29, 2025

It caused a compatibility warning, it was the main reason, why I touched it

please double check, but IF it works without it and it's not required just nuke it, you have my blessing - it's been a pain in the neck since the beginning and if not mistaken the idea was to have 2 implementations

if the kotlin code works there is no need anymore for the other impl, it has to be maintenable

@hannesa2
Copy link
Contributor Author

hannesa2 commented Oct 29, 2025

i also think that rx-java could be replaced by kotlin native coroutines

Sure, it's a pain and a unneeded complexity

we could do a 3.x release without all the jni code

it it's not needed, I'm fine to remove it. But I want not to touch code on reason "because". It would need tests (I've no motivation), manual or my Espresso (here it is screenshot compare again)

My current knowledge is, that it's currently the minimum

@niqdev
Copy link
Owner

niqdev commented Oct 29, 2025

i would prefer a 3.x release if we remove the native code because it's a breaking change, but i think that the single entry point is this line, that was the original idea
https://github.com/niqdev/ipcam-view/blob/master/mjpeg-view/src/main/java/com/github/niqdev/mjpeg/Mjpeg.java#L114

to test it i would just leave it case NATIVE: and throw and exception and delete all the related native code, after that if everything still work we can considere replacing all the rx-java, but it's unrelated

@niqdev
Copy link
Owner

niqdev commented Oct 30, 2025

did you test the pr somehow and is it safe to be merged?

@hannesa2
Copy link
Contributor Author

To be honest: no
That's why the idea of Espresso tests with screenshots appeared in the past

@niqdev
Copy link
Owner

niqdev commented Nov 1, 2025

please let me know if i can help somehow in the review or you want to take some time, just ping me when you think it's ready to be merged and sure it's still working. thanks again for your help

@hannesa2
Copy link
Contributor Author

hannesa2 commented Nov 2, 2025

I guess I'm ready and when you want to help, please do a manual test

@hannesa2
Copy link
Contributor Author

hannesa2 commented Dec 1, 2025

also afik the ndk never worked properly or it's not needed, isn't it? if you agree could you please simply delete all that unnecessary code and keep it as simple as possible. wdyt? we could do a 3.x release without all the jni code

Good plan. When this is ever merged, we could remove NDK complete
image

@hannesa2
Copy link
Contributor Author

hannesa2 commented Dec 1, 2025

i would prefer a 3.x release if we remove the native code because it's a breaking change, but i think that the single entry point is this line, that was the original idea
https://github.com/niqdev/ipcam-view/blob/master/mjpeg-view/src/main/java/com/github/niqdev/mjpeg/Mjpeg.java#L114

I see there is still java code. This could be converted as well

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