diff --git a/CHANGELOG.md b/CHANGELOG.md
index 112da21..4fb012e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+### 2.5.0
+- AND: Updated to FreKotlin 1.8.0
+- Updated to AIR 33 ARM 64bit
+
### 2.4.0
- Added `mapView.buildingsEnabled` setter replaces `Settings.buildingsEnabled`
- Added `mapView.trafficEnabled` setter
diff --git a/README.md b/README.md
index 2ae2622..6b371b5 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ Download the latest from the [Releases](https://github.com/tuarua/Google-Maps-AN
##### The ANE + Dependencies
From the command line cd into /example and run:
- - OSX
+ - macOS
```shell
bash get_android_dependencies.sh
```
@@ -76,6 +76,9 @@ You will also need to include the following in your app manifest. Update accordi
```
+#### AIR 32 & 33
+This ANE is built against AIR 33 SDK. If you wish to use with AIR 32 you will need to replace dx.jar in lib/android/bin/ with [this one](https://github.com/tuarua/Android-ANE-Dependencies/blob/master/AIR32_patch/lib/android/bin/dx.jar?raw=true)
+
-------------
## iOS
@@ -113,16 +116,18 @@ You will also need to include the following in your app manifest. Update accordi
You will need a Google API key
[https://developers.google.com/maps/documentation/ios-sdk/get-api-key]
+#### AIR 32 & 33
+You should use AIR 32 for iOS builds
### Prerequisites
You will need:
- IntelliJ IDEA / Flash Builder
-- AIR 32.0.0.103 or greater
+- AIR 33 or greater
- Xcode 10.1
- Android Studio 3 if you wish to edit the Android source
-- wget on OSX
+- wget on macOS
- Powershell on Windows
### References
diff --git a/example/.actionScriptProperties b/example/.actionScriptProperties
index 824ad01..9face18 100644
--- a/example/.actionScriptProperties
+++ b/example/.actionScriptProperties
@@ -45,7 +45,7 @@
-
+
@@ -70,7 +70,7 @@
-
+
diff --git a/example/.idea/libraries/com_tuarua_frekotlin.xml b/example/.idea/libraries/com_tuarua_frekotlin.xml
deleted file mode 100644
index cdd011a..0000000
--- a/example/.idea/libraries/com_tuarua_frekotlin.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/example/.idea/libraries/com_tuarua_frekotlin_1_8_0.xml b/example/.idea/libraries/com_tuarua_frekotlin_1_8_0.xml
new file mode 100644
index 0000000..1120a3d
--- /dev/null
+++ b/example/.idea/libraries/com_tuarua_frekotlin_1_8_0.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/example/.idea/misc.xml b/example/.idea/misc.xml
index 5146523..59407cd 100644
--- a/example/.idea/misc.xml
+++ b/example/.idea/misc.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/example/.idea/runConfigurations/Android_Device.xml b/example/.idea/runConfigurations/Android_Device.xml
index b147f83..5de926c 100644
--- a/example/.idea/runConfigurations/Android_Device.xml
+++ b/example/.idea/runConfigurations/Android_Device.xml
@@ -1,10 +1,12 @@
-
+
+
+
diff --git a/example/GoogleMapsANESample-mobile.iml b/example/GoogleMapsANESample-mobile.iml
index 23a6ec4..af566aa 100644
--- a/example/GoogleMapsANESample-mobile.iml
+++ b/example/GoogleMapsANESample-mobile.iml
@@ -1,6 +1,6 @@
-
+
@@ -14,27 +14,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -50,7 +29,7 @@
-
+
@@ -73,29 +52,29 @@
-
-
-
-
-
-
+
+
+
-
+
+
+
+
-
+
-
+
+
@@ -130,27 +110,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -166,7 +125,7 @@
-
+
@@ -187,18 +146,16 @@
-
+
-
-
@@ -213,5 +170,12 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/example/get_android_dependencies.ps1 b/example/get_android_dependencies.ps1
index 7a5a18c..f7e9941 100644
--- a/example/get_android_dependencies.ps1
+++ b/example/get_android_dependencies.ps1
@@ -1,15 +1,18 @@
-$AneVersion = "2.4.0"
+$AneVersion = "2.5.0"
+$FreKotlinVersion = "1.8.0"
$PlayerServicesVersion = "16.0.1"
$MapsVersion = "16.1.0"
$LocationVersion = "16.0.0"
$SupportV4Version = "27.1.0"
+$GsonVersion = "2.8.4"
+$EventBusVersion = "3.0.0"
$currentDir = (Get-Item -Path ".\" -Verbose).FullName
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://github.com/tuarua/Google-Maps-ANE/releases/download/$AneVersion/GoogleMapsANE.ane?raw=true -OutFile "$currentDir\..\native_extension\ane\GoogleMapsANE.ane"
-Invoke-WebRequest -OutFile "$currentDir\android_dependencies\com.tuarua.frekotlin.ane" -Uri https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/kotlin/com.tuarua.frekotlin.ane?raw=true
-Invoke-WebRequest -OutFile "$currentDir\android_dependencies\org.greenrobot.eventbus-3.0.0.ane" -Uri https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/misc/org.greenrobot.eventbus-3.0.0.ane?raw=true
-Invoke-WebRequest -OutFile "$currentDir\android_dependencies\com.google.code.gson.gson-2.8.4.ane" -Uri https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/misc/com.google.code.gson.gson-2.8.4.ane?raw=true
+Invoke-WebRequest -OutFile "$currentDir\android_dependencies\com.tuarua.frekotlin-$FreKotlinVersion.ane" -Uri https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/kotlin/com.tuarua.frekotlin-$FreKotlinVersion.ane?raw=true
+Invoke-WebRequest -OutFile "$currentDir\android_dependencies\org.greenrobot.eventbus-$EventBusVersion.ane" -Uri https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/misc/org.greenrobot.eventbus-$EventBusVersion.ane?raw=true
+Invoke-WebRequest -OutFile "$currentDir\android_dependencies\com.google.code.gson.gson-$GsonVersion.ane" -Uri https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/misc/com.google.code.gson.gson-$GsonVersion.ane?raw=true
Invoke-WebRequest -OutFile "$currentDir\android_dependencies\com.android.support.support-v4-$SupportV4Version.ane" -Uri https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/support/com.android.support.support-v4-$SupportV4Version.ane?raw=true
Invoke-WebRequest -OutFile "$currentDir\android_dependencies\com.google.android.gms.play-services-base-$PlayerServicesVersion.ane" -Uri https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/play-services/com.google.android.gms.play-services-base-$PlayerServicesVersion.ane?raw=true
Invoke-WebRequest -OutFile "$currentDir\android_dependencies\com.google.android.gms.play-services-location-$LocationVersion.ane" -Uri https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/play-services/com.google.android.gms.play-services-location-$LocationVersion.ane?raw=true
diff --git a/example/get_android_dependencies.sh b/example/get_android_dependencies.sh
index a1eaff8..3ff1157 100755
--- a/example/get_android_dependencies.sh
+++ b/example/get_android_dependencies.sh
@@ -1,14 +1,17 @@
#!/bin/sh
-AneVersion="2.4.0"
+AneVersion="2.5.0"
+FreKotlinVersion="1.8.0"
PlayerServicesVersion="16.0.1"
MapsVersion="16.1.0"
LocationVersion="16.0.0"
SupportV4Version="27.1.0"
+GsonVersion="2.8.4"
+EventBusVersion="3.0.0"
-wget -O android_dependencies/com.tuarua.frekotlin.ane https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/kotlin/com.tuarua.frekotlin.ane?raw=true
-wget -O android_dependencies/org.greenrobot.eventbus-3.0.0.ane https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/misc/org.greenrobot.eventbus-3.0.0.ane?raw=true
-wget -O android_dependencies/com.google.code.gson.gson-2.8.4.ane https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/misc/com.google.code.gson.gson-2.8.4.ane?raw=true
+wget -O android_dependencies/com.tuarua.frekotlin-$FreKotlinVersion.ane https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/kotlin/com.tuarua.frekotlin-$FreKotlinVersion.ane?raw=true
+wget -O android_dependencies/org.greenrobot.eventbus-$EventBusVersion.ane https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/misc/org.greenrobot.eventbus-$EventBusVersion.ane?raw=true
+wget -O android_dependencies/com.google.code.gson.gson-$GsonVersion.ane https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/misc/com.google.code.gson.gson-$GsonVersion.ane?raw=true
wget -O android_dependencies/com.android.support.support-v4-$SupportV4Version.ane https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/support/com.android.support.support-v4-$SupportV4Version.ane?raw=true
wget -O android_dependencies/com.google.android.gms.play-services-base-$PlayerServicesVersion.ane https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/play-services/com.google.android.gms.play-services-base-$PlayerServicesVersion.ane?raw=true
wget -O android_dependencies/com.google.android.gms.play-services-location-$LocationVersion.ane https://github.com/tuarua/Android-ANE-Dependencies/blob/master/anes/play-services/com.google.android.gms.play-services-location-$LocationVersion.ane?raw=true
diff --git a/example/get_ios_dependencies.sh b/example/get_ios_dependencies.sh
index 532f6e1..78fba43 100755
--- a/example/get_ios_dependencies.sh
+++ b/example/get_ios_dependencies.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-AneVersion="2.4.0"
+AneVersion="2.5.0"
FreSwiftVersion="3.1.0"
rm -r ios_dependencies/device
diff --git a/example/src/GoogleMapsANESample-app.xml b/example/src/Main-app-android.xml
similarity index 82%
rename from example/src/GoogleMapsANESample-app.xml
rename to example/src/Main-app-android.xml
index a13c7c4..48ab6e8 100644
--- a/example/src/GoogleMapsANESample-app.xml
+++ b/example/src/Main-app-android.xml
@@ -1,10 +1,10 @@
-
+
com.tuarua.googlemapsaneexample
GoogleMapsANE
GoogleMapsANE
- 2.4.0
+ 2.5.0
@@ -38,35 +38,12 @@
AppIcon60x60@3x.png
-
-
-
-
- UIDeviceFamily
-
- 1
- 2
-
- MinimumOSVersion
- 9.0
- NSLocationAlwaysUsageDescription
- We require your location
- NSLocationWhenInUseUsageDescription
- We require your location
- NSLocationAlwaysAndWhenInUseUsageDescription
- We require your location
- ]]>
-
-
- high
-
-
+
diff --git a/example/src/Main-app-ios.xml b/example/src/Main-app-ios.xml
new file mode 100644
index 0000000..787a633
--- /dev/null
+++ b/example/src/Main-app-ios.xml
@@ -0,0 +1,70 @@
+
+
+
+ com.tuarua.googlemapsaneexample
+ GoogleMapsANE
+ GoogleMapsANE
+ 2.5.0
+
+
+
+
+ [This value will be overwritten by Flash Builder in the output app.xml]
+
+
+ any
+
+
+ true
+
+
+
+ true
+
+
+ direct
+
+
+ true
+
+
+
+
+
+ AppIcon76x76~ipad.png
+ AppIcon60x60@2x.png
+ AppIcon76x76@2x~ipad.png
+ AppIcon83.5x83.5@2x~ipad.png
+ AppIcon60x60@3x.png
+
+
+
+
+
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ MinimumOSVersion
+ 9.0
+ NSLocationAlwaysUsageDescription
+ We require your location
+ NSLocationWhenInUseUsageDescription
+ We require your location
+ NSLocationAlwaysAndWhenInUseUsageDescription
+ We require your location
+ ]]>
+
+
+ high
+
+
+
+
+ com.tuarua.GoogleMapsANE
+
+
+
diff --git a/example/src/StarlingRoot.as b/example/src/StarlingRoot.as
index 305fff6..f0c5921 100644
--- a/example/src/StarlingRoot.as
+++ b/example/src/StarlingRoot.as
@@ -26,9 +26,7 @@ import flash.desktop.NativeApplication;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.events.Event;
-import flash.geom.Point;
import flash.geom.Rectangle;
-import flash.utils.setTimeout;
import starling.core.Starling;
import starling.display.Sprite;
diff --git a/native_extension/ane/build-android.bat b/native_extension/ane/build-android.bat
deleted file mode 100644
index d81ceee..0000000
--- a/native_extension/ane/build-android.bat
+++ /dev/null
@@ -1,51 +0,0 @@
-@echo off
-SET pathtome=%~dp0
-SET SZIP="C:\Program Files\7-Zip\7z.exe"
-SET AIR_PATH="D:\dev\sdks\AIR\AIRSDK_32\bin\"
-
-SET projectName=GoogleMapsANE
-
-copy %pathtome%..\bin\%projectName%.swc %pathtome%
-
-REM contents of SWC.
-copy /Y %pathtome%%projectName%.swc %pathtome%%projectName%Extract.swc
-ren %pathtome%%projectName%Extract.swc %projectName%Extract.zip
-call %SZIP% e %pathtome%%projectName%Extract.zip -o%pathtome%
-del %pathtome%%projectName%Extract.zip
-
-REM Copy library.swf to folders.
-echo Copying library.swf into place.
-copy %pathtome%library.swf %pathtome%platforms\android
-
-echo copy the aar into place
-copy /Y %pathtome%..\..\native_library\android\%projectName%\app\build\outputs\aar\app-release.aar %pathtome%platforms\android\app-release.aar
-
-
-echo "GETTING ANDROID JAR"
-call %SZIP% x %pathtome%platforms\android\app-release.aar -o%pathtome%platforms\android\ classes.jar
-call %SZIP% x %pathtome%platforms\android\app-release.aar -o%pathtome%platforms\android\ res
-ren %pathtome%platforms\android\res com.tuarua.%projectName%-res
-
-echo "GENERATING ANE"
-call %AIR_PATH%adt.bat -package -target ane %pathtome%%projectName%.ane extension_android.xml ^
--swc %projectName%.swc ^
--platform Android-ARM ^
--C platforms/android library.swf classes.jar ^
-com.tuarua.%projectName%-res/. ^
--platformoptions platforms/android/platform.xml ^
--platform Android-x86 ^
--C platforms/android library.swf classes.jar ^
-com.tuarua.%projectName%-res/. ^
--platformoptions platforms/android/platform.xml
-
-del %pathtome%platforms\\android\\classes.jar
-del %pathtome%platforms\\android\\app-release.aar
-del %pathtome%platforms\\android\\library.swf
-
-call DEL /F /Q /A %pathtome%library.swf
-call DEL /F /Q /A %pathtome%catalog.xml
-call DEL /F /Q /A %pathtome%%projectName%.swc
-
-call rmdir /Q /S %pathtome%platforms\android\com.tuarua.%projectName%-res
-
-echo "DONE!"
diff --git a/native_extension/ane/build_ios.sh b/native_extension/ane/build_ios.sh
deleted file mode 100755
index 9a7912f..0000000
--- a/native_extension/ane/build_ios.sh
+++ /dev/null
@@ -1,144 +0,0 @@
-#!/bin/sh
-
-#Get the path to the script and trim to get the directory.
-echo "Setting path to current directory to:"
-pathtome=$0
-pathtome="${pathtome%/*}"
-
-
-echo $pathtome
-
-PROJECTNAME=GoogleMapsANE
-fwSuffix="_FW"
-libSuffix="_LIB"
-
-AIR_SDK="/Users/eoinlandy/SDKs/AIRSDK_32"
-echo $AIR_SDK
-
-if [ ! -d "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release-iphonesimulator/" ]; then
-echo "No Simulator build. Build using Xcode"
-exit
-fi
-
-if [ ! -d "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release-iphoneos/" ]; then
-echo "No Device build. Build using Xcode"
-exit
-fi
-
-#Setup the directory.
-echo "Making directories."
-
-if [ ! -d "$pathtome/platforms" ]; then
-mkdir "$pathtome/platforms"
-fi
-if [ ! -d "$pathtome/platforms/ios" ]; then
-mkdir "$pathtome/platforms/ios"
-fi
-if [ ! -d "$pathtome/platforms/ios/simulator" ]; then
-mkdir "$pathtome/platforms/ios/simulator"
-fi
-if [ ! -d "$pathtome/platforms/ios/simulator/Frameworks" ]; then
-mkdir "$pathtome/platforms/ios/simulator/Frameworks"
-fi
-if [ ! -d "$pathtome/platforms/ios/device" ]; then
-mkdir "$pathtome/platforms/ios/device"
-fi
-if [ ! -d "$pathtome/platforms/ios/device/Frameworks" ]; then
-mkdir "$pathtome/platforms/ios/device/Frameworks"
-fi
-if [ ! -d "$pathtome/platforms/ios/default" ]; then
-mkdir "$pathtome/platforms/ios/default"
-fi
-
-
-#Copy SWC into place.
-echo "Copying SWC into place."
-cp "$pathtome/../bin/$PROJECTNAME.swc" "$pathtome/"
-
-#Extract contents of SWC.
-echo "Extracting files form SWC."
-unzip "$pathtome/$PROJECTNAME.swc" "library.swf" -d "$pathtome"
-
-#Copy library.swf to folders.
-echo "Copying library.swf into place."
-cp "$pathtome/library.swf" "$pathtome/platforms/ios/simulator"
-cp "$pathtome/library.swf" "$pathtome/platforms/ios/device"
-cp "$pathtome/library.swf" "$pathtome/platforms/ios/default"
-
-#Copy native libraries into place.
-echo "Copying native libraries into place."
-cp -R -L "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release-iphonesimulator/lib$PROJECTNAME$libSuffix.a" "$pathtome/platforms/ios/simulator/lib$PROJECTNAME.a"
-cp -R -L "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release-iphoneos/lib$PROJECTNAME$libSuffix.a" "$pathtome/platforms/ios/device/lib$PROJECTNAME.a"
-
-
-cp -R -L "$pathtome/../../example/ios_dependencies/simulator/Frameworks/FreSwift.framework" "$pathtome/platforms/ios/simulator/Frameworks"
-cp -R -L "$pathtome/../../example/ios_dependencies/device/Frameworks/FreSwift.framework" "$pathtome/platforms/ios/device/Frameworks"
-
-
-cp -R -L "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release-iphonesimulator/$PROJECTNAME$fwSuffix.framework" "$pathtome/platforms/ios/simulator/Frameworks"
-cp -R -L "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release-iphoneos/$PROJECTNAME$fwSuffix.framework" "$pathtome/platforms/ios/device/Frameworks"
-
-
-#move the swift dylibs into root of "$pathtome/platforms/ios/ios_dependencies/Frameworks" as per Adobe docs for AIR27
-
-echo "Copying Swift dylibs into place for device."
-#Device
-if [ -e "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks" ]
-then
-for dylib in "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks/*"
-do
-mv -f $dylib "$pathtome/../../example/ios_dependencies/device/Frameworks"
-done
-rm -r "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks"
-fi
-
-echo "Copying Swift dylibs into place for simulator."
-#Simulator
-if [ -e "$pathtome/platforms/ios/simulator/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks" ]
-then
-for dylib in "$pathtome/platforms/ios/simulator/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks/*"
-do
-mv -f $dylib "$pathtome/../../example/ios_dependencies/simulator/Frameworks"
-done
-if [ -d "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks" ]; then
-rm -r "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks"
-fi
-fi
-
-if [ -f "$pathtome/../../example/ios_dependencies/simulator/Frameworks/$PROJECTNAME$fwSuffix.framework/libswiftRemoteMirror.dylib" ]; then
-rm "$pathtome/../../example/ios_dependencies/simulator/Frameworks/$PROJECTNAME$fwSuffix.framework/libswiftRemoteMirror.dylib"
-fi
-if [ -f "$pathtome/../../example/ios_dependencies/device/Frameworks/$PROJECTNAME$fwSuffix.framework/libswiftRemoteMirror.dylib" ]; then
-rm "$pathtome/../../example/ios_dependencies/device/Frameworks/$PROJECTNAME$fwSuffix.framework/libswiftRemoteMirror.dylib"
-fi
-if [ -f "$pathtome/platforms/ios/simulator/Frameworks/$PROJECTNAME$fwSuffix.framework/libswiftRemoteMirror.dylib" ]; then
-rm "$pathtome/platforms/ios/simulator/Frameworks/$PROJECTNAME$fwSuffix.framework/libswiftRemoteMirror.dylib"
-fi
-if [ -f "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/libswiftRemoteMirror.dylib" ]; then
-rm "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/libswiftRemoteMirror.dylib"
-fi
-
-cp -R -L "$pathtome/platforms/ios/simulator/Frameworks/$PROJECTNAME$fwSuffix.framework" "$pathtome/../../example/ios_dependencies/simulator/Frameworks"
-cp -R -L "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework" "$pathtome/../../example/ios_dependencies/device/Frameworks"
-
-
-#Run the build command.
-echo "Building ANE."
-"$AIR_SDK"/bin/adt -package \
--target ane "$pathtome/$PROJECTNAME.ane" "$pathtome/extension_ios.xml" \
--swc "$pathtome/$PROJECTNAME.swc" \
--platform iPhone-x86 -C "$pathtome/platforms/ios/simulator" "library.swf" "Frameworks" "lib$PROJECTNAME.a" \
--platformoptions "$pathtome/platforms/ios/platform.xml" \
--platform iPhone-ARM -C "$pathtome/platforms/ios/device" "library.swf" "Frameworks" "lib$PROJECTNAME.a" \
--platformoptions "$pathtome/platforms/ios/platform.xml" \
-
-# .bundle
-cp -R -L "$pathtome/../../native_library/ios/$PROJECTNAME/Frameworks/GoogleMaps.bundle" "$pathtome/../../example/ios_dependencies"
-
-#remove the frameworks from sim and device, as not needed any more
-rm -r "$pathtome/platforms/ios/simulator"
-rm -r "$pathtome/platforms/ios/device"
-rm -r "$pathtome/platforms/ios/default"
-rm "$pathtome/$PROJECTNAME.swc"
-rm "$pathtome/library.swf"
-echo "Finished."
diff --git a/native_extension/ane/build_mobile.sh b/native_extension/ane/build_mobile.sh
index 712c057..04a21c6 100755
--- a/native_extension/ane/build_mobile.sh
+++ b/native_extension/ane/build_mobile.sh
@@ -5,14 +5,11 @@ echo "Setting path to current directory to:"
pathtome=$0
pathtome="${pathtome%/*}"
-
-echo $pathtome
-
PROJECTNAME=GoogleMapsANE
fwSuffix="_FW"
libSuffix="_LIB"
-AIR_SDK="/Users/eoinlandy/SDKs/AIRSDK_32"
+AIR_SDK="/Users/eoinlandy/SDKs/AIRSDK_33"
echo $AIR_SDK
if [ ! -d "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release-iphonesimulator/" ]; then
@@ -75,7 +72,6 @@ cp -R -L "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release
cp -R -L "$pathtome/../../example/ios_dependencies/simulator/Frameworks/FreSwift.framework" "$pathtome/platforms/ios/simulator/Frameworks"
cp -R -L "$pathtome/../../example/ios_dependencies/device/Frameworks/FreSwift.framework" "$pathtome/platforms/ios/device/Frameworks"
-
cp -R -L "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release-iphonesimulator/$PROJECTNAME$fwSuffix.framework" "$pathtome/platforms/ios/simulator/Frameworks"
cp -R -L "$pathtome/../../native_library/ios/$PROJECTNAME/Build/Products/Release-iphoneos/$PROJECTNAME$fwSuffix.framework" "$pathtome/platforms/ios/device/Frameworks"
@@ -86,9 +82,9 @@ echo "Copying Swift dylibs into place for device."
#Device
if [ -e "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks" ]
then
-for dylib in "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks/*"
+for dylib in "$pathtome"/platforms/ios/device/Frameworks/"$PROJECTNAME""$fwSuffix".framework/Frameworks/*
do
-mv -f $dylib "$pathtome/../../example/ios_dependencies/device/Frameworks"
+mv -f "$dylib" "$pathtome/../../example/ios_dependencies/device/Frameworks"
done
rm -r "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks"
fi
@@ -97,9 +93,9 @@ echo "Copying Swift dylibs into place for simulator."
#Simulator
if [ -e "$pathtome/platforms/ios/simulator/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks" ]
then
-for dylib in "$pathtome/platforms/ios/simulator/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks/*"
+for dylib in "$pathtome"/platforms/ios/simulator/Frameworks/"$PROJECTNAME""$fwSuffix".framework/Frameworks/*
do
-mv -f $dylib "$pathtome/../../example/ios_dependencies/simulator/Frameworks"
+mv -f "$dylib" "$pathtome/../../example/ios_dependencies/simulator/Frameworks"
done
if [ -d "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks" ]; then
rm -r "$pathtome/platforms/ios/device/Frameworks/$PROJECTNAME$fwSuffix.framework/Frameworks"
@@ -136,11 +132,15 @@ echo "Building ANE."
"$AIR_SDK"/bin/adt -package \
-target ane "$pathtome/$PROJECTNAME.ane" "$pathtome/extension_mobile.xml" \
-swc "$pathtome/$PROJECTNAME.swc" \
+-platform Android-x86 \
+-C "$pathtome/platforms/android" "library.swf" "classes.jar" \
+com.tuarua.$PROJECTNAME-res/. \
+-platformoptions "$pathtome/platforms/android/platform.xml" \
-platform Android-ARM \
-C "$pathtome/platforms/android" "library.swf" "classes.jar" \
com.tuarua.$PROJECTNAME-res/. \
-platformoptions "$pathtome/platforms/android/platform.xml" \
--platform Android-x86 \
+-platform Android-ARM64 \
-C "$pathtome/platforms/android" "library.swf" "classes.jar" \
com.tuarua.$PROJECTNAME-res/. \
-platformoptions "$pathtome/platforms/android/platform.xml" \
diff --git a/native_extension/ane/extension_android.xml b/native_extension/ane/extension_android.xml
deleted file mode 100644
index 563515b..0000000
--- a/native_extension/ane/extension_android.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- com.tuarua.GoogleMapsANE
- Google Maps ANE
- This work is licensed under Apache License, Copyright (c) 2017 Tua Rua Ltd.
- 2.4.0
-
-
-
- classes.jar
- com.tuarua.GoogleMapsANE
- com.tuarua.GoogleMapsANE
-
-
-
-
- classes.jar
- com.tuarua.GoogleMapsANE
- com.tuarua.GoogleMapsANE
-
-
-
-
diff --git a/native_extension/ane/extension_ios.xml b/native_extension/ane/extension_ios.xml
deleted file mode 100644
index 3de4407..0000000
--- a/native_extension/ane/extension_ios.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- com.tuarua.GoogleMapsANE
- Google Maps ANE
- This work is licensed under Apache License, Copyright (c) 2017 Tua Rua Ltd.
- 2.4.0
-
-
-
- libGoogleMapsANE.a
- TRGMAExtInizer
- TRGMAExtFinizer
-
-
-
-
- libGoogleMapsANE.a
- TRGMAExtInizer
- TRGMAExtFinizer
-
-
-
-
diff --git a/native_extension/ane/extension_mobile.xml b/native_extension/ane/extension_mobile.xml
index f637300..67b13e4 100644
--- a/native_extension/ane/extension_mobile.xml
+++ b/native_extension/ane/extension_mobile.xml
@@ -3,8 +3,15 @@
com.tuarua.GoogleMapsANE
Google Maps ANE
This work is licensed under Apache License, Copyright (c) 2017 Tua Rua Ltd.
- 2.4.0
+ 2.5.0
+
+
+ classes.jar
+ com.tuarua.GoogleMapsANE
+ com.tuarua.GoogleMapsANE
+
+
classes.jar
@@ -12,7 +19,7 @@
com.tuarua.GoogleMapsANE
-
+
classes.jar
com.tuarua.GoogleMapsANE
diff --git a/native_extension/ane/platforms/default/library.swf b/native_extension/ane/platforms/default/library.swf
index 2bfc9f6..e89dd40 100644
Binary files a/native_extension/ane/platforms/default/library.swf and b/native_extension/ane/platforms/default/library.swf differ
diff --git a/native_extension/bin/GoogleMapsANE.swc b/native_extension/bin/GoogleMapsANE.swc
index 5573e3d..dde0b0c 100644
Binary files a/native_extension/bin/GoogleMapsANE.swc and b/native_extension/bin/GoogleMapsANE.swc differ
diff --git a/native_library/android/GoogleMapsANE/GoogleMapsANE.iml b/native_library/android/GoogleMapsANE/GoogleMapsANE.iml
index 20ca0e1..cac7315 100644
--- a/native_library/android/GoogleMapsANE/GoogleMapsANE.iml
+++ b/native_library/android/GoogleMapsANE/GoogleMapsANE.iml
@@ -8,7 +8,7 @@
-
+
diff --git a/native_library/android/GoogleMapsANE/app/app.iml b/native_library/android/GoogleMapsANE/app/app.iml
index 48ab1c6..1e7a13d 100644
--- a/native_library/android/GoogleMapsANE/app/app.iml
+++ b/native_library/android/GoogleMapsANE/app/app.iml
@@ -17,7 +17,7 @@
-
+
@@ -25,22 +25,35 @@
-
+
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -49,21 +62,21 @@
-
-
-
+
+
+
-
+
-
+
-
+
-
+
@@ -111,40 +124,43 @@
-
-
+
+
+
+
-
-
-
+
+
+
-
-
+
-
-
-
+
+
+
+
+
+
+
-
-
-
-
+
-
+
+
-
+
@@ -156,13 +172,13 @@
+
-
-
+
diff --git a/native_library/android/GoogleMapsANE/app/build.gradle b/native_library/android/GoogleMapsANE/app/build.gradle
index 03e15f1..11f7634 100644
--- a/native_library/android/GoogleMapsANE/app/build.gradle
+++ b/native_library/android/GoogleMapsANE/app/build.gradle
@@ -1,14 +1,15 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
+apply plugin: 'kotlin-android-extensions'
android {
- compileSdkVersion 27
- buildToolsVersion "27.0.3"
+ compileSdkVersion 28
+ buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 19
- targetSdkVersion 27
+ targetSdkVersion compileSdkVersion
versionCode 1
- versionName "2.2.0"
+ versionName "2.3.0"
}
buildTypes {
release {
@@ -16,13 +17,17 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
-
+ compileOptions {
+ sourceCompatibility = '1.8'
+ targetCompatibility = '1.8'
+ }
lintOptions {
disable 'GradleDependency','UnusedResources'
}
}
dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'org.greenrobot:eventbus:3.0.0'
implementation "com.google.android.gms:play-services-location:$play_location_version"
implementation "com.google.android.gms:play-services-maps:$play_maps_version"
diff --git a/native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/MapController.kt b/native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/MapController.kt
index b1d9fc8..62c2f2d 100644
--- a/native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/MapController.kt
+++ b/native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/MapController.kt
@@ -225,7 +225,7 @@ class MapController(override var context: FREContext?, private var airView: View
airView.addView(frame)
mMapFragment = MapFragment.newInstance()
- val fragmentTransaction: FragmentTransaction = ctx.activity.fragmentManager.beginTransaction()
+ val fragmentTransaction = ctx.activity.fragmentManager.beginTransaction()
fragmentTransaction.add(newId, mMapFragment)
fragmentTransaction.commit()
mMapFragment.getMapAsync(this)
diff --git a/native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/PermissionActivity.kt b/native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/PermissionActivity.kt
index 962d57b..9fb660a 100644
--- a/native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/PermissionActivity.kt
+++ b/native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/PermissionActivity.kt
@@ -27,8 +27,8 @@ class PermissionActivity : Activity(), ActivityCompat.OnRequestPermissionsResult
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
- val extras = intent.extras
- val permissions = extras.getStringArray("ptc")
+ val extras = intent.extras ?: return
+ val permissions = extras.getStringArray("ptc") ?: return
ActivityCompat.requestPermissions(this, permissions, 19001)
}
diff --git a/native_library/android/GoogleMapsANE/build.gradle b/native_library/android/GoogleMapsANE/build.gradle
index 68aad7c..9fbbec1 100644
--- a/native_library/android/GoogleMapsANE/build.gradle
+++ b/native_library/android/GoogleMapsANE/build.gradle
@@ -1,8 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
- ext.kotlin_version = '1.3.30'
- ext.frekotlin_version = '1.7.0'
+ ext.kotlin_version = '1.3.40'
+ ext.frekotlin_version = '1.8.0'
ext.gson_version = '2.8.4'
ext.play_maps_version = '16.1.0'
ext.play_location_version = '16.0.0'
@@ -13,7 +13,7 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.1.4'
+ classpath 'com.android.tools.build:gradle:3.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
diff --git a/native_library/android/GoogleMapsANE/gradle/wrapper/gradle-wrapper.properties b/native_library/android/GoogleMapsANE/gradle/wrapper/gradle-wrapper.properties
index 01f3ddc..637fa96 100644
--- a/native_library/android/GoogleMapsANE/gradle/wrapper/gradle-wrapper.properties
+++ b/native_library/android/GoogleMapsANE/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip