Mobile: Add iOS as a platform in OperatingSystem.java

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      iOS 16 to 26

      A DESCRIPTION OF THE PROBLEM :
      I don't know how but Kotlin calls OperatingSystem.IOS, adding iOS as an OperatingSystem fixed my problems, it had something to do with Kotlin's logging library if I remember correctly during initialization it calls something with OperatingSystem.IOS then it panics because IOS isn't an option in the OperatingSystem Class

      I run this jar on iOS https://github.com/Suwayomi/Suwayomi-Server

      Suwayomi-Server.jar initalizes Kotlin's logger which calls OperatingSystem.iOS, but then I got an error because the modules or static libs I built from openjdk/mobile OperatingSystem didn't have iOS as a member, when I added the member the panic went away


      I fixed it https://github.com/openjdk/mobile/pull/44 I am sharing a patch, which I made on my fork

            Assignee:
            Johan Vos
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: