Moodle Desktop Electron version and app rejected from Mac AppStore due to private APIs

Moodle Desktop Electron version and app rejected from Mac AppStore due to private APIs

by Brian Y -
Number of replies: 4

Using Electron version 4.2.5, when submitted to the Mac App Store, Apple rejects with the following private APIs.

Your app uses or references the following non-public APIs:
• Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework/NSURLFileTypeMappings
• Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework/NSNextStepFrame
• Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework/NSThemeFrame

The only customizations done on my end are colors and logos.

If I use a newer version of Electron, then there are aspects of the app (ie camera) do not seem to work.

Has anyone faced this challenge?

Average of ratings: -
In reply to Brian Y

Re: Moodle Desktop Electron version and app rejected from Mac AppStore due to private APIs

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Brian,

so far we've been able to publish the Mac app. Maybe they only checck that for new apps.

We have an open issue (MOBILE-3543) to upgrade the Electron version, but we don't have a timeline about when will it be done.

Cheers,
Dani
In reply to Dani Palou

Re: Moodle Desktop Electron version and app rejected from Mac AppStore due to private APIs

by Brian Y -
This is unfortunate.

I cannot get Apple to approve it using Electron 4 due to private apis being used and if I upgrade to a newer version of Electron, I can't get the camera to work.
In reply to Brian Y

Re: Moodle Desktop Electron version and app rejected from Mac AppStore due to private APIs

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Brian,

you can fix the camera with this change:

https://github.com/moodlehq/moodleapp/commit/d1b1c68e0e82853106e73d4a4442e1bc9a1517ce

It's currently in integration branch, it will be moved to master branch once version 3.9.3 is released.

Please notice that the Moodle Desktop app will be discontinued:

https://moodle.org/mod/forum/discuss.php?d=413350

Cheers,
Dani
In reply to Dani Palou

Re: Moodle Desktop Electron version and app rejected from Mac AppStore due to private APIs

by Brian Y -

Thank you Dani, I appreciate this information.

In light of this, we will likely stop devoting energy to the desktop versions.