Skip to content

Instantly share code, notes, and snippets.

@marchbold
Last active January 2, 2020 22:39
Show Gist options
  • Save marchbold/efd2aee18528596c56c0 to your computer and use it in GitHub Desktop.
Save marchbold/efd2aee18528596c56c0 to your computer and use it in GitHub Desktop.
Setup of the Expansion Files ANE with licensing and salt values
public static const BASE64_PUBLIC_KEY : String = "YOUR_LICENSING_PUBLIC_KEY";
public static const SALT : Vector.<int> = Vector.<int>( [ 1, 43, -12, -1, 54, 98, -100, -12, 43, 2, -8, -4, 9, 5, -106, -108, -33, 45, -1, 84 ]);
...
ExpansionFiles.init( "APP_KEY" );
trace( "ExpansionFiles Supported: " + ExpansionFiles.isSupported );
trace( "ExpansionFiles Version: " + ExpansionFiles.service.version );
if (ExpansionFiles.isSupported)
{
ExpansionFiles.service.setup( BASE64_PUBLIC_KEY, SALT );
}
// com.distriqt.ExpansionFiles
@marchbold
Copy link
Author

@wonderdragons
Copy link

from where we find the app_key?

ExpansionFiles.init( APP_KEY )

@marchbold
Copy link
Author

The app key is no longer required. More information here: https://airnativeextensions.com/knowledgebase/faq/9

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