-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Licensing to provide access to Google Play Licensing
Separated AdsIdentifier to avoid Ads SDK warning from Google Added SWCs
- Loading branch information
Showing
90 changed files
with
678 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bin-debug | ||
bin | ||
out | ||
*Distriqt* |
Binary file not shown.
Binary file added
BIN
+523 KB
example/playservices-adsidentifier/simple/src/Default-375w-667h@2x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.3 MB
example/playservices-adsidentifier/simple/src/Default-414w-736h@3x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+236 KB
example/playservices-adsidentifier/simple/src/Default-568h@2x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.3 MB
example/playservices-adsidentifier/simple/src/Default-812h@3x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.36 MB
...playservices-adsidentifier/simple/src/Default-Landscape-414w-736h@3x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.31 MB
example/playservices-adsidentifier/simple/src/Default-Landscape-812h@3x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions
59
example/playservices-adsidentifier/simple/src/TestAdsIdentifier-app.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<application xmlns="http://ns.adobe.com/air/application/32.0"> | ||
<id>com.distriqt.test</id> | ||
<filename>TestAdsIdentifier</filename> | ||
<name>TestAdsIdentifier</name> | ||
<versionNumber>0.0.1</versionNumber> | ||
|
||
<initialWindow> | ||
<content>[This value will be overwritten by Flash Builder in the output app.xml]</content> | ||
<autoOrients>false</autoOrients> | ||
<fullScreen>false</fullScreen> | ||
<visible>true</visible> | ||
</initialWindow> | ||
|
||
<icon> | ||
<image16x16>icons/icon16x16.png</image16x16> | ||
<image29x29>icons/icon29x29.png</image29x29> | ||
<image32x32>icons/icon32x32.png</image32x32> | ||
<image36x36>icons/icon36x36.png</image36x36> | ||
<image48x48>icons/icon48x48.png</image48x48> | ||
<image57x57>icons/icon57x57.png</image57x57> | ||
<image72x72>icons/icon72x72.png</image72x72> | ||
<image76x76>icons/icon76x76.png</image76x76> | ||
<image114x114>icons/icon114x114.png</image114x114> | ||
<image120x120>icons/icon120x120.png</image120x120> | ||
<image128x128>icons/icon128x128.png</image128x128> | ||
<image152x152>icons/icon152x152.png</image152x152> | ||
<image512x512>icons/icon512x512.png</image512x512> | ||
</icon> | ||
|
||
<iPhone> | ||
<InfoAdditions><![CDATA[ | ||
<key>UIDeviceFamily</key> | ||
<array> | ||
<string>1</string> | ||
<string>2</string> | ||
</array> | ||
]]></InfoAdditions> | ||
<requestedDisplayResolution>high</requestedDisplayResolution> | ||
<Entitlements> | ||
<![CDATA[ | ||
]]> | ||
</Entitlements> | ||
</iPhone> | ||
|
||
<android> | ||
<manifestAdditions><![CDATA[ | ||
<manifest android:installLocation="auto"> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
</manifest> | ||
]]></manifestAdditions> | ||
</android> | ||
|
||
<extensions> | ||
<extensionID>com.distriqt.Core</extensionID> | ||
<extensionID>com.distriqt.AdsIdentifier</extensionID> | ||
</extensions> | ||
|
||
</application> |
141 changes: 141 additions & 0 deletions
141
example/playservices-adsidentifier/simple/src/TestAdsIdentifier.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
/** | ||
* __ __ __ | ||
* ____/ /_ ____/ /______ _ ___ / /_ | ||
* / __ / / ___/ __/ ___/ / __ `/ __/ | ||
* / /_/ / (__ ) / / / / / /_/ / / | ||
* \__,_/_/____/_/ /_/ /_/\__, /_/ | ||
* / / | ||
* \/ | ||
* http://distriqt.com | ||
* | ||
* This is a test application for the distriqt extension | ||
* | ||
* @author Michael Archbold & Shane Korin | ||
* | ||
*/ | ||
package | ||
{ | ||
import com.distriqt.extension.adsidentifier.AdsIdentifier; | ||
|
||
import flash.display.Sprite; | ||
import flash.display.StageAlign; | ||
import flash.display.StageScaleMode; | ||
import flash.events.Event; | ||
import flash.events.MouseEvent; | ||
import flash.text.TextField; | ||
import flash.text.TextFormat; | ||
|
||
|
||
/** | ||
* Sample application for using the AdsIdentifier Native Extension | ||
*/ | ||
public class TestAdsIdentifier extends Sprite | ||
{ | ||
|
||
// | ||
// VARIABLES | ||
// | ||
|
||
|
||
private var _text : TextField; | ||
|
||
|
||
/** | ||
* Class constructor | ||
*/ | ||
public function TestAdsIdentifier() | ||
{ | ||
super(); | ||
create(); | ||
init(); | ||
} | ||
|
||
|
||
|
||
// | ||
// INITIALISATION | ||
// | ||
|
||
private function create( ):void | ||
{ | ||
stage.align = StageAlign.TOP_LEFT; | ||
stage.scaleMode = StageScaleMode.NO_SCALE; | ||
|
||
_text = new TextField(); | ||
_text.defaultTextFormat = new TextFormat( "_typewriter", 18 ); | ||
addChild( _text ); | ||
|
||
stage.addEventListener( Event.RESIZE, stage_resizeHandler, false, 0, true ); | ||
stage.addEventListener( MouseEvent.CLICK, mouseClickHandler, false, 0, true ); | ||
|
||
addEventListener( Event.ACTIVATE, activateHandler, false, 0, true ); | ||
addEventListener( Event.DEACTIVATE, deactivateHandler, false, 0, true ); | ||
} | ||
|
||
|
||
private function init( ):void | ||
{ | ||
try | ||
{ | ||
message( "AdsIdentifier Supported: " + AdsIdentifier.isSupported ); | ||
message( "AdsIdentifier Version: " + AdsIdentifier.service.version ); | ||
|
||
// | ||
// Add test inits here | ||
// | ||
} | ||
catch (e:Error) | ||
{ | ||
message( "ERROR::"+e.message ); | ||
} | ||
} | ||
|
||
|
||
// | ||
// FUNCTIONALITY | ||
// | ||
|
||
private function message( str:String ):void | ||
{ | ||
trace( str ); | ||
_text.appendText(str+"\n"); | ||
} | ||
|
||
|
||
// | ||
// EVENT HANDLERS | ||
// | ||
|
||
private function stage_resizeHandler( event:Event ):void | ||
{ | ||
_text.width = stage.stageWidth; | ||
_text.height = stage.stageHeight - 100; | ||
} | ||
|
||
|
||
private function mouseClickHandler( event:MouseEvent ):void | ||
{ | ||
// | ||
// Do something when user clicks screen? | ||
// | ||
} | ||
|
||
|
||
private function activateHandler( event:Event ):void | ||
{ | ||
} | ||
|
||
private function deactivateHandler( event:Event ):void | ||
{ | ||
} | ||
|
||
|
||
// | ||
// EXTENSION HANDLERS | ||
// | ||
|
||
|
||
|
||
} | ||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+222 KB
example/playservices-adsidentifier/starling/libs/MetalWorksMobileTheme.swc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* __ __ __ | ||
* ____/ /_ ____/ /______ _ ___ / /_ | ||
* / __ / / ___/ __/ ___/ / __ `/ __/ | ||
* / /_/ / (__ ) / / / / / /_/ / / | ||
* \__,_/_/____/_/ /_/ /_/\__, /_/ | ||
* / / | ||
* \/ | ||
* http://distriqt.com | ||
* | ||
* @file Config.as | ||
* @brief | ||
* @author "Michael Archbold (ma@distriqt.com)" | ||
* @created 07/10/2014 | ||
* @copyright http://distriqt.com/copyright/license.txt | ||
*/ | ||
package | ||
{ | ||
|
||
/** | ||
* | ||
*/ | ||
public class Config | ||
{ | ||
|
||
//////////////////////////////////////////////////////// | ||
// VARIABLES | ||
// | ||
|
||
public static var scale : Number = 1; | ||
|
||
|
||
} | ||
} |
Binary file added
BIN
+523 KB
example/playservices-adsidentifier/starling/src/Default-375w-667h@2x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.3 MB
example/playservices-adsidentifier/starling/src/Default-414w-736h@3x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+236 KB
example/playservices-adsidentifier/starling/src/Default-568h@2x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.3 MB
example/playservices-adsidentifier/starling/src/Default-812h@3x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.36 MB
...ayservices-adsidentifier/starling/src/Default-Landscape-414w-736h@3x~iphone.png
Oops, something went wrong.
Binary file added
BIN
+1.31 MB
...le/playservices-adsidentifier/starling/src/Default-Landscape-812h@3x~iphone.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
example/playservices-adsidentifier/starling/src/TestAdsIdentifier-app.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<application xmlns="http://ns.adobe.com/air/application/32.0"> | ||
<id>com.distriqt.test</id> | ||
<filename>TestAdsIdentifier</filename> | ||
<name>TestAdsIdentifier</name> | ||
<versionNumber>0.0.1</versionNumber> | ||
|
||
<initialWindow> | ||
<content>[This value will be overwritten by Flash Builder in the output app.xml]</content> | ||
<autoOrients>true</autoOrients> | ||
<fullScreen>false</fullScreen> | ||
<visible>true</visible> | ||
<renderMode>direct</renderMode> | ||
</initialWindow> | ||
|
||
<icon> | ||
<image16x16>icons/icon16x16.png</image16x16> | ||
<image29x29>icons/icon29x29.png</image29x29> | ||
<image32x32>icons/icon32x32.png</image32x32> | ||
<image36x36>icons/icon36x36.png</image36x36> | ||
<image48x48>icons/icon48x48.png</image48x48> | ||
<image57x57>icons/icon57x57.png</image57x57> | ||
<image72x72>icons/icon72x72.png</image72x72> | ||
<image76x76>icons/icon76x76.png</image76x76> | ||
<image114x114>icons/icon114x114.png</image114x114> | ||
<image120x120>icons/icon120x120.png</image120x120> | ||
<image128x128>icons/icon128x128.png</image128x128> | ||
<image152x152>icons/icon152x152.png</image152x152> | ||
<image512x512>icons/icon512x512.png</image512x512> | ||
</icon> | ||
|
||
<iPhone> | ||
<InfoAdditions><![CDATA[ | ||
<key>UIDeviceFamily</key> | ||
<array> | ||
<string>1</string> | ||
<string>2</string> | ||
</array> | ||
<key>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSAllowsArbitraryLoads</key> | ||
<true/> | ||
</dict> | ||
]]></InfoAdditions> | ||
<requestedDisplayResolution>high</requestedDisplayResolution> | ||
<Entitlements> | ||
<![CDATA[ | ||
]]> | ||
</Entitlements> | ||
</iPhone> | ||
|
||
<android> | ||
<manifestAdditions><![CDATA[ | ||
<manifest android:installLocation="auto" > | ||
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="27" /> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<application android:hardwareAccelerated="true"> | ||
</application> | ||
</manifest> | ||
]]></manifestAdditions> | ||
</android> | ||
|
||
<extensions> | ||
<extensionID>com.distriqt.Core</extensionID> | ||
<extensionID>com.distriqt.AdsIdentifier</extensionID> | ||
</extensions> | ||
|
||
</application> |
Oops, something went wrong.