From 94cc4bb8695fb154206951c804055a2c32580ae4 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sun, 3 Nov 2019 18:11:47 +0100 Subject: [PATCH] Own schema for game data --- example-game.json | 71 ++++++++++++++++++++++++++++++++++++++++++++++ game-metadata.html | 55 +++++++++++++++++++++++++++++++---- 2 files changed, 121 insertions(+), 5 deletions(-) create mode 100644 example-game.json diff --git a/example-game.json b/example-game.json new file mode 100644 index 0000000..63f0e5c --- /dev/null +++ b/example-game.json @@ -0,0 +1,71 @@ +{ + "uuid": "780688a9-95ee-429a-8755-69a8d0c88fe0", + "package": "de.eiswuxe.blookid2", + "title": "Bloo Kid 2", + "description": "A classic 2D retro-style platformer\r\nFeatures:\r\nFoo", + "players": [ + 1, 2 + ], + "genres": [ + "Platformer", + "Retro" + ], + + "releases": [ + { + "name": "1.6", + "uuid": "780688a9-95ee-429a-8755-69a8d0c88fe0", + "date": "2015-10-23T09:58:19Z", + "latest": true, + + "url": "http://example.org/game-1.6.apk", + "size": 25507828, + "md5sum": "a5b0f82d54df5f551a64295e43771a10", + + "publicSize": 27275, + "nativeSize": 20292 + } + ], + + "media": { + "discover": "http://example.org/game-menu.jpg", + "large": "http://example.org/game.jpg", + "video": "https://vimeo.com/141878938", + "screenshots": [ + "http://example.org/game-1.jpg", + "http://example.org/game-2.jpg" + ] + }, + + "developer": { + "name": "ACME", + "supportEmail": "acme@example.org", + "supportPhone": "+49 12345 67890", + "founder": false + }, + + "contentRating": "Everyone", + "website": "http://www.winterworks.de", + "firstPublishedAt": "2015-10-09T07:53:25Z", + "inAppPurchases": false, + "overview": "Released in October 2015 by winterworks GmbH.", + "premium": false, + + "rating": { + "likeCount": 0, + "average": 4.1, + "count": 355 + }, + + "products": [ + { + "promoted": true, + "identifier": "full_version", + "name": "Unlock full game", + "description": "Remove the 9 satellites limitation", + "localPrice": 1.99, + "originalPrice": 5.00, + "currency": "EUR" + } + ] +} diff --git a/game-metadata.html b/game-metadata.html index a825216..11c226d 100644 --- a/game-metadata.html +++ b/game-metadata.html @@ -11,6 +11,7 @@ Group Datum + Game data field Discover field App details field BrewyaOnOuya field @@ -25,6 +26,7 @@ Game UUID uuid uuid + uuid App.uuid 780688a9-95ee-429a-8755-69a8d0c88fe0 @@ -34,6 +36,7 @@ Game title title title + title App.title Bloo Kid 2 @@ -41,6 +44,7 @@ app Overview text + overview (optional) overview App.overview @@ -50,6 +54,7 @@ app Description + description description App.description @@ -59,6 +64,7 @@ app Number of players + players gamerNumbers gamerNumbers App.playerNumbers @@ -70,6 +76,7 @@ Genre list genres genres + genres App.genres [Platformer, Retro] @@ -104,23 +111,26 @@ app Package name package + package App.packageName evil.corptron.DuckGame - + Run "aapt dump badging file.apk", field "package: name" app Details URL + - url - ? + - ouya://launcher/details?app=evil.corptron.DuckGame app Game website + website website App.website @@ -130,6 +140,7 @@ app Content rating + contentRating (optional) contentRating contentRating App.contentRating @@ -146,6 +157,7 @@ app FIXME + premium (optional) premium premium App.premium @@ -155,6 +167,7 @@ app When the game was published + firstPublishedAt (optional) firstPublishedAt App.firstPublishedAt @@ -164,6 +177,7 @@ app Are there in-app purchases? + inAppPurchases (optional) inAppPurchases - @@ -173,6 +187,7 @@ app FIXME + - type - @@ -182,6 +197,7 @@ app Last update (unix timestamp) + - updated_at AppVersion.releaseTime @@ -191,6 +207,7 @@ app Last update + releases.*.date (when "latest") updatedAt AppVersion.releaseTime @@ -201,6 +218,7 @@ rating Number of likes? + rating.likeCount likeCount Rating.likeCount @@ -211,6 +229,7 @@ rating Average rating rating.average + rating.average ratingAverage Rating.rating 4.1 @@ -220,6 +239,7 @@ rating Number of ratings rating.count + rating.count ratingCount Rating.reviewCount 355 @@ -229,6 +249,7 @@ product Promotion data + products.* (when "promoted=true") promotedProduct promotedProduct App.promotedProduct @@ -238,6 +259,7 @@ product Product key + products.*.identifier promotedProduct.identifier promotedProduct.identifier Product.identifier @@ -247,6 +269,7 @@ product Product name + products.*.name promotedProduct.name promotedProduct.name Product.name @@ -256,6 +279,7 @@ product Product currency + products.*.currency promotedProduct.currency promotedProduct.currency - @@ -265,6 +289,7 @@ product Product description + products.*.description promotedProduct.description promotedProduct.description Product.description @@ -274,6 +299,7 @@ product Saving + - promotedProduct.percentOff promotedProduct.percentOff - @@ -283,6 +309,7 @@ product Current price + products.*.localPrice promotedProduct.localPrice promotedProduct.localPrice - @@ -292,6 +319,7 @@ product Previous price + products.*.originalPrice promotedProduct.originalPrice promotedProduct.originalPrice Product.originalPrice @@ -301,25 +329,28 @@ apk - versionNumber + Human readable version + releases.*.name latestVersion.versionNumber versionNumber Apk.versionName 1.6 - + Run "aapt dump badging file.apk", field "versionName" apk UUID of latest apk version + releases.*.uuid latestVersion.uuid latestVersion - Apk.versionCode + - 780688a9-95ee-429a-8755-69a8d0c88fe0 apk FIXME + releases.*.publicSize publicSize Apk.publicSize @@ -329,6 +360,7 @@ apk FIXME + releases.*.nativeSize nativeSize Apk.nativeSize @@ -338,6 +370,7 @@ apk MD5 file hash + releases.*.md5sum latestVersion.apk.md5sum md5sum Apk.md5sum @@ -347,6 +380,7 @@ apk APK file size + releases.*.size apkFileSize Apk.size @@ -356,6 +390,7 @@ apk APK publish date + releases.*.date publishedAt AppVersion.releaseTime @@ -365,6 +400,7 @@ apk downloadLink + releases.*.url Apk.location @@ -375,6 +411,7 @@ media Discover image + media.discover image Media @@ -384,6 +421,7 @@ media Large image + media.large mainImageFullUrl App.titleImage @@ -393,6 +431,7 @@ media Video + media.video videoUrl Media @@ -402,6 +441,7 @@ media Game screenshots + media.screenshots filepickerScreenshots Media @@ -411,6 +451,7 @@ media FIXME + - mobileAppIcon App.iconImage @@ -421,6 +462,7 @@ developer Developer name + developer.name developer Developer.name @@ -430,6 +472,7 @@ developer Developer support mail + developer.supportEmail supportEmailAddress Developer.supportEmail @@ -439,6 +482,7 @@ developer Support phone number + developer.supportPhone supportPhone Developer.supportPhone @@ -448,6 +492,7 @@ developer Developer is a founder + developer.founder founder Developer.founder -- 2.30.2