Skip to content

Commit 4f39df0

Browse files
committed
Merge pull request #8 from claudiobadii/patch-1
Fix AppInfo.cs
2 parents bfe05c7 + 90a7f99 commit 4f39df0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp8/AppInfo.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Generic;
23
using System.Xml.Linq;
34

45
using WPCordovaClassLib.Cordova;
@@ -31,9 +32,8 @@ public void getAppInfo(string options)
3132
appInfo["version"] = manifestAppElement.Attribute("Version").Value;
3233
}
3334

34-
string jsonString = JsonHelper.Serialize(keys);
3535

36-
DispatchCommandResult(new PluginResult(PluginResult.Status.OK, jsonString));
36+
DispatchCommandResult(new PluginResult(PluginResult.Status.OK, "{\"identifier\": \"" + appInfo["identifier"] + "\", \"version\":\"" + appInfo["version"] + "\"}"));
3737
}
3838

3939
public void getVersion(string options)
@@ -62,4 +62,4 @@ public void getIdentifier(string options)
6262
DispatchCommandResult(new PluginResult(PluginResult.Status.OK, productID));
6363
}
6464
}
65-
}
65+
}

0 commit comments

Comments
 (0)