This repository contains sample projects demonstrating various aspects of integrating Google Play APIs for your native game. A description of the high-level directories in this repo follows:
For new integrations, refer to sdk-client section.
Do not use this implementation anymore as this implementation method will be replaced by sdk-client.
- api-client/ (C/C++) - This sample demonstrate integration and use of the Google Play Developer APIs. The folder contains C++ project compilable using any recent version of Microsoft Visual Studio.
See the api-server section for description and setup of the backend needed by the api-client and sdk-client samples.
- api-server/ (NodeJS/JavaScript) - This sample contain the backend code for the api-client runnable in Cloud Functions for Firebase. The folder contains NodeJS project publishable as Cloud Functions for Firebase to Firebase project.
- Setup your own firebase project from your Firebase Console
- Retrieve the credentials of your service account from your Google Cloud project
- Change
<FIREBASE_PROJECT_ID>
in .firebaserc and firebase.json to your firebase-project-id - Put in your service account credentials in config.ts
- Change
<PLAY_PACKAGE_NAME>
in manifest.json to your application package-id retrieved from your Play Console - Run
npm ci
to download and install all the dependencies - Run
npm run predeploy
to prepare the code for deployment - Run
npm run deploy
to actually deploy the code
Your APIs will be available under the <firebase-app>/api/*
of your Firebase project deployment URL.
See the sdk-client section for description and setup of SDK Client sample.
- sdk-client/ (C/C++) - This sample demonstrate integration and use of the Google Play Games for PC Native SDK. The folder contains C++ project compilable using any recent version of Microsoft Visual Studio.