GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
131 stars 53 forks source link

New extension: Google Play Game Services (Android) #624

Closed planktonfun closed 2 years ago

planktonfun commented 2 years ago

Description

Allow Devs to use Google Play Games Services API for android

Requirements:

-Access to Google Play Console for app signing and credentials

Important:

must add in <>\resources\GDJS\Runtime\Cordova\config.xml file, change the APP_ID into your google play console project id then add these below "" text

<plugin name="cordova-android-play-services-gradle-release" spec="4.0.0">
</plugin>
<plugin name="cordova-plugin-play-games-services" spec="1.1.2">
    <variable name="APP_ID" value="999999999999" />
</plugin>

How to use the extension

  1. Go to google play console https://play.google.com/console
  2. Create/Use an existing app
  3. Inside the app, go to Play Game Services
  4. Set up Play Games Services
  5. Go to Achievements and create an achievement, take note of the achievement ID
  6. Get the Project ID of the app from there
  7. Go to gdevelop installation folder and change config.xml there "mentioned from above description"
  8. Open the game example in gdevelop
  9. Change Game package name to a unique name e.g. com.test.example
  10. Change the achievement IDs inside the game events
  11. Publish Game using Export to other platforms > Mobile > Android App Bundle
  12. Make sure to update the version of the game for every publish
  13. You should have a file with .abb
  14. Go back to google play console
  15. Go to internal testing, create new release, upload the abb file
  16. Include your test email as a tester
  17. Click view release details, click app bundle details arrow, go to downloads tab and download "signed, universal APK"
  18. Go to Play Game Services from the console and add android credentials
  19. Install the game on android phone that uses the same email with the testers
  20. enjoy

Checklist

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

GooglePlayGamesServicesAndroid.zip

Extension file

GooglePlayGamesServicesAndroidExtension.zip

github-actions[bot] commented 2 years ago

šŸ‘‹ Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply šŸ˜”. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  āŸ¶ āŒ [JavaScript disallowed properties]: Found disallowed properties in extension 'GooglePlayGamesServicesAndroid':
{
  allowedProperties: [
    'makeUuid',           'rgbToHex',
    'rgbOrHexToRGBColor', 'rgbToHexNumber',
    'hexNumberToRGB',     'hexToRGBColor',
    'copyArray',          'staticArray',
    'staticArray2',       'staticObject',
    'toDegrees',          'toRad',
    'random',             'randomFloat',
    'randomFloatInRange', 'randomInRange',
    'randomWithStep',     'evtTools',
    'Variable',           'RuntimeObject',
    'Logger'
  ],
  disallowedProperty: '__extensionGooglePlayGamesService',
  objectName: 'gdjs'

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines šŸ™

github-actions[bot] commented 2 years ago

šŸ‘‹ Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply šŸ˜”. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  āŸ¶ āŒ [JavaScript disallowed properties]: Found disallowed properties in extension 'GooglePlayGamesServicesAndroid':
{
  allowedProperties: [
    'makeUuid',           'rgbToHex',
    'rgbOrHexToRGBColor', 'rgbToHexNumber',
    'hexNumberToRGB',     'hexToRGBColor',
    'copyArray',          'staticArray',
    'staticArray2',       'staticObject',
    'toDegrees',          'toRad',
    'random',             'randomFloat',
    'randomFloatInRange', 'randomInRange',
    'randomWithStep',     'evtTools',
    'Variable',           'RuntimeObject',
    'Logger'
  ],
  disallowedProperty: '__extensionGooglePlayGamesService',
  objectName: 'gdjs'

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines šŸ™

github-actions[bot] commented 2 years ago

šŸ‘‹ Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply šŸ˜”. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  āŸ¶ āŒ [JavaScript disallowed properties]: Found disallowed properties in extension 'GooglePlayGamesServicesAndroid':
{
  allowedProperties: [
    'makeUuid',           'rgbToHex',
    'rgbOrHexToRGBColor', 'rgbToHexNumber',
    'hexNumberToRGB',     'hexToRGBColor',
    'copyArray',          'staticArray',
    'staticArray2',       'staticObject',
    'toDegrees',          'toRad',
    'random',             'randomFloat',
    'randomFloatInRange', 'randomInRange',
    'randomWithStep',     'evtTools',
    'Variable',           'RuntimeObject',
    'Logger'
  ],
  disallowedProperty: '__extensionGooglePlayGamesService',
  objectName: 'gdjs'

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines šŸ™

github-actions[bot] commented 2 years ago

šŸ‘‹ Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply šŸ˜”. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  āŸ¶ āŒ [JavaScript disallowed properties]: Found disallowed properties in extension 'GooglePlayGamesServicesAndroid':
{
  allowedProperties: [
    'makeUuid',           'rgbToHex',
    'rgbOrHexToRGBColor', 'rgbToHexNumber',
    'hexNumberToRGB',     'hexToRGBColor',
    'copyArray',          'staticArray',
    'staticArray2',       'staticObject',
    'toDegrees',          'toRad',
    'random',             'randomFloat',
    'randomFloatInRange', 'randomInRange',
    'randomWithStep',     'evtTools',
    'Variable',           'RuntimeObject',
    'Logger'
  ],
  disallowedProperty: '__extensionGooglePlayGamesService',
  objectName: 'gdjs'

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines šŸ™

github-actions[bot] commented 2 years ago

šŸ‘‹ Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply šŸ˜”. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  āŸ¶ āŒ [Extension name consistency]: Extension names should not finish with "Extension". Please rename 'GooglePlayGamesServicesAndroidExtension' to 'GooglePlayGamesServicesAndroid'

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines šŸ™

github-actions[bot] commented 2 years ago

šŸ‘‹ Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply šŸ˜”. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  āŸ¶ āŒ [Dots in sentences]: Field 'shortDescription' of the extension description misses a dot at the end of the sentence

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines šŸ™

github-actions[bot] commented 2 years ago

Hi @planktonfun! šŸ‘‹ This submission has passed all required tests, and has been moved to a PR as part of our submission pipeline. You can see the progress of your submission on this page. Community submissions are not reviewed by default, so your extension should be added once we've checked that your submission doesn't contain malicious code without further intervention on your part. If you wish for your extension to be reviewed (and thereby moved to the list of reviewed extensions), please follow the instructions written on the README. Thanks again for your contribution to GDevelop!