Skip to content

Commit

Permalink
Merge pull request #3 from purplecabbage/DebugOutput
Browse files Browse the repository at this point in the history
Debug output
  • Loading branch information
Jesse MacFadyen committed Nov 21, 2011
2 parents 3496fb5 + 41ce237 commit a5e64a3
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 24 deletions.
Binary file modified GapAppStarter.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Note!!!

When you add or remove files/folders in the www folder you will need to do the following

- ensure the new item is included in the project ( Content )
- ensure the new item is included in the project ( Content ) This includes ALL images/css/html/js/* and anything that you want available at runtime.
-- Do not modify the GapSourceDictionary.xml file which is included in the project, it is auto-generated for you when you build.


Expand Down
18 changes: 7 additions & 11 deletions framework/PGView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ public PGView()


StartupMode mode = PhoneApplicationService.Current.StartupMode;
Debug.WriteLine("StartupMode mode =" + mode.ToString());

if (mode == StartupMode.Launch)
{
Expand Down Expand Up @@ -317,7 +316,7 @@ void page_BackKeyPress(object sender, CancelEventArgs e)

void GapBrowser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
{
Debug.WriteLine("GapBrowser_LoadCompleted");

}


Expand All @@ -343,8 +342,6 @@ void GapBrowser_ScriptNotify(object sender, NotifyEventArgs e)
{
string commandStr = e.Value;

Debug.WriteLine("Command::" + commandStr);

// DOMStorage/Local OR DOMStorage/Session
if (commandStr.IndexOf("DOMStorage") == 0)
{
Expand All @@ -363,7 +360,6 @@ void GapBrowser_ScriptNotify(object sender, NotifyEventArgs e)
{
// ERROR
Debug.WriteLine("ScriptNotify :: " + commandStr);
return;
}
else if (commandCallParams.Service == "CoreEvents")
{
Expand All @@ -374,15 +370,16 @@ void GapBrowser_ScriptNotify(object sender, NotifyEventArgs e)
this.OverrideBackButton = (args != null && args.Length > 0 && args[0] == "true");
break;
}
return;
}

this.nativeExecution.ProcessCommand(commandCallParams);
else
{
this.nativeExecution.ProcessCommand(commandCallParams);
}
}

private void GapBrowser_Unloaded(object sender, RoutedEventArgs e)
{
//throw new NotImplementedException();

}

private void GapBrowser_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs e)
Expand All @@ -392,8 +389,7 @@ private void GapBrowser_NavigationFailed(object sender, System.Windows.Navigatio

private void GapBrowser_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
{
Debug.WriteLine("GapBrowser_Navigated");


}


Expand Down
8 changes: 0 additions & 8 deletions framework/PhoneGap/Commands/Contacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ private void saveContactTask_Completed(object sender, SaveContactResult e)
// refer here for contact properties we can access: http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.savecontacttask_members%28v=VS.92%29.aspx
public void save(string jsonContact)
{
Debug.WriteLine("Saving Contact :: " + jsonContact);

JSONContact contact = JSON.JsonHelper.Deserialize<JSONContact>(jsonContact);

Expand Down Expand Up @@ -430,11 +429,6 @@ where a.Contains(searchParams.options.filter)

List<string> contactList = new List<string>();

foreach(Contact cont in foundContacts)
{
Debug.WriteLine(cont.ToString() + " : " + cont.DisplayName + " : " + cont.GetHashCode().ToString());
}


IEnumerable<Contact> distinctContacts = foundContacts.Distinct();

Expand Down Expand Up @@ -513,8 +507,6 @@ private string FormatJSONContact(Contact con, string[] fields)

jsonContact = "{" + jsonContact + "}";

//Debug.WriteLine("jsonContact = " + jsonContact);

return jsonContact;
}
}
Expand Down
1 change: 0 additions & 1 deletion framework/PhoneGap/PluginResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public string ToJSONString()
this.KeepCallback.ToString().ToLower() );

res = "{" + res + "}";
//Debug.WriteLine("ToJSONString returning :: " + res);
return res;

}
Expand Down
4 changes: 2 additions & 2 deletions framework/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("WP7GapClassLib")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,4 +32,4 @@
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.2.1")]
4 changes: 3 additions & 1 deletion framework/WP7GapClassLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\Release</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>
</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Devices.Sensors" />
Expand Down
Binary file modified template/GapLib/WP7GapClassLib.dll
Binary file not shown.

0 comments on commit a5e64a3

Please sign in to comment.