├── .gitignore ├── GPGPlugin.unitypackage ├── GPGPlugin ├── Build.bat ├── README.md ├── Src │ ├── DummyActivity.java │ ├── NerdGPG.java │ ├── NerdUnityPlayerActivity.java │ └── NerdUnityPlayerNativeActivity.java ├── build.xml └── libs │ ├── FacebookSDK.jar │ ├── Include │ └── google-play-services.jar │ ├── android-support-v4.jar │ ├── android.jar │ └── untiy-classes.jar ├── README.md ├── bootstrap.sh └── licence.txt /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | 5 | # Autogenerated VS/MD solution and project files 6 | *.csproj 7 | *.unityproj 8 | *.swp 9 | *.sln 10 | xcode 11 | *.DS_Store 12 | *.pidb 13 | Eclipse 14 | eclipse* 15 | GooglePlaySDKs 16 | *.userprefs 17 | ProjectSettings 18 | *.log 19 | AndroidProject 20 | bin 21 | -------------------------------------------------------------------------------- /GPGPlugin.unitypackage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faizann/UnityGPGPlugin/f0c233a710f0d93cd7e915903e1daddeb4550e36/GPGPlugin.unitypackage -------------------------------------------------------------------------------- /GPGPlugin/Build.bat: -------------------------------------------------------------------------------- 1 | call ant compile build-jar 2 | pause 3 | -------------------------------------------------------------------------------- /GPGPlugin/README.md: -------------------------------------------------------------------------------- 1 | UnityGPGPlugin 2 | ============== 3 | 4 | Unity3D Google Play Game Services Plugin 5 | 6 | Copyright (C) 2011 Nerdiacs Pte Limited http://www.Nerdiacs.com 7 | 8 | This library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU Lesser General Public 10 | License as published by the Free Software Foundation; either 11 | version 3.0 of the License, or (at your option) any later version. 12 | 13 | This library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | Lesser General Public License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public 19 | License along with this library; if not, write to the Free Software 20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 | 22 | # How To Compile 23 | 24 | 1. Install the latest version of ant from http://ant.apache.org/bindownload.cgi 25 | 2. Install JDK 6 from http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-6u3-jdk-6u29-downloads-523388.html 26 | 3. Make sure all your command prompt windows are closed at this point. 27 | 4. Now run Build.bat. 28 | 29 | GPGPlugin.jar should be built in a folder called bin 30 | 31 | -------------------------------------------------------------------------------- /GPGPlugin/Src/DummyActivity.java: -------------------------------------------------------------------------------- 1 | package com.nerdiacs.nerdgpgplugin; 2 | 3 | import com.google.android.gms.common.ConnectionResult; 4 | import com.unity3d.player.UnityPlayer; 5 | 6 | import android.app.Activity; 7 | import android.content.Intent; 8 | import android.content.IntentSender.SendIntentException; 9 | import android.os.Bundle; 10 | import android.util.Log; 11 | import android.view.View; 12 | import android.view.Window; 13 | import android.view.WindowManager; 14 | 15 | public class DummyActivity extends Activity { 16 | 17 | 18 | protected void onCreate (Bundle savedInstanceState) 19 | { 20 | super.onCreate(savedInstanceState); 21 | 22 | requestWindowFeature(Window.FEATURE_NO_TITLE); 23 | 24 | 25 | } 26 | protected void onStart() 27 | { 28 | super.onStart(); 29 | try { 30 | if(NerdGPG.mConnectionResult!=null) 31 | NerdGPG.mConnectionResult.startResolutionForResult(this, NerdGPG.RC_RESOLVE); 32 | } catch (SendIntentException e) { 33 | Log.e("NERDGPG", "Error in starting connection resolution "+ e.getMessage()); 34 | } 35 | 36 | } 37 | protected void onDestroy () 38 | { 39 | super.onDestroy(); 40 | } 41 | 42 | public void onActivityResult(int request, int response, Intent data) { 43 | super.onActivityResult(request, response, data); 44 | if(NerdGPG.mCurrentGPG!=null) 45 | NerdGPG.mCurrentGPG.onActivityResult(request, response, data); 46 | finish(); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /GPGPlugin/Src/NerdGPG.java: -------------------------------------------------------------------------------- 1 | /** 2 | * A lot of code is mindlessly copied from GameHelper.java from Android Google Game Play Services sample BaseGameUtils 3 | * https://github.com/playgameservices/android-samples/blob/master/BaseGameUtils/src/com/google/example/games/basegameutils/GameHelper.java 4 | */ 5 | 6 | package com.nerdiacs.nerdgpgplugin; 7 | 8 | import java.util.Vector; 9 | 10 | import android.app.Activity; 11 | import android.app.PendingIntent; 12 | import android.content.Intent; 13 | import android.content.IntentSender.SendIntentException; 14 | import android.os.Bundle; 15 | import android.util.Log; 16 | import android.view.Gravity; 17 | import android.util.Base64; 18 | import android.content.Context; 19 | import android.app.Dialog; 20 | import android.app.*; 21 | import android.app.AlertDialog.*; 22 | 23 | import com.google.android.gms.appstate.AppStateClient; 24 | import com.google.android.gms.appstate.OnStateLoadedListener; 25 | import com.google.android.gms.common.ConnectionResult; 26 | import com.google.android.gms.common.GooglePlayServicesClient; 27 | import com.google.android.gms.common.GooglePlayServicesUtil; 28 | import com.google.android.gms.common.Scopes; 29 | import com.google.android.gms.games.GamesClient; 30 | import com.google.android.gms.games.OnSignOutCompleteListener; 31 | import com.google.android.gms.games.achievement.Achievement; 32 | import com.google.android.gms.games.achievement.AchievementBuffer; 33 | import com.google.android.gms.games.achievement.OnAchievementUpdatedListener; 34 | import com.google.android.gms.games.achievement.OnAchievementsLoadedListener; 35 | import com.google.android.gms.games.leaderboard.OnScoreSubmittedListener; 36 | import com.google.android.gms.games.leaderboard.SubmitScoreResult; 37 | import com.google.android.gms.games.multiplayer.Invitation; 38 | import com.google.android.gms.games.Player; 39 | import com.google.android.gms.plus.PlusClient; 40 | import com.unity3d.player.UnityPlayer; 41 | 42 | 43 | public class NerdGPG implements GooglePlayServicesClient.ConnectionCallbacks, 44 | GooglePlayServicesClient.OnConnectionFailedListener, OnSignOutCompleteListener, OnStateLoadedListener, OnAchievementUpdatedListener { 45 | 46 | private static String TAG = "NerdGPG"; 47 | 48 | public static String gameObjectName = null; 49 | public static Activity mParentActivity = null; 50 | public static Activity mDummyActivity = null; 51 | public static NerdGPG mCurrentGPG = null; 52 | public byte[] mKey0Data = null; 53 | public byte[] mKey1Data = null; 54 | public byte[] mKey2Data = null; 55 | public byte[] mKey3Data = null; 56 | 57 | public boolean mDebugLog = true; 58 | 59 | GamesClient mGamesClient = null; 60 | PlusClient mPlusClient = null; 61 | AppStateClient mAppStateClient = null; 62 | String[] mScopes = null; 63 | 64 | // What clients we manage (OR-able values, can be combined as flags) 65 | public final static int CLIENT_NONE = 0x00; 66 | public final static int CLIENT_GAMES = 0x01; 67 | public final static int CLIENT_PLUS = 0x02; 68 | public final static int CLIENT_APPSTATE = 0x04; 69 | public final static int CLIENT_PLUSPROFILE = 0x08; 70 | public final static int CLIENT_ALL = CLIENT_GAMES | CLIENT_PLUS | CLIENT_APPSTATE; 71 | 72 | final static int RC_RESOLVE = 9001; 73 | 74 | // Request code when invoking Activities whose result we don't care about. 75 | final static int RC_UNUSED = 9002; 76 | 77 | // What clients were requested? (bit flags) 78 | int mRequestedClients = CLIENT_NONE; 79 | 80 | // What clients are currently connected? (bit flags) 81 | int mConnectedClients = CLIENT_NONE; 82 | 83 | // What client are we currently connecting? 84 | int mClientCurrentlyConnecting = CLIENT_NONE; 85 | 86 | // Whether to automatically try to sign in on onStart(). 87 | boolean mAutoSignIn = true; 88 | 89 | /* 90 | * Whether user has specifically requested that the sign-in process begin. 91 | * If mUserInitiatedSignIn is false, we're in the automatic sign-in attempt 92 | * that we try once the Activity is started -- if true, then the user has 93 | * already clicked a "Sign-In" button or something similar 94 | */ 95 | boolean mUserInitiatedSignIn = false; 96 | 97 | // The connection result we got from our last attempt to sign-in. 98 | public static ConnectionResult mConnectionResult = null; 99 | 100 | // Whether our sign-in attempt resulted in an error. In this case, 101 | // mConnectionResult 102 | // indicates what was the error we failed to resolve. 103 | boolean mSignInError = false; 104 | // Whether we launched the sign-in dialog flow and therefore are expecting 105 | // an 106 | // onActivityResult with the result of that. 107 | boolean mExpectingActivityResult = false; 108 | 109 | // Are we signed in? 110 | boolean mSignedIn = false; 111 | 112 | AchievementBuffer mAchievements = null; 113 | // If we got an invitation id when we connected to the games client, it's 114 | // here. 115 | // Otherwise, it's null. 116 | String mInvitationId; 117 | 118 | public NerdGPG() { 119 | mCurrentGPG = this; 120 | mParentActivity = UnityPlayer.currentActivity; 121 | debugLog("ParentActivity name is " + mParentActivity.getClass().getName()); 122 | 123 | } 124 | public static void showOkDialogWithText(Context context, String messageText) 125 | { 126 | Builder builder = new AlertDialog.Builder(context); 127 | builder.setMessage(messageText); 128 | builder.setCancelable(true); 129 | builder.setPositiveButton("OK", null); 130 | AlertDialog dialog = builder.create(); 131 | dialog.show(); 132 | } 133 | 134 | static int gErrCode = 0; 135 | public boolean init(final Activity activity) { 136 | if(activity==null) { 137 | Log.d(TAG, "ParentActivity handle required"); 138 | return false; // 139 | } 140 | 141 | mParentActivity = activity; 142 | debugLog("ParentActivity name is " + mParentActivity.getClass().getName()); 143 | gErrCode =GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity); 144 | if(gErrCode!=ConnectionResult.SUCCESS) { 145 | // we need to download proper google play services apk 146 | debugLog("Googleplay services not found or version wrong "+ gErrCode); 147 | UnityPlayer.currentActivity.runOnUiThread(new Runnable() { 148 | public void run() { 149 | Dialog dialog = GooglePlayServicesUtil.getErrorDialog(gErrCode, activity, 69); 150 | 151 | if(dialog != null) 152 | { 153 | dialog.show(); 154 | } 155 | else 156 | { 157 | // Note: Handle this for failure 158 | 159 | //showOkDialogWithText(getApplicationContext(), "Something went wrong. Please make sure that you have the Play Store installed and that you are connected to the internet. Contact developer with details if this persists."); 160 | Log.d("GooglePlayServicesUtil", "Null dialog"); 161 | } 162 | } 163 | 164 | }); 165 | return false; 166 | } 167 | 168 | 169 | mRequestedClients = CLIENT_ALL; // connect all client types 170 | // set scopes 171 | Vector scopesVector = new Vector(); 172 | if((mRequestedClients & CLIENT_GAMES)!=0) 173 | scopesVector.add(Scopes.GAMES); 174 | if((mRequestedClients & CLIENT_PLUS)!=0) 175 | scopesVector.add(Scopes.PLUS_LOGIN); 176 | if((mRequestedClients & CLIENT_APPSTATE)!=0) 177 | scopesVector.add(Scopes.APP_STATE); 178 | // scopesVector.add(Scopes.PLUS_PROFILE); 179 | 180 | mScopes = new String[scopesVector.size()]; 181 | scopesVector.copyInto(mScopes); 182 | 183 | mGamesClient = new GamesClient.Builder(mParentActivity, this, this) 184 | .setGravityForPopups(Gravity.TOP | Gravity.CENTER_HORIZONTAL) 185 | .setScopes(mScopes) 186 | .create(); 187 | 188 | mPlusClient = new PlusClient.Builder(mParentActivity, this, this) 189 | .setScopes(mScopes) 190 | .build(); 191 | 192 | mAppStateClient = new AppStateClient.Builder(mParentActivity, this, this) 193 | .setScopes(mScopes) 194 | .create(); 195 | 196 | return false; 197 | } 198 | 199 | public boolean hasAuthorised() { 200 | return mSignedIn; 201 | } 202 | 203 | public String getPlayerName() { 204 | if(!mSignedIn) 205 | return null; 206 | return mGamesClient.getCurrentPlayer().getDisplayName(); 207 | } 208 | 209 | public String getPlayerID() { 210 | if(!mSignedIn) 211 | return null; 212 | 213 | return mGamesClient.getCurrentPlayer().getPlayerId (); 214 | } 215 | 216 | public void showLeaderBoards(String leaderBoardId) { 217 | if(!mSignedIn) 218 | return; 219 | Intent intent = mGamesClient.getLeaderboardIntent(leaderBoardId); 220 | if(intent!=null) 221 | mParentActivity.startActivityForResult(intent,RC_UNUSED); 222 | } 223 | 224 | public void showAllLeaderBoards(){ 225 | if(!mSignedIn) 226 | return; 227 | Intent intent = mGamesClient.getAllLeaderboardsIntent(); 228 | if(intent!=null) 229 | mParentActivity.startActivityForResult(intent,RC_UNUSED); 230 | } 231 | 232 | public void showAchievements() { 233 | if(!mSignedIn) 234 | return; 235 | Intent intent = mGamesClient.getAchievementsIntent(); 236 | if(intent!=null) 237 | mParentActivity.startActivityForResult(intent,RC_UNUSED); 238 | } 239 | 240 | public void submitScore(String leaderboardId, long score) { 241 | if(!mSignedIn) 242 | return; 243 | // might want to use API that gives back result of submission 244 | mGamesClient.submitScoreImmediate(new OnScoreSubmittedListener() { 245 | @Override 246 | public void onScoreSubmitted(int i, SubmitScoreResult result) { 247 | if(i == com.google.android.gms.games.GamesClient.STATUS_OK) { 248 | debugLog("SubmitScore success"); 249 | UnitySendMessageSafe("OnGPGSubmitScoreResult", "true"); 250 | } else { 251 | debugLog("SubmitScore failed with code "+i); 252 | UnitySendMessageSafe("OnGPGSubmitScoreResult", "false"); 253 | } 254 | } 255 | }, leaderboardId, score); 256 | } 257 | 258 | public void unlockAchievement(String achievementId) { 259 | if(!mSignedIn) 260 | return; 261 | mGamesClient.unlockAchievementImmediate(this,achievementId); 262 | } 263 | 264 | public void incrementAchievement(String achievementId, int numSteps){ 265 | if(!mSignedIn) 266 | return; 267 | mGamesClient.incrementAchievementImmediate(this,achievementId, numSteps); 268 | } 269 | 270 | @Override 271 | public void onAchievementUpdated(int i, String s) { 272 | if(i==com.google.android.gms.games.GamesClient.STATUS_OK) 273 | debugLog("Achievement sync success"); 274 | else 275 | debugLog("Achievement sync failed with code "+i); 276 | 277 | UnitySendMessageSafe("OnGPGUnlockAchievementResult", ((i==com.google.android.gms.games.GamesClient.STATUS_OK) ? "true" : "false")); 278 | } 279 | 280 | public void loadAchievements(boolean bForceReload) { 281 | mGamesClient.loadAchievements(new OnAchievementsLoadedListener() { 282 | @Override 283 | public void onAchievementsLoaded(int i, AchievementBuffer achievements) { 284 | if(i == com.google.android.gms.games.GamesClient.STATUS_OK) { 285 | String achs=""; 286 | for(int a=0; a 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | Creating output directories if needed... 47 | 48 | 49 | 50 | 51 | 52 | 53 | 55 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 71 | 72 | 73 | 74 | 75 | 76 | "${res.absolute.dir}" 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 86 | Android Ant Build. Available targets: 87 | help: Displays this help. 88 | clean: Removes output files created by other targets. 89 | compile: Compiles project's .java files into .class files. 90 | build-jar: Compiles project's .class files into .jar file. 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /GPGPlugin/libs/FacebookSDK.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faizann/UnityGPGPlugin/f0c233a710f0d93cd7e915903e1daddeb4550e36/GPGPlugin/libs/FacebookSDK.jar -------------------------------------------------------------------------------- /GPGPlugin/libs/Include/google-play-services.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faizann/UnityGPGPlugin/f0c233a710f0d93cd7e915903e1daddeb4550e36/GPGPlugin/libs/Include/google-play-services.jar -------------------------------------------------------------------------------- /GPGPlugin/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faizann/UnityGPGPlugin/f0c233a710f0d93cd7e915903e1daddeb4550e36/GPGPlugin/libs/android-support-v4.jar -------------------------------------------------------------------------------- /GPGPlugin/libs/android.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faizann/UnityGPGPlugin/f0c233a710f0d93cd7e915903e1daddeb4550e36/GPGPlugin/libs/android.jar -------------------------------------------------------------------------------- /GPGPlugin/libs/untiy-classes.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faizann/UnityGPGPlugin/f0c233a710f0d93cd7e915903e1daddeb4550e36/GPGPlugin/libs/untiy-classes.jar -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | UnityGPGPlugin 2 | ============== 3 | 4 | Unity3D Google Play Game Services Plugin 5 | 6 | Copyright (C) 2011 Nerdiacs Pte Limited http://www.Nerdiacs.com 7 | 8 | This library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU Lesser General Public 10 | License as published by the Free Software Foundation; either 11 | version 3.0 of the License, or (at your option) any later version. 12 | 13 | This library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | Lesser General Public License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public 19 | License along with this library; if not, write to the Free Software 20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 | 22 | 23 | ## Features 24 | * Support iOS and Android 25 | * Integrates with Unity's Social API 26 | * Works with the official Facebook SDK 27 | * Google Cloud Save 28 | * Leaderboards 29 | * Achievements 30 | * Signin 31 | 32 | 33 | ## Usage for iOS 34 | 35 | * Read the iOS SDK docs to understand how all fits in. https://developers.google.com/games/services/ios/quickstart 36 | * On first usage, run bootstrap.sh to download the necessary SDKs. If newer SDKs are available than the one in bootstrap then download those and rename paths in Assets/Editor/googleplay_xcode.py. 37 | * Setup GooglePlayAppID and bundleId of your app/game in googleplay_xcode. 38 | * To test the sample App, in GCGui.cs file setup clientId from googleplay and rest of leaderboardip. 39 | * Run and build app on ipad. click on Init GPG before doing anything else. Try silentSignin and if it fails it will display SignIn button. Use that to do proper auto with switching. 40 | 41 | ## Trouble Shooting 42 | 43 | ### Signin doesn't work 44 | 45 | The plugin expects google chrome in application:openUrl part. Change code there to allow any type of browser. 46 | Make sure bundled, gpgappid etc are all setup properly in both project and google dev console web guy. 47 | 48 | ### Xcode Project Corrupted 49 | 50 | There is PostBuildProcess script that adds frameworks and configures the overall project. Try removing that and add frameworks/bundles yourself using googleplay docs 51 | Use the quickstart guide link https://developers.google.com/games/services/ios/quickstart for more information 52 | 53 | ### Conflicts with other plugins 54 | * If there is another PostBuildProcess from another plugin (facebook etc) then chain script from this one so that it runs as well. 55 | * The postbuildprocess patches AppController.m file by adding handler for google signin 56 | 57 | ```objc 58 | (BOOL)application:(UIApplication *)application 59 | openURL:(NSURL *)url 60 | sourceApplication:(NSString *)sourceApplication 61 | annotation:(id)annotation 62 | ``` 63 | 64 | This might conflict with facebook and you would need to remove the patch from PostBuildProcess and add this code manually each time project is generated. You coud also make a combined patch for google and other plugins. 65 | 66 | ## Usage for Android 67 | 68 | Import the package 69 | 70 | Open NerdGPG.cs and specify the appID of your game (you get this online on the google play games console). 71 | 72 | In the editor, you should see a menu at the top called "Nerdiacs". Press Nerdiacs->UpdateGPGFiles. 73 | 74 | If console doesnt report any errors, it means your game is perfectly setup . enjoy :). 75 | 76 | ## Troubleshooting 77 | * Recheck you followed the instructions correctly 78 | 79 | * Check if AndroidManifest.xml has following entries inside application tag 80 | ```xml 81 | 82 | 83 | 84 | ``` 85 | 86 | * Check if plugins/android/res/nerdiacs.xml has correct googleplay appid with following tag in resources 87 | ```xml 88 | YOURAPP_ID 89 | ``` 90 | 91 | 92 | ## Known Issues 93 | 94 | * Conflict resolution for both iOS and Android is very basic. It automatically selects localData as resolvedData and overrides whatever is received from cloud. Best way is to always load data at start of app before trying to store. This would sync the data properly. 95 | * 512k of mem is always allocated for clouddata in Mono (iOS) and Java (Android). It will be changed once I figure out a better way to pass around byte arrays in java. 96 | 97 | ## TODO 98 | 99 | * Add support for multiplayer matchmaking 100 | * Add support for sharing on google+ 101 | -------------------------------------------------------------------------------- /bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mkdir GooglePlaySDKs 4 | cd GooglePlaySDKs 5 | echo "Downloading Google Plus iOS SDK" 6 | wget --no-check-certificate "https://developers.google.com/+/mobile/ios/sdk/google-plus-ios-sdk-1.3.0.zip" 7 | unzip "google-plus-ios-sdk-1.3.0.zip" 8 | echo "Downloading Google Game Services SDK" 9 | wget --no-check-certificate "https://developers.google.com/games/services/downloads/PlayGameServices.v1.0.zip" 10 | unzip "PlayGameServices.v1.0.zip" 11 | echo "Finished" 12 | -------------------------------------------------------------------------------- /licence.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | openfeint/s3eNOpenFeint/licence.txt at master · marmalade/openfeint · GitHub 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 |
73 |
74 | 75 | Github 76 | 77 |
78 | Sign up 79 | Sign in 80 |
81 | 82 |
83 | 84 | 85 | 90 |
91 | 92 | 93 | 99 | 100 | 101 | 102 |
103 | 104 | This repository 105 | 106 | 107 |
108 |
109 | 110 |
111 | 112 | 113 |
This repository
114 |
115 | 116 |
117 | 118 | 119 |
All repositories
120 |
121 | 122 |
123 |
124 |
125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 |
134 | 135 |
136 |
137 | 138 |
139 |
140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 |
148 |
149 | 150 |
151 |
152 |
153 | 154 | 155 | 180 | 181 |

182 | public 183 | 184 | 185 | / 188 | openfeint 189 |

190 |
191 | 192 | 193 | 208 | 209 |
210 | 211 | 212 | 215 | 216 | 217 |
218 | 219 | 220 |
221 | 222 | 223 | branch: 224 | master 225 | 226 | 227 |
228 | 229 |
230 |
231 | Switch branches/tags 232 | 233 |
234 | 235 |
236 |
237 | 238 |
239 |
240 | 248 |
249 |
250 | 251 |
252 | 253 |
254 | 255 |
256 | 257 | master 258 |
259 |
260 | 261 |
Nothing to show
262 |
263 | 264 | 265 |
266 |
267 | 268 |
269 | 270 |
Nothing to show
271 | 272 |
273 | 274 |
275 |
276 |
277 | 278 |
279 | 280 | 285 | 286 |
287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 |
295 |
296 | 297 |
298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 |
306 |
307 | 308 | 309 | 310 | 313 | 314 | 315 | 316 | 317 | 318 |
319 | 320 | 321 | 322 | 325 | 326 |
327 |

1 contributor

328 | 329 |
330 | 339 |
340 | 341 | 342 |
343 | 344 |
345 |
346 | 347 |
348 |
349 |
350 |
351 | 352 | file 353 | 166 lines (128 sloc) 354 | 7.651 kb 355 |
356 |
357 |
358 | Edit 360 | Raw 361 | Blame 362 | History 363 |
364 |
365 | 366 |
367 |
368 | 369 | 370 | 538 | 541 | 542 |
371 | 1 372 | 2 373 | 3 374 | 4 375 | 5 376 | 6 377 | 7 378 | 8 379 | 9 380 | 10 381 | 11 382 | 12 383 | 13 384 | 14 385 | 15 386 | 16 387 | 17 388 | 18 389 | 19 390 | 20 391 | 21 392 | 22 393 | 23 394 | 24 395 | 25 396 | 26 397 | 27 398 | 28 399 | 29 400 | 30 401 | 31 402 | 32 403 | 33 404 | 34 405 | 35 406 | 36 407 | 37 408 | 38 409 | 39 410 | 40 411 | 41 412 | 42 413 | 43 414 | 44 415 | 45 416 | 46 417 | 47 418 | 48 419 | 49 420 | 50 421 | 51 422 | 52 423 | 53 424 | 54 425 | 55 426 | 56 427 | 57 428 | 58 429 | 59 430 | 60 431 | 61 432 | 62 433 | 63 434 | 64 435 | 65 436 | 66 437 | 67 438 | 68 439 | 69 440 | 70 441 | 71 442 | 72 443 | 73 444 | 74 445 | 75 446 | 76 447 | 77 448 | 78 449 | 79 450 | 80 451 | 81 452 | 82 453 | 83 454 | 84 455 | 85 456 | 86 457 | 87 458 | 88 459 | 89 460 | 90 461 | 91 462 | 92 463 | 93 464 | 94 465 | 95 466 | 96 467 | 97 468 | 98 469 | 99 470 | 100 471 | 101 472 | 102 473 | 103 474 | 104 475 | 105 476 | 106 477 | 107 478 | 108 479 | 109 480 | 110 481 | 111 482 | 112 483 | 113 484 | 114 485 | 115 486 | 116 487 | 117 488 | 118 489 | 119 490 | 120 491 | 121 492 | 122 493 | 123 494 | 124 495 | 125 496 | 126 497 | 127 498 | 128 499 | 129 500 | 130 501 | 131 502 | 132 503 | 133 504 | 134 505 | 135 506 | 136 507 | 137 508 | 138 509 | 139 510 | 140 511 | 141 512 | 142 513 | 143 514 | 144 515 | 145 516 | 146 517 | 147 518 | 148 519 | 149 520 | 150 521 | 151 522 | 152 523 | 153 524 | 154 525 | 155 526 | 156 527 | 157 528 | 158 529 | 159 530 | 160 531 | 161 532 | 162 533 | 163 534 | 164 535 | 165 536 | 537 | 539 |
                   GNU LESSER GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.


  This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

  0. Additional Definitions.

  As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

  "The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

  An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

  A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

  The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

  The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

  1. Exception to Section 3 of the GNU GPL.

  You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

  2. Conveying Modified Versions.

  If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

   a) under this License, provided that you make a good faith effort to
   ensure that, in the event an Application does not supply the
   function or data, the facility still operates, and performs
   whatever part of its purpose remains meaningful, or

   b) under the GNU GPL, with none of the additional permissions of
   this License applicable to that copy.

  3. Object Code Incorporating Material from Library Header Files.

  The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

   a) Give prominent notice with each copy of the object code that the
   Library is used in it and that the Library and its use are
   covered by this License.

   b) Accompany the object code with a copy of the GNU GPL and this license
   document.

  4. Combined Works.

  You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

   a) Give prominent notice with each copy of the Combined Work that
   the Library is used in it and that the Library and its use are
   covered by this License.

   b) Accompany the Combined Work with a copy of the GNU GPL and this license
   document.

   c) For a Combined Work that displays copyright notices during
   execution, include the copyright notice for the Library among
   these notices, as well as a reference directing the user to the
   copies of the GNU GPL and this license document.

   d) Do one of the following:

       0) Convey the Minimal Corresponding Source under the terms of this
       License, and the Corresponding Application Code in a form
       suitable for, and under terms that permit, the user to
       recombine or relink the Application with a modified version of
       the Linked Version to produce a modified Combined Work, in the
       manner specified by section 6 of the GNU GPL for conveying
       Corresponding Source.

       1) Use a suitable shared library mechanism for linking with the
       Library. A suitable mechanism is one that (a) uses at run time
       a copy of the Library already present on the user's computer
       system, and (b) will operate properly with a modified version
       of the Library that is interface-compatible with the Linked
       Version.

   e) Provide Installation Information, but only if you would otherwise
   be required to provide such information under section 6 of the
   GNU GPL, and only to the extent that such information is
   necessary to install and execute a modified version of the
   Combined Work produced by recombining or relinking the
   Application with a modified version of the Linked Version. (If
   you use option 4d0, the Installation Information must accompany
   the Minimal Corresponding Source and Corresponding Application
   Code. If you use option 4d1, you must provide the Installation
   Information in the manner specified by section 6 of the GNU GPL
   for conveying Corresponding Source.)

  5. Combined Libraries.

  You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

   a) Accompany the combined library with a copy of the same work based
   on the Library, uncombined with any other library facilities,
   conveyed under the terms of this License.

   b) Give prominent notice with the combined library that part of it
   is a work based on the Library, and explaining where to find the
   accompanying uncombined form of the same work.

  6. Revised Versions of the GNU Lesser General Public License.

  The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

  Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

  If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
540 |
543 |
544 | 545 |
546 |
547 | 548 | 549 | 558 | 559 |
560 |
561 |
562 | 563 | 566 | 567 | 568 |
569 |
570 | 571 |
572 | 573 | 574 |
575 | 576 | 577 | 638 | 639 | 640 |
641 |
642 |
643 | 644 |
645 |
647 |
648 |
649 |
650 |
651 | 660 |
661 | 662 | 663 | 664 |
665 | 666 | Something went wrong with that request. Please try again. 667 | 668 |
669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | --------------------------------------------------------------------------------