This is the documentation of the "Flash SDK bridge" project. This SDK is used to inject the HTML5 SDK when using the Flash SDK.
The SDK is maintained on a public github repository. https://github.com/gamedistribution/gd-sdk-flash-bridge
Install the following programs:
Pull in the rest of the requirements using npm:
npm install
Setup a local node server, watch changes and update your browser view automatically:
grunt
Make a production build for the CDN solution.
grunt build
Checkout the HTML5 SDK repository. Build and run it using Grunt. BrowserSync should start running the HTML5 SDK through http://localhost:3000. Use this URL within this project, instead of loading the CDN hosted SDK.
Setup the following virtual hosts and ssl keys, as we want to serve these files from our local environment through https. The new SDK location:
<VirtualHost *:443>
ServerName flash.api.gamedistribution.com
ServerAlias flash.api.gamedistribution.com
DocumentRoot "[PATH_TO_REPOSITORY]/lib"
<Directory "[PATH_TO_REPOSITORY]/lib">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl/localhost.crt
SSLCertificateKeyFile /etc/apache2/ssl/localhost.key
</VirtualHost>
The old location:
<VirtualHost *:443>
ServerName vcheck.submityourgame.com
ServerAlias vcheck.submityourgame.com
DocumentRoot "[PATH_TO_REPOSITORY]/lib"
<Directory "[PATH_TO_REPOSITORY]/lib">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl/localhost.crt
SSLCertificateKeyFile /etc/apache2/ssl/localhost.key
</VirtualHost>
Make sure you add these domains to your environments hosts
file.
Enable debugging by running this command from within your browsers' developer tool.
gdsdk.openConsole();
Deployment of the SDK to production environments is done through TeamCity. The grunt build
task will build the javascript you need and. The files are hosted within the gd-flash-sdk
Google Cloud bucket.