Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 8f6b2ec

Browse files
authored
Merge pull request #86 from ziccardi/AEROGEAR-7743-1
Renamed Jailbreak check, added check methods to the security service
2 parents aea07d4 + 72a62e6 commit 8f6b2ec

File tree

15 files changed

+80
-76
lines changed

15 files changed

+80
-76
lines changed

Auth/Auth.Platform.Android/Auth.Platform.Android.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>AeroGear.Mobile.Auth.Platform.Android</id>
5-
<version>1.1.0-alpha.1</version>
5+
<version>2.0.1</version>
66
<title>AeroGear SDK Auth module (Android)</title>
77
<authors>AeroGear Community</authors>
88
<owners>AeroGear Community</owners>
@@ -14,8 +14,8 @@
1414
<tags>aerogear security sso openid xamarin iOS android mobile</tags>
1515
<iconUrl>https://avatars1.githubusercontent.com/u/954205</iconUrl>
1616
<dependencies>
17-
<dependency id="AeroGear.Mobile.Core.Platform.Android" version="1.1.0-alpha.1"/>
18-
<dependency id="AeroGear.Mobile.Auth" version="1.1.0-alpha.1"/>
17+
<dependency id="AeroGear.Mobile.Core.Platform.Android" version="2.0.1"/>
18+
<dependency id="AeroGear.Mobile.Auth" version="2.0.1"/>
1919
<dependency id="Xamarin.OpenId.AppAuth.Android" version="0.7.0"/>
2020
<dependency id="Xamarin.Android.Support.CustomTabs" version="25.4.0.2"/>
2121
</dependencies>
@@ -29,4 +29,4 @@
2929
<file src="bin\$configuration$\AeroGear.Mobile.Auth.Platform.Android.dll" target="lib\monoandroid80"/>
3030
<file src="../../README.md" target=""/>
3131
</files>
32-
</package>
32+
</package>

Auth/Auth.Platform.iOS/Auth.Platform.iOS.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>AeroGear.Mobile.Auth.Platform.iOS</id>
5-
<version>1.1.0-alpha.1</version>
5+
<version>2.0.1</version>
66
<title>AeroGear SDK Auth module (iOS)</title>
77
<authors>AeroGear Community</authors>
88
<owners>AeroGear Community</owners>
@@ -14,8 +14,8 @@
1414
<tags>aerogear security sso openid xamarin iOS android mobile</tags>
1515
<iconUrl>https://avatars1.githubusercontent.com/u/954205</iconUrl>
1616
<dependencies>
17-
<dependency id="AeroGear.Mobile.Core.Platform.iOS" version="1.1.0-alpha.1"/>
18-
<dependency id="AeroGear.Mobile.Auth" version="1.1.0-alpha.1"/>
17+
<dependency id="AeroGear.Mobile.Core.Platform.iOS" version="2.0.1"/>
18+
<dependency id="AeroGear.Mobile.Auth" version="2.0.1"/>
1919
<dependency id="Xamarin.OpenId.AppAuth.iOS" version="0.92.0"/>
2020
</dependencies>
2121
<references>
@@ -28,4 +28,4 @@
2828
<file src="bin\$configuration$\AeroGear.Mobile.Auth.Platform.iOS.dll" target="lib\xamarinios10"/>
2929
<file src="../../README.md" target=""/>
3030
</files>
31-
</package>
31+
</package>

Auth/Auth/Auth.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>AeroGear.Mobile.Auth</id>
5-
<version>1.1.0-alpha.1</version>
5+
<version>2.0.1</version>
66
<title>AeroGear SDK Auth module</title>
77
<authors>AeroGear Community</authors>
88
<owners>AeroGear Community</owners>
@@ -14,7 +14,7 @@
1414
<tags>aerogear security sso openid xamarin iOS android mobile</tags>
1515
<iconUrl>https://avatars1.githubusercontent.com/u/954205</iconUrl>
1616
<dependencies>
17-
<dependency id="AeroGear.Mobile.Core" version="1.1.0-alpha.1"/>
17+
<dependency id="AeroGear.Mobile.Core" version="2.0.1"/>
1818
<dependency id="JWT" version="4.0.0"/>
1919
</dependencies>
2020
<references>
@@ -27,4 +27,4 @@
2727
<file src="bin\$configuration$\netstandard1.4\AeroGear.Mobile.Auth.dll" target="lib\netstandard1.4"/>
2828
<file src="../../README.md" target=""/>
2929
</files>
30-
</package>
30+
</package>

Core/Core.Platform.Android/Core.Platform.Android.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>AeroGear.Mobile.Core.Platform.Android</id>
5-
<version>1.1.0-alpha.1</version>
5+
<version>2.0.1</version>
66
<title>AeroGear Xamarin SDK Core (Android)</title>
77
<authors>AeroGear Community</authors>
88
<owners>AeroGear Community</owners>
@@ -14,7 +14,7 @@
1414
<tags>aerogear security sso openid xamarin iOS android mobile</tags>
1515
<iconUrl>https://avatars1.githubusercontent.com/u/954205</iconUrl>
1616
<dependencies>
17-
<dependency id="AeroGear.Mobile.Core" version="1.1.0-alpha.1"/>
17+
<dependency id="AeroGear.Mobile.Core" version="2.0.1"/>
1818
</dependencies>
1919
<references>
2020
<group>
@@ -26,4 +26,4 @@
2626
<file src="bin\$configuration$\AeroGear.Mobile.Core.Platform.Android.dll" target="lib\monoandroid44"/>
2727
<file src="../../README.md" target=""/>
2828
</files>
29-
</package>
29+
</package>

Core/Core.Platform.iOS/Core.Platform.iOS.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>AeroGear.Mobile.Core.Platform.iOS</id>
5-
<version>1.1.0-alpha.1</version>
5+
<version>2.0.1</version>
66
<title>AeroGear Xamarin SDK Core (iOS)</title>
77
<authors>AeroGear Community</authors>
88
<owners>AeroGear Community</owners>
@@ -14,7 +14,7 @@
1414
<tags>aerogear security sso openid xamarin iOS android mobile</tags>
1515
<iconUrl>https://avatars1.githubusercontent.com/u/954205</iconUrl>
1616
<dependencies>
17-
<dependency id="AeroGear.Mobile.Core" version="1.1.0-alpha.1"/>
17+
<dependency id="AeroGear.Mobile.Core" version="2.0.1"/>
1818
</dependencies>
1919
<references>
2020
<group>
@@ -26,4 +26,4 @@
2626
<file src="bin\$configuration$\AeroGear.Mobile.Core.Platform.iOS.dll" target="lib\xamarinios10"/>
2727
<file src="../../README.md" target=""/>
2828
</files>
29-
</package>
29+
</package>

Core/Core/Core.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>AeroGear.Mobile.Core</id>
5-
<version>1.1.0-alpha.1</version>
5+
<version>2.0.1</version>
66
<title>AeroGear SDK Core</title>
77
<authors>AeroGear Community</authors>
88
<owners>AeroGear Community</owners>
@@ -26,4 +26,4 @@
2626
<file src="bin\$configuration$\netstandard1.4\AeroGear.Mobile.Core.dll" target="lib\netstandard1.4"/>
2727
<file src="../../README.md" target=""/>
2828
</files>
29-
</package>
29+
</package>

Security/Security.Platform.Android/Security.Platform.Android.csproj

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props')" />
3+
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props')"/>
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -49,31 +49,31 @@
4949
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5050
</PropertyGroup>
5151
<ItemGroup>
52-
<Reference Include="System" />
53-
<Reference Include="System.Xml" />
54-
<Reference Include="System.Core" />
55-
<Reference Include="Mono.Android" />
52+
<Reference Include="System"/>
53+
<Reference Include="System.Xml"/>
54+
<Reference Include="System.Core"/>
55+
<Reference Include="Mono.Android"/>
5656
</ItemGroup>
5757
<ItemGroup>
58-
<Compile Include="Properties\AssemblyInfo.cs" />
59-
<Compile Include="Checks\RootEnabledCheck.cs" />
60-
<Compile Include="AndroidDeviceCheckFactory.cs" />
61-
<Compile Include="DeviceChecks.cs" />
62-
<Compile Include="Checks\IsEmulatorCheck.cs" />
63-
<Compile Include="Checks\DeveloperModeEnabledCheck.cs" />
64-
<Compile Include="Checks\ScreenLockEnabledCheck.cs" />
65-
<Compile Include="Checks\BackupEnabledCheck.cs" />
66-
<Compile Include="Checks\EncryptionEnabledCheck.cs" />
67-
<Compile Include="Checks\DebuggerEnabledCheck.cs" />
68-
<Compile Include="SecurityService.cs" />
58+
<Compile Include="Properties\AssemblyInfo.cs"/>
59+
<Compile Include="Checks\RootEnabledCheck.cs"/>
60+
<Compile Include="AndroidDeviceCheckFactory.cs"/>
61+
<Compile Include="DeviceChecks.cs"/>
62+
<Compile Include="Checks\IsEmulatorCheck.cs"/>
63+
<Compile Include="Checks\DeveloperModeEnabledCheck.cs"/>
64+
<Compile Include="Checks\ScreenLockEnabledCheck.cs"/>
65+
<Compile Include="Checks\BackupEnabledCheck.cs"/>
66+
<Compile Include="Checks\EncryptionEnabledCheck.cs"/>
67+
<Compile Include="Checks\DebuggerEnabledCheck.cs"/>
68+
<Compile Include="SecurityService.cs"/>
6969
</ItemGroup>
7070
<ItemGroup>
7171
<None Include="Security.Platform.Android.nuspec">
7272
<SubType>Designer</SubType>
7373
</None>
74-
<None Include="packages.config" />
74+
<None Include="packages.config"/>
7575
</ItemGroup>
76-
<ItemGroup />
76+
<ItemGroup/>
7777
<ItemGroup>
7878
<ProjectReference Include="..\Security\Security.csproj">
7979
<Project>{E6A4E78F-25B7-4D82-89A8-F394B82E557A}</Project>
@@ -84,7 +84,7 @@
8484
<Name>Core</Name>
8585
</ProjectReference>
8686
</ItemGroup>
87-
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
88-
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets')" />
89-
<Target Name="clean_folders" AfterTargets="Clean"><RemoveDir Directories=".obj" /><RemoveDir Directories=".bin" /></Target>
90-
</Project>
87+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets"/>
88+
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets')"/>
89+
<Target Name="clean_folders" AfterTargets="Clean"><RemoveDir Directories=".obj"/><RemoveDir Directories=".bin"/></Target>
90+
</Project>

Security/Security.Platform.Android/Security.Platform.Android.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>AeroGear.Mobile.Security.Platform.Android</id>
5-
<version>1.1.0-alpha.1</version>
5+
<version>2.0.1</version>
66
<title>AeroGear Xamarin SDK Security module (Android)</title>
77
<authors>AeroGear Community</authors>
88
<owners>AeroGear Community</owners>
@@ -14,8 +14,8 @@
1414
<tags>aerogear security sso openid xamarin iOS android mobile</tags>
1515
<iconUrl>https://avatars1.githubusercontent.com/u/954205</iconUrl>
1616
<dependencies>
17-
<dependency id="AeroGear.Mobile.Core" version="1.1.0-alpha.1"/>
18-
<dependency id="AeroGear.Mobile.Security" version="1.1.0-alpha.1"/>
17+
<dependency id="AeroGear.Mobile.Core" version="2.0.1"/>
18+
<dependency id="AeroGear.Mobile.Security" version="2.0.1"/>
1919
</dependencies>
2020
<references>
2121
<group>
@@ -27,4 +27,4 @@
2727
<file src="bin\$configuration$\AeroGear.Mobile.Security.Platform.Android.dll" target="lib\monoandroid44"/>
2828
<file src="../../README.md" target=""/>
2929
</files>
30-
</package>
30+
</package>

Security/Security.Platform.iOS/DeviceChecks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class DeviceChecks : IDeviceCheckType
1919
{
2020
private static Dictionary<string, DeviceChecks> typesByName = new Dictionary<string, DeviceChecks>();
2121

22-
public static readonly DeviceChecks JAILBROKEN_ENABLED = new DeviceChecks(typeof(JailbrokenDeviceCheck));
22+
public static readonly DeviceChecks JAILBREAK_ENABLED = new DeviceChecks(typeof(JailbrokenDeviceCheck));
2323
public static readonly DeviceChecks IS_EMULATOR = new DeviceChecks(typeof(IsEmulatorCheck));
2424
public static readonly DeviceChecks DEBUGGER_ATTACHED = new DeviceChecks(typeof(DebuggerAttachedCheck));
2525
public static readonly DeviceChecks DEVICE_LOCK_ENABLED = new DeviceChecks(typeof(DeviceLockEnabledCheck));

Security/Security.Platform.iOS/Security.Platform.iOS.csproj

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props')" />
3+
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props')"/>
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -61,20 +61,20 @@
6161
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
6262
</PropertyGroup>
6363
<ItemGroup>
64-
<Reference Include="System" />
65-
<Reference Include="System.Xml" />
66-
<Reference Include="System.Core" />
67-
<Reference Include="Xamarin.iOS" />
64+
<Reference Include="System"/>
65+
<Reference Include="System.Xml"/>
66+
<Reference Include="System.Core"/>
67+
<Reference Include="Xamarin.iOS"/>
6868
</ItemGroup>
6969
<ItemGroup>
70-
<Compile Include="Properties\AssemblyInfo.cs" />
71-
<Compile Include="Checks\JailbrokenDeviceCheck.cs" />
72-
<Compile Include="IOSDeviceCheckFactory.cs" />
73-
<Compile Include="DeviceChecks.cs" />
74-
<Compile Include="Checks\IsEmulatorCheck.cs" />
75-
<Compile Include="Checks\DebuggerAttachedCheck.cs" />
76-
<Compile Include="Checks\DeviceLockEnabledCheck.cs" />
77-
<Compile Include="SecurityService.cs" />
70+
<Compile Include="Properties\AssemblyInfo.cs"/>
71+
<Compile Include="Checks\JailbrokenDeviceCheck.cs"/>
72+
<Compile Include="IOSDeviceCheckFactory.cs"/>
73+
<Compile Include="DeviceChecks.cs"/>
74+
<Compile Include="Checks\IsEmulatorCheck.cs"/>
75+
<Compile Include="Checks\DebuggerAttachedCheck.cs"/>
76+
<Compile Include="Checks\DeviceLockEnabledCheck.cs"/>
77+
<Compile Include="SecurityService.cs"/>
7878
</ItemGroup>
7979
<ItemGroup>
8080
<None Include="Security.Platform.iOS.nuspec">
@@ -96,6 +96,6 @@
9696
<Name>Security</Name>
9797
</ProjectReference>
9898
</ItemGroup>
99-
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
100-
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets')" />
101-
<Target Name="clean_folders" AfterTargets="Clean"><RemoveDir Directories=".obj" /><RemoveDir Directories=".bin" /></Target></Project>
99+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets"/>
100+
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets')"/>
101+
<Target Name="clean_folders" AfterTargets="Clean"><RemoveDir Directories=".obj"/><RemoveDir Directories=".bin"/></Target></Project>

0 commit comments

Comments
 (0)