Browse files

added game centre

  • Loading branch information...
1 parent a21cc43 commit a036f688dbd4a8706aef8cebe6a91a48fbaacd89 @playerx playerx committed Feb 26, 2014
Showing with 359 additions and 388 deletions.
  1. +3 −3 Mobile/platforms/ios/.staging/www/cordova_plugins.js
  2. +0 −39 Mobile/platforms/ios/.staging/www/plugins/com.gartic.gamecenter/www/gamecenter.js
  3. +22 −0 Mobile/platforms/ios/.staging/www/plugins/gamecenter/www/gamecenter.js
  4. +8 −8 Mobile/platforms/ios/Pitching.xcodeproj/project.pbxproj
  5. BIN ...s/Pitching.xcodeproj/project.xcworkspace/xcuserdata/ez.xcuserdatad/UserInterfaceState.xcuserstate
  6. +48 −48 Mobile/platforms/ios/Pitching/Pitching-Info.plist
  7. +0 −6 .../{plugins/com.gartic.gamecenter/src/ios → platforms/ios/Pitching/Plugins/gamecenter}/GameCenter.h
  8. +0 −104 .../{plugins/com.gartic.gamecenter/src/ios → platforms/ios/Pitching/Plugins/gamecenter}/GameCenter.m
  9. +6 −6 Mobile/platforms/ios/Pitching/config.xml
  10. +24 −1 Mobile/platforms/ios/www/cordova_plugins.js
  11. +22 −0 Mobile/platforms/ios/www/plugins/gamecenter/www/gamecenter.js
  12. +31 −0 Mobile/platforms/ios/www/plugins/org.apache.cordova.device-motion/www/Acceleration.js
  13. +171 −0 Mobile/platforms/ios/www/plugins/org.apache.cordova.device-motion/www/accelerometer.js
  14. +0 −1 Mobile/plugins/com.gartic.gamecenter/.fetch.json
  15. +0 −37 Mobile/plugins/com.gartic.gamecenter/www/gamecenter.js
  16. +1 −0 Mobile/plugins/gamecenter/.fetch.json
  17. +0 −22 Mobile/plugins/{com.gartic.gamecenter → gamecenter}/README.md
  18. +2 −2 Mobile/plugins/{com.gartic.gamecenter → gamecenter}/plugin.xml
  19. +0 −6 .../{platforms/ios/Pitching/Plugins/com.gartic.gamecenter → plugins/gamecenter/src/ios}/GameCenter.h
  20. +0 −104 .../{platforms/ios/Pitching/Plugins/com.gartic.gamecenter → plugins/gamecenter/src/ios}/GameCenter.m
  21. +20 −0 Mobile/plugins/gamecenter/www/gamecenter.js
  22. +1 −1 Mobile/plugins/ios.json
View
6 Mobile/platforms/ios/.staging/www/cordova_plugins.js
@@ -57,8 +57,8 @@ module.exports = [
]
},
{
- "file": "plugins/com.gartic.gamecenter/www/gamecenter.js",
- "id": "com.gartic.gamecenter.GameCenter",
+ "file": "plugins/gamecenter/www/gamecenter.js",
+ "id": "gamecenter.GameCenter",
"clobbers": [
"gamecenter"
]
@@ -74,7 +74,7 @@ module.exports.metadata =
"com.phonegap.plugins.jokutils": "0.1.0",
"org.apache.cordova.media": "0.2.8",
"org.apache.cordova.device-motion": "0.2.6",
- "com.gartic.gamecenter": "1.0"
+ "gamecenter": "0.2.3"
}
// BOTTOM OF METADATA
});
View
39 Mobile/platforms/ios/.staging/www/plugins/com.gartic.gamecenter/www/gamecenter.js
@@ -1,39 +0,0 @@
-cordova.define("com.gartic.gamecenter.GameCenter", function(require, exports, module) { cordova.define("com.gartic.gamecenter.GameCenter", function(require, exports, module) {
-var exec = require("cordova/exec");
-
-var GameCenter = function () {
- this.name = "GameCenter";
-};
-
-GameCenter.prototype.auth = function (success, failure) {
- exec(success, failure, "GameCenter", "auth", []);
-};
-
-GameCenter.prototype.submitScore = function (success, failure, data) {
- exec(success, failure, "GameCenter", "submitScore", [data]);
-};
-
-GameCenter.prototype.showLeaderboard = function (success, failure, data) {
- exec(success, failure, "GameCenter", "showLeaderboard", [data]);
-};
-
-GameCenter.prototype.submitAchievement = function (success, failure, data) {
- exec(success, failure, "GameCenter", "submitAchievement", [data]);
-};
-
-GameCenter.prototype.showAchievements = function (success, failure, data) {
- exec(success, failure, "GameCenter", "showAchievements", [data]);
-};
-
-GameCenter.prototype.resetAchievements = function (success, failure, data) {
- exec(success, failure, "GameCenter", "resetAchievements", [data]);
-};
-
-GameCenter.prototype.showNotification = function (success, failure, data) {
- exec(success, failure, "GameCenter", "showNotification", [data]);
-};
-
-module.exports = new GameCenter();
-});
-
-});
View
22 Mobile/platforms/ios/.staging/www/plugins/gamecenter/www/gamecenter.js
@@ -0,0 +1,22 @@
+cordova.define("gamecenter.GameCenter", function(require, exports, module) {
+var exec = require("cordova/exec");
+
+var GameCenter = function () {
+ this.name = "GameCenter";
+};
+
+GameCenter.prototype.auth = function (success, failure) {
+ exec(success, failure, "GameCenter", "auth", []);
+};
+
+GameCenter.prototype.submitScore = function (success, failure, data) {
+ exec(success, failure, "GameCenter", "submitScore", [data]);
+};
+
+GameCenter.prototype.showLeaderboard = function (success, failure, data) {
+ exec(success, failure, "GameCenter", "showLeaderboard", [data]);
+};
+
+module.exports = new GameCenter();
+
+});
View
16 Mobile/platforms/ios/Pitching.xcodeproj/project.pbxproj
@@ -8,10 +8,10 @@
/* Begin PBXBuildFile section */
01AF4C42EC354FE496ED9AD8 /* CDVInAppBrowser.m in Sources */ = {isa = PBXBuildFile; fileRef = 491DC9511A314D149EB67721 /* CDVInAppBrowser.m */; };
- 089612F99CB345BF84FFA8CE /* GameKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1359B36CB1244CAB8065793D /* GameKit.framework */; };
1D3623260D0F684500981E51 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* AppDelegate.m */; };
1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
1F766FE113BBADB100FB74C0 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1F766FDC13BBADB100FB74C0 /* Localizable.strings */; };
+ 277CF33318BE736000610299 /* GameKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1359B36CB1244CAB8065793D /* GameKit.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
27D9B53418BD0622005B9455 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 27D9B53318BD0622005B9455 /* Images.xcassets */; };
27D9B53718BD06F3005B9455 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D9B53618BD06F3005B9455 /* AVFoundation.framework */; };
27D9B53918BD07A2005B9455 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D9B53818BD07A2005B9455 /* MediaPlayer.framework */; };
@@ -31,7 +31,6 @@
308D05391370CCF300D202BF /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 308D05301370CCF300D202BF /* icon@2x.png */; };
30A0434814DC770100060A13 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 30A0434314DC770100060A13 /* Localizable.strings */; };
30FC414916E50CA1004E6F35 /* icon-72@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 30FC414816E50CA1004E6F35 /* icon-72@2x.png */; };
- 333F33C155D944E0A8BA48DE /* GameCenter.m in Sources */ = {isa = PBXBuildFile; fileRef = C887FEC0A2BA4A7D960BD9AD /* GameCenter.m */; };
5AEE5B35173C68D80009041E /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5AEE5B34173C68D80009041E /* CoreLocation.framework */; };
5B1594DD16A7569C00FEF299 /* AssetsLibrary.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B1594DC16A7569C00FEF299 /* AssetsLibrary.framework */; };
5C69D48A6EAC4D3DA8D560B8 /* CDVNotification.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 254834491F2D46BF994B8C07 /* CDVNotification.bundle */; };
@@ -48,6 +47,7 @@
7E7966E71810823500FA85AD /* icon-small@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7E7966DD1810823500FA85AD /* icon-small@2x.png */; };
8B4D213D204A4827944A6025 /* CDVJokUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D83BD41A2244D4FB5AC300C /* CDVJokUtils.m */; };
A1612FEFF60C46EE938731E3 /* CDVDevice.m in Sources */ = {isa = PBXBuildFile; fileRef = F5228BD34417438DA5445A6F /* CDVDevice.m */; };
+ C3339A006671402EAE3BD421 /* GameCenter.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A940C2294354773A7A484EC /* GameCenter.m */; };
CED15D7B66CB4EA497F931C0 /* CDVAccelerometer.m in Sources */ = {isa = PBXBuildFile; fileRef = F72DAAFE349147E19A4B0308 /* CDVAccelerometer.m */; };
D4A0D8761607E02300AEF8BB /* Default-568h@2x~iphone.png in Resources */ = {isa = PBXBuildFile; fileRef = D4A0D8751607E02300AEF8BB /* Default-568h@2x~iphone.png */; };
D57D1EC11CAC45D3B7714FEA /* CDVNotification.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F63DA9BC7424E01938AC80C /* CDVNotification.m */; };
@@ -108,12 +108,13 @@
30A0434714DC770100060A13 /* se */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = se; path = Localizable.strings; sourceTree = "<group>"; };
30FC414816E50CA1004E6F35 /* icon-72@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon-72@2x.png"; sourceTree = "<group>"; };
32CA4F630368D1EE00C91783 /* Pitching-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Pitching-Prefix.pch"; sourceTree = "<group>"; };
- 3785AB8147AA4B37825E7DC0 /* GameCenter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GameCenter.h; path = com.gartic.gamecenter/GameCenter.h; sourceTree = "<group>"; };
491DC9511A314D149EB67721 /* CDVInAppBrowser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVInAppBrowser.m; path = org.apache.cordova.inappbrowser/CDVInAppBrowser.m; sourceTree = "<group>"; };
507F2F98A3DC452986EC1572 /* AudioToolbox.framework */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
51A3FF2E788241E0AF314E47 /* CDVVibration.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVVibration.m; path = org.apache.cordova.vibration/CDVVibration.m; sourceTree = "<group>"; };
5AEE5B34173C68D80009041E /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
5B1594DC16A7569C00FEF299 /* AssetsLibrary.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AssetsLibrary.framework; path = System/Library/Frameworks/AssetsLibrary.framework; sourceTree = SDKROOT; };
+ 6515DF323A2A42018AF81EFF /* GameCenter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GameCenter.h; path = gamecenter/GameCenter.h; sourceTree = "<group>"; };
+ 6A940C2294354773A7A484EC /* GameCenter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GameCenter.m; path = gamecenter/GameCenter.m; sourceTree = "<group>"; };
7D53E715800243BCAB1C55D4 /* CDVInAppBrowser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVInAppBrowser.h; path = org.apache.cordova.inappbrowser/CDVInAppBrowser.h; sourceTree = "<group>"; };
7E7966D41810823500FA85AD /* icon-40.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon-40.png"; sourceTree = "<group>"; };
7E7966D51810823500FA85AD /* icon-40@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon-40@2x.png"; sourceTree = "<group>"; };
@@ -131,7 +132,6 @@
9D83BD41A2244D4FB5AC300C /* CDVJokUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVJokUtils.m; path = com.phonegap.plugins.jokutils/CDVJokUtils.m; sourceTree = "<group>"; };
B4EFD945C99247F3B433F791 /* CDVSound.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVSound.m; path = org.apache.cordova.media/CDVSound.m; sourceTree = "<group>"; };
B93AC7FA0F494F988968F254 /* CoreMotion.framework */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; };
- C887FEC0A2BA4A7D960BD9AD /* GameCenter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GameCenter.m; path = com.gartic.gamecenter/GameCenter.m; sourceTree = "<group>"; };
D4A0D8751607E02300AEF8BB /* Default-568h@2x~iphone.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x~iphone.png"; sourceTree = "<group>"; };
E22BF64466FE4BBBB978770E /* CDVSound.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVSound.h; path = org.apache.cordova.media/CDVSound.h; sourceTree = "<group>"; };
EB87FDF21871DA7A0020F90C /* merges */ = {isa = PBXFileReference; lastKnownFileType = folder; name = merges; path = ../../merges; sourceTree = "<group>"; };
@@ -148,6 +148,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 277CF33318BE736000610299 /* GameKit.framework in Frameworks */,
27D9B53918BD07A2005B9455 /* MediaPlayer.framework in Frameworks */,
D581DC6A958341A69F98448E /* AudioToolbox.framework in Frameworks */,
27D9B53718BD06F3005B9455 /* AVFoundation.framework in Frameworks */,
@@ -157,7 +158,6 @@
305D5FD1115AB8F900A74A75 /* MobileCoreServices.framework in Frameworks */,
5AEE5B35173C68D80009041E /* CoreLocation.framework in Frameworks */,
F53F3C2E58724DBE92AFACDE /* CoreMotion.framework in Frameworks */,
- 089612F99CB345BF84FFA8CE /* GameKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -287,8 +287,8 @@
E22BF64466FE4BBBB978770E /* CDVSound.h */,
F72DAAFE349147E19A4B0308 /* CDVAccelerometer.m */,
26C498F4BE3B46689E7A7F70 /* CDVAccelerometer.h */,
- C887FEC0A2BA4A7D960BD9AD /* GameCenter.m */,
- 3785AB8147AA4B37825E7DC0 /* GameCenter.h */,
+ 6A940C2294354773A7A484EC /* GameCenter.m */,
+ 6515DF323A2A42018AF81EFF /* GameCenter.h */,
);
name = Plugins;
path = Pitching/Plugins;
@@ -497,7 +497,7 @@
8B4D213D204A4827944A6025 /* CDVJokUtils.m in Sources */,
F9F5B2D0226B4365843BC6C5 /* CDVSound.m in Sources */,
CED15D7B66CB4EA497F931C0 /* CDVAccelerometer.m in Sources */,
- 333F33C155D944E0A8BA48DE /* GameCenter.m in Sources */,
+ C3339A006671402EAE3BD421 /* GameCenter.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
BIN ...ng.xcodeproj/project.xcworkspace/xcuserdata/ez.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
96 Mobile/platforms/ios/Pitching/Pitching-Info.plist
@@ -1,52 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleDisplayName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string>icon.png</string>
- <key>CFBundleIcons</key>
- <dict/>
- <key>CFBundleIcons~ipad</key>
- <dict/>
- <key>CFBundleIdentifier</key>
- <string>io.jok.pitching</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>LSRequiresIPhoneOS</key>
- <true/>
- <key>NSMainNibFile</key>
- <string></string>
- <key>UIRequiredDeviceCapabilities</key>
- <array>
- <string>gamekit</string>
- </array>
- <key>UIStatusBarHidden</key>
- <true/>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UISupportedInterfaceOrientations~ipad</key>
- <array>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UIViewControllerBasedStatusBarAppearance</key>
- <false/>
-</dict>
+ <dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string>icon.png</string>
+ <key>CFBundleIcons</key>
+ <dict/>
+ <key>CFBundleIcons~ipad</key>
+ <dict/>
+ <key>CFBundleIdentifier</key>
+ <string>io.jok.pitching</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>NSMainNibFile</key>
+ <string></string>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>gamekit</string>
+ </array>
+ <key>UIStatusBarHidden</key>
+ <true/>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UIViewControllerBasedStatusBarAppearance</key>
+ <false/>
+ </dict>
</plist>
View
6 ...om.gartic.gamecenter/src/ios/GameCenter.h → .../Pitching/Plugins/gamecenter/GameCenter.h
@@ -10,14 +10,8 @@
@interface GameCenter : CDVPlugin <GKGameCenterControllerDelegate>
-@property NSMutableDictionary *achievementDescriptions;
-
- (void) auth:(CDVInvokedUrlCommand*)command;
- (void) submitScore:(CDVInvokedUrlCommand*)command;
- (void) showLeaderboard:(CDVInvokedUrlCommand*)command;
-- (void) submitAchievement:(CDVInvokedUrlCommand*)command;
-- (void) showAchievements:(CDVInvokedUrlCommand*)command;
-- (void) resetAchievements:(CDVInvokedUrlCommand*)command;
-- (void) showNotification:(CDVInvokedUrlCommand*)command;
@end
View
104 ...om.gartic.gamecenter/src/ios/GameCenter.m → .../Pitching/Plugins/gamecenter/GameCenter.m
@@ -9,8 +9,6 @@
@implementation GameCenter
-@synthesize achievementDescriptions;
-
- (void) auth:(CDVInvokedUrlCommand*)command;
{
// __weak to avoid retain cycle
@@ -28,7 +26,6 @@ - (void) auth:(CDVInvokedUrlCommand*)command;
if (localPlayer.isAuthenticated)
{
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- [self retrieveAchievmentMetadata];
}
else if (error != nil)
{
@@ -135,107 +132,6 @@ - (void) showLeaderboard:(CDVInvokedUrlCommand*)command;
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
-- (void) submitAchievement:(CDVInvokedUrlCommand*)command;
-{
- NSMutableDictionary *args = [command.arguments objectAtIndex:0];
- int64_t percent = [[args objectForKey:@"percent"] integerValue];
- NSString *achievementId = [args objectForKey:@"achievementId"];
-
- __block CDVPluginResult* pluginResult = nil;
-
- GKAchievement *achievement = [[GKAchievement alloc] initWithIdentifier: achievementId];
- if (achievement)
- {
- achievement.percentComplete = percent;
- [achievement reportAchievementWithCompletionHandler:^(NSError *error)
- {
- if (error)
- {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:[error localizedDescription]];
- }
- else {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- }
- [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
- }];
- }
-}
-
-- (void) showAchievements: (CDVInvokedUrlCommand*)command;
-{
- CDVPluginResult* pluginResult = nil;
-
- GKGameCenterViewController *gameCenterController = [[GKGameCenterViewController alloc] init];
- if (gameCenterController != nil)
- {
- gameCenterController.gameCenterDelegate = self;
- gameCenterController.viewState = GKGameCenterViewControllerStateAchievements;
- [self.viewController presentViewController:gameCenterController animated:YES completion:nil];
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- }
- else
- {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR];
- }
- [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
-}
-
-- (void) resetAchievements: (CDVInvokedUrlCommand*)command;
-{
- __block CDVPluginResult* pluginResult = nil;
-
- // Clear all progress saved on Game Center.
- [GKAchievement resetAchievementsWithCompletionHandler:^(NSError *error)
- {
- if (error)
- {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:[error localizedDescription]];
- }
- else
- {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- }
- [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
- }];
-}
-
-- (void) showNotification: (CDVInvokedUrlCommand*)command;
-{
- NSMutableDictionary *args = [command.arguments objectAtIndex:0];
- NSString *achievementId = [args objectForKey:@"achievementId"];
-
- CDVPluginResult* pluginResult = nil;
-
- GKAchievementDescription *achievementDescription = [achievementDescriptions objectForKey:achievementId];
-
- if(achievementDescription != nil) {
- [GKNotificationBanner showBannerWithTitle:achievementDescription.title message:achievementDescription.achievedDescription completionHandler:nil];
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- } else {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR];
- }
- [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
-}
-
-- (void) retrieveAchievmentMetadata
-{
- achievementDescriptions = [[NSMutableDictionary alloc] init];
-
- [GKAchievementDescription loadAchievementDescriptionsWithCompletionHandler:
- ^(NSArray *descriptions, NSError *error) {
- if (error != nil)
- {
- NSLog(@"Error in reporting achievements: %@", error);
- }
- if (descriptions != nil)
- {
- for (GKAchievementDescription *achievementDescription in descriptions) {
- [achievementDescriptions setObject:achievementDescription forKey:achievementDescription.identifier];
- }
- }
- }];
-}
-
- (void) gameCenterViewControllerDidFinish:(GKGameCenterViewController *)gameCenterViewController
{
[gameCenterViewController dismissViewControllerAnimated:YES completion:nil];
View
12 Mobile/platforms/ios/Pitching/config.xml
@@ -22,9 +22,15 @@
<feature name="JokUtils">
<param name="ios-package" value="CDVJokUtils" />
</feature>
+ <feature name="GameCenter">
+ <param name="ios-package" value="GameCenter" />
+ </feature>
<feature name="Device">
<param name="ios-package" value="CDVDevice" />
</feature>
+ <feature name="Accelerometer">
+ <param name="ios-package" value="CDVAccelerometer" />
+ </feature>
<feature name="Notification">
<param name="ios-package" value="CDVNotification" />
</feature>
@@ -51,10 +57,4 @@
<preference name="Orientation" value="landscape" />
<preference name="DisallowOverscroll" value="true" />
<preference name="HideKeyboardFormAccessoryBar" value="true" />
- <feature name="Accelerometer">
- <param name="ios-package" value="CDVAccelerometer" />
- </feature>
- <feature name="GameCenter">
- <param name="ios-package" value="GameCenter" />
- </feature>
</widget>
View
25 Mobile/platforms/ios/www/cordova_plugins.js
@@ -41,6 +41,27 @@ module.exports = [
"clobbers": [
"window.Media"
]
+ },
+ {
+ "file": "plugins/org.apache.cordova.device-motion/www/Acceleration.js",
+ "id": "org.apache.cordova.device-motion.Acceleration",
+ "clobbers": [
+ "Acceleration"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.device-motion/www/accelerometer.js",
+ "id": "org.apache.cordova.device-motion.accelerometer",
+ "clobbers": [
+ "navigator.accelerometer"
+ ]
+ },
+ {
+ "file": "plugins/gamecenter/www/gamecenter.js",
+ "id": "gamecenter.GameCenter",
+ "clobbers": [
+ "gamecenter"
+ ]
}
];
module.exports.metadata =
@@ -51,7 +72,9 @@ module.exports.metadata =
"org.apache.cordova.inappbrowser": "0.3.1",
"org.apache.cordova.vibration": "0.3.7",
"com.phonegap.plugins.jokutils": "0.1.0",
- "org.apache.cordova.media": "0.2.8"
+ "org.apache.cordova.media": "0.2.8",
+ "org.apache.cordova.device-motion": "0.2.6",
+ "gamecenter": "0.2.3"
}
// BOTTOM OF METADATA
});
View
22 Mobile/platforms/ios/www/plugins/gamecenter/www/gamecenter.js
@@ -0,0 +1,22 @@
+cordova.define("gamecenter.GameCenter", function(require, exports, module) {
+var exec = require("cordova/exec");
+
+var GameCenter = function () {
+ this.name = "GameCenter";
+};
+
+GameCenter.prototype.auth = function (success, failure) {
+ exec(success, failure, "GameCenter", "auth", []);
+};
+
+GameCenter.prototype.submitScore = function (success, failure, data) {
+ exec(success, failure, "GameCenter", "submitScore", [data]);
+};
+
+GameCenter.prototype.showLeaderboard = function (success, failure, data) {
+ exec(success, failure, "GameCenter", "showLeaderboard", [data]);
+};
+
+module.exports = new GameCenter();
+
+});
View
31 Mobile/platforms/ios/www/plugins/org.apache.cordova.device-motion/www/Acceleration.js
@@ -0,0 +1,31 @@
+cordova.define("org.apache.cordova.device-motion.Acceleration", function(require, exports, module) { /*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var Acceleration = function(x, y, z, timestamp) {
+ this.x = x;
+ this.y = y;
+ this.z = z;
+ this.timestamp = timestamp || (new Date()).getTime();
+};
+
+module.exports = Acceleration;
+
+});
View
171 Mobile/platforms/ios/www/plugins/org.apache.cordova.device-motion/www/accelerometer.js
@@ -0,0 +1,171 @@
+cordova.define("org.apache.cordova.device-motion.accelerometer", function(require, exports, module) { /*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+/**
+ * This class provides access to device accelerometer data.
+ * @constructor
+ */
+var argscheck = require('cordova/argscheck'),
+ utils = require("cordova/utils"),
+ exec = require("cordova/exec"),
+ Acceleration = require('./Acceleration');
+
+// Is the accel sensor running?
+var running = false;
+
+// Keeps reference to watchAcceleration calls.
+var timers = {};
+
+// Array of listeners; used to keep track of when we should call start and stop.
+var listeners = [];
+
+// Last returned acceleration object from native
+var accel = null;
+
+// Tells native to start.
+function start() {
+ exec(function(a) {
+ var tempListeners = listeners.slice(0);
+ accel = new Acceleration(a.x, a.y, a.z, a.timestamp);
+ for (var i = 0, l = tempListeners.length; i < l; i++) {
+ tempListeners[i].win(accel);
+ }
+ }, function(e) {
+ var tempListeners = listeners.slice(0);
+ for (var i = 0, l = tempListeners.length; i < l; i++) {
+ tempListeners[i].fail(e);
+ }
+ }, "Accelerometer", "start", []);
+ running = true;
+}
+
+// Tells native to stop.
+function stop() {
+ exec(null, null, "Accelerometer", "stop", []);
+ running = false;
+}
+
+// Adds a callback pair to the listeners array
+function createCallbackPair(win, fail) {
+ return {win:win, fail:fail};
+}
+
+// Removes a win/fail listener pair from the listeners array
+function removeListeners(l) {
+ var idx = listeners.indexOf(l);
+ if (idx > -1) {
+ listeners.splice(idx, 1);
+ if (listeners.length === 0) {
+ stop();
+ }
+ }
+}
+
+var accelerometer = {
+ /**
+ * Asynchronously acquires the current acceleration.
+ *
+ * @param {Function} successCallback The function to call when the acceleration data is available
+ * @param {Function} errorCallback The function to call when there is an error getting the acceleration data. (OPTIONAL)
+ * @param {AccelerationOptions} options The options for getting the accelerometer data such as timeout. (OPTIONAL)
+ */
+ getCurrentAcceleration: function(successCallback, errorCallback, options) {
+ argscheck.checkArgs('fFO', 'accelerometer.getCurrentAcceleration', arguments);
+
+ var p;
+ var win = function(a) {
+ removeListeners(p);
+ successCallback(a);
+ };
+ var fail = function(e) {
+ removeListeners(p);
+ errorCallback && errorCallback(e);
+ };
+
+ p = createCallbackPair(win, fail);
+ listeners.push(p);
+
+ if (!running) {
+ start();
+ }
+ },
+
+ /**
+ * Asynchronously acquires the acceleration repeatedly at a given interval.
+ *
+ * @param {Function} successCallback The function to call each time the acceleration data is available
+ * @param {Function} errorCallback The function to call when there is an error getting the acceleration data. (OPTIONAL)
+ * @param {AccelerationOptions} options The options for getting the accelerometer data such as timeout. (OPTIONAL)
+ * @return String The watch id that must be passed to #clearWatch to stop watching.
+ */
+ watchAcceleration: function(successCallback, errorCallback, options) {
+ argscheck.checkArgs('fFO', 'accelerometer.watchAcceleration', arguments);
+ // Default interval (10 sec)
+ var frequency = (options && options.frequency && typeof options.frequency == 'number') ? options.frequency : 10000;
+
+ // Keep reference to watch id, and report accel readings as often as defined in frequency
+ var id = utils.createUUID();
+
+ var p = createCallbackPair(function(){}, function(e) {
+ removeListeners(p);
+ errorCallback && errorCallback(e);
+ });
+ listeners.push(p);
+
+ timers[id] = {
+ timer:window.setInterval(function() {
+ if (accel) {
+ successCallback(accel);
+ }
+ }, frequency),
+ listeners:p
+ };
+
+ if (running) {
+ // If we're already running then immediately invoke the success callback
+ // but only if we have retrieved a value, sample code does not check for null ...
+ if (accel) {
+ successCallback(accel);
+ }
+ } else {
+ start();
+ }
+
+ return id;
+ },
+
+ /**
+ * Clears the specified accelerometer watch.
+ *
+ * @param {String} id The id of the watch returned from #watchAcceleration.
+ */
+ clearWatch: function(id) {
+ // Stop javascript timer & remove from timer list
+ if (id && timers[id]) {
+ window.clearInterval(timers[id].timer);
+ removeListeners(timers[id].listeners);
+ delete timers[id];
+ }
+ }
+};
+module.exports = accelerometer;
+
+});
View
1 Mobile/plugins/com.gartic.gamecenter/.fetch.json
@@ -1 +0,0 @@
-{"source":{"type":"git","url":"https://github.com/Rickgbw/cordova-plugin-game-center.git","subdir":"."}}
View
37 Mobile/plugins/com.gartic.gamecenter/www/gamecenter.js
@@ -1,37 +0,0 @@
-cordova.define("com.gartic.gamecenter.GameCenter", function(require, exports, module) {
-var exec = require("cordova/exec");
-
-var GameCenter = function () {
- this.name = "GameCenter";
-};
-
-GameCenter.prototype.auth = function (success, failure) {
- exec(success, failure, "GameCenter", "auth", []);
-};
-
-GameCenter.prototype.submitScore = function (success, failure, data) {
- exec(success, failure, "GameCenter", "submitScore", [data]);
-};
-
-GameCenter.prototype.showLeaderboard = function (success, failure, data) {
- exec(success, failure, "GameCenter", "showLeaderboard", [data]);
-};
-
-GameCenter.prototype.submitAchievement = function (success, failure, data) {
- exec(success, failure, "GameCenter", "submitAchievement", [data]);
-};
-
-GameCenter.prototype.showAchievements = function (success, failure, data) {
- exec(success, failure, "GameCenter", "showAchievements", [data]);
-};
-
-GameCenter.prototype.resetAchievements = function (success, failure, data) {
- exec(success, failure, "GameCenter", "resetAchievements", [data]);
-};
-
-GameCenter.prototype.showNotification = function (success, failure, data) {
- exec(success, failure, "GameCenter", "showNotification", [data]);
-};
-
-module.exports = new GameCenter();
-});
View
1 Mobile/plugins/gamecenter/.fetch.json
@@ -0,0 +1 @@
+{"source":{"type":"git","url":"https://github.com/leecrossley/cordova-plugin-game-center.git","subdir":"."}}
View
22 ...e/plugins/com.gartic.gamecenter/README.md → Mobile/plugins/gamecenter/README.md
@@ -52,28 +52,6 @@ gamecenter.showLeaderboard(successCallback, failureCallback, data);
The period options are "today", "week" or "all".
-### Submit Achievement
-
-```
-var data = {
- percent: 100,
- achievementId: "achievement1"
-};
-gamecenter.submitScore(successCallback, failureCallback, data);
-```
-
-### Show Achievements
-
-```
-gamecenter.showAchievements(successCallback, failureCallback);
-```
-
-### Reset Achievements
-
-```
-gamecenter.resetAchievements(successCallback, failureCallback);
-```
-
## Platforms
Supports iOS 6 and iOS 7 (there are differences in the native implementation). The Game Center is Apple specific and not applicable to other platforms.
View
4 .../plugins/com.gartic.gamecenter/plugin.xml → Mobile/plugins/gamecenter/plugin.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="com.gartic.gamecenter" version="1.0">
+<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="gamecenter" version="0.2.3">
<name>Game Center</name>
- <author>Henrique Moreira</author>
+ <author>Lee Crossley (http://ilee.co.uk/)</author>
<description>Cordova Game Center Plugin to utilise the iOS Game Center in your app. There is currently support for authentication, submitting a score to a leaderboard and displaying a native leaderboard.</description>
<keywords>cordova, game, game center, gamecenter, leaderboard</keywords>
<engines>
View
6 ...lugins/com.gartic.gamecenter/GameCenter.h → ...e/plugins/gamecenter/src/ios/GameCenter.h
@@ -10,14 +10,8 @@
@interface GameCenter : CDVPlugin <GKGameCenterControllerDelegate>
-@property NSMutableDictionary *achievementDescriptions;
-
- (void) auth:(CDVInvokedUrlCommand*)command;
- (void) submitScore:(CDVInvokedUrlCommand*)command;
- (void) showLeaderboard:(CDVInvokedUrlCommand*)command;
-- (void) submitAchievement:(CDVInvokedUrlCommand*)command;
-- (void) showAchievements:(CDVInvokedUrlCommand*)command;
-- (void) resetAchievements:(CDVInvokedUrlCommand*)command;
-- (void) showNotification:(CDVInvokedUrlCommand*)command;
@end
View
104 ...lugins/com.gartic.gamecenter/GameCenter.m → ...e/plugins/gamecenter/src/ios/GameCenter.m
@@ -9,8 +9,6 @@
@implementation GameCenter
-@synthesize achievementDescriptions;
-
- (void) auth:(CDVInvokedUrlCommand*)command;
{
// __weak to avoid retain cycle
@@ -28,7 +26,6 @@ - (void) auth:(CDVInvokedUrlCommand*)command;
if (localPlayer.isAuthenticated)
{
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- [self retrieveAchievmentMetadata];
}
else if (error != nil)
{
@@ -135,107 +132,6 @@ - (void) showLeaderboard:(CDVInvokedUrlCommand*)command;
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
-- (void) submitAchievement:(CDVInvokedUrlCommand*)command;
-{
- NSMutableDictionary *args = [command.arguments objectAtIndex:0];
- int64_t percent = [[args objectForKey:@"percent"] integerValue];
- NSString *achievementId = [args objectForKey:@"achievementId"];
-
- __block CDVPluginResult* pluginResult = nil;
-
- GKAchievement *achievement = [[GKAchievement alloc] initWithIdentifier: achievementId];
- if (achievement)
- {
- achievement.percentComplete = percent;
- [achievement reportAchievementWithCompletionHandler:^(NSError *error)
- {
- if (error)
- {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:[error localizedDescription]];
- }
- else {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- }
- [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
- }];
- }
-}
-
-- (void) showAchievements: (CDVInvokedUrlCommand*)command;
-{
- CDVPluginResult* pluginResult = nil;
-
- GKGameCenterViewController *gameCenterController = [[GKGameCenterViewController alloc] init];
- if (gameCenterController != nil)
- {
- gameCenterController.gameCenterDelegate = self;
- gameCenterController.viewState = GKGameCenterViewControllerStateAchievements;
- [self.viewController presentViewController:gameCenterController animated:YES completion:nil];
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- }
- else
- {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR];
- }
- [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
-}
-
-- (void) resetAchievements: (CDVInvokedUrlCommand*)command;
-{
- __block CDVPluginResult* pluginResult = nil;
-
- // Clear all progress saved on Game Center.
- [GKAchievement resetAchievementsWithCompletionHandler:^(NSError *error)
- {
- if (error)
- {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:[error localizedDescription]];
- }
- else
- {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- }
- [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
- }];
-}
-
-- (void) showNotification: (CDVInvokedUrlCommand*)command;
-{
- NSMutableDictionary *args = [command.arguments objectAtIndex:0];
- NSString *achievementId = [args objectForKey:@"achievementId"];
-
- CDVPluginResult* pluginResult = nil;
-
- GKAchievementDescription *achievementDescription = [achievementDescriptions objectForKey:achievementId];
-
- if(achievementDescription != nil) {
- [GKNotificationBanner showBannerWithTitle:achievementDescription.title message:achievementDescription.achievedDescription completionHandler:nil];
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- } else {
- pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR];
- }
- [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
-}
-
-- (void) retrieveAchievmentMetadata
-{
- achievementDescriptions = [[NSMutableDictionary alloc] init];
-
- [GKAchievementDescription loadAchievementDescriptionsWithCompletionHandler:
- ^(NSArray *descriptions, NSError *error) {
- if (error != nil)
- {
- NSLog(@"Error in reporting achievements: %@", error);
- }
- if (descriptions != nil)
- {
- for (GKAchievementDescription *achievementDescription in descriptions) {
- [achievementDescriptions setObject:achievementDescription forKey:achievementDescription.identifier];
- }
- }
- }];
-}
-
- (void) gameCenterViewControllerDidFinish:(GKGameCenterViewController *)gameCenterViewController
{
[gameCenterViewController dismissViewControllerAnimated:YES completion:nil];
View
20 Mobile/plugins/gamecenter/www/gamecenter.js
@@ -0,0 +1,20 @@
+
+var exec = require("cordova/exec");
+
+var GameCenter = function () {
+ this.name = "GameCenter";
+};
+
+GameCenter.prototype.auth = function (success, failure) {
+ exec(success, failure, "GameCenter", "auth", []);
+};
+
+GameCenter.prototype.submitScore = function (success, failure, data) {
+ exec(success, failure, "GameCenter", "submitScore", [data]);
+};
+
+GameCenter.prototype.showLeaderboard = function (success, failure, data) {
+ exec(success, failure, "GameCenter", "showLeaderboard", [data]);
+};
+
+module.exports = new GameCenter();
View
2 Mobile/plugins/ios.json
@@ -1 +1 @@
-{"prepare_queue":{"installed":[],"uninstalled":[]},"config_munge":{"config.xml":{"/*":{"<feature name=\"Device\"><param name=\"ios-package\" value=\"CDVDevice\" /></feature>":1,"<feature name=\"Notification\"><param name=\"ios-package\" value=\"CDVNotification\" /></feature>":1,"<feature name=\"InAppBrowser\"><param name=\"ios-package\" value=\"CDVInAppBrowser\" /></feature>":1,"<feature name=\"Vibration\"><param name=\"ios-package\" value=\"CDVVibration\" /></feature>":1,"<feature name=\"JokUtils\"><param name=\"ios-package\" value=\"CDVJokUtils\" /></feature>":1,"<feature name=\"Media\"><param name=\"ios-package\" value=\"CDVSound\" /></feature>":1,"<feature name=\"Accelerometer\"><param name=\"ios-package\" value=\"CDVAccelerometer\" /></feature>":1,"<feature name=\"GameCenter\"><param name=\"ios-package\" value=\"GameCenter\" /></feature>":1}},"framework":{"AudioToolbox.framework":{"true":2},"CoreGraphics.framework":{"false":1},"CoreMotion.framework":{"false":1},"GameKit.framework":{"false":1}}},"installed_plugins":{"org.apache.cordova.device":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.dialogs":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.inappbrowser":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.vibration":{"PACKAGE_NAME":"io.jok.pitching"},"com.phonegap.plugins.jokutils":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.media":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.device-motion":{"PACKAGE_NAME":"io.jok.pitching"},"com.gartic.gamecenter":{"PACKAGE_NAME":"io.jok.pitching"}},"dependent_plugins":{}}
+{"prepare_queue":{"installed":[],"uninstalled":[]},"config_munge":{"config.xml":{"/*":{"<feature name=\"Device\"><param name=\"ios-package\" value=\"CDVDevice\" /></feature>":1,"<feature name=\"Notification\"><param name=\"ios-package\" value=\"CDVNotification\" /></feature>":1,"<feature name=\"InAppBrowser\"><param name=\"ios-package\" value=\"CDVInAppBrowser\" /></feature>":1,"<feature name=\"Vibration\"><param name=\"ios-package\" value=\"CDVVibration\" /></feature>":1,"<feature name=\"JokUtils\"><param name=\"ios-package\" value=\"CDVJokUtils\" /></feature>":1,"<feature name=\"Media\"><param name=\"ios-package\" value=\"CDVSound\" /></feature>":1,"<feature name=\"Accelerometer\"><param name=\"ios-package\" value=\"CDVAccelerometer\" /></feature>":1,"<feature name=\"GameCenter\"><param name=\"ios-package\" value=\"GameCenter\" /></feature>":1}},"framework":{"AudioToolbox.framework":{"true":2},"CoreGraphics.framework":{"false":1},"CoreMotion.framework":{"false":1},"GameKit.framework":{"false":1}}},"installed_plugins":{"org.apache.cordova.device":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.dialogs":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.inappbrowser":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.vibration":{"PACKAGE_NAME":"io.jok.pitching"},"com.phonegap.plugins.jokutils":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.media":{"PACKAGE_NAME":"io.jok.pitching"},"org.apache.cordova.device-motion":{"PACKAGE_NAME":"io.jok.pitching"},"gamecenter":{"PACKAGE_NAME":"io.jok.pitching"}},"dependent_plugins":{}}

0 comments on commit a036f68

Please sign in to comment.