-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "native_library/ios/WebViewANE/FRESwift"] | ||
path = native_library/ios/WebViewANE/FRESwift | ||
url = https://github.com/tuarua/FRESwift |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
### 0.0.15 | ||
- iOS: Add iOS version | ||
|
||
### 0.0.14 | ||
- OSX: Fix Issue #22 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Created by https://www.gitignore.io/api/flashbuilder | ||
|
||
### FlashBuilder ### | ||
# Build and Release Folders | ||
bin/ | ||
bin-debug/ | ||
bin-release/ | ||
bin-release-temp/ | ||
cache/ | ||
|
||
*.app | ||
|
||
# Other files and folders | ||
.settings/ | ||
|
||
.FlexUnitSettings | ||
.externalToolBuilders | ||
.model | ||
|
||
# textures | ||
.tps | ||
|
||
|
||
# Created by https://www.gitignore.io/api/intellij | ||
|
||
### Intellij ### | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff: | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
|
||
# Sensitive or high-churn files: | ||
.idea/dataSources/ | ||
.idea/dataSources.ids | ||
.idea/dataSources.xml | ||
.idea/dataSources.local.xml | ||
.idea/sqlDataSources.xml | ||
.idea/dynamic.xml | ||
.idea/uiDesigner.xml | ||
|
||
# Gradle: | ||
.idea/gradle.xml | ||
|
||
# Mongo Explorer plugin: | ||
.idea/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
/out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
### Intellij Patch ### | ||
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 | ||
|
||
# *.iml | ||
# modules.xml | ||
# .idea/misc.xml | ||
# *.ipr |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="Flex" version="4"> | ||
<component name="FlexBuildConfigurationManager" active="WebViewANESample-ios simulator"> | ||
<configurations> | ||
<configuration name="WebViewANESample-ios simulator" target-platform="Mobile" pure-as="true" main-class="WebViewANESample" output-file="WebViewANESample-ios.swf" output-folder="$MODULE_DIR$/bin-debug"> | ||
<dependencies> | ||
<entries> | ||
<entry library-id="b5f29767-2721-4f42-8d31-69ae3822cfed"> | ||
<dependency linkage="Merged" /> | ||
</entry> | ||
<entry library-name="starling" library-level="project"> | ||
<dependency linkage="Merged" /> | ||
</entry> | ||
<entry library-name="WebViewANE-ios" library-level="project"> | ||
<dependency linkage="Merged" /> | ||
</entry> | ||
</entries> | ||
<sdk name="AIRSDK_25" /> | ||
</dependencies> | ||
<compiler-options> | ||
<map> | ||
<entry key="compiler.locale" value="en_US" /> | ||
</map> | ||
</compiler-options> | ||
<packaging-air-desktop /> | ||
<packaging-android use-generated-descriptor="false" custom-descriptor-path="$MODULE_DIR$/src/WebViewANESample-app.xml" package-file-name="Scaffold_Mobile"> | ||
<files-to-package> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/system" path-in-package="." /> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/assets" path-in-package="." /> | ||
</files-to-package> | ||
<AirSigningOptions keystore-path="/Users/redge/Dropbox/Gamua/Projects/general/android_dev_data/daniel-test-certificate.p12" use-temp-certificate="false" /> | ||
</packaging-android> | ||
<packaging-ios enabled="true" use-generated-descriptor="false" custom-descriptor-path="$MODULE_DIR$/src/WebViewANESample-app.xml" package-file-name="WebViewANESample-ios"> | ||
<files-to-package> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/assets" path-in-package="." /> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/system" path-in-package="." /> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/../native_extension/ane/platforms/ios/simulator/Frameworks/FRESwift.framework" path-in-package="FRESwift.framework" /> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/../native_extension/ane/platforms/ios/simulator/Frameworks/WebViewANE_FW.framework" path-in-package="WebViewANE_FW.framework" /> | ||
</files-to-package> | ||
<AirSigningOptions sdk="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" keystore-path="$USER_HOME$/Documents/appleCertsProv/2017/dev/tuarua_dev.p12" provisioning-profile-path="$USER_HOME$/Documents/appleCertsProv/2017/dev/Tua_Rua_Dev_Provisioning.mobileprovision" /> | ||
</packaging-ios> | ||
</configuration> | ||
<configuration name="WebViewANESample-ios device" target-platform="Mobile" pure-as="true" main-class="WebViewANESample" output-file="WebViewANESample-ios.swf" output-folder="$MODULE_DIR$/bin-release/device"> | ||
<dependencies> | ||
<entries> | ||
<entry library-id="92100f34-cb5c-49c0-bfc9-973114132c94"> | ||
<dependency linkage="Merged" /> | ||
</entry> | ||
<entry library-name="starling" library-level="project"> | ||
<dependency linkage="Merged" /> | ||
</entry> | ||
<entry library-name="WebViewANE-ios" library-level="project"> | ||
<dependency linkage="Merged" /> | ||
</entry> | ||
</entries> | ||
<sdk name="AIRSDK_25" /> | ||
</dependencies> | ||
<compiler-options> | ||
<map> | ||
<entry key="compiler.locale" value="en_US" /> | ||
</map> | ||
</compiler-options> | ||
<packaging-air-desktop /> | ||
<packaging-android use-generated-descriptor="false" custom-descriptor-path="$MODULE_DIR$/src/WebViewANESample-app.xml" package-file-name="WebViewANESample-ios_device"> | ||
<files-to-package> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/system" path-in-package="." /> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/assets" path-in-package="." /> | ||
</files-to-package> | ||
<AirSigningOptions keystore-path="/Users/redge/Dropbox/Gamua/Projects/general/android_dev_data/daniel-test-certificate.p12" use-temp-certificate="false" /> | ||
</packaging-android> | ||
<packaging-ios enabled="true" use-generated-descriptor="false" custom-descriptor-path="$MODULE_DIR$/src/WebViewANESample-app.xml" package-file-name="WebViewANESample-ios_device"> | ||
<files-to-package> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/system" path-in-package="." /> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/assets" path-in-package="." /> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/../native_extension/ane/platforms/ios/simulator/Frameworks/WebViewANE_FW.framework" path-in-package="WebViewANE_FW.framework" /> | ||
<FilePathAndPathInPackage file-path="$MODULE_DIR$/../native_extension/ane/platforms/ios/simulator/Frameworks/FRESwift.framework" path-in-package="FRESwift.framework" /> | ||
</files-to-package> | ||
<AirSigningOptions sdk="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" keystore-path="$USER_HOME$/Documents/appleCertsProv/2017/dev/tuarua_dev.p12" provisioning-profile-path="$USER_HOME$/Documents/appleCertsProv/2017/dev/Tua_Rua_Dev_Provisioning.mobileprovision" /> | ||
</packaging-ios> | ||
</configuration> | ||
</configurations> | ||
<compiler-options /> | ||
</component> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/system" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/assets" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="jdk" jdkName="AIRSDK_25" jdkType="Flex SDK Type (new)" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="module-library" exported=""> | ||
<library type="flex"> | ||
<properties id="b5f29767-2721-4f42-8d31-69ae3822cfed" /> | ||
<CLASSES> | ||
<root url="jar://$MODULE_DIR$/Starling/bin-debug/Starling.swc!/" /> | ||
</CLASSES> | ||
<JAVADOC /> | ||
<SOURCES /> | ||
</library> | ||
</orderEntry> | ||
<orderEntry type="library" exported="" name="starling" level="project" /> | ||
<orderEntry type="library" exported="" name="WebViewANE-ios" level="project" /> | ||
<orderEntry type="module-library" exported=""> | ||
<library type="flex"> | ||
<properties id="92100f34-cb5c-49c0-bfc9-973114132c94" /> | ||
<CLASSES> | ||
<root url="jar://$MODULE_DIR$/Starling/bin-debug/Starling.swc!/" /> | ||
</CLASSES> | ||
<JAVADOC /> | ||
<SOURCES /> | ||
</library> | ||
</orderEntry> | ||
</component> | ||
</module> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
~ Copyright Tua Rua Ltd. (c) 2017. | ||
--> | ||
<html lang="en"> | ||
<head> | ||
<title>Javascript Binding Test Page</title> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | ||
|
||
<script type="text/javascript"> | ||
|
||
var isCef = (navigator.vendor == "Google Inc."); | ||
|
||
function as_to_js(numberA, stringA, numberB, obj) { | ||
console.log(numberA); | ||
console.log(stringA); | ||
console.log(numberB); | ||
console.log(obj); | ||
|
||
var person = { | ||
name: "Jim Cowart", | ||
response: { | ||
name: "Chattanooga", | ||
population: 167674 | ||
} | ||
}; | ||
|
||
var i = 21; | ||
var str = "this is a string"; | ||
var b = false; | ||
|
||
return person; | ||
//return str; | ||
} | ||
|
||
function getWebviewANE() { | ||
return (isCef) ? webViewANE : window.webkit.messageHandlers.webViewANE; | ||
} | ||
|
||
function jsCallback(paramA, paramB, paramC) { | ||
var d = new Date(); | ||
var n = d.getTime(); | ||
var output = document.getElementById('output'); | ||
output.innerText += "Callback: paraA: " + paramA + ", paramB: " + paramB + ", paramC: " + paramC + " - " + d + " - unix tamestamp: " + n + "\n"; | ||
console.log(paramA) | ||
console.log(paramB) | ||
console.log(paramC) | ||
} | ||
|
||
function testCallback() { | ||
var d = new Date(); | ||
var n = d.getTime(); | ||
var output = document.getElementById('output'); | ||
output.innerText = "The function has returned: " + d + " - unix timestamp: " + n + "\n"; | ||
|
||
var messageToPost = { | ||
'functionName': 'js_to_as', | ||
'callbackName': 'jsCallback', | ||
'args': [1, 'I am a string', false] | ||
}; | ||
getWebviewANE().postMessage(messageToPost); | ||
} | ||
|
||
function noCallback() { | ||
var d = new Date(); | ||
var n = d.getTime(); | ||
var output = document.getElementById('output'); | ||
output.innerText = "The function has returned: " + d + " - unix timestamp: " + n + "\n"; | ||
var messageToPost = {'functionName': 'js_to_as'}; | ||
getWebviewANE().postMessage(messageToPost); | ||
} | ||
|
||
</script> | ||
|
||
</head> | ||
<body> | ||
|
||
<div class="container"> | ||
|
||
<h4>Demo Of Javascript Binding with WebViewANE</h4> | ||
|
||
<p> | ||
<button type="button" class="btn btn-primary" onclick="testCallback()">Call Actionscript with Callback</button> | ||
<button type="button" class="btn btn-primary" onclick="noCallback()">Call Actionscript with No Callback</button> | ||
</p> | ||
<div id="output" class="well well-sm">Output goes here</div> | ||
<a href="localTest.html">Go To page 2 (Link test)</a> | ||
</div> | ||
|
||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Page 2</title> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | ||
</head> | ||
<body> | ||
|
||
<div class="container"> | ||
<h4>Page 2</h4> | ||
<a href="jsTest.html">Go Back To page 1 (Link test)</a> | ||
</div> | ||
|
||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Created with TexturePacker http://www.codeandweb.com/texturepacker--> | ||
<!-- $TexturePacker:SmartUpdate:75bffbbbaf275806d363a6914177a967:4e409e8bd8b9cea451f69e7c1610dffe:cde709370900f12288f3449eded86f07$ --> | ||
<TextureAtlas imagePath="atlas.png" width="231" height="32"> | ||
<SubTexture name="back-btn" x="1" y="1" width="30" height="30"/> | ||
<SubTexture name="cancel-btn" x="35" y="1" width="30" height="30"/> | ||
<SubTexture name="fwd-btn" x="69" y="1" width="30" height="30"/> | ||
<SubTexture name="input-bg" x="205" y="1" width="25" height="25"/> | ||
<SubTexture name="js-btn" x="103" y="1" width="30" height="30"/> | ||
<SubTexture name="refresh-btn" x="137" y="1" width="30" height="30"/> | ||
<SubTexture name="web-btn" x="171" y="1" width="30" height="30"/> | ||
</TextureAtlas> |