Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update #43

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ Thumbs.db
#intellij
.idea
*.iml

#gradle
.gradle
android/build
local.properties
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is an [Air native extension](http://www.adobe.com/devnet/air/native-extensi
Installation
---------

The ANE binary (AirGooglePlayGamesService.ane) is located in the *bin* folder. You should add it to your application project's Build Path and make sure to package it with your app (more information [here](http://help.adobe.com/en_US/air/build/WS597e5dadb9cc1e0253f7d2fc1311b491071-8000.html)).
The ANE binary (AirGooglePlayGameServices.ane) is located in the *bin* folder. You should add it to your application project's Build Path and make sure to package it with your app (more information [here](http://help.adobe.com/en_US/air/build/WS597e5dadb9cc1e0253f7d2fc1311b491071-8000.html)).


Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@ package com.freshplanet.ane.AirGooglePlayGames
return _instance ? _instance : new AirGooglePlayGames();
}

public function startAtLaunch():void
public function isSignedIn():Boolean
{
var signedIn:Boolean = false;
if (AirGooglePlayGames.isSupported)
{
_context.call("startAtLaunch");
signedIn = _context.call("isSignedIn") as Boolean;
}

return signedIn;
}

public function signIn():void
Expand All @@ -91,7 +94,7 @@ package com.freshplanet.ane.AirGooglePlayGames
{
if (AirGooglePlayGames.isSupported)
{
_context.call("reportAchievemnt", achievementId, percent);
_context.call("reportAchievement", achievementId, percent);
}
}

Expand Down Expand Up @@ -134,7 +137,7 @@ package com.freshplanet.ane.AirGooglePlayGames
// //
// --------------------------------------------------------------------------------------//

private static const EXTENSION_ID : String = "com.freshplanet.AirGooglePlayGamesService";
private static const EXTENSION_ID : String = "com.freshplanet.AirGooglePlayGameServices";

private static var _instance : AirGooglePlayGames;

Expand Down
4 changes: 2 additions & 2 deletions android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.freshplanet.burstly"
package="com.freshplanet.googleplaygames"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" />
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="22" />

</manifest>
42 changes: 42 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apply plugin: 'com.android.library'

repositories {
jcenter()

flatDir {
dirs 'libs'
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services-games:9.4.0'
compile 'com.google.android.gms:play-services-plus:9.4.0'
}

android {
compileSdkVersion 22
buildToolsVersion '23.0.2'

defaultConfig {
minSdkVersion 14
targetSdkVersion 22
}

lintOptions {
abortOnError false
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
9 changes: 0 additions & 9 deletions android/google-play-services_lib/AndroidManifest.xml

This file was deleted.

17 changes: 0 additions & 17 deletions android/google-play-services_lib/README.txt

This file was deleted.

9 changes: 0 additions & 9 deletions android/google-play-services_lib/bin/AndroidManifest.xml

This file was deleted.

108 changes: 0 additions & 108 deletions android/google-play-services_lib/bin/R.txt

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 0 additions & 3 deletions android/google-play-services_lib/bin/jarlist.cache

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

This file was deleted.

Loading