Skip to content

new release? #128

Closed
Closed

Description

@yfre

a number of good improvements were made since last official release.
should we make a new official release?
what do you think @timcharper @andylintner @ccutrer

Activity

  1. andylintner commented on Mar 28, 2021

    @andylintner
    Collaborator

    I can take a stab at getting new coordinates from sonatype and setting up GitHub actions to upload. Need admin access to the repo though - I appear to have lost it when migrating. @timcharper @ccutrer

  2. ccutrer commented on Mar 28, 2021

    @ccutrer
    Member

    Should be restored now

  3. andylintner commented on Mar 28, 2021

    @andylintner
    Collaborator

    Thanks @ccutrer

    I've setup a basic maven build in Github Actions, given the changes at Travis-CI

    I've also filed a ticket to register the coordinates with Sonatype's OSSRH: https://issues.sonatype.org/browse/OSSRH-66356

    Once that's closed, we can start publishing snapshot builds.

    Does anyone have any opinions on whether we should wait to cut a release? Anything that needs to be done first?

  4. J-N-K commented on Mar 28, 2021

    @J-N-K

    For a release you could check if all changes from https://github.com/J-N-K/HAP-Java have been incorporated. That would enable openHAB to return to regular releases.

  5. andylintner commented on Apr 4, 2021

    @andylintner
    Collaborator

    @J-N-K - I did a diff between your fork and the master branch here. I identified two changes. One I brought over with a few minor changes in #143, which I'd like you to look at.

    The other was this change of yours: J-N-K@a6972ca

    I'm thinking we actually want to set ev to match the value of subscriber.isPresent(), but I wanted to hear from you what that was fixing first.

    The spec says

    Boolean indicating if event notifications are enabled for this characteristic.

  6. J-N-K commented on Apr 4, 2021

    @J-N-K

    I have no idea. If I see it correctly, that was before my fork. All changes I made are from PR here (except the build changes). Maybe @yfre knows.

  7. yfre commented on Apr 4, 2021

    @yfre
    ContributorAuthor

    hm. in my local code base (which should be in sync with master branch here),
    i have this. (@andylintner as you suggested, set ev only if subscriber.isPresent. and dont set "ev" in other cases.

        return futureValue
            .exceptionally(
                t -> {
                  logger.warn("Could not retrieve value " + this.getClass().getName(), t);
                  return null;
                })
            .thenApply(
                value -> {
                  JsonArrayBuilder perms = Json.createArrayBuilder();
                  if (isReadable) {
                    perms.add("pr");
                  }
                  if (isWritable) {
                    perms.add("pw");
                  }
                  if (subscriber.isPresent()) {
                    perms.add("ev");
                  }
                  JsonObjectBuilder builder =
                      Json.createObjectBuilder()
                          .add("iid", instanceId)
                          .add("type", shortType)
                          .add("perms", perms.build())
                          .add("format", format)
                          .add("description", description);
                  if (isReadable) setJsonValue(builder, value);
                  return builder;
                });
      }
    
  8. andylintner commented on Apr 4, 2021

    @andylintner
    Collaborator

    Oh, sorry! I read the diff backwards. It was changed recently in 87bab73

    But I think that change may break events, at least according to the spec. I'll see if I can replicate the original issue that change was supposed to fix. My initial thought is the Home app may now be enforcing the perms that indicate whether specific characteristics are changeable. It might be as simple as setting the ev property based on the same criteria we're using for the ev perm.

  9. andylintner commented on Apr 6, 2021

    @andylintner
    Collaborator

    Tested, and I guess it doesn't matter. The spec isn't entirely clear on this, so I'm going to just leave it as is since everything is working.

  10. andylintner commented on Apr 7, 2021

    @andylintner
    Collaborator

    Now that we have @J-N-K 's changes merged in, I think we're good for a release. I'll give it a few days in case anyone has any objections they want to raise.

  11. yfre commented on Apr 7, 2021

    @yfre
    ContributorAuthor

    Oh, sorry! I read the diff backwards. It was changed recently in 87bab73

    But I think that change may break events, at least according to the spec. I'll see if I can replicate the original issue that change was supposed to fix. My initial thought is the Home app may now be enforcing the perms that indicate whether specific characteristics are changeable. It might be as simple as setting the ev property based on the same criteria we're using for the ev perm.

    it looks like home app is not following the spec. if we send "ev:false" with color temperature then home app crashes. therefore #87bab73 was needed.

  12. yfre commented on Apr 7, 2021

    @yfre
    ContributorAuthor

    @andylintner thank you a lot for taking care of the release!

  13. gjvanderheiden commented on Apr 8, 2021

    @gjvanderheiden
    Contributor

    really really would like to see the lib updates (majority of current pr's) to be in this release, as it is a major update.

  14. andylintner commented on Apr 10, 2021

    @andylintner
    Collaborator

    I left a comment on #130 - I'm inclined to merge your change @gjvanderheiden , but want to hear back from someone else who's tested it.

    @J-N-K or someone else familiar with OpenHAB - is it going to be a problem to require the updated BouncyCastle lib? The new lib fixes a problem we were working around, but the updated code won't work with the old lib. I assume it will be fine because of OSGI magic?

  15. J-N-K commented on Apr 10, 2021

    @J-N-K

    Please note that I am no longer associated with openHAB.

    This will not work OOTB, you need to update all dependencies in

    https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.io.homekit/pom.xml

    You also need to check if the new versions of javax.json and javax.json-api are available in the target platform. If not, you need to remove it those from the dep.noembedding property.

  16. andylintner commented on May 8, 2021

    @andylintner
    Collaborator

    2.0.0 is released. It's been deployed on Nexus and will be available in Central in the next few hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions