Skip to content

Commit

Permalink
Merge pull request #119 from MindscapeHQ/remove-bluetooth-dependency
Browse files Browse the repository at this point in the history
Removed Bluetooth permissions from Xamarin.Android provider.
  • Loading branch information
QuantumNightmare committed Mar 24, 2014
2 parents b04eb88 + f4abebf commit 0143fc2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions AssemblyVersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyVersion("2.0.1.0")]
[assembly: AssemblyFileVersion("2.0.1.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public RaygunEnvironmentMessage()
}
}

DeviceName = RaygunClient.DeviceName;
DeviceName = "Unknown";

Java.Lang.Runtime runtime = Java.Lang.Runtime.GetRuntime();
TotalPhysicalMemory = (ulong)runtime.TotalMemory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
[assembly: UsesPermission(Android.Manifest.Permission.AccessNetworkState)]
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
[assembly: UsesPermission(Android.Manifest.Permission.Bluetooth)]
11 changes: 1 addition & 10 deletions Mindscape.Raygun4Net.Xamarin.Android/RaygunClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,23 +218,14 @@ internal static Context Context
get { return Application.Context; }
}

internal static string DeviceName
{
get
{
BluetoothAdapter adapter = BluetoothAdapter.DefaultAdapter;
return adapter == null ? "Unknown" : adapter.Name;
}
}

internal RaygunMessage BuildMessage(Exception exception, IList<string> tags, IDictionary userCustomData)
{
exception = StripWrapperExceptions(exception);

JNIEnv.ExceptionClear();
var message = RaygunMessageBuilder.New
.SetEnvironmentDetails()
.SetMachineName(DeviceName)
.SetMachineName("Unknown")
.SetExceptionDetails(exception)
.SetClientDetails()
.SetVersion(ApplicationVersion)
Expand Down
2 changes: 1 addition & 1 deletion Mindscape.Raygun4Net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="2.5">
<id>Mindscape.Raygun4Net</id>
<version>2.0.0</version>
<version>2.0.1</version>
<title />
<authors>Mindscape</authors>
<owners />
Expand Down
2 changes: 1 addition & 1 deletion XamarinComponent/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "rake/clean"
CLEAN.include "*.xam"
CLEAN.include "xpkg"

COMPONENT = "raygun4net-2.0.0.xam"
COMPONENT = "raygun4net-2.0.1.xam"

file "xpkg/xpkg.exe" do
sh "if exist xpkg del /Q xpkg & rd xpkg"
Expand Down

0 comments on commit 0143fc2

Please sign in to comment.