Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

Commit

Permalink
Merge pull request #18 from DeNADev/1.4.6-jp
Browse files Browse the repository at this point in the history
1.4.6-jp-4
  • Loading branch information
Jose Luis committed Aug 14, 2014
2 parents dfc58e5 + a9c13eb commit 1cad1a8
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 8 deletions.
33 changes: 31 additions & 2 deletions README-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Following are the requirements for development.

Flash Builder 4.7 (AIR SDK 4.0 or later)
Eclipse Juno or later
Xcode 5 or later
Xcode 5.1 or later
Android Developers Tools 21 or later

CREATING ASDOCS
Expand All @@ -58,11 +58,40 @@ Import android/ into Eclipse, edit source code, and then run 'make'.
* Make sure you have setup enviromental path for "android"(located in $YOUR_ADT_PATH/sdk/tools) and "ant"(installed by default on Mac usr/bin/).

Note that the Android emulator is not used as a development environment.

About Google Play Games Library
======================================================================
We recommend that you use Google Play Games Services library version 4.X (tested version).

Adding Google Play library
1. Make sure you set the path to google-play-services.jar and res folder on the "./common.mk".
The res folder needs to be named as "google-play-services-res".
2. Add the following line in <application> to your app.xml for AndroidManifest

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
3. Call 'make' to build (For release make sure you add DEBUG option 0)

Removing Google Play library from build
1. Open /ANE4MobageSDK/as/Android-options.xml
2. Remove the following lines

<packagedDependency>google-play-services.jar</packagedDependency>


<packagedResources>
<packagedResource>
<packageName>com.google.android.gms</packageName>
<folderName>google-play-services-res</folderName>
</packagedResource>
</packagedResources>

3. Call 'make GOOGLEPLAY=0' to build without Google Play Games Services library

DEVELOPMENT FOR IOS
======================================================================

Open ios/ANE4MobageSDK.xcodeproj with Xcode 5 or later and edit
Open ios/ANE4MobageSDK.xcodeproj with Xcode 5.1 or later and edit
source code, and then 'make'.
Please make sure that "Apple iOS SDK" is higher then 6.1 when packaging with FlashBuilder.

Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,20 @@ Known Issues
ChangeLog
==========================================================================
2014-01-16 (version v1.4.6-jp-0)
Initial release for Mobage SDK 1.4.6
- Initial release for Mobage SDK 1.4.6

2014-03-11 (version v1.4.6-jp-1)
Added default platform target for AIR simulator. And fixed other minor issues.
- Added default platform target for AIR simulator. And fixed other minor issues.

2014-03-38 (version v1.4.6-jp-2)
Changed android jar dependencies to AIR platform dependencies.
- Changed android jar dependencies to AIR platform dependencies.

2014-04-17 (version v1.4.6-jp-3)
Fixed Android PushNotification not passed to AIR layer when receiving extras. Added state on RemoteNotificationPayload for AIR to confirm from where the notification was received.
2014-04-17 (version v1.4.6-jp-3)
- Fixed Android PushNotification not passed to AIR layer when receiving extras.
- Added state on RemoteNotificationPayload for AIR to confirm from where the notification was received.

2014-08-06 (version v1.4.6-jp-4)
- Added as default to add Google Play Games Services Library. See README-dev for more details.


ENVIRONMENT
Expand Down
3 changes: 3 additions & 0 deletions android/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ DEBUG?=0
# kr : Build for KR
REGION?=jp

# with google play games services
GOOGLEPLAY?=1

ifeq ($(DEBUG), 1)
BUILD_TARGET=debug
else
Expand Down
9 changes: 9 additions & 0 deletions as/Android-options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,14 @@
<packagedDependency>android-support-v4.jar</packagedDependency>
<packagedDependency>AppAdForce.jar</packagedDependency>
<packagedDependency>MobageNativeSdk.jar</packagedDependency>
<packagedDependency>google-play-services.jar</packagedDependency>
</packagedDependencies>

<packagedResources>

<packagedResource>
<packageName>com.google.android.gms</packageName>
<folderName>google-play-services-res</folderName>
</packagedResource>
</packagedResources>
</platform>
9 changes: 8 additions & 1 deletion as/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ DEBUG?=0
# kr : Build for KR
REGION?=jp

# with google play games services
GOOGLEPLAY?=1

# AS output files
OUTPUT_DIR=bin
OUTPUT_SWC=$(OUTPUT_DIR)/ANE4MobageSDK.swc
Expand Down Expand Up @@ -54,7 +57,11 @@ INPUT_ADL_SWF=$(ADL_DIR)/library.swf
INPUT_MOBAGE_SDK=$(ANDROID_DIR)/libs $(ANDROID_DIR)/res $(ANDROID_DIR)/res_rn_v9 $(IOS_DIR)/MobageSDK $(IOS_SIMULATOR_DIR)/MobageSDK

# path to Mobage Native SDK
ifeq ($(GOOGLEPLAY), 1)
MOBAGE_ANDROID_SDK_FILES=$(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/libs/android-support-v4.jar $(GOOGLE_SDK_PATH) $(GOOGLE_SDK_RESOURCE_PATH) $(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/libs/MobageNativeSdk.jar $(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/libs/AppAdForce.jar $(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/res $(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/res_rn_v9
else
MOBAGE_ANDROID_SDK_FILES=$(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/libs/android-support-v4.jar $(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/libs/MobageNativeSdk.jar $(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/libs/AppAdForce.jar $(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/res $(MOBAGE_SDK_PATH)/android/MobageNativeAndroid/res_rn_v9
endif
MOBAGE_IOS_SDK_PATH=$(MOBAGE_SDK_PATH)/ios/MobageSDK

$(OUTPUT_ANE): $(OUTPUT_SWC) $(INPUT_ANDROID_SWF) $(INPUT_IOS_SWF) $(INPUT_IOS_SIMULATOR_SWF) $(INPUT_ADL_SWF) $(INPUT_MOBAGE_SDK)
Expand All @@ -81,7 +88,7 @@ $(INPUT_ANDROID_SWF): $(INPUT_NATIVE_JAR) $(OUTPUT_ANDROID_SWF)

$(INPUT_NATIVE_JAR):
mkdir -p $(ANDROID_DIR)
cd ../android/; make DEBUG=$(DEBUG) REGION=$(REGION)
cd ../android/; make DEBUG=$(DEBUG) REGION=$(REGION) GOOGLEPLAY=$(GOOGLEPLAY)
cp ../android/$(REGION)/ANE4MobageSDK.jar $@

$(INPUT_IOS_LIB):
Expand Down
4 changes: 4 additions & 0 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Path to Mobage Native SDK
MOBAGE_SDK_PATH="Your_PATH_To_NATIVE_SDK/mobage-nativesdk-1.4.5-20131105-g6193da8"

# Path for Google Play Games Services SDK and resources
GOOGLE_SDK_PATH="Your_PATH_To_GooglePlay/google-play-services.jar"
GOOGLE_SDK_RESOURCE_PATH="Your_PATH_To_GooglePlay_Res/google-play-services-res"

# Path to FlashRuntimeExtension.jar bundled with Adobe Flash Builder
FLASH_RUNTIME_EXT_JAR_PATH="/Applications/Adobe Flash Builder 4.7/sdks/4.6.0/lib/android/FlashRuntimeExtensions.jar"

Expand Down

0 comments on commit 1cad1a8

Please sign in to comment.