hoijui / JavaOSC

OSC content format/"protocol" library for JVM languages
http://www.illposed.com/software/javaosc.html
BSD 3-Clause "New" or "Revised" License
156 stars 43 forks source link

Improved Android compatibility #49

Closed Burtan closed 4 years ago

Burtan commented 4 years ago

Hey, this fixes will not change anything on JDK8 desktop use-cases but fix using missing classes on Android and headless runtimes.

hoijui commented 4 years ago

thank you, the code looks pretty much perfect now! :-) I made two small commits on top of this in the android-support branch. If you could cleanup the history with rebase -i to remove all the adding and removing, changing and changing back of things, to come up with less noise in the history, and only your name for the changes, it is ready for merge! :-)

Burtan commented 4 years ago

git rebase -i seems to be more complicate than I thought, never used it yet. Gotta look into it.

hoijui commented 4 years ago

ouh cool!! :D it is a very powerful thing, and you will benefit a lot from knowing it! If you really don't want to do it, I can do it for you (retaining your author and committer name and email of course), it is a daily thing for me/easy, but.. I can recommend to learn it! .. if you have time.

Burtan commented 4 years ago

Give me some days, if I didn't succeed then, you can still do it yourself :D

Burtan commented 4 years ago

Ok, I think i succeeded :D. I pulled your changes from the android-support branch, rebased my master branch on yours (no conflict), merged all of my commits into one and changed the authoring to reference to my github account.

hoijui commented 4 years ago

you did! great! :D thank you, hope to see you again and.. good night!

ManuDev9 commented 2 years ago

Hello my friends, this is a Java workaround from the application perspective. No need to pick weird snapshots:

            OSCSerializerAndParserBuilder serializer = new OSCSerializerAndParserBuilder();
            serializer.setUsingDefaultHandlers(false);
            List<ArgumentHandler> defaultParserTypes = Activator.createSerializerTypes();
            defaultParserTypes.remove(16);
            char typeChar = 'a';
            for (ArgumentHandler argumentHandler:defaultParserTypes) {
                serializer.registerArgumentHandler(argumentHandler, typeChar);
                typeChar++;
            }
            mOscPortOut = new OSCPortOut(serializer,
                    new InetSocketAddress(AppData.getOscRemoteAddress(), AppData.getOscPortOutNumber()));

Enjoy