Skip to content

Apple Sign In Adobe Air Native Extension for macOS 10.15+, iOS 13.0+ and tvOS 13.0+

License

Notifications You must be signed in to change notification settings

tuarua/Apple-Signin-ANE

Repository files navigation

Apple-Signin-ANE

Apple Sign In Adobe Air Native Extension for macOS 10.15+, iOS 13.0+ and tvOS 13.0+


Prerequisites

You will need:


iOS

The ANE + Dependencies

N.B. You must use a Mac to build an iOS app using this ANE. Windows is NOT supported.

From Terminal cd into /example-mobile and run the "air-tools" command (You will need AIR-Tools installed)

air-tools install

This folder, ios_dependencies/device/Frameworks, must be packaged as part of your app when creating the ipa. How this is done will depend on the IDE you are using. After the ipa is created unzip it and confirm there is a "Frameworks" folder in the root of the .app package.

App Setup

Set up your app with Apple Sign in.

tvOS

The ANE + Dependencies

N.B. You must use a Mac to build an iOS app using this ANE. Windows is NOT supported.

From Terminal cd into /example-tvos and run:

air-tools install

This folder, tvos_dependencies/device/Frameworks, must be packaged as part of your app when creating the ipa. How this is done will depend on the IDE you are using. After the ipa is created unzip it and confirm there is a "Frameworks" folder in the root of the .app package.

App Setup

As per iOS above.

macOS

The ANE + Dependencies

From Terminal cd into /example-desktop and run:

air-tools install

App Setup

Set up your app with Apple Sign in.

Building the App

Even to run locally, Apple Sign In requires you to build a captive runtime release (.app) and sign it. This should be done with a Mac Developer Certificate and Provisioning Profile.

Open /example-desktop/packaging/sign.sh and modify the values at the top of the file to your own.

Copy your .provisionprofile into /example-desktop/packaging and rename as MacDeveloper.provisionprofile

From Terminal cd into /example-desktop/packaging and run:

bash sign.sh

Mac App Store and self distributed apps

Apple Sign In is ONLY SUPPORTED in apps which are distributed in the App Store.

See Supported capabilities (macOS)

A bash script is provided to create a signed pkg ready for the App Store. Follow the same steps as above with your 3rd Party Mac Developer Certificate and Provisioning Profile.

bash sign_store.sh