eclipse / paho.mqtt.android

MQTT Android
Other
2.88k stars 862 forks source link

Upgrade to AndroidX SDK #503

Open BlaidddDrwg opened 3 months ago

BlaidddDrwg commented 3 months ago

Please fill out the form below before submitting, thank you!

Android API Version Bug Seen on:1.1.0

Android Version Bug Seen on:

Please also check that if you have found the bug in the Release version (1.1.1) that you check that it also exists in the Snapshot (1.1.2-SNAPSHOT) before raising a bug. Seriously, looked for 1.1.2-SNAPSHOT, but was not able to find it anywhere. This is what I have: image

Description of Bug:

Basically, the unit tests for the MQTT Android Service (specifically AndroidServiceWithActionListenerTest.java and https://github.com/eclipse/paho.mqtt.android/blob/master/org.eclipse.paho.android.service/src/androidTest/java/org/eclipse/paho/android/AndroidServiceTest.java) reference ServiceTestCase that is loooooong gone.

Transitioning all the tests to the (now recommended ServiceTestRule in AndroidX makes Paho more future-proof, and we can run the entire test suite without being tied down to obsolete Android releases/SDK versions.

Console Log output (if available):